Clean up Xcode and save developers using SSD’s Mac (a much warmer home for older sisters)

First, the
two, the
1,
2, DerivedData 3, Archives
iOS DeviceSupport
4, CoreSimulator
5, com.apple.dt.Xcode
6, iTunes mobile phone backup


Preface

At 256G retinaMacBookPro purchased from the 15 years since October, had not been cleaned of documents related to Xcode, while it has been know that Xcode is the number one hard nail, but it was not until today to manually clean up and recover the 60G space, found that Xcode was so stubborn refer to male up 60G of space, but also let me have a night exposure the illusion (reminiscent of Jonathan Lee ‘brother, I thought I would get, but I have no “).
first look at the contrast effect on the contrast chart.

Before Clean up Xcode and save developers using SSD's Mac (a much warmer home for older sisters)
cleaning up
After Clean up Xcode and save developers using SSD's Mac (a much warmer home for older sisters)
cleans up

Cleaning method I see from the micro-blog gviridis to share a personal use of clean Xcode notes, he should be Xcode users can free (Up space on your Mac to translate, thanks to gviridis and the Xcode users can free Up space on your Mac the original author.


Go back to the topic and see what folders you want to operate on. What are these folders for?.

text

1, DerivedData

The ~/Library/Developer/Xcode/DerivedData
project is the intermediate product of build or debug, and sometimes it’s helpful to reset these files when the project is out of order.
if you delete the build project, you will rebuild the files.

This catalogue of mine makes up about 1G.


2, Archives

~/Library/Developer/Xcode/Archives
Archive Project storage location,
warning: if you need to debug the application on the shelf, you can not delete!!

I have less content here.


3, iOS DeviceSupport

~/Library/Developer/Xcode/iOS DeviceSupport
automatically creates
when attached to a device, and old equipment is not required to be retained

Every time we connect to a new device, “Processing symbol files” is writing the file to that folder.
Mac I bought from the beginning even a variety of mobile phone, have not cleaned up the directory folder for the contents of 50G refer to male up…

Clean up Xcode and save developers using SSD's Mac (a much warmer home for older sisters),
, Processing, symbol, files
Clean up Xcode and save developers using SSD's Mac (a much warmer home for older sisters)
50G!!!

4, CoreSimulator

~/Library/Developer/CoreSimulator
Apps the location of the stored document in the simulator.
is more secure with the Reset content And Settings in the emulator menu

[[[NSFileManager, defaultManager], URLsForDirectory:NSDocumentDirectory, inDomains:NSUserDomainMask], lastObject];

The above code can show the full path of these documents.
starts from Xcode 6, and the emulator location has been removed from ~/Library/Application Support/iPhone Simulator, so you can check the directory.

This folder takes up 7G space, and it’s also a big one. The main reason is that I installed the iOS8, 9, 10 simulators each…

Clean up Xcode and save developers using SSD's Mac (a much warmer home for older sisters)

5, com.apple.dt.Xcode

The original version of ~/Library/Caches/com.apple.dt.Xcode
doesn’t work, except that deleting Caches is always safe.


6, iTunes mobile backup

~/Library/Application Support/MobileSync/Backup
mobile device backup path, I think and Xcode have little to do with.
is best to delete unnecessary backups in the iTunes settings.


The path with the PopClip “in the Finder display” use more delicious

Finally, Amway, @onevcat, also recommends the school of Science – a full stack of engineers’ self-study web site, the most dedicated high-quality Swift video learning materials!