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
本文介绍在Xcode中为静态iOS库启用Bitcode的方法。由于otool可能不会报告包含iPhone模拟器架构代码(如x86_64或arm64)的Bitcode,因此需要使用lipo-info列出库的架构,并分别用otool检查每个架构的Bitcode状态。
5万+

被折叠的 条评论
为什么被折叠?



