[英]An empty identity is not valid when signing a binary for the > product type 'App Extension' while making a build from Command Line- xcodebuild build
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'.
❌ 错误:为产品类型“App Extension”签署二进制文件时,空身份无效。 (in target 'WidgetExtension' from project 'ProjectName') error
(在项目“ProjectName”的目标“WidgetExtension”中)错误
I am using Xcode 13.1 on Big Sur.我在 Big Sur 上使用 Xcode 13.1。 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.
提前致谢。
Thanks @CraigSiemens 🙌🏻 I updated my build command to谢谢@CraigSiemens 🙌🏻 我将构建命令更新为
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.它运行良好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.