Very easy to use, personal test
Xcode disk space is large
My device is Macbook Air 13 ‘Mid 2011 128G SSD. I’ve been under some storage stress lately, and after cleaning out some old files with Clean My Mac, I decided to do something about Xcode.
Remove support for older devices
Influence: can be regenerated; It will be automatically generated when the old device is connected again. I removed device support for versions 4.3.2, 5.0, 5.1, etc.
Path: ~ / Library/Developer/Xcode/iOS DeviceSupport
Free space: 3GB
Removed emulator support from older versions
Impact: Unrecoverable; If you need an older version of the emulator, you need to download it again. I removed older versions of the emulator 4.3.2, 5.0, 5.1, etc.
Path: ~/Library/Application Support/iPhone Simulator
Free space: 3GB
Remove temporary files from the emulator
Influence: can be regenerated; If you need to keep a newer version of the emulator, the TMP folder is large. The contents of TMP folder are not important. In iOS Device, the TMP folder can be emptied when storage space is low.
Path: ~/Library/Application Support/iPhone Simulator/6.1/ TMP
Free space: 2GB
Remove the Apps installed in the emulator
Impact: Unrecoverable; The Apps installed in the corresponding emulator have been emptied. Delete them if you don’t need them.
Path: ~ / Library/Application Support/iPhone Simulator / 6.1 / Applications for iOS Simulator 6.1 (for example)
Free space: 1GB
Remove the Archives
Impact: Unrecoverable; The Adhoc or App Store version will be removed. You are advised to back up the dSYM folder
Path: ~ / Library/Developer/Xcode/Archives
Free space: 6GB
Remove DerivedData
Influence: can be regenerated; The build generated project index, build output, and logs are deleted. It is regenerated when the project is reopened, and large projects take some time.
Path: ~ / Library/Developer/Xcode/DerivedData
Free space: 12GB
Remove old Docsets
Impact: Unrecoverable; The old Docsets document will be deleted
Path: ~ / Library/Developer/Shared/Documentation/DocSets
Free space: 2GB
IOS 6 path
1, iOS8 offline document path: ~ / Library/Developer/Shared/Documentation/DocSets /
From here you can backup com. Apple. Adc. Documentation. AppleiOS8.0. IOSLibrary. Docset offline document, then update Xcode don’t have to repeat to download this document
2, App Archive path (that is, to upload the App Store when the last of the Archive file directory) : ~ / Library/Developer/Xcode/Archives /
3. Path of APP in simulator: ~/Library/Developer/CoreSimulator/Devices/{Device_ID}/data/Containers/Bundle/Application/{Application_ID}/
Device_ID can be viewed using Xcode, Window > Devices or Command + Shift +2, as shown in the figure
4, simulator inside the sandbox path of app (the path and the app file path is not the same) : ~ / Library/Developer/CoreSimulator/Devices
/{Device_ID}/data/Containers/Data/Application/{Application_ID}/
5, the simulator SDK path: / Applications/Xcode6.1 app/Contents/Developer/Platforms/iPhoneSimulator platform/Developer/SDKs /
6, NSUserDefault path: Xcode6 ~ / Library/Application Support/iPhone Simulator / 7.0.3 / Applications / {Application_ID} / Library /
Now the path: ~ / Library/Developer/CoreSimulator/Devices / {Device_ID} / data/Library/Preferences