How do I xcodebuild a static library with Bitcode enabled?

后端 未结 4 617
野性不改
野性不改 2020-11-30 17:13

Xcode 7 introduces Bitcode, which is some sort of LLVM intermediate binary that means Apple\'s servers can recompile my app for different architectures without my involvemen

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-30 17:32

    Once you add bitcode support for the static lib, it won't be compatible with Xcode 6. The app won't archive.

    I would like to clearly mention the setting for bitcode as @nevyn's answer confused me a little.

    Go to Build settings, search for "custom compiler flags". Add -fembed-bitcode. This will build your lib with bitcode.

提交回复
热议问题