I get the following error, even after setting Bitcode to No in my Podfile. This occurs across different Xcode, up to 14.0 (at which I get a signing error, which also doesn’t make sense since I have set up development teams on all targets):
Error (Xcode):
‘/Users/builder/Library/Developer/Xcode/DerivedData/Runner-edaimyiflreloheqntgnhkmwcclv/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-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
‘/Users/builder/Library/Developer/Xcode/DerivedData/Runner-edaimyiflreloheqntgnhkmwcclv/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/PromisesObjC/FBLPromises.framework/FBLPromises’
for architecture arm64
When I set enable bitcode to YES, I get other errors….and it seems on SO, most are recommending to set to NO.
Thoughts on this? It seems specific to this particular framework.
2
Answers
I had to enable this settings on my "Pods" Xcode project. Than the error vanished. I’m just wondering why it was set to "No"… Usually I have all settings to create a bitcode enabled build.
Apple have deprecated Bitcode beginning with Xcode 14 hence libraries began disabling bitcode in their builds:
To resolve this you need to disable bitcode, as shown in the other answer.
If you’re using unity and need to do this via code:
https://github.com/firebase/firebase-unity-sdk/issues/556#issuecomment-1346130398