Building documentation (Docc) gives error coming from `FirebaseCoreExtension` while building with Xcode 16

The project setup is as follows:

  • Uses pods
  • Has swift bridging header as it uses both Objc and Swift

With Xcode Version 16.0 (16A242d), when building the project everything is fine but when I build the Documentation (Product > Build Documentation), I am getting this error via:

/.../Project/Pods/FirebaseCore/FirebaseCore/Sources/Public/FirebaseCore/FIRLoggerLevel.h:23:28: redefinition of 'FIRLoggerLevel'

...

Building the documentation of the same project with Xcode Version 15.4 works just fine, so the error must come from the new xcodebuild (Xcode 16.0 Build version 16A242d).

Here are the pods in the project:

pod 'Firebase/Crashlytics', '10.29.0'
pod 'Firebase/Performance', '10.29.0'

# (Recommended) Pod for Google Analytics
pod 'FirebaseAnalytics', '10.29.0'

pod 'GoogleAnalytics', '3.21'
pod 'GoogleTagManager', '7.4.3'
pod 'FirebaseRemoteConfig', '10.29.0'
pod 'GoogleUtilities', '7.13.0'

Tried with all latest, but the same issue persists.

Any ideas, on how to resolve this? I read that it is not possible to disable the pods being build by docc as they are dependencies of the target which is being build by the docc process, if that is not true, maybe I can disable docc from building the Pods.

Answered by Amiorkov in 806933022

I have reported this issue to Firebase and they are working on a solution for next version.

https://github.com/firebase/firebase-ios-sdk/issues/13756

Accepted Answer

I have reported this issue to Firebase and they are working on a solution for next version.

https://github.com/firebase/firebase-ios-sdk/issues/13756

Building documentation (Docc) gives error coming from `FirebaseCoreExtension` while building with Xcode 16
 
 
Q