Clean up the Mac memory

Source: Internet
Author: User
Tags tmp folder

If you haven't deleted Xcode's cache files for a long time, because you are running new Xcode files every day, your hard disk space will be smaller and larger, located in the/users/*home name */library/developer/xcode/ The cache file under Deriveddata takes up a lot of memory space and can be deleted.

Xcode disk space cleanup

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


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


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 as an example)


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 as an example)


Remove Archives
Impact: Not recoverable, adhoc or App Store version will be deleted. Recommended Backup dSYM Folder
Path: ~/library/developer/xcode/archives


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


Removing the old docsets
Impact: Unrecoverable; the old docsets document will be deleted
Path: ~/library/developer/shared/documentation/docsets

Clean up the Mac memory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.