2014-09-28 60 views
6

我在构建Xcode项目时出现Jenkins错误。我知道很多人都有这个问题 - 而且我已经阅读并尝试了几个小时的小费无济于事。Jenkins与Xcode 6应用程序问题:'代码签名错误:没有代码签名身份发现'

这是在执行Shell命令我告诉詹金斯运行:

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

cd TM 
xcrun xcodebuild clean build 

这里是我的詹金斯输出的错误消息:

=== 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德veloper)。
  • 我已经在Xcode插件中指出了我的login.keychain文件的配置。
  • 我已经将我的.developerprofile上传到Jenkins,并指出它应该在每次构建之前导入。

还有更多。

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

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

+0

我也是经验。但它在xcode 5上工作吗?如果是这样,也许尝试Xcode 5.或者尝试更新jenkins和其他插件,看看它是否有帮助。如果你找到答案请发帖 – DerrickHo328 2014-09-30 01:23:45

+0

这个问题有什么好运? – German 2014-10-22 19:00:57

+0

nope。与特拉维斯一起,直到我再次想要与它对抗 – 2014-10-22 19:21:03

回答

0

刚刚解决了Jenkins和Xcode 6.4的问题。

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

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

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

快乐詹金斯!