How to check if a framework is BITCODE supported for Xcode7

后端 未结 5 846
梦谈多话
梦谈多话 2020-12-04 14:46

From Xcode 7 it became one of the common problem that third party frameworks should support Bitcode. We can also disable the BITCODE by setting ENABLE_BITCODE to NO in Build

5条回答
  •  孤街浪徒
    2020-12-04 15:24

    Set the flag in the Targets:

    Bitcode enabled

    otool -arch arm64 -l myFramework | grep __LLVM
      segname __LLVM
       segname __LLVM
    

    I ( wrongly ) expected to read the same output against a local iOS app build. That was not the case. The same command produced nothing, despite have ENABLE_BITCODE YES. Only when you selected Archive did the bitcode process start.

    This answer helped me:

    What's the difference between `-fembed-bitcode` and BITCODE_GENERATION_MODE?

提交回复
热议问题