Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall older version of Xcode

I have Xcode 4.0.2 and 3.2.5 both installed on my macbook. How do I uninstall the older version without uninstalling the newer version?

like image 987
Rickie Avatar asked Apr 06 '12 09:04

Rickie


People also ask

How do I completely remove Xcode from my Mac?

The first step to uninstalling Xcode from your Mac (and deleting its residual files) is to move the app itself to the macOS Bin. Launch Finder and click Applications on the right sidebar. Right-click on the Xcode icon and select Move to Bin on the context menu. That will immediately uninstall Xcode from your Mac.

Can I have 2 versions of Xcode on my Mac?

You can download old versions of Xcode and install them on the side of the latest one. So you can just choose which version you want to launch depending on your situation.

Can I delete developer files on Mac?

To answer my own question YES its completely safe to delete ~/Library/Developer folder if you plan to completely remove your existing Xcode and install a new version.


1 Answers

sudo <Xcode>/Library/uninstall-devtools --mode=all 

where <Xcode> is the path to the Developer folder (the one with 'Xcode 3.2.5' in it) This won't affect the 'Xcode 4.0.2' installation since it's in a completely different folder.

like image 117
Demz Avatar answered Nov 02 '22 07:11

Demz