(基于xcode 8.3. 转自:http://www.cocoachina.com/ios/20170711/19814.html)
1 运行xcode会产生缓存文件,清理路径如下:
~/Library/Developer/Xcode/DerivedData
2 APP打包的历史版本(Archives)
~/Library/Developer/Xcode/Archives
3 移除 APP 打包的app icon历史版本(Archives)
~/Library/Developer/Xcode/Products/
4 移除模拟器的缓存数据(Devices)
~/Library/Developer/CoreSimulator/Devices/
5 移除对旧设备的支持(iOS DeviceSupport)
~/Library/Developer/Xcode/iOS DeviceSupport
6 移除 Xcode 中的无效的插件(Plug-ins)
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
7 移除旧版本的模拟器支持
~/Library/Developer/CoreSimulator/Profiles/Runtimes/
8 移除 playground 的项目缓存(XCPGDevices)
~/Library/Developer/XCPGDevices/
9 移除模拟器中的SDK版本(iPhoneSimulator.sdk)
~/application/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/