Xcode Won' t生成比特码部分

发布于 2025-02-09 17:43:25 字数 298 浏览 1 评论 0原文

我使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

记忆里有你的影子 2025-02-16 17:43:25

忘了更新,显然是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}"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文