Is there anyway to reduce the disk space used to store the Xcode application? I only downloaded Xcode so that I could compile C and C++, so if possible I would like it to take up much less than the 9.22GB it requires right now. Perhaps there are optional portions I can uninstall?
MacOS – Reduce size of the Xcode application
disk-spacemacosxcode
Related Question
- MacOS – Reduce image file size to certain size
- MacOS – I uninstalled xcode 4.6 and the App Store still wants to update it
- MacOS – Xcode 6 on Yosemite: Give me back the title bar!
- I need help updating Xcode
- Compile an App on Xcode Without a Developer Account – How to
- Xcode free space requirement
- Xcode – Steps to Uninstall Command Line Tools from MacOS
- Mac – App Store: Not enough disk space to install Xcode
Best Answer
Although it's not directly related to the Xcode app size. There are multiple places where you can delete files to free up some space.
1. Derived Data Xcode keeps data about your projects which includes index, build output and logs. Go to
~/Library/Developer/Xcode/DerivedData/
and delete the folders for projects that you no longer need to keep this data around for.2. iOS Device Support Xcode is storing information about the devices you have used for development. Delete the data no longer needed in
~/Library/Developer/Xcode/iOS DeviceSupport/
.3. Archives Delete the one’s you don’t need in the Organizer, or go to
~/Library/Developer/Xcode/Archives/
to delete them in bulk. Be careful not to delete archives for which you still need the dSYM data for debugging.4. Simulators Simulators are stored under
~/Library/Developer/CoreSimulator/Devices
. For each version of iOS you are building for.5. Documentation Browse and delete unnecessary data under
~/Library/Developer/Shared/Documentation/DocSets
.