Problems installing XCode on Lion

Hello,

I am trying to install XCode on my computer. I downloaded it off the App Store and just ran the application straight from Applications. When I double click on the application it says I must install the Mobile Device Framework through the downloader before I can proceed. When I try this, the program says installation failed and this is in my installation log:


Before this I have been entering some commands in the terminal and installed some stuff following this tutorial, don't know if that is what is interfering with the installation.

http://www.tibiarp.com/forum/thread-1363.html



Feb 29 19:37:15 ip239-147 installd[229]: PackageKit: ----- Begin install -----

Feb 29 19:37:15 ip239-147 installd[229]: PackageKit: request=PKInstallRequest <1 packages, destination=/>

Feb 29 19:37:15 ip239-147 installd[229]: PackageKit: packages=(

"PKLeopardPackage <file://localhost/Applications/Xcode.app/Contents/Resources/Packages/MobileDevi ce.pkg>"

)

Feb 29 19:37:15 ip239-147 installd[229]: PackageKit: Skipping component "com.apple.MobileDevices" (1.0.0-503.0.0-5030000-*) because the version 1.0.0-503.2.0-5030200-2 is already installed at /System/Library/CoreServices/CoreTypes.bundle/Contents/Library/MobileDevices.** ndle.

Feb 29 19:37:15 ip239-147 installd[229]: PackageKit: Skipping component "com.apple.mobiledevice" (503.0.0-503.0.0-5030000-*) because the version 503.2.0-503.2.0-5030200-2 is already installed at /System/Library/PrivateFrameworks/MobileDevice.framework.

Feb 29 19:37:16 ip239-147 installd[229]: PackageKit: Extracting file://localhost/Applications/Xcode.app/Contents/Resources/Packages/MobileDevic e.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)

Feb 29 19:37:17 ip239-147 installd[229]: PackageKit: update_dyld_shared_cache -overlay /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root

Feb 29 19:38:52 ip239-147 installd[229]: PackageKit: xpchelper --rebuild-cache --overlay /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root

Feb 29 19:38:52 ip239-147 installd[229]: PackageKit: Executing script "./preinstall" in /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Scripts/com.apple.pkg.MobileDevice.fIhJT4

Feb 29 19:38:52 ip239-147 _securityagent[358]: Running Install Scripts . . .

Feb 29 19:38:52 ip239-147 _securityagent[360]: Begin script: AlertAll.sh

Feb 29 19:38:55 ip239-147 installd[229]: ./preinstall: 2012-02-29 19:38:55.714 AlertAll[363:b07] Looking for applications at /Applications/Xcode.app/Contents/Resources/Packages/MobileDevice.pkg

Feb 29 19:38:55 ip239-147 installd[229]: ./preinstall: 2012-02-29 19:38:55.750 AlertAll[363:b07] --(null)

Feb 29 19:38:55 ip239-147 installd[229]: ./preinstall: 2012-02-29 19:38:55.766 AlertAll[363:b07] img:1

Feb 29 19:38:55 ip239-147 installd[229]: ./preinstall: 2012-02-29 19:38:55.768 AlertAll[363:b07] >> timerMethod

Feb 29 19:38:55 ip239-147 installd[229]: ./preinstall: 2012-02-29 19:38:55.768 AlertAll[363:b07] >> updateTable

Feb 29 19:39:00 ip239-147 installd[229]: ./preinstall: 2012-02-29 19:39:00.767 AlertAll[363:b07] >> timerMethod

Feb 29 19:39:00 ip239-147 installd[229]: ./preinstall: 2012-02-29 19:39:00.769 AlertAll[363:b07] >> updateTable

Feb 29 19:39:14 ip239-147 installd[229]: ./preinstall: 2012-02-29 19:39:14.525 AlertAll[363:b07] >> applicationShouldTerminate

Feb 29 19:39:14 ip239-147 installd[229]: ./preinstall: 2012-02-29 19:39:14.555 AlertAll[363:b07] >> applicationWillTerminate

Feb 29 19:39:14 ip239-147 _securityagent[394]: End script: AlertAll.sh

Feb 29 19:39:14 ip239-147 _securityagent[395]: Begin script: usbmuxdpre

Feb 29 19:39:14 ip239-147 installd[229]: ./preinstall: launchctl: Error unloading: com.apple.usbmuxd

Feb 29 19:39:14 ip239-147 installd[229]: ./preinstall: (kernel) Kext com.apple.driver.AppleMobileDevice not found for unload request.

Feb 29 19:39:14 ip239-147 installd[229]: ./preinstall: Failed to unload com.apple.driver.AppleMobileDevice - (libkern/kext) not found.

Feb 29 19:39:14 ip239-147 installd[229]: ./preinstall: (kernel) Kext com.apple.driver.AppleUSBEthernetHost not found for unload request.

Feb 29 19:39:14 ip239-147 installd[229]: ./preinstall: Failed to unload com.apple.driver.AppleUSBEthernetHost - (libkern/kext) not found.

Feb 29 19:39:14 ip239-147 _securityagent[401]: End script: usbmuxdpre

Feb 29 19:39:14 ip239-147 _securityagent[402]: 2 Install Scripts run.

Feb 29 19:39:14 ip239-147 installd[229]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root (2 items) to /

Feb 29 19:39:15 ip239-147 installd[229]: PackageKit: kextcache -system-caches

Feb 29 19:39:17 ip239-147 installd[229]: PackageKit: kextcache -update-volume / -Installer

Feb 29 19:39:17 ip239-147 installd[229]: kextcache: / locked; waiting for lock.

Feb 29 19:45:32 ip239-147 installd[229]: kextcache: Lock acquired; proceeding.

Feb 29 19:45:33 ip239-147 installd[229]: kextcache: JMicronATA.kext does not declare a kernel dependency; using com.apple.kernel.6.0.

Feb 29 19:46:00: --- last message repeated 2 times ---

Feb 29 19:46:00 ip239-147 installd[229]: kextcache: Child process /usr/sbin/kextcache[440] exited due to signal 10.

Feb 29 19:46:00 ip239-147 installd[229]: kextcache: Error 10 rebuilding /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache.

Feb 29 19:46:00 ip239-147 installd[229]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=121 "An error occurred while updating system extension information." UserInfo=0x10205fcc0 {NSLocalizedDescription=An error occurred while updating system extension information., arguments=(

"-update-volume",

"/",

"-Installer"

), NSUnderlyingError=0x10202ead0 "The operation couldn’t be completed. (kextcache error 10.)"} {

NSLocalizedDescription = "An error occurred while updating system extension information.";

NSUnderlyingError = "Error Domain=kextcache Code=10 \"The operation couldn\U2019t be completed. (kextcache error 10.)\"";

arguments = (

"-update-volume",

"/",

"-Installer"

);

}


Processor 2.3 GHz Intel Core i5

Memory 4 GB 1333 MHz DDR3

Graphics Intel HD Graphics 3000 384 MB

Software Mac OS X Lion 10.7.3 (11D50b)

MacBook Pro

Posted on Feb 29, 2012 10:58 AM

Reply
14 replies

Mar 27, 2012 2:03 AM in response to khiros

@khiros


In case you're still having this issue, I had the same problem this morning and here's how I resolved it:


Go to /Applications/ and right click on 'Xcode' and then select 'Show Package Contents' from the popup menu - this will show you the contents of the Xcode.app bundle.


Then go inside Contents and Resources and then Packages (so, your file path should now be /Applications/XCode.app/Contents/Resources/Packages/) and then double click on the 'MobileDevice.pkg' installer file.


If you're having the same problem that I've had you should get a message warning you that the installer's certificate has expired. You should be able to give permission to run it anyway and have the installer proceed. Once the installation of that package is complete you should be able to run Xcode again and see it all working.


Alternatively, try to advice above to update Xcode in the Mac App Store - I didn't see that advice until I'd figured out how to do it my way so I don't know if that will work in this particular case or not.


All the best and good luck!


Adam

Jun 2, 2012 2:10 PM in response to fatmanad

THANK YOU!!!


Spent hours trying to figure out why the mac installer was so ********. Installing through the app store totally failed; it downloaded but then showed up with a completely solid gray button in place of an install button under the purchased tabs. Eventually I found this site: which gave me a link to download the installer directly:

http://stackoverflow.com/questions/10101954/is-it-possible-to-install-xcode-4-3- 2-on-multiple-macs-from-a-single-download


After copying the dmg file into the dock icon for Applications, I clicked the installer. That launched the installer, but then I got the same situation described by the OP, except it failed, with nothing written to install.log. Very frustrating, but after following the steps described by fatmanad, everything works great! Thanks!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Problems installing XCode on Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.