【问题标题】:CSSMERR_TP_NOT_TRUSTED: WWDR certificate - this certificate was signed by an unknown authorityCSSMERR_TP_NOT_TRUSTED:WWDR 证书 - 此证书由未知机构签署
【发布时间】:2012-10-31 01:52:21
【问题描述】:

尝试为 iOS 设备构建我的项目时出现 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

错误消息的最后一行,以防您不想全部阅读CSSMERR_TP_NOT_TRUSTEDCommand /usr/bin/codesign failed with exit code 1

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

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

【问题讨论】:

  • 遇到同样的问题。

标签: ios xcode macos certificate


【解决方案1】:

您的钥匙串访问权限中可能有一个过期的 Apple 全球开发者关系证书颁发机构。如果是这样,您需要从系统中删除所有过期的副本,并在您的系统钥匙串中安装更新的证书。

  1. 在终端,security find-identity -p codesigning
    • 复制输出(尤其是过期证书)以供以后比较
  2. https://developer.apple.com/support/certificates/expiration/下载最新的AppleWWDRCA.cer证书
  3. 打开钥匙串访问
  4. 查看 |显示过期证书
  5. 检查登录钥匙串
    • 删除任何过期的 Apple Wordwide Developer Relations 证书颁发机构
  6. 检查系统钥匙串
    • 删除任何过期的 Apple Wordwide Developer Relations 证书颁发机构
  7. 选择系统钥匙串时
    • 文件 |导入项目...
    • 选择下载的AppleDDRCA.cer
  8. 在终端中,重新运行security find-identity -p codesigning
    • 将结果与步骤 1 进行比较

【讨论】:

    猜你喜欢
    • 2012-11-29
    • 2017-01-03
    • 2017-12-23
    • 1970-01-01
    • 2020-05-27
    • 2019-10-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多