Xcode Disk Space – How to Remove iOS Dev/IDE from Xcode

disk-spacemacosxcode

I need space in my SSD. I just need terminal tools in OS X El-capitan, not the Xcode IDE, not iOS, … The space 10.49 Gb is just too much in my 60 GB disk partition. These PATHs do not work anymore so I cannot delete them

  • ~/Library/Developer/Xcode/iOS DeviceSupport/
  • ~/Library/Application Support/iPhone Simulator

How can you remove iOS/IDE/… from Xcode?

Best Answer

Delete the Xcode app from /Applications, then delete ~/Library/Developer/Xcode.

You can then install the command line tools separately, by downloading them from Apple's Developer Downloads page (you'll need to log in with your Apple ID). The proper package is listed as "Command Line Tools (OS X version) for Xcode version". Obviously grab the one that applies to your current version of OS X.