Jenkins问题与Xcode 6应用程序:'代码签名错误:没有找到代码签名身份'

H K*_*H K 6 objective-c jenkins xcode6

在构建Xcode项目时,我收到了Jenkins错误.我知道很多人都有这个问题 - 我读过并尝试过几个小时的提示无济于事.

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

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

cd TM
xcrun xcodebuild clean build
Run Code Online (Sandbox Code Playgroud)

这是我的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
Run Code Online (Sandbox Code Playgroud)

提示我尝试过没有成功:

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

和更多.

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

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

Dee*_*pak 0

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