How To Uninstall Xcode From Mac App Store

Anthony James —  August 29, 2011

I recently came across the need to uninstall xcode from my Mac OSX Lion. However, now that xcode is distributed through the app store and not the apple developer portal, it has become more difficult to do. Despite logic, you cannot go to the app store (currently) and uninstall the app. Follow allow below to see how we were able to quickly uninstall and reinstall our xcode.

Follow these two simple steps to uninstall xcode.

1.) Remove xcode from the system.
– Open up terminal, type the command below

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

2.) Even though we removed xcode, if you open up the app store it still shows installed. Fix it by opening up "Applications" in finder then removing "Install xcode"
Open up mac app store and there you go!

Happy coding!

Anthony James

Posts Twitter Facebook

Anthony is a Web Software Developer & Linux Systems Engineer. With 11 years of experience in these fields. He is also the founder and main contributor at Pinehead.tv. He is passionate about passing on his technical knowledge through training and educating others.

10 responses to How To Uninstall Xcode From Mac App Store

  1. Worked, thanks… It was taking a lot of space, and I didn’t needed it anymore.

  2. Thanks for the App Store tip!

  3. Thanks! This was the key tip I needed to reinstall Xcode after uninstalling from the command line.

  4. Please help, this does not work for me:
    I have an install of Xcode 4.1, I’m trying to down load 4.2.1 (I’ve been trying for 12 hours now).
    I’m working on Mac 10.7.2
    I have tried deleting Xcode with command line:
    /Developer/Library/uninstall-devtools –mode=all
    Ive also deleted ‘install xcode’ from applications.

    Now when I go to appstore to download Xcode it lets me login, but does nothing! i.e won’t download Xcode, and the ‘install Xcode is not in applications’

    I’ve search the forums for answers and found many but none work :-)

    Please Please help me. I red to test my app on my iPhone but the iPhone is at iOS 5 so I can’t test it until I upgrade Xcode!!!

  5. I’m pretty sure to be able to download xcode from the app store you need to be a registered apple developer.

    Once your apple ID is registered xcode download should appear.

  6. I’ve been having the same issue as Philip and Mike. I had XCode 3 installed, and I’ve had a developer account for years. I couldn’t install XCode 4, so I did the command-line uninstall, and for some reason, the App Store still thinks I have it installed. Now I have neither XCode 3 or 4.

    • I found a solution!

      Luckily, I had a second computer nearby, so I downloaded Xcode 4, and transferred the ‘Install Xcode.app’ over to my first computer that was having the problems. However, opening the installer would consistently crash, so I right clicked on the installer, went to ‘Show Package Contents’, Contents > Resources > xcode.mpkg
      This installed Xcode 4.2.1

      Worked for me, and I hope it helps someone else that is in the same situation as me.

  7. The command line uninstall doesn’t work for me. “sudo: /Developer/Library/uninstall-devtools: command not found”

    As far as I can tell Xcode (a folder with that name) is in Developer/Platforms/iPhoneSimulator.platform/Developer/Library . I have no interest in iPhone OS or anything else related to iPhone… I want to delete/uninstall all this so I can reinstall Xcode with the UNIX developer tools, in the correct place.

    Any suggestions?
    Thanks
    -Sam

  8. Thanks was able to uninstall my xcode 4.5 with this tips above …..