Xcode磁盘空间清理
http://www.iwangke.me/2013/09/09/clean-xcode-to-free-up-disk-space/#jtss-tsina
https://stackoverflow.com/questions/33419301/is-it-okay-to-delete-the-macos-xcode-coresimulator-devices-folder
Try to run
xcrun simctl delete unavailable
in your terminal.
That directory is part of your user data and you can delete any user data without affecting Xcode seriously. You can delete the whole CoreSimulator/ directory. Xcode will recreate fresh instances there for you when you do your next simulator run. If you can afford losing any previous simulator data of your apps this is the easy way to get space.
移除对旧设备的支持
影响:可重新生成;再连接旧设备调试时,会重新自动生成。
路径:~/Library/Developer/Xcode/iOS DeviceSupport
释放空间:3GB
移除Archives
影响:不可恢复;Adhoc或者App Store版本会被删除。建议备份dSYM文件夹
路径:~/Library/Developer/Xcode/Archives
释放空间:6GB
移除DerivedData
影响:可重新生成;会删除build生成的项目索引、build输出以及日志。重新打开项目时会重新生成,大的项目会耗费一些时间。
路径:~/Library/Developer/Xcode/DerivedData
释放空间:12GB
移除旧的Docsets
影响:不可恢复;将删除旧的Docsets文档
路径:~/Library/Developer/Shared/Documentation/DocSets
释放空间:2GB