简体   繁体   English

xcodebuild返回代码签名错误

[英]xcodebuild returning code sign error

Check dependencies Code Sign error: The identity 'iPhone Distribution: XXX' doesn't match any valid, non-expired certificate/private key pair in your keychains 检查依赖性代码签名错误:身份“ iPhone发行版:XXX”与钥匙串中的任何有效,未过期的证书/私钥对不匹配

This is the constant message that I'm getting from the xcodebuild command. 这是我从xcodebuild命令获得的恒定消息。 From Xcode, I have no trouble building the application with the same code sign and scheme. 从Xcode,我可以毫无问题地使用相同的代码符号和方案来构建应用程序。

I have tried: 我努力了:

  • Fresh installing the command line tools 全新安装命令行工具
  • Trying with fresh provisioning profile, certificate and key 尝试使用新的配置文件,证书和密钥
  • Locking, unlocking, setting timers, removing timers from the keychains 锁定,解锁,设置计时器,从钥匙串中删除计时器

and many many more 还有很多

The weird thing is that on another Mac with the same profile, certificate, key, command line tools, Xcode version, and keychain configuration, the xcodebuild command works as expected. 奇怪的是,在另一台具有相同配置文件,证书,密钥,命令行工具,Xcode版本和钥匙串配置的Mac上,xcodebuild命令可以正常工作。

The jenkins was started before the login of the user so the jenkins didn't have access to the user's keychain. 詹金斯是在用户登录之前启动的,因此詹金斯无法访问用户的钥匙串。 The fix was to start the jenkins with the user login. 解决方法是使用用户登录名启动詹金斯人。

Check out your provisioning profile * bundle id * is match with your app bundle identifier . 检查您的配置文件 * 捆绑包ID *是否与您的应用捆绑包标识符匹配。 two of them is always same . 他们两个总是一样的 and then you need to set the code sign identity. 然后您需要设置代码符号身份。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 xcodebuild存档中的代码签名错误 - Code Sign error in xcodebuild archive Xcodebuild可可触摸框架代码签名错误 - Xcodebuild Cocoa touch framework code sign error xcodebuild代码签名错误:未找到匹配的代码签名身份: - xcodebuild Code Sign error: No matching codesigning identity found: 简单单视图应用程序上的xcodebuild中的代码签名错误 - Code Sign Error in xcodebuild on simple Single-View Application xcodebuild代码签署错误配置配置文件,即使所有配置文件都在正确的文件夹中 - xcodebuild code sign error provisioning profile even though all profiles are in correct folder 无法使用xcodebuild命令归档项目:代码签名错误,缺少配置文件? - Unable to archive project with xcodebuild command: code sign error, missing provisioning profile? xcodebuild - 错误域= IDECapabilitiesErrorDomain代码= 1 - xcodebuild - Error Domain=IDECapabilitiesErrorDomain Code=1 Jenkins上的Xcodebuild代码签名错误 - Xcodebuild code signing error on Jenkins 由于 xcodebuild 命令中的 CODE_SIGN_IDENTITY,CircleCI 构建失败 - CircleCI build fails because of CODE_SIGN_IDENTITY in xcodebuild command 代码签名验证在xcodebuild期间失败,并且无法读取xcrun的权利 - Code sign validation failing during xcodebuild and Failed to read entitlements for xcrun
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM