18

I have Xcode 4.3 installed on Mac OS Lion, but I can't find a way to uninstall it. Any ideas?
I have no /Xcode4/Library/uninstall-devtools (can't find an Xcode4 folder) or /Developer/Library/uninstall-devtools(Library folder doesn't exist under Developer)

I have a Users/me/Library/Developer/Xcode with:

  • DerivedData
  • UserData
  • Installs
  • iOS DeviceSupport

I have /Developer with

  • Applications
  • Documentation
  • Extras
  • Platforms

The only other place I could find a reference to Xcode was in Applications/Xcode.app
Is there something I've overlooked? I would really appreciate any help!

Alexandre
  • 2,073
  • 4
  • 21
  • 24

4 Answers4

22

You uninstall Xcode 4.3 like you would uninstall most Mac applications, by moving it to the Trash. Xcode 4.3 is bundled as a single application so there's no need for an uninstall script.

Swift Dev Journal
  • 19,282
  • 4
  • 56
  • 66
  • 6
    Incorrect. xCode is not bundled in single application. There are associated libraries. Dragging to Trash does not clean up the associated libraries. – Raptor Feb 29 '12 at 02:53
  • 7
    Have you used Xcode 4.3? What you are saying is correct in earlier versions of Xcode, but Xcode 4.3 changed things. Instead of a folder at /Developer, Xcode 4.3 bundles everything inside the Xcode app. There is no uninstall-devtools script and no installer for Xcode in Xcode 4.3 – Swift Dev Journal Feb 29 '12 at 03:13
  • 2
    So what does this mean then? Everything associated to Xcode seems to be at `/Applications/Xcode.app/Contents` – v01pe Mar 01 '12 at 10:24
  • If you want a really clean uninstall, you should also consider deleting preference files in ~/Library/Preferences/ (e.g. com.apple.dt.Xcode* - same holds for iPhoneSimulator and Instruments). Other directories to check are ~/Library/Developer and its subfolders as well as ~/Library/Application Support/iPhone Simulator. However, if you plan a clean reinstall, you might want to backup data from ~/Library/Developer/Xcode, e.g. Application Archives, device logs or screenshots. – Tafkadasoh Oct 10 '12 at 08:50
  • @MarkSzymczyk 's answer is correct. Xcode doesn't have any uninstaller anymore. – Dalinaum Sep 05 '13 at 03:27
8

Maurizio Zilli:

"In new Xcode 4 and Lion You can install and uninstall from Preferences : downloads : components

If You want to uninstall completely XCode go to launchpad and push Xcode icon for two seconds, so click on the upper left checkbox."

https://discussions.apple.com/thread/3784638?start=0&tstart=0

kikomn
  • 109
  • 1
  • 2
  • The Launchpad anwer sounded strange to me, but i think it's right. It may take a while until everything is gone. – brainray Jul 06 '12 at 11:54
  • Just pushing the button wouldn't let me click the "X" that showed but holding the Option key to show the "X" (remove) buttons on applications that can be removed in this manner worked fine. It took a few minutes but did delete XCode from the Applications directory itself and XCode now shows in the App Store with an Install button. – Zhora May 19 '13 at 21:25
2

To uninstall xcode 4.3.x simply drag the Xcode.app to the trash. That's all.

The iOSDev
  • 5,237
  • 7
  • 41
  • 78
0

There's still some large docset files in ~/Library/Developer/Shared/Documentation/DocSets/. You could search for other support files with mdfind -name xcode -0 | xargs -0 du -sm | sort -rn.

For some reason, /Library/Developer/ wasn't removed when I installed Xcode 4.3. It contained about 2GB of old docset files.

Lri
  • 26,768
  • 8
  • 84
  • 82