Xcode 组件安装过程中出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12444656/
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
Error during Xcode Component Installation
提问by Peter Jacobs
I just installed a software update that I was prompted for, presumable affecting Xcode. Now when I start Xcode, I am presented with a dialog box which states that Xcode must install the Mobile Device Framework before continuing. When I try to do this, after providing my password, it fails with "An unknown error occurred. See the install log for more details." I do not see anything useful in install.log that identifies the problem. I've tried re-installing multiple times and rebooting to no avail.
我刚刚安装了一个提示我的软件更新,可能会影响 Xcode。现在,当我启动 Xcode 时,会看到一个对话框,指出 Xcode 必须在继续之前安装移动设备框架。当我尝试这样做时,在提供我的密码后,它失败并显示“发生未知错误。有关更多详细信息,请参阅安装日志。” 我在 install.log 中没有看到任何可以识别问题的有用信息。我已经尝试重新安装多次并重新启动无济于事。
I'm currently running Xcode 4.3. Perhaps I need to upgrade to 4.4? Has anyone else run into this problem?
我目前正在运行 Xcode 4.3。也许我需要升级到 4.4?有没有其他人遇到过这个问题?
回答by Darren
This problem has once again appeared in Xcode 11.1 and is caused by an invalid certificate that expired some day in October 2019.
这个问题再次出现在 Xcode 11.1 中,是由 2019 年 10 月某天过期的无效证书引起的。
You can work around the problem by temporarily changing the system date to before the certificate expiration date.
您可以通过将系统日期临时更改为证书到期日期之前来解决此问题。
In the case of Xcode 11, set the system date to Oct 3, 2019, run Xcode, then change the date back after the components have installed.
对于 Xcode 11,将系统日期设置为 2019 年 10 月 3 日,运行 Xcode,然后在安装组件后将日期改回。
回答by cugino
XCode Version 4.3.1 (4E1019). I suspect that I got the problem after an iTunes update this morning. Found the following somewhere on the web.
XCode 版本 4.3.1 (4E1019)。我怀疑我今天早上在 iTunes 更新后遇到了这个问题。在网上某处找到了以下内容。
Go to Applications folder Right Cick XCode Show Package contents Then go to /Contents/Resources/Packages/ Install MobileDevice.pkg ...
转到 Applications 文件夹 Right Cick XCode Show Package contents 然后转到 /Contents/Resources/Packages/ Install MobileDevice.pkg ...
回答by Abraham Hernandez
I tried installing the required components:
我尝试安装所需的组件:
but I had the same issue:
但我有同样的问题:
I recommend @Darren answer (https://stackoverflow.com/a/58651694/7602110) but I tried another way, which was uninstalling Xcode and installing it back again, is not the best way to go, because we all know how long that Xcode takes to install, but it also works and was worth sharing.
我推荐@Darren 回答(https://stackoverflow.com/a/58651694/7602110)但我尝试了另一种方法,即卸载 Xcode 并重新安装它,这不是最好的方法,因为我们都知道需要多长时间Xcode 需要安装,但它也可以工作并且值得分享。
回答by jproch
Using cugino's answer above solved it for me. In my case, the certificate used to sign the .pkg file had expired. This may be the reason for anyone experiencing this after February 14, 2015
使用上面 cugino 的答案为我解决了这个问题。就我而言,用于签署 .pkg 文件的证书已过期。这可能是任何人在 2015 年 2 月 14 日之后遇到这种情况的原因
回答by German Dominguez
im resolver that change terminal date for example:
更改终端日期的即时解析器,例如:
sudo date 103106
须藤日期 103106