iOS library to BitCode

前端 未结 5 888
孤街浪徒
孤街浪徒 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:23

    What you need is -fembed-bitcode. When ENABLE_BITCODE is enabled, Xcode builds with -fembed-bitcode-marker for regular builds and with -fembed-bitcode for archive builds. One option simply "marks" where the bitcode would be in the binary after an archive build and enforces the new bitcode rules, while the other actually does the full-on bitcode generation, which is likely slower and thus not enabled on every kind of build.

    Syo Ikeda's guide to handling BITCODE might also help you:

    You can find the full slide deck here.

提交回复
热议问题