Hi all I’m having some issues running iOS app on a...
# multiplatform
k
Hi all I’m having some issues running iOS app on a real device using XCode 14.0.1 and keep getting this error
Copy code
ld: '/shared/build/cocoapods/synthetic/IOS/build/Release-iphoneos/FirebaseCrashlytics/FirebaseCrashlytics.framework/FirebaseCrashlytics' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/shared/build/cocoapods/synthetic/IOS/build/Release-iphoneos/FirebaseCrashlytics/FirebaseCrashlytics.framework/FirebaseCrashlytics' for architecture arm64
Has anyone seen this issue or know a workaround?
l
Try adding embedBitcode(DISABLED) to your framework configuration. Apple is deprecating bitcode embedding, so it’s possible some libraries have already stopped using it.
k
Thanks, I tried that, now it complaints the same for my
shared
framework
Copy code
shared/build/cocoapods/framework/shared.framework/shared(result.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
l
Make sure to add it to all framework blocks (including if you use cocoapods)
And your XCode project. It propagates. If anything doesn’t use BITCODE, nothing that uses it can.
k
Looks like it was enabled for all the pods on xcode side, I just disabled it. So now I get it for one of the pod
Copy code
Debug-iphoneos/PromisesObjC/FBLPromises.framework/FBLPromises' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file 'build/ios/Debug-iphoneos/PromisesObjC/FBLPromises.framework/FBLPromises' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
203 Views