【问题标题】:Jenkins issue with Xcode 6 application: 'Code Sign error: No code signing identities found'Xcode 6 应用程序的 Jenkins 问题:“代码签名错误:未找到代码签名身份”
【发布时间】:2014-09-28 09:23:18
【问题描述】:

我在构建 Xcode 项目时遇到 Jenkins 错误。我知道很多人都遇到过这个问题 - 我已经阅读并尝试了数小时的提示,但无济于事。

这是我告诉 Jenkins 运行的 Execute Shell 命令:

export DEVELOPER_DIR='/Applications/Xcode 6.app/Contents/Developer/'

cd TM
xcrun xcodebuild clean build

这是我的 Jenkins 输出中的错误消息:

=== CLEAN TARGET TM OF PROJECT TM WITH THE DEFAULT CONFIGURATION (Release) ===

Check dependencies
[BEROR]Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.
[BEROR]CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.0'

Create product structure
/bin/mkdir -p /Users/Shared/Jenkins/Home/jobs/TM/workspace/TM/build/Release-iphoneos/TM.app

Clean.Remove clean build/Release-iphoneos/TM.app
    builtin-rm -rf /Users/Shared/Jenkins/Home/jobs/TM/workspace/TM/build/Release-iphoneos/TM.app

Clean.Remove clean build/Release-iphoneos/TM.app.dSYM
    builtin-rm -rf /Users/Shared/Jenkins/Home/jobs/TM/workspace/TM/build/Release-iphoneos/TM.app.dSYM

Clean.Remove clean build/TM.build/Release-iphoneos/TM.build
    builtin-rm -rf /Users/Shared/Jenkins/Home/jobs/TM/workspace/TM/build/TM.build/Release-iphoneos/TM.build

** CLEAN SUCCEEDED **

=== BUILD TARGET TM OF PROJECT TM WITH THE DEFAULT CONFIGURATION (Release) ===

Check dependencies
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.0'

** BUILD FAILED **

The following build commands failed:
    Check dependencies
(1 failure)
Build step 'Execute shell' marked build as failure

我尝试过但没有成功的提示:

  • 我已在构建设置中设置了代码签名(当前,发布 = 不进行代码签名;发布 > 任何 iOS SDK = iPhone 开发人员)。
  • 我已经在 Xcode 插件配置中指出了我的 login.keychain 文件所在的位置。
  • 我已将我的 .developerprofile 上传到 Jenkins,并指出应该在每次构建之前导入它。

还有更多。

不知道我还能做什么。它说team ID “(null)” 似乎很重要 - 但我找不到任何答案。

我正在运行 Xcode 6,目标是 iOS 8.0。

【问题讨论】:

  • 我也有这种经历。但它适用于 xcode 5 吗?如果是这样,可以尝试 xcode 5。或者尝试更新 jenkins 和其他插件,看看它是否有帮助。如果您找到答案,请发布
  • 这个问题好运吗?
  • 不。和特拉维斯一起去,直到我想再次与之搏斗
  • iOS8.1出现同样的问题,你有解决办法吗?
  • 我放弃使用 Jenkins,所以如果有人发现这些答案之一有效,请告诉我

标签: objective-c jenkins xcode6


【解决方案1】:

我希望这能有所帮助。 一个示例脚本。 http://blog.octo.com/wp-content/uploads/2010/11/build.txt

【讨论】:

    【解决方案2】:

    刚刚用 Jenkins 和 Xcode 6.4 解决了这个问题。

    确保您的登录钥匙串中至少有一个开发者证书。右键单击证书并单击“获取信息”以显示权限。

    展开“信任”列表并为“使用此证书时”字段选择“始终信任”。

    关闭窗口。开发证书上现在应该有一个蓝色的“+”号。

    詹金斯快乐!

    【讨论】:

      猜你喜欢
      • 2016-01-28
      • 2014-08-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多