2012-11-11 76 views
1

尝试为iOS设备构建我的项目时(但模拟器正常工作),获取CSSMERR_TP_NOT_TRUSTED错误。我已尝试过系统默认修复程序无效,现在正在尝试添加WWDR证书的建议。CSSMERR_TP_NOT_TRUSTED:WWDR证书 - 此证书由未知权威机构签署

CSSMERR_TP_NOT_TRUSTED错误日志:

CodeSign /Users/soroushhakami/Library/Developer/Xcode/DerivedData/pplats-fzoberbyssrcczboxhhyvkpfflhj/Build/Products/Debug-iphoneos/pplats.app 
     cd /Users/soroushhakami/dev/pplatsIos 
     setenv CODESIGN_ALLOCATE /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate 
     setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
     /usr/bin/codesign --force --sign 1934d5614330256a833582b123621542bdd8dcfe --resource-rules=/Users/soroushhakami/Library/Developer/Xcode/DerivedData/pplats-fzoberbyssrcczboxhhyvkpfflhj/Build/Products/Debug-iphoneos/pplats.app/ResourceRules.plist --entitlements /Users/soroushhakami/Library/Developer/Xcode/DerivedData/pplats-fzoberbyssrcczboxhhyvkpfflhj/Build/Intermediates/pplats.build/Debug-iphoneos/pplats.build/pplats.xcent /Users/soroushhakami/Library/Developer/Xcode/DerivedData/pplats-fzoberbyssrcczboxhhyvkpfflhj/Build/Products/Debug-iphoneos/pplats.app 

    /Users/soroushhakami/Library/Developer/Xcode/DerivedData/pplats-fzoberbyssrcczboxhhyvkpfflhj/Build/Products/Debug-iphoneos/pplats.app: replacing existing signature/Users/soroushhakami/Library/Developer/Xcode/DerivedData/pplats-fzoberbyssrcczboxhhyvkpfflhj/Build/Products/Debug-iphoneos/pplats.app: CSSMERR_TP_NOT_TRUSTEDCommand /usr/bin/codesign failed with exit code 1 

最后一行的ErrorMessage的柜面你不想读它所有CSSMERR_TP_NOT_TRUSTEDCommand /usr/bin/codesign failed with exit code 1

我所有的证书有" this certificate was signed by an unknown authority "错误。 但WWDR证书本身基于unknown authority错误,让我无法解决如何解决这个问题。

我确实删除了所有证书,在干净的钥匙串上安装了WWDR,但错误仍然存​​在。有任何想法吗?

+0

有同样的问题。 –

回答

1

您的钥匙串访问中可能已经有过期的Apple Worldwide Developer Relations Certification Authority。如果是这样,您需要从系统中删除所有过期的副本,并在系统密钥链中安装更新的证书。

  1. 在终端,security find-identity -p codesigning
    • 乘坐输出(尤其是过期证书)的复印件进行比较后
  2. https://developer.apple.com/support/certificates/expiration/
  3. 打开钥匙串访问下载最新AppleWWDRCA.cer证书
  4. 查看|显示过期的证书
  5. 检查登录钥匙串
    • 删除任何过期的苹果全球办公室开发者关系的证书颁发机构
  6. 检查系统钥匙扣
    • 删除任何过期的苹果全球办公室开发者关系的证书颁发机构
  7. 虽然系统钥匙串被选中
    • 文件|导入项目...
    • 选择下载AppleDDRCA.cer
  8. 在终端,重新运行security find-identity -p codesigning
    • 比较结果与第1步
相关问题