Enable bitcode for Frameworks in Xcode

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 to YES
  • Under “Apple LLVM 9.0 - Custom Compiler Flags”, “Other C Flags”, add -fembed-bitcode to both Debug and Release
  • Click the “+” button and select “Add User-Defined Setting”
  • Enter BITCODE_GENERATION_MODE as the value
  • Set BITCODE_GENERATION_MODE to bitcode
  • Do the same to Pods project as follows, if it exists

2

2 个赞