How to check if a framework is BITCODE supported for Xcode7

后端 未结 5 842
梦谈多话
梦谈多话 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:25

    I have observed that __bitcode section is only present for static Libs and not for dynamic libs. So, one solution is the below command.

    otool -l libDeviceManager.a | grep __LLVM 
    

    Also, sometimes with fat binaries otool may not give __LLVM segments even though they are present. You can use the following command for those cases

    otool -arch armv7 -l libDeviceManager.framework/libDeviceManager | grep __LLVM
    

提交回复
热议问题