Current location - Health Preservation Learning Network - Healthy weight loss - Xcode cleaning of Mac slimming
Xcode cleaning of Mac slimming
If you don't clean Xcode for a long time, you will find that your Mac hard disk is getting smaller and smaller, and this Xcode folder (~/Library/Developer/Xcode) is surprisingly large, even with dozens of G's. Here are some cleaning methods:

Open the Finder and use the shortcut key command+shift+g to enter the path to the folder.

This folder is a cache file generated by the emulator running each application. It takes a long time to recompile after deletion, and the cache file can be generated again only by re-running the APP.

The contents in this folder are generated when packed with Xcode, and can be selectively deleted according to whether it is useful or not. After deletion, xcode->; All the packaged files under the manager have been emptied.

This folder contains version support for your device. The size of each version folder is several g. Just keep the folder of the current version of the device. Even if all of them are deleted, Xcode will appear to process symbol files and regenerate the corresponding version files when reconnecting the device.

All folders in this folder directory are named after the UDID of the emulator. You can check it out. Default_created.plist file. According to the folder name and the contents in plist file, it can be judged that each folder is an emulator of a certain device type under a certain version. Yes. The default_created.plist file is a hidden file. You need to turn on the monitor to hide it before you can view it.

5. 1 Go to the folder and type: /private/var/folders.

5.2 under the directory folder, go down to the second floor and find: c/com.apple.developertools/all/xcode/embeddedappdeltas.

5.3 Delete the incremental content of embedded application