Hello nice people, I am trying to use iOS Firebas...
# multiplatform
Hello nice people, I am trying to use iOS Firebase dependency in KMM through CocoaPods ( https://kotlinlang.org/docs/native-cocoapods.html#add-dependencies-on-pod-libraries ) and I am getting:
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FIRStorage", referenced from:
objc-class-ref in result.o
ld: symbol(s) not found for architecture arm64
Any idea where to go from here?
M1 / simulator?
Yes running simulator on M1
you either need to run xcode on rosetta which will make your simulators run as x86_64 or make your shared.framework compatible with arm64 simulator which might not be possible yet (lots of libraries are not compatible with apple silicon yet). I usually either run on physical device or directly on mac. Check out this conversation: https://kotlinlang.slack.com/archives/C3PQML5NU/p1631795101383300
🙏 1
👀 1
regarding "making shared.framework compatible with arm64 simulator" how can I do that? before adding the Firebase dependency to shared code, it worked on M1, and if I add the Firebase dependency directly to iOS app, it also works, so it seems that the issue is somehow connected to using the iOS dependency in shared code.
Hey @Martin Rajniak, were you able to solve that? I’m getting the same exact error. I’m not on M1, though.
Unfortunately no - but not sure why this would be an issue outside of M1.
👍 1