Enable bitcode for Frameworks in Xcode


#1

Enabling bitcode for frameworks is quite different from the same operation on Apps. Here’s how to do it:

  1. Select the framework project and switch to “Build Settings” tab
  2. Under “Build Options”, switch Enable Bitcode to YES
  3. Under “Apple LLVM 9.0 - Custom Compiler Flags”, “Other C Flags”, add -fembed-bitcode to both Debug and Release
  4. Click the “+” button and select “Add User-Defined Setting”
  5. Enter BITCODE_GENERATION_MODE as the value
  6. Set BITCODE_GENERATION_MODE to bitcode
  7. Do the same to Pods project as follows, if it exists