1

我可以用下面歸檔IOS項目命令詹金斯:命令/ usr/bin中/協同設計與退出代碼失敗1

cordova build ios --device --debug

cordova build ios --device --release

但是,當我嘗試從jenkins做同樣的我越來越低於錯誤。

11:08:01 SecKey API returned: -25308, (null)/Users/Jenkins/Library/Developer/Xcode/DerivedData/GRC_Pulse-ebufuetkmalmfxbiegclmzuryhrm/Build/Intermediates/ArchiveIntermediates/GRC Pulse/InstallationBuildProductsLocation/Applications/GRC Pulse.app: unknown error -1=ffffffffffffffff 
11:08:01 Command /usr/bin/codesign failed with exit code 1 
11:08:01 
11:08:01 ** ARCHIVE FAILED ** 
11:08:01 
11:08:01 
11:08:01 The following build commands failed: 
11:08:01 CodeSign /Users/Jenkins/Library/Developer/Xcode/DerivedData/GRC_Pulse-ebufuetkmalmfxbiegclmzuryhrm/Build/Intermediates/ArchiveIntermediates/GRC\ Pulse/InstallationBuildProductsLocation/Applications/GRC\ Pulse.app 
11:08:01 (1 failure) 
11:08:01 Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/Jenkins/projects/grc-pulse-hybrid-custom/platforms/ios/cordova/build-debug.xcconfig,-workspace,GRC Pulse.xcworkspace,-scheme,GRC Pulse,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,GRC Pulse.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/Jenkins/projects/grc-pulse-hybrid-custom/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/Jenkins/projects/grc-pulse-hybrid-custom/platforms/ios/build/sharedpch 

回答

3

你應該使用ssh時(連接從主到從)

安全解鎖鑰匙串-p「」 $ {}鑰匙扣

以一個運行命令之前解鎖鑰匙串看看這個link瞭解更多詳情

0

我有這個錯誤在Xcode 8.3:

unknown error -1=ffffffffffffffff 
Command /usr/bin/codesign failed with exit code 1 

** ARCHIVE FAILED ** 

And

security unlock-keychain -p "mypass" ${mykeychain} 

也解決了它。

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做建築)打消了我目前的證書系統/帳戶證書,但我懷疑,這不應該影響它。

這是我現在的這個或使第三職位,但我肯定希望它會幫助節省工作8小時的人...

相關問題