添加bitcode的支持:iOS App,App Extension以及Watch App

来源:互联网 发布:ug nx软件 编辑:程序博客网 时间:2024/06/06 19:40

我们在制作支持bitcode的iOS库的时候,需要两项配置


1. "Enable Bitcode"设为“Yes”



2. 设置"-fembed-bitcode"

“Custom Compiler Flags”设置“Other C Flags”和“Other C++ Flags”的值为: "-fembed-bitcode"



如果不设置第二项,在"Archive"打包时,会出现以下的错误:


所以两者缺一不可

0 0