The following build commands failed:
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/HiCashLoan-djgcxytxmkppgudzvpihaseqoxea/Build/Intermediates.noindex/ArchiveIntermediates/HiCashLoan/IntermediateBuildFilesPath/HiCashLoan.build/Release-iphoneos/HiCashLoan.build/Script-901CD856588396CB39642BFF.sh
(1 failure)
[20:17:42]: [31mExit status: 65[0m
[20:17:43]: ▸ [35m/Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/HiCashLoan-djgcxytxmkppgudzvpihaseqoxea/Build/Intermediates.noindex/ArchiveIntermediates/HiCashLoan/InstallationBuildProductsLocation/Applications//HiCashLoan.app/Frameworks/ActiveLabel.framework: unknown error -1=ffffffffffffffff[0m
[20:17:43]: ▸ [35mCommand /bin/sh failed with exit code 1[0m
是因为签名问题导致的,获取钥匙串权限获取不到。
起作用的方法:(MATCH_PASSWORD是管理员密码,fastlane-db是钥匙串名字,在这个路径下,后缀一般是.keychain, 例如login.keychain)
security unlock-keychain -p $MATCH_PASSWORD ~/Library/Keychains/fastlane-db
security set-keychain-settings -l -u -t 3600 ~/Library/Keychains/fastlane-db
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $MATCH_PASSWORD ~/Library/Keychains/fastlane-db
bundle exec fastlane beta
尝试过得方法:
修改证书,始终信任,没起作用
将证书从登陆拷贝到系统,据说Jenkins读登陆的有权限问题,读系统的没有,但没管用
清除drivedata,没起作用