2014-09-28 61 views
6

我在構建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。

+0

我也是經驗。但它在xcode 5上工作嗎?如果是這樣,也許嘗試Xcode 5.或者嘗試更新jenkins和其他插件,看看它是否有幫助。如果你找到答案請發帖 – DerrickHo328 2014-09-30 01:23:45

+0

這個問題有什麼好運? – German 2014-10-22 19:00:57

+0

nope。與特拉維斯一起,直到我再次想要與它對抗 – 2014-10-22 19:21:03

回答

0

剛剛解決了Jenkins和Xcode 6.4的問題。

確保您的登錄鑰匙串中至少有一個開發人員證書。右鍵單擊證書並單擊「獲取信息」以顯示權限。

展開「信任」列表,並在「使用此證書時」字段中選擇「始終信任」。

關閉窗口。開發證書上現在應該有一個藍色的「+」號。

快樂詹金斯!