2017-04-26 78 views
0
Code Signing /Users/administrator/Library/Developer/Xcode/DerivedData/Project-fsoqxyfpecqjwcerfwewjovbrmnf/Build/Intermediates/ArchiveIntermediates/Project/InstallationBuildProductsLocation/Applications/Project.app/Frameworks/Bolts.framework with Identity iPhone Distribution: PRASAD SOFT, INC. (**********) 
/usr/bin/codesign --force --sign DFFCCDF13EC4BD54B0E8CA11E115D0E77F1C284D --preserve-metadata=identifier,entitlements '/Users/administrator/Library/Developer/Xcode/DerivedData/Project-fsoqxyfpecqjwcerfwewjovbrmnf/Build/Intermediates/ArchiveIntermediates/Project/InstallationBuildProductsLocation/Applications/Project.app/Frameworks/Bolts.framework' 
/Users/administrator/Library/Developer/Xcode/DerivedData/Project-fsoqxyfpecqjwcerfwewjovbrmnf/Build/Intermediates/ArchiveIntermediates/Project/InstallationBuildProductsLocation/Applications/Project.app/Frameworks/Bolts.framework: **unknown error -1=ffffffffffffffff 
Command /bin/sh failed with exit code 1** 

** ARCHIVE FAILED ** 

The following build commands failed: 


PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/administrator/Library/Developer/Xcode/DerivedData/Project-fsoqxyfpecqjwcerfwewjovbrmnf/Build/Intermediates/ArchiveIntermediates/Project/IntermediateBuildFilesPath/Project.build/Release-QA-iphoneos/Shotzr.build/Script-2552EF011E9D1FCA909096CD.sh 
(1 failure) 

Build step 'Execute shell' marked build as failure 
Finished: FAILURE 
+0

這不是詹金斯的問題,我會說。確保你正在運行的命令有效。 – StephenKing

+1

是的xcodeBuild命令可以正常使用我的Mac終端(命令行)。 –

+0

在Mac終端中生成執行期間,它詢問用戶標識和密碼一次,我提供它然後生成成功。在jenkins中,我遇到了這個問題,我通過'構建步驟'中的'execute shell'選項在jenkins的作業配置中提供了相同的命令。在沒有通過的shell腳本是問題 –

回答

4

這是一個代碼簽名錯誤,xcodebuild聯編命令無法訪問您的鑰匙串,因爲它是通過詹金斯的奴隸與SSH運行失敗。

運行此行的shell腳本,你才能允許進入運行xcodebuild聯編前:

security set-key-partition-list -S apple-tool:,apple: -s -k <ROOT-PASSWORD> /Users/<YOUR USER NAME>/Library/Keychains/login.keychain-db 

希望幫助!

+0

我只是想編入 - 因爲這不是標記爲答案 - 在我的作業的xcodebuild命令之前添加此步驟解決了我的問題。我最近將Jenkins從手動運行我的奴隸上的JAR文件切換到從主服務器到主服務器上,並因此彈出錯誤消息。謝謝,@Asaf! – Monkey34

0

我也打算使用芯片:問題在於通過SSH使用鑰匙串。我曾在我的會話執行這些解決它:

security unlock-keychain -p MY_PASS ~/Library/Keychains/login.keychain 
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k MY_PASS ~/Library/Keychains/login.keychain 
security set-keychain-settings ~/Library/Keychains/login.keychain 

我也通過了XCode刪除我的帳戶(我用FASTLANE做建築)打消了我目前的證書系統/帳戶證書,但我懷疑,這不應該影響它。

相關問題