安装xcode时报错An unknown error occurred. See the [install log] for more details.

今天在安装Xcode 的时候打不开,点击install log查看报错信息:

2020-04-22 16:26:39+08 zhangjiedeMacBook-Pro Xcode[21853]: Package Authoring Error: PackageInfo bundle reference found without top-level bundle definition. Bundle will be skipped: 
2020-04-22 16:26:39+08 zhangjiedeMacBook-Pro Xcode[21853]: Package: PKLeopardPackage  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:///Users/Javen/Desktop/Xcode10.1/Xcode.app/Contents/Resources/Packages/, PKInstallPackageIdentifier=com.apple.pkg.MobileDeviceDevelopment, NSUnderlyingError=0x7fd770460e30 {Error Domain=NSOSStatusErrorDomain Code=-2147409654 "CSSMERR_TP_CERT_EXPIRED" UserInfo={SecTrustResult=5, PKTrustLevel=PKTrustLevelExpiredCertificate, NSLocalizedFailureReason=CSSMERR_TP_CERT_EXPIRED}}}
2020-04-22 16:27:39+08 zhangjiedeMacBook-Pro Xcode[21917]: Package Authoring Error: PackageInfo bundle reference found without top-level bundle definition. Bundle will be skipped: 

在桌面点击键盘shift+command+G,在输入框输入install log里提示的file后面的内容,比如上面file://后面跟的是:file:///Users/Javen/Desktop/Xcode10.1/Xcode.app/Contents/Resources/Packages/
输入然后回车,文件里几个.pkg文件手动安装一下,直到安装成功。
嗯。。。
反正我这次安装成功了

你可能感兴趣的:(安装xcode时报错An unknown error occurred. See the [install log] for more details.)