在构建Xcode项目时,我收到了Jenkins错误。我知道很多人都有这个问题 - 而且我已经阅读并尝试了几个小时的提示无济于事。
这是我告诉Jenkins运行的执行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
提示我尝试过没有成功:
还有更多。
不确定我还能做些什么。它显示team ID “(null)”
似乎很重要 - 但我无法找到答案。
我正在运行Xcode 6,其目标是iOS 8.0。
答案 0 :(得分:0)
我希望这可以成为一种帮助。 一个示例脚本。 http://blog.octo.com/wp-content/uploads/2010/11/build.txt
答案 1 :(得分:0)
刚刚用Jenkins和Xcode 6.4解决了这个问题。
确保您的登录钥匙串中至少有一个开发人员证书。右键单击证书,然后单击“获取信息”以显示权限。
展开“信任”列表,对于“使用此证书时”字段,选择“始终信任”。
关闭窗口。开发证书上现在应该有一个蓝色的“+”符号。
快乐的詹金斯!