iOS9 bitCode

IOS9公司开始瘦身计划,公司整体推进bitcode方案,
公司对接的.a大大小小有10几个,各个团队都需要支持bitcode,在发包的时候发现用脚本打包有问题:
bitcode bundle could not be generated because 'xxx.a(xxx.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture armv7

然后莫名其妙的查个遍都没有发现问题,随后goole发现了问题

I was able to fix this by adding "-fembed-bitcode" to Other C Flags of the project I am building a static lib of. It will give you a warning because a normal build adds "-fembed-bitcode-marker" but -fembed-bitcode takes precedence over the dummy marker

需要在所有的.a库在bundlsetting Other C Flags 添加-fembed-bitcode 或者你打包.a的编译添加上此选项。
特意去找了
苹果视频
Preparing for On-Demand Resources
App Distribution Guide: App Thinning

你可能感兴趣的:(iOS9 bitCode)