CSSMERR_TP_NOT_TRUSTED

Xcode iOS真机调试出现
Command /usr/bin/codesign failed with exit code 1

查看详细信息提示:CSSMERR_TP_NOT_TRUSTED

查了点资料,发现原来之前在keychain(钥匙窜访问)中多删了一个证书:Apple Woldwide Developer Relations Certification Authority,它是iPhone Developer证书的签发者,如果它被删除就会导致iPhone Developer证书被识别为未知颁发机构签名,然后xcode中真机调试就会出现上面的错误。解决方法当然是重新把AppleWWDRCA放回去
从Apple官网下载一个
http://www.apple.com/certificateauthority/
找到 Woldwide Developer Relations 选择 Download certificate
下载后拖入keychain(钥匙窜访问)-登录目录。

你可能感兴趣的:(CSSMERR_TP_NOT_TRUSTED)