1. 程式人生 > >xcodebuild構建時報錯unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1

xcodebuild構建時報錯unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1

https build stack com lds turned top ngs targe

CI今日構建時報出如下錯誤:

/Users/xxx/Library/Developer/Xcode/DerivedData/Snowball-ebllohyukujrncbaldsfojfjxwep/Build/Intermediates.noindex/ArchiveIntermediates/ProjectName/InstallationBuildProductsLocation/Applications//Project.app/Frameworks/AFHTTPRequestOperationLogger.framework: unknown error -1=ffffffffffffffff
Command /bin/sh
failed with exit code 1

思來想去,也沒找到原因所在,因為公司三個業務app全部都是同樣的報錯信息。

可能的原因:

昨天xcod9進行了小版本更新所致

電腦裏存在緩存,ded可以清除緩存

解決靈感:

https://stackoverflow.com/questions/41451502/xcodebuild-error-seckey-api-returned-25308

最終解決方法:

重啟電腦解決

若沒有解決,請參照如下文檔:

https://stackoverflow.com/questions/44173831/codesign-returned-unknown-error-1-ffffffffffffffff

https://stackoverflow.com/questions/39868578/security-codesign-in-sierra-keychain-ignores-access-control-settings-and-ui-p

xcodebuild構建時報錯unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1