MacOS – Unable to install Xcode on a freshly-installed OS X Lion

mac-appstoremacosxcode

OK, so I own 2 macs :

  • a MacBook Pro (running 10.8 with the latest Xcode on it)
  • an iMac (running 10.6 on one partition – Xcode installed and all – , and 10.7 – just installed – on another partition)

Note : all of Xcode versions + OSes have been purchased via the App Store


Now, here's my problem :

  • I'm signing in with my Apple ID
  • I'm going to My Purchases
  • Xcode is obviously there, BUT with the "Install" option, not the "Download" option
  • I'm clicking on "Install", it seems to be working for some time and then it either stops working or it throws an error message along these lines : "Something went wrong. Unknown error code."

I need your help guys. That's why I partitioned my iMac's drive in the first place : to be able to debug under 10.7 as well (see here: Install 2 different OS X versions on the same machine/hdd ).

So, any ideas???


Hint : I've also tried to find any instances of "Install Xcode" installers on my MacBook Pro, hoping that there would be some left (appropriate for 10.7 that is)… but unfortunately all I've found didn't seem to want to work under 10.7. So I'm stuck – I don't think there's any other way I could manage to re-install it, other than through the App Store, and the… App Store doesn't seem to be working… :S

Best Answer

Rather than install from the App Store, you could get Xcode from the download section of Apple's Developer Site. You may be required to create a developer account if you have one, but the free one should suffice, you don't need to sign up for the Mac or iOS developer programs.

This has the added feature of being able to choose precisely which version of Xcode you want, as it includes versions back to 2.2.1, from what I can see.