【发布时间】: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