ios - 更新到MacOS Catalina后Xcode无法打开




(2)

我更新到了MacOS Catalina,现在我的Xcode无法打开。 我得到此提示:

获得root访问权限后导致此错误:

日志很大,但主要错误是:

2019-11-04 12:39:48 + 05 tk_lpt_0141_wifi Xcode [1214]:程序包:PKLeopardPackage未能通过错误进行验证:错误域= PKInstallErrorDomain代码= 102“程序包“ MobileDeviceDevelopment.pkg”不可信。” UserInfo = {NSLocalizedDescription =“ MobileDeviceDevelopment.pkg”软件包不受信任。,NSURL = MobileDeviceDevelopment.pkg-file:///Applications/Xcode.app/Contents/Resources/Packages/,PKInstallPackageIdentifier=com.apple.pkg.MobileDeviceDevelopment ,NSUnderlyingError = 0x7fe07012cad0 {Error Domain = NSOSStatusErrorDomain Code = -2147409654“ CSSMERR_TP_CERT_EXPIRED” UserInfo = {SecTrustResult = 5,PKTrustLevel = PKTrustLevelExpiredCertificate,NSLocalizedFailureReason = CSSMERR_TP_CERT_PI04} -11-

13:01:20 + 05 tk_lpt_0141_wifi Xcode [1306]:程序包:PKLeopardPackage无法验证并出现错误:错误域= PKInstallErrorDomain代码= 102“程序包“ MobileDeviceDevelopment.pkg”不受信任。” UserInfo = {NSLocalizedDescription =“ MobileDeviceDevelopment.pkg”软件包不受信任。,NSURL = MobileDeviceDevelopment.pkg-file:///Applications/Xcode.app/Contents/Resources/Packages/,PKInstallPackageIdentifier=com.apple.pkg.MobileDeviceDevelopment ,NSUnderlyingError = 0x7fd230cb1ae0 {Error Domain = NSOSStatusErrorDomain Code = -2147409654“ CSSMERR_TP_CERT_EXPIRED” UserInfo = {SecTrustResult = 5,PKTrustLevel = PKTrustLevelExpiredCertificate,NSLocalizedFailureReason = CSSMERR_TP_CERT}

13:29:51 + 05 tk_lpt_0141_wifi Xcode [1377]:程序包:PKLeopardPackage无法验证并出现错误:错误域= PKInstallErrorDomain代码= 102“程序包“ MobileDeviceDevelopment.pkg”是不可信的。” UserInfo = {NSLocalizedDescription =“ MobileDeviceDevelopment.pkg”软件包不受信任。,NSURL = MobileDeviceDevelopment.pkg-file:///Applications/Xcode.app/Contents/Resources/Packages/,PKInstallPackageIdentifier=com.apple.pkg.MobileDeviceDevelopment ,NSUnderlyingError = 0x7f8ab8ba9380 {Error Domain = NSOSStatusErrorDomain代码= -2147409654“ CSSMERR_TP_CERT_EXPIRED” UserInfo = {SecTrustResult = 5,PKTrustLevel = PKTrustLevelExpiredCertificate,NSLocalizedFailureReason = CSSMERR_TP_CERT}

我已经尝试过:

xcode-select --install

xcode-select --reset

还有其他人遇到这个问题吗? 如何解决?


对我有用的是在App Store中更新Xcode。 之后,我能够成功安装其他组件。


只需将MacOS日期更改为

1st October 2019

我将系统时间设置为 1st October 2019 那时证书应该仍然有效。 之后,我尝试打开Xcode,然后进行了顺利的组件安装,现在我可以再次使用Xcode。

编辑Mac的日期并将其设置为 1st October 2019





xcode