英文:
Xcode unable to start due to install additional components failing after automatic update MacOS 10.15.2
问题
我的Mac自动更新后,在重新启动后,由于出现“安装额外所需组件”对话框,我无法使用Xcode。安装程序会提示输入密码,然后每次都会出现相同的失败消息。日志中提到了某些证书过期。
我该如何修复这个启动循环失败而不更新Xcode?(目前我正在尝试将Xcode更新到11.3作为一种解决方法,不确定是否有效)
> 2020-01-03 16:36:05+07 Alexanders-MacBook-Air Xcode[721]: Package
> Authoring Error: PackageInfo bundle reference found without top-level
> bundle definition. Bundle will be skipped: <bundle id="*"></bundle>
> 2020-01-03 16:36:05+07 Alexanders-MacBook-Air Xcode[721]: Package: PKLeopardPackage <id=com.apple.pkg.MobileDevice,
> version=4.0.0.0.1.1567124787,
> url=file:///Applications/Xcode.app/Contents/Resources/Packages/MobileDevice.pkg>
> Failed to verify with error: Error Domain=PKInstallErrorDomain
> Code=102 "The package “MobileDevice.pkg” is untrusted."
> UserInfo={NSLocalizedDescription=The package “MobileDevice.pkg” is
> untrusted., NSURL=MobileDevice.pkg --
> file:///Applications/Xcode.app/Contents/Resources/Packages/,
> PKInstallPackageIdentifier=com.apple.pkg.MobileDevice,
> NSUnderlyingError=0x7fb0be138100 {Error Domain=NSOSStatusErrorDomain
> Code=-2147409654 "CSSMERR_TP_CERT_EXPIRED" UserInfo={SecTrustResult=5,
> PKTrustLevel=PKTrustLevelExpiredCertificate,
> NSLocalizedFailureReason=CSSMERR_TP_CERT_EXPIRED}}}
英文:
Got my mac autoupdated, upon restart, I cannot use Xcode due to "install additional required components" dialog. The install prompts for password, then fails every time with the same message. The log mentions some cert expired.
How do I fix this failure to start loop without updating Xcode? (Currently I'm trying to update Xcode to 11.3 as a workaround, not sure if this will work)
> 2020-01-03 16:36:05+07 Alexanders-MacBook-Air Xcode[721]: Package
> Authoring Error: PackageInfo bundle reference found without top-level
> bundle definition. Bundle will be skipped: <bundle id="*"></bundle>
> 2020-01-03 16:36:05+07 Alexanders-MacBook-Air Xcode[721]: Package: PKLeopardPackage <id=com.apple.pkg.MobileDevice,
> version=4.0.0.0.1.1567124787,
> url=file:///Applications/Xcode.app/Contents/Resources/Packages/MobileDevice.pkg>
> Failed to verify with error: Error Domain=PKInstallErrorDomain
> Code=102 "The package “MobileDevice.pkg” is untrusted."
> UserInfo={NSLocalizedDescription=The package “MobileDevice.pkg” is
> untrusted., NSURL=MobileDevice.pkg --
> file:///Applications/Xcode.app/Contents/Resources/Packages/,
> PKInstallPackageIdentifier=com.apple.pkg.MobileDevice,
> NSUnderlyingError=0x7fb0be138100 {Error Domain=NSOSStatusErrorDomain
> Code=-2147409654 "CSSMERR_TP_CERT_EXPIRED" UserInfo={SecTrustResult=5,
> PKTrustLevel=PKTrustLevelExpiredCertificate,
> NSLocalizedFailureReason=CSSMERR_TP_CERT_EXPIRED}}}
答案1
得分: 5
你尝试将系统日期设置为2019年10月3日然后重试了吗?我在这里找到了一个参考链接 -> https://stackoverflow.com/questions/12444656/error-during-xcode-component-installation
英文:
have you tried to set system date as 3 oct 2019 and retry? I got a reference here -> https://stackoverflow.com/questions/12444656/error-during-xcode-component-installation
答案2
得分: 0
我最后卸载了Xcode并重新下载整个XIP。
英文:
I ended up uninstalling the Xcode and re-downloading an entire XIP.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论