codesign CSSMERR_TP_NOT_TRUSTED

codesign -s "Developer ID Application: Mide Hu" "/Users/QtDev/11/build_trial/list.app"
Xcode iOS真机调试出现
Command /usr/bin/codesign failed with exit code 1
查看详细信息提示:CSSMERR_TP_NOT_TRUSTED

出现这一问题的原因可能是:
(1)证书“Developer ID Application: Mide Hu" 是无效的!
  (2) 缺少”Apple Woldwide Developer Relations Certification Authority“



================================================================
以下是备注:
查了点资料,发现原来之前在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(钥匙窜访问)-登录目录。

你可能感兴趣的:(codesign CSSMERR_TP_NOT_TRUSTED)