Xcode 4.1 can't reinstall. App store says "installed"

Viewed 37552

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.

13 Answers
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.

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.

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
Related