无法更新 Xcode 4.2。错误:请查阅 var/log/install.log 了解更多详情?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9883247/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't update Xcode 4.2. Error: please consult var/log/install.log for more details?
提问by Jarrod
UPDATE: Since this question is getting some views, I figured I'd better highlight the fact that I solved the problemby 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! :)
更新:由于这个问题得到了一些意见,我想我最好强调一个事实,即我只需从 Mac App Store 重新下载 Xcode就解决了这个问题。重新安装后,它甚至给了我一个方便的选项来删除以前的版本并用新版本替换它。希望这可以帮助所有有同样问题的人!:)
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:
所以我正在尝试更新我从应用商店下载的 Xcode 4.2,但是当我使用“安装 Xcode.app”更新程序时出现此错误:
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
编辑:这是完整的 install.log(我认为):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"}
安装预检失败:错误域=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 “操作无法完成。CSSMERR_TP_CERT_EXPIRED”}
回答by
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 4.3 发布之前的日期。),我的安装成功完成。
回答by ThomasW
The following error shows up in the log:
日志中显示以下错误:
Error Domain=PKInstallErrorDomain Code=102 "The package “DeveloperTools.pkg” is untrusted." UserInfo=0x7f9d5da29060 {NSLocalizedDescription=The package “DeveloperTools.pkg” is untrusted.
PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo, NSUnderlyingError=0x7f9d5d9eab40 "The operation couldn't be completed. CSSMERR_TP_CERT_EXPIRED"}
Looking around the internet I found the following suggestions:
环顾互联网,我发现以下建议:
Flattening the package
http://managingosx.wordpress.com/2012/03/24/fixing-packages-with-expired-signatures/
Update your system software:
Reinstall OS:
Delete files related to Xcode:
压扁包装
http://managingosx.wordpress.com/2012/03/24/fixing-packages-with-expired-signatures/
更新您的系统软件:
重新安装操作系统:
删除与 Xcode 相关的文件:
edit:reordered based on comments.
编辑:根据评论重新排序。