天天看點

XCode10真機調試報錯Command /usr/bin/codesign failed with exit code 1

模拟器上沒問題,真機跑出bug,報錯大概如下

AFNetworking.framework/

AFNetworking.framework/AFNetworking

AFNetworking.framework/Info.plist

Command /bin/sh failed with exit code 1

嘗試解決方案:

1.清理以下兩個路徑的内容

~/Library/MobileDevice/Provisioning Profiles
~/Library/Developer/Xcode/DerivedData
           

2.重新配置相關證書檔案

3.重新開機電腦

最後解決來自stackoverflow,更新蘋果鑰匙串密碼

launchPad -> 其他 -> 鑰匙串通路 -> 右鍵鑰匙串欄空白處

更改鑰匙串“登入”的設定

參考:

https://stackoverflow.com/questions/47409062/getting-this-error-command-usr-bin-codesign-failed-with-exit-code-1-with-xcode