- How to remove Xcode completely from your system:
sudo /Developer/Library/uninstall-devtools --mode=all
Use at your own risk!
- Where to get Xcode: The App store: https://developer.apple.com/xcode/
- OSX-gcc-intstaller: https://github.com/kennethreitz/osx-gcc-installer
Addtional info: Another way is to get the “Command Line Tools for Xcode” at https://developer.apple.com/downloads/ (which requires an Apple developer account).