简体   繁体   English

在从命令行进行构建时为 > 产品类型“App Extension”签署二进制文件时,空标识无效 - xcodebuild build

[英]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.

相关问题 Xcode 10.2 - openbakery gradle插件构建错误 - 为产品类型“Application”签署二进制文件时,空标识无效 - Xcode 10.2 - openbakery gradle plugin build error - An empty identity is not valid when signing a binary for the product type 'Application' 在 xcode 版本 10.2 中为产品类型“应用程序”签署二进制文件时,空身份无效 - An empty identity is not valid when signing a binary for the product type 'Application' in xcode version 10.2 从 Xcode 构建脚本/ xcodebuild 中排除应用程序扩展 (WatchKit) - Exclude App Extension (WatchKit) from Xcode build script / xcodebuild xcodebuild - 使用命令行构建所有目标 - xcodebuild - build all targets using command line 通过命令行构建iOS App Extension - Build iOS App Extension through command line 由于 xcodebuild 命令中的 CODE_SIGN_IDENTITY,CircleCI 构建失败 - CircleCI build fails because of CODE_SIGN_IDENTITY in xcodebuild command 在iOS中,在构建过程中设置产品名称,应用程序ID和代码签名身份 - In iOS set product name ,app id and code signing identity during build 使用Xcode的命令行构建工具存档(xcodebuild存档) - Archive with Xcode's command line build tool (xcodebuild archive) 使用命令xcodebuild时如何更改构建路径 - How to change the build path when use command xcodebuild 使用VSTS进行构建时,SDK'iOS 11.3中产品类型'Application'需要代码签名 - Code signing is required for product type 'Application' in SDK 'iOS 11.3 when build using VSTS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM