XCode 4 installation fails with error
XCode, the developer tools suite provided by Apple is available to registered Apple Developers for free. If you are not a registered developer with Apple, you can still get XCode for a small fee through the App Store. But unlike many of the app store applications, clicking the “Install” button under the XCode description does not directly result in a working application appearing in your dock. The icon for an XCode installer shows up there instead. And that can installer isn’t trouble-free.
When I tried to run the XCode installer, it failed when it was nearly done, and displayed a message to go look for an error in the log (/var/log/install.log) where I found errors like this:
Xcode install Underlying Error=(Error Domain=NSPOSIXErrorDomain…
A quick search of the Apple discussions showed that many people are having the same problem. Possible fixes include:
- restarting your computer
- Right click on the installer, select “Show Content” then find and launch the real installer (see below*)
- freeing up space on their hard drive, and
- simply trying the install again
What worked for me was simply trying again – it installed fine this time.
*The launch procedure for option 2 is:
- Go to Applications-folder. Find “Install Xcode”.
- Right-click and choose “Show Content” (or something, swedish language activated).
- Go to Contents > Resources and doubleclick Xcode and iOS SDK.mpkg.
- XCode should now install.