How to check a static library is built contain bitcode?

来源:互联网 发布:java微信授权直接登陆 编辑:程序博客网 时间:2024/06/07 13:58

But in my case (XCode 7, static iOS library) this did not work (see also the comments by xCocoa).

It seems, that otool does not report the bitcode if code for the iPhone Simulator's architecture is included (x86_64 or arm64).

You can list the lib's architectures with:

lipo -info yourlib.a

Then you can check for bitcode for each architecture separately, e.g:

otool -arch armv7 -l yourlib.a  | grep bitcodeotool -arch arm64 -l yourlib.a  | grep bitcode
http://stackoverflow.com/questions/31486232/how-do-i-xcodebuild-a-static-library-with-bitcode-enabled
0 0