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

你可能感兴趣的:(iOS)