Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error during Xcode Component Installation

I just installed a software update that I was prompted for, presumably 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?

like image 328
Peter Jacobs Avatar asked Sep 16 '12 05:09

Peter Jacobs


People also ask

Why is Xcode not installing on my Mac?

Open the Mac App Store and sign out of it. Cancel the installation/download. Next, quit the Mac App Store and then restart your Mac. Once you're back on your desktop, open the Mac App Store, sign in again, and then download and install the app.

Can I install Xcode without Apple ID?

You cannot install Xcode without an Apple ID, but you can install Xcode's command line tools, as I explain below. If you don't have an Apple ID already, you can create one for free here.

Why is Xcode so slow to install?

You need 4–5 times the size of the Xcode download to install it. The file you are downloading is a compressed file. You need enough free space to temporarily store both the compressed and expanded files. If you have a Mac with a 128 GB drive, you will have a tough time installing Xcode.


2 Answers

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.

like image 69
Darren Avatar answered Oct 05 '22 20:10

Darren


In 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 click Xcode
  • Click Show Package Contents

Then navigate to Contents/Resources/Packages. Double click on Install MobileDevice.pkg.

like image 21
cugino Avatar answered Oct 05 '22 18:10

cugino