且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法生成 Bitcode 包(在归档时),因为静态框架 (.framework) 是在没有完整位码的情况下构建的

更新时间:2023-09-11 21:53:22

我构建的框架也遇到了这个问题.这对我有用:

I also had this problem with a framework I built. This is what worked for me:

  1. 在框架projectBuild Settings中将Other C Flags设置为-fembed-bitcode

target框架的Build Settings中添加一个名为BITCODE_GENERATION_MODE的用户定义标志,值为bitcode

In the Build Settings of the framework target add a user defined flag called BITCODE_GENERATION_MODE with the value of bitcode

在框架项目和目标中,Enable Bitcode都应该设置为Yes

Both in the framework project and target, Enable Bitcode should be set on Yes