iOS library to BitCode

前端 未结 5 909
孤街浪徒
孤街浪徒 2020-11-27 10:44

I recently downloaded Xcode 7 beta, and Xcode complains about some of my C libraries not being compiled into BitCode. How would I go about telling Clang to produce BitCode t

5条回答
  •  囚心锁ツ
    2020-11-27 11:30

    Go the Build Settings. Search for "custom compiler flags".
    Add -fembed-bitcode to Other C Flags. This will ensure that the lib is built with bitcode compatibility at compile time. I made this for iOS 64 bit and 32 bit, and lipo'd them into one. Works like a charm.

    Since you guys had queries, here's a screenshot of the settings: The settings are same for the project target and the SDK target.


    The bitcode lib will not work with Xcode 6.

提交回复
热议问题