Carthage Firebase 6.6 reports error Unable to find module header
[READ] Step 1: Are you in the right place?
- For issues or feature requests related to the code in this repository
file a Github issue.
- If this is a feature request make sure the issue title starts with "FR:".
- For general technical questions, post a question on StackOverflow with the firebase tag.
- For general Firebase discussion, use the firebase-talk google group.
- For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel.
[REQUIRED] Step 2: Describe your environment
- Xcode version: 10.3
- Firebase SDK version: 6.6
- Firebase Component: Firebase
- Component version: 6.6
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
carthage update --platform iOS upgrades to 6.6, I had to revert to 6.5 by forcing the Cartfile to point to "== 6.5"
error occurs when building my project in Xcode:
/Users/user/Projects/Dem/Carthage/Build/iOS/Firebase.framework/Modules/module.modulemap:3:10: warning: skipping 'Firebase.h' because module declaration of 'Firebase' lacks the 'framework' qualifier
header "Firebase.h"
^
/Users/user/Projects/Dem/Carthage/Build/iOS/Firebase.framework/Modules/module.modulemap:1:1: note: use 'framework module' to declare module 'Firebase'
module Firebase {
^
/Users/user/Projects/Dem/Carthage/Build/iOS/Firebase.framework/Modules/module.modulemap:3:10: warning: skipping 'Firebase.h' because module declaration of 'Firebase' lacks the 'framework' qualifier
header "Firebase.h"
^
/Users/user/Projects/Dem/Carthage/Build/iOS/Firebase.framework/Modules/module.modulemap:1:1: note: use 'framework module' to declare module 'Firebase'
module Firebase {
^
/Users/user/Projects/Dem/Carthage/Build/iOS/Firebase.framework/Modules/module.modulemap:3:10: error: header 'Firebase.h' not found
header "Firebase.h"
^
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
@possen Thanks for the report. We'll take a look.
Another workaround would likely be to copy the 6.5.0 Firebase.framework to a 6.6.0 installation.
I have the same problem ((
When I manually download Firebase.framework version 6.5.0 and replace this file, the compilation stops with an error
ld: warning: Could not find auto-linked framework 'Firebase'
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GDTTransport", referenced from:
objc-class-ref in FirebaseCoreDiagnostics(FIRCoreDiagnostics.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Similarly, if I replace all the files from Analytics-fe0669fafb68cf16.zip
Sorry about the trouble! I'll try to get a fix up early tomorrow for this.
Had this issue (all of sudden and unexpectedly), took some time to figure out what the probable cause might be.
I simply restricted Carthage to only using version 6.5.0
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 6.5.0
not sure if it work for all the libraries, but the ones I'm using worked find
I simply restricted Carthage to only using version 6.5.0
It's a good, though temporary, solution. Well, we're waiting for an update from the project maintainers.
The problem is that Firebase module definition at Carthage/Build/iOS/Firebase.framework/Modules/module.modulemap is missing the framework specifier.
The simplest workaround is to edit the file to include it:
framework module Firebase {
export *
header "Firebase.h"
}
We'll look into posting a 6.6.1 version of FirebaseAnalyticsBinary with the fix.
Thanks @paulb777.
Its working fine now.
Its working fine now.
Anyone who reads this and thinks it should work as planned now. Nothing like that. This works if you make changes to module.modulemap, but version 6.6.1 is still not released.
@petrovi4 Yep, sorry it doesn't look like we'll get a 6.6.1 in. Instead we expect the module.modulemap fix to occur in this week's 6.7.0.
I have the same problem ((
When I manually download Firebase.framework version 6.5.0 and replace this file, the compilation stops with an error
ld: warning: Could not find auto-linked framework 'Firebase' Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GDTTransport", referenced from: objc-class-ref in FirebaseCoreDiagnostics(FIRCoreDiagnostics.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)Similarly, if I replace all the files from Analytics-fe0669fafb68cf16.zip
How did you fix this issue? My CartFile has like this: binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 6.5.0 and after carthage update I still have this issue.
@kkendall33 If the 6.6.0 FirebaseCoreDiagnostics.framework is included, also include the 6.6.0 GoogleDataTransport.framework.
@kkendall33 If the 6.6.0 FirebaseCoreDiagnostics.framework is included, also include the 6.6.0 GoogleDataTransport.framework.
Could you help me find the right path for that? I'm assuming you mean include it with Carthage?
It's in the Analytics folder of the Carthage distribution.
do we have a working solution yet peeps? still running into the issue and my CI is freaking out :(
Sorry, we're transitioning to improved tooling that will make the Carthage generation and publishing more reliable in the long run. However, going through a few hiccups in getting it right. We expect to get Carthage 6.7.0 out in the next day or two.
Apologies for the delay - Firebase 6.7.0 is now available on Carthage and should include the updated modulemap. Please re-open this issue if you're still seeing the bug after updating to 6.7.0! Thanks for everyone's patience while we transition our tooling.
When using the manual zip file to upgrade Firebase 6.5.0 to 6.7.0 the same errors occurs in Xcode, this was also the case with 6.6.0.
I'm guessing this is related to this?
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GDTTransport", referenced from:
objc-class-ref in FirebaseCoreDiagnostics(FIRCoreDiagnostics.o)
"_GDTLog", referenced from:
-[FIRCoreDiagnosticsLog transportBytes] in FirebaseCoreDiagnostics(FIRCoreDiagnostics.o)
_FIRPopulateProtoWithCommonInfoFromApp in FirebaseCoreDiagnostics(FIRCoreDiagnostics.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Still seeing this too. Updated using carhage 6.5.0 -> 6.7.0
@rowanmulder @ValCanBuild are you seeing the modulemap issue still, or just the Unidentified symbols issue?