9

the app store botched its installation of Xcode 4.1 (it turned claimed it was 4.0 but the app store claimed 4.1 was installed). So I deleted the /Developer folder thinking this would let me reinstall a clean Xcode 4.1.

The app store still thinks Xcode 4.1 is installed and will not download or reinstall any version of Xcode. How do I force install Xcode 4.1?

james
  • 99
  • 1
  • 1
  • 2

4 Answers4

15

Just to explain further...

The App Store download had actually worked

What you saw when you looked at Xcode was your old install, because you had not yet run the installer at that point.

Just find the "XCode installer" in your applications folder and run that to complete the install.

It caught me out too.

Peter Johnson
  • 3,764
  • 1
  • 23
  • 27
  • 1
    This did the trick for me. Run `/Applications/Install Xcode/Install Xcode.app`. There's also `/Applications/Install Xcode.app`, but that did not work for me, growling at me saying I need the appropriate program for Lion. – Prashant Kumar Jul 26 '11 at 21:45
  • Note that this answer also worked for updating from 4.1 to 4.2 via the app store - it just downloaded an installer, which I had to find and run. – Kendall Helmstetter Gelner Oct 22 '11 at 20:19
  • Note that now the App Store is used for installing Xcode, this no longer applies – Peter Johnson Jun 22 '12 at 12:22
2

Do you have the application "Install Xcode" in your /Applications folder. That worked for me.

oook
  • 21
  • 1
2

Deleting the Install Xcode app works for me - after that I have the opportunity to download that monster all over again

reakt
  • 21
  • 1
1

To make a clean installation of Xcode first completely uninstall the previous Xcode version:

From a Terminal window type:

$ sudo /Developer/Library/uninstall-devtools --mode=all

That process may take a while!

Then try your installation again.

Felix
  • 35,354
  • 13
  • 96
  • 143
  • 1
    After running that script the App Store claimed it was still installed. – Kendall Helmstetter Gelner Dec 07 '11 at 19:46
  • Same with me. I do not know how to refresh the App Store. I even removed it from Purchases. – Brian Dec 08 '11 at 01:06
  • 1
    Delete /Applications/Install Xcode.app, and then the App Store recognizes Xcode is gone. http://stackoverflow.com/questions/7760114/xcode-4-2-on-lion-app-store-thinks-the-app-is-already-installed – Brian Dec 08 '11 at 01:09
  • 1
    I don't have an "Install Xcode.app" on my machine but I have the same problem as the others. Laaaaaame – BoomShaka Feb 29 '12 at 14:31