Xcode 安装失败

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9964528/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:50:59  来源:igfitidea点击:

Xcode failed to install

xcode

提问by adi27

I am trying to install Xcode4.2 on my Macsystem having OS version 10.6.8. Actually, I removed the Xcode from the system and tried to reinstall it.

我正在尝试在操作系统版本为 10.6.8 的Mac系统上安装Xcode4.2 。实际上,我从系统中删除了 Xcode 并尝试重新安装它。

I quit iTunesbefore installing it, and I have enough free space on disc (111 GB). Below is a screenshot of the error. What should I do?

我在安装之前退出了iTunes,并且我的光盘上有足够的可用空间 (111 GB)。下面是错误截图。我该怎么办?

Screnshot

截图

回答by jrtc27

Set your system time to 1st January 2012 or earlier (but not too early), as the certificate that signed the package has expired.

将您的系统时间设置为 2012 年 1 月 1 日或更早(但不要太早),因为签署包的证书已过期。

回答by chadiak

I had the same error message. In my case, it was solved by updating the OS software. There was an update waiting for "Apple installations software". After the update, Xcode installed perfectly well.

我有同样的错误信息。就我而言,它是通过更新操作系统软件解决的。有更新等待“Apple 安装软件”。更新后,Xcode 安装得很好。

回答by John Zumbrum

I found out I could download the installer directly from Apple instead of through the app store, and that the error described by the accepted answer could also be circumvented by installing the Mobile Development Framework manually.

我发现我可以直接从 Apple 而不是通过应用程序商店下载安装程序,并且通过手动安装移动开发框架也可以规避已接受答案描述的错误。

See forum post Problems installing Xcode on Lionfor more details.

有关更多详细信息,请参阅论坛帖子在 Lion 上安装 Xcode问题

回答by dvo

I had the same trouble on Mac OS 10.8.5 when installing Xcode 4.4.1, Xcode 5.1.1, and Security_Update_2014-005. It turned out that the reason was the same in all these cases: an incompatibility with Vodafone/Huawei UMTS drivers. A workaround in this case is to temporarily move them away, e.g.

我在 Mac OS 10.8.5 上安装 Xcode 4.4.1、Xcode 5.1.1 和 Security_Update_2014-005 时遇到了同样的问题。事实证明,所有这些情况的原因都是一样的:与 Vodafone/Huawei UMTS 驱动程序不兼容。在这种情况下的解决方法是暂时将它们移开,例如

mv /System/Library/Extensions/{HuaweiDataCardDriver.kext,Vodafone.kext,VodafoneFilter.kext} ~

Then do the installation/update, and then restore those drivers, e.g.,

然后进行安装/更新,然后恢复那些驱动程序,例如,

mv ~/{HuaweiDataCardDriver.kext,Vodafone.kext,VodafoneFilter.kext} /System/Library/Extensions/