The MacOS Xcode CoreSimulator folder is very large. Can content be deleted?

My ~/Library/Developer/CoreSimulator/Devices folder is 26 Gb size.

Is it safe to just delete all content? Will these files be automatically restored?

+195
xcode xcode7 diskspace macos
Oct 29 '15 at 16:08
source share
4 answers

Try running xcrun simctl delete unavailable in your terminal.

Original answer: Xcode - free up folder to clean devices?

+556
Mar 30 '16 at 9:59
source share

This directory is part of your user data, and you can delete any user data without seriously affecting Xcode. You can delete the entire CoreSimulator / directory. Xcode will recreate fresh instances for you when you make the next run of the simulator. If you can afford to lose any previous simulator data for your applications, this is the easiest way to get a place.

Update: The related useful application "DevCleaner for Xcode" https://apps.apple.com/app/devcleaner-for-xcode/id1388020431

+43
Mar 25 '17 at 7:57
source share

for Xcode 8:

In the terminal, I run sudo du -khd 1 to see the file system storage volumes for each folder in plain text, then expand up / down where the huge GB is hidden using the cd command .

Ultimately, you will find the Users / Library / Developer / CoreSimulator / Devices folder, where you don’t have to worry about removing all these β€œdevices” using iOS versions that you no longer need. It is also safe to simply delete all of them, but keep in mind that you will lose data that is written to the device, such as sqlite files, which you can use as the backup version.

I once saved over 50 GB, since I tested a lot of older versions of iOS.

+10
Apr 19 '17 at 17:29
source share

If you are an iOS developer :

Check how many simulators you downloaded take up a lot of space:

Go to: Library/Developer/Xcode/iOS DeviceSupport

Also remove the old archived applications:

Go to: Library/Developer/Xcode/Archives

I cleared 100GB by doing this.

+2
Jun 24 '19 at 1:39 on
source share



All Articles