在为&gt签署二进制文件时,空身份无效;产品类型'应用扩展'从命令行制作构建时 - xcodebuild构建
我一直在使用以下命令:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感谢@craigsiemens
Thanks @CraigSiemens ???????? I updated my build command to
And it is working perfectly.