Error during Xcode Component Installation

爷,独闯天下 提交于 2020-01-30 14:20:29

问题


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.

I'm currently running Xcode 4.3. Perhaps I need to upgrade to 4.4? Has anyone else run into this problem?


回答1:


This problem has once again appeared in Xcode 11.1 and is caused by an invalid certificate that expired some day in October 2019.

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.




回答2:


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.

Go to Applications folder Right Cick XCode Show Package contents Then go to /Contents/Resources/Packages/ Install MobileDevice.pkg ...




回答3:


Just change the date to October 2019:




回答4:


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.




回答5:


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




回答6:


im resolver that change terminal date for example:

sudo date 103106



来源:https://stackoverflow.com/questions/12444656/error-during-xcode-component-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!