49

Today i update my system to Lion and try to update Xcode. After downloading from app store i get error.

So i remove my old Xcode 4.0 by this command

/Developer/Library/uninstall-devtools –mode=all

But now in app store i have the status "installed" and can't reinstall my Xcode. So what i must do?

p.s Trash is clear.

kubi
  • 48,104
  • 19
  • 94
  • 118
Ale
  • 493
  • 1
  • 4
  • 4

13 Answers13

57

When I downloaded Xcode from the Mac App Store it created an Icon in launchpad called 'Install Xcode' and you're able to kick off the install from there.

My installation failed the first time and I was able to reinstall fine.

FractalDoctor
  • 2,496
  • 23
  • 32
  • 4
    I did indeed have the Install Xcode app in Applications, but it was for the previous version of Xcode. Deleting that still would not allow me to install. Finally, I just deleted xcode.app from Applications and was able to start downloading the new version. – memmons Mar 08 '12 at 19:43
  • Thanks, this really helped (+1) i had missed the launchpad icon! – PeterK Jul 01 '12 at 20:21
  • See @seano's answer too. It wasn't in launchpad for me, but found it using spotlight. – mahemoff Jan 03 '13 at 11:35
  • It's not anywhere at all for me. The problem is that it's seeing Xcode on my backup drive. Ugh, the App Store is a mess. Why can't I just sudo apt-get install this thing?! – sudo Jan 04 '14 at 23:27
17
sudo /Developer/Library/uninstall-devtools –mode=all

sudo rm -rf /Developer*

sudo rm -rf /Applications/*Xcode.app

Download & Install "Install Xcode.app" or now just "Xcode.app" from the AppStore again, and run it.

Ryan McGeary
  • 235,892
  • 13
  • 95
  • 104
mda
  • 1,158
  • 14
  • 18
  • Please note my answer only applies to Xcode 4.1 and maybe 4.2 or 4.0. The current version doesn't even have the /Developer directory anymore. :-) – mda Nov 06 '12 at 00:25
8

Try a spotlight search for Xcode. I found an Xcode installer app in my applications folder when I did that.

seano1
  • 125
  • 3
7

Delete "Applications/Install Xcode" you can then re-install from app store

railwayparade
  • 5,154
  • 1
  • 39
  • 49
3

I had a similar problem - clicking on Install in the Mac App Store did absolutely nothing. No error messages, no downloads, no install.

I had to all of the following to get the Xcode install to work:

rm ~/Library/Preferences/com.apple.appstore.plist
rm -r ~/Library/Saved\ Application\ State/com.apple.appstore.savedState
rm -r ~/Library/Caches/com.apple.appstore
rm -r /private/var/folders/*/*/*/com.apple.appstore

Then I deleted my existing '/Developer/Xcode.app', and an existing '/Applications/Install Xcode.app' from a previous version. Even then it didn't work until I restarted my machine!

ED-209
  • 4,706
  • 2
  • 21
  • 26
3

open terminal window

cd /Applications
sudo rm -rf Install\ Xcode.app

After that you should be able to reinstall

Ionoclast Brigham
  • 1,703
  • 1
  • 12
  • 19
3

I had the same problem with other app. Deleted it and could not install again from App Store. The problem was that I had backup copy on the mounted external disk. After I have un mounted the disk with the other copy, App Store let me download the app again. Regarding to what verylastminute wrote - if Appstore can "see" any other duplication file it will not let you re-download.

Jechudi
  • 31
  • 1
2

If you have moved the Install XCode file anywhere else, and even if you have renamed it, Spotlight still shows it being in both the new location and in Applications. You need to delete any duplicates you may have made of the file before App Store will let you download it again.

assertchris
  • 161
  • 4
1

I had a similar issue. I resolved it by creating another admin account on the computer. Then I installed Xcode using the new admin account.

Evan
  • 6,151
  • 1
  • 26
  • 43
1

You haven't installed Xcode, not yet. It's confusing, especially when trying to downgrade from Xcode 4.2 to Xcode 4.1 on Lion, but since the migration to App Store Xcode installs, you "install" the install app, which you then have to run to install xcode.

You've installed "/Applications/Install Xcode.app"

You need to run this to actually get "/Developer", gcc, make, etc

whitehat101
  • 2,428
  • 23
  • 18
1

Simple solution : on App Store, instead of going in updates or in installed apps, simply go to "Bought apps" page. On this page, you have the option to update Xcode.

Régis
  • 8,340
  • 1
  • 17
  • 15
0

After I have tried all suggestions from this and other forums I finally managed to solve the problem in the following way: I went to the App Store menu Store -> View My Account and it was only there that I saw XCode as available with an "Install" button. Hope this helps.

iana_b
  • 1
0

In my case, on macOS 12.2 Monterey with M1 chip, there was no "Install Xcode" directory. I ran this instead and it worked:

rm -rf /Applications/Xcode.app
artronics
  • 1,399
  • 2
  • 19
  • 28