When adding Firebase v6.21.0 to your project using Carthage, a header file called "FirebaseCore-umbrella.h" is created in FirebaseCore. This will trigger a warning in Xcode, as it is not included in the header file defined in the module.modulemap of FirebaseCore.
This does not happen when using v6.19.0 of Firebase.
Warning in Xcode is: umbrella header for module 'FirebaseCore' does not include header 'FirebaseCore-umbrella.h'
Follow steps in Carthage.md to install setup Firebase using Carthage, by adding this line to the Carthage file:
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 6.21.0
Thanks for the report. We'll fix for the next release.
In the meantime, a workaround is to manually delete 'FirebaseCore-umbrella.h' and any other unreferenced umbrella.h files.
I am seeing this as well for FirebaseCore, FirebaseInstanceID, and FirebaseMessaging when installing through CocoaPods. Just wanted to note this so that it's not flagged as just a Carthage issue. 馃檪
The 6.21.0 regression has been fixed for the two binary distributions - Carthage and Zipfile - and will be available in the next release.
@donnywdavis I don't see the issue for CocoaPods installs. If you're seeing it there, please create another issue with the template filled out.
@paulb777 I see you merged a PR fixing this issue but I still see the following warnings while running the app:
warning: Swift error in fallback scratch context: error:
^
^
error: /Users/user/GitHub/project/Carthage/Build/iOS/Firebase.framework/Headers/Firebase.h:15:9: error: could not build module 'FirebaseCore'
^
error:
^
error:
^
error:
^
error:
^
error:
^
error:
^
error:
^
error:
^
error:
^
Any ideas? Sorry to hijack this thread, let me know if I need to create a new Issue for this.
@gbejarano01 Thanks for the report. I've just compared the 6.21.0 and 6.22.0 releases and verified that the offending umbrella.h files are no longer there. Please make sure that you've run carthage update to 6.22.0 or see above for the workaround with 6.21.0.
Thanks @paulb777 !! yeah, last time I run Carthage it pulled 6.21.0, wil will try pulling 6.22.0. Thanks!
That worked @paulb777 Thanks for the quick response!
Most helpful comment
Thanks for the report. We'll fix for the next release.
In the meantime, a workaround is to manually delete 'FirebaseCore-umbrella.h' and any other unreferenced umbrella.h files.