在为&gt签署二进制文件时,空身份无效;产品类型'应用扩展'从命令行制作构建时 - xcodebuild构建

发布于 2025-02-03 00:37:03 字数 542 浏览 1 评论 0原文

我一直在使用以下命令:

sh "set -o pipefail && xcodebuild build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -UseModernBuildSystem=0 -workspace '../ProjectName.xcworkspace' -scheme 'ProjectName' | tee /Users/bamboo/Library/Logs/gym/ProjectName.log | xcpretty"

仅当我选择使用旧版构建系统时才有效。它给出了以下的扩展名的错误:

❌错误:在签署二进制文件时,空身份无效 产品类型“应用程序扩展”。 (在目标“ widgetExtension”中 项目“ projectName”)错误

我在Big Sur上使用Xcode 13.1。签名自动管理。 它可以与传统构建系统一起使用。

我想知道,解决方案的可靠性如何,替代解决方案是什么?请分享您的想法。提前致谢。

I have been using the following command:

sh "set -o pipefail && xcodebuild build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -UseModernBuildSystem=0 -workspace '../ProjectName.xcworkspace' -scheme 'ProjectName' | tee /Users/bamboo/Library/Logs/gym/ProjectName.log | xcpretty"

It only works if I select to use the Legacy build system. It gives an error for the extensions as below:

❌ error: An empty identity is not valid when signing a binary for the
product type 'App Extension'. (in target 'WidgetExtension' from
project 'ProjectName') error

I am using Xcode 13.1 on Big Sur. Signing is managed automatically.
It works fine with the legacy build system.

I am wondering, how reliable the solution is and what can be the alternate solution? Please share your thoughts. Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

夕嗳→ 2025-02-10 00:37:03

感谢@craigsiemens

Thanks @CraigSiemens ???????? I updated my build command to

sh "set -o pipefail && xcodebuild build CODE_SIGNING_REQUIRED=NO - -workspace '../ProjectName.xcworkspace' -scheme 'ProjectName' | tee /Users/bamboo/Library/Logs/gym/ProjectName.log | xcpretty"

And it is working perfectly.

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