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
Landry Norris
10/05/2022, 12:52 PM
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
Kartik Prakash
10/05/2022, 2:07 PM
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
Landry Norris
10/05/2022, 2:08 PM
Make sure to add it to all framework blocks (including if you use cocoapods)
Landry Norris
10/05/2022, 2:08 PM
And your XCode project. It propagates. If anything doesn’t use BITCODE, nothing that uses it can.
k
Kartik Prakash
10/05/2022, 2:18 PM
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)