Xcode 10更新 Error Domain=PKInstallErrorDomain Code=102 "The package “MobileDeviceDevelopment.pkg” is untrusted.

今天在copy xcode到另一个系统的时候,发现在install component的时候出现这个错误。


Package: PKLeopardPackage <id=com.apple.pkg.MobileDeviceDevelopment, version=10.3.9000000000.1.1488876279, url=file:///Applications/Xcode.app/Contents/Resources/Packages/MobileDeviceDevelopment.pkg> Failed to verify with error: Error Domain=**PKInstallErrorDomain Code=102 "The package** “**MobileDeviceDevelopment.pkg” is untrusted**." UserInfo={NSLocalizedDescription=The package “MobileDeviceDevelopment.pkg” is untrusted., NSURL=MobileDeviceDevelopment.pkg -- file:///Applications/Xcode.app/Contents/Resources/Packages/, PKInstallPackageIdentifier=com.apple.pkg.MobileDeviceDevelopment, NSUnderlyingError=0x7fd455e42020 {Error Domain=NSOSStatusErrorDomain Code=-2147409654 "CSSMERR_TP_CERT_EXPIRED" UserInfo={SecTrustResult=5, PKTrustLevel=PKTrustLevelExpiredCertificate, NSLocalizedFailureReason=CSSMERR_TP_CERT_EXPIRED}}}

当时就傻眼@@,有点奇怪,切换网路还有再次确认我丢过来的xcode是没问题的。

在stackoverflow 找到了解决办法,不过不清楚为什么?。?

解决方法:

将电脑的系统时间改成,2019/10/1 ,再安装就成功了...

posted @ 2020-09-02 12:04  萧蔷ink  阅读(1000)  评论(0编辑  收藏  举报