Xcode disk space cleanup
My device is the MacBook Air ' Mid 2011,128g SSD. Some storage pressure has recently started, and after cleaning up part of the old files with clean My mac, I decided to do it for Xcode.
Remove support for legacy devices
Impact: Can be regenerated and re-generated automatically when the old device is debugged. I removed 4.3.2, 5.0, 5.1 and other versions of the device support.
Path:~/Library/Developer/Xcode/iOS DeviceSupport
Free space: 3GB
Removing old versions of emulator support
Impact: Unrecoverable; If you need an older version of the emulator, you need to download it again. I removed 4.3.2, 5.0, 5.1 and other old versions of the simulator.
Path:~/Library/Application Support/iPhone Simulator
Free space: 3GB
Removing temporary files from the emulator
Impact: Can be regenerated, if a newer version of the emulator needs to be preserved, but the TMP folder is large. Be assured to delete it, the contents of the TMP folder is not important. In iOS device, the TMP folder may be emptied when there is not enough storage space.
Path: ~/Library/Application Support/iPhone Simulator/6.1/tmp
(take iOS Simulator 6.1 for example)
Free space: 2GB
Remove the apps installed in the emulator
Impact: Not recoverable, the apps installed in the corresponding simulator are emptied and deleted if not needed.
Path: ~/Library/Application Support/iPhone Simulator/6.1/Applications
(take iOS Simulator 6.1 for example)
Free space: 1GB
Remove Archives
Impact: Not recoverable, adhoc or App Store version will be deleted. Recommended Backup dSYM Folder
Path:~/Library/Developer/Xcode/Archives
Free space: 6GB
Remove Deriveddata
Impact: can be regenerated; The build's project index, build output, and log are deleted. When you reopen the project, it will regenerate and the large project will take some time.
Path:~/Library/Developer/Xcode/DerivedData
Free space: 12GB
Removing the old docsets
Impact: Unrecoverable; the old docsets document will be deleted
Path:~/Library/Developer/Shared/Documentation/DocSets
Free space: 2GB
from:http://www.iwangke.me/2013/09/09/clean-xcode-to-free-up-disk-space/
Xcode disk space Cleanup (GO)