在构建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.