尝试为 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 安装在干净的钥匙串上,但错误仍然存在。有任何想法吗?