我在構建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。
我也是經驗。但它在xcode 5上工作嗎?如果是這樣,也許嘗試Xcode 5.或者嘗試更新jenkins和其他插件,看看它是否有幫助。如果你找到答案請發帖 – DerrickHo328 2014-09-30 01:23:45
這個問題有什麼好運? – German 2014-10-22 19:00:57
nope。與特拉維斯一起,直到我再次想要與它對抗 – 2014-10-22 19:21:03