iOS9 bitCode

作者: 王道钦 | 来源:发表于2015-12-30 13:58 被阅读2194次

    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

        本文链接:https://www.haomeiwen.com/subject/dnyihttx.html