Enabling bitcode for frameworks is quite different from the same operation on Apps. Here’s how to do it:
- Select the framework project and switch to “Build Settings” tab
- Under “Build Options”, switch
Enable Bitcode
toYES
- Under “Apple LLVM 9.0 - Custom Compiler Flags”, “Other C Flags”, add
-fembed-bitcode
to bothDebug
andRelease
- Click the “+” button and select “Add User-Defined Setting”
- Enter
BITCODE_GENERATION_MODE
as the value - Set
BITCODE_GENERATION_MODE
tobitcode
- Do the same to Pods project as follows, if it exists