无法更新Xcode 4.2。错误:请参阅var / log / install.log以获取更多详细信息?(Can't update Xcode 4.2. Error: please consult var/log/install.log for more details?)

问题

UPDATE: Since this question is getting some views, I figured I’d better highlight the fact that I solved the problem by simply re-downloading Xcode from the Mac App Store. Upon re-installing it even gave me a handy option to delete the previous version and replace it with the new one. Hopefully this helps everyone out there with the same problem! 🙂

So I’m trying to update my Xcode 4.2 which I downloaded from the app store, but I get this error when I use the ‘Install Xcode.app’ updater:

Anyone know what I’m doing wrong or how to fix it?

I’m not really sure what other information I should provide, so please just let me know if you want more info 🙂

Edit: Here is the full install.log (I think): http://pastebin.com/GTzkpL3X

This is an excerpt that actually shows the error:

Failed install preflight: Error Domain=PKInstallErrorDomain Code=102 “The package “DeveloperTools.pkg” is untrusted.” UserInfo=0x7f9d5da29060 {NSLocalizedDescription=The package “DeveloperTools.pkg” is untrusted., NSURL=../Packages/DeveloperTools.pkg — file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Xcode.mpkg/, PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo, NSUnderlyingError=0x7f9d5d9eab40 “The operation couldn’t be completed. CSSMERR_TP_CERT_EXPIRED”}

解决方案

open Date & Time of the system preferences and set the date a year before (in my case, maybe preferable date could be the date before Xcode 4.3 released.), and my installation successfully completed.

 

————————————————————–

中文摘要

更新:由于这个问题得到了一些观点,我想我最好通过重新下载Xcode来突出我解决了问题的事实来自Mac App Store 。重新安装后,它甚至给了我一个方便的选项来删除以前的版本并将其替换为新版本。希望这可以帮助每个人解决同样的问题! :)

所以我正在尝试更新从应用商店下载的Xcode 4.2,但是当我使用’Install Xcode.app’时出现此错误更新程序:

任何人都知道我做错了什么或如何修理它?

我不确定还有什么其他信息我应该提供,所以如果你想了解更多信息,请告诉我:)

这是一段摘录实际上显示错误:

安装预检失败:错误域= PKInstallErrorDomain代码= 102包”DeveloperTools.pkg是不受信任的。 UserInfo = 0x7f9d5da29060 {NSLocalizedDescription =包DeveloperTools.pkg”不受信任。,NSURL = .. / Packages / DeveloperTools.pkg – file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Xcode.mpkg /,PKInstallPackageIdentifier = com.apple.pkg.DeveloperToolsLeo,NSUnderlyingError = 0x7f9d5d9eab40操作无法完成.CSMERR_TP_CERT_EXPIRED”}

解决方案

打开日期&系统首选项的时间并设置一年前的日期(在我的情况下,可能更好的日期可能是Xcode 4.3发布之前的日期。),并且我的安装已成功完成。

发表回复

京ICP备15027918号-1