Xcode Won' t生成比特码部分
我使用Xcode 13.2.1,MacOS Monterey版本12.2(M1)。 我试图使用XCode用比特码编译我的应用程序。 我在 项目和目标中都有bitcode-enable = yes = yes。 我检查了构建日志,没有警告说我正在使用未用比特码编译的框架/库,因此这不是问题。
我存档了该应用程序,还确保使用BitCode 选项检查重建。 当我运行命令
otool -l my-cool-app} | GREP LLVM
它没有显示(无比特码部分)。我可能做错了什么?
im using xcode 13.2.1, MacOs Monterey version 12.2 (M1).
Im trying to compile my app with bitcode using xcode.
I have Bitcode-Enable = yes in both project and target.
I checked the build log and I have no warning stating I am using a framework/library that isn't compiled with bitcode so that's not the issue.
I archived the app and I also made sure to check the rebuild with bitcode
option.
When I run the command otool -l my-cool-app } | grep LLVM
it shows nothing (No bitcode section). What am I possibly doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
忘了更新,显然是bitcode-enable = yes是不够的。
您需要指定正确的标志来编译比特码。
这是我使用的命令行:
xcodebuild bitcode_generation_mode = bitcode other_cflags =“ - fembed-bitcode” -target“ $ {project_name}”
forgot to update, apparently Bitcode-Enable = yes is not enough.
you need to specify the correct flag to compile the bitcode.
this is the command line I used:
xcodebuild BITCODE_GENERATION_MODE=bitcode OTHER_CFLAGS="-fembed-bitcode" -target "${PROJECT_NAME}"