How to check a static library is built contain bitcode?

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 bitcode
otool -arch arm64 -l yourlib.a  | grep bitcode



http://stackoverflow.com/questions/31486232/how-do-i-xcodebuild-a-static-library-with-bitcode-enabled

你可能感兴趣的:(How to check a static library is built contain bitcode?)