Topic clusters
How to delete Xcode simulators and Device Support files
Simulator runtimes, simulator devices and iOS DeviceSupport are all safe to delete, and Xcode can bring each one back. Runtimes download again, devices are recreated empty, and device symbols copy again when you connect the device.
Short answer: simulator runtimes, simulator devices and Device Support files are all safe to delete. Xcode downloads a runtime again when you need it, creates new empty simulator devices on request, and copies device symbols again the next time you connect that iPhone or iPad. The only thing you can lose is data inside a simulator, such as test accounts in an app you installed there.
These files are often larger than DerivedData. On the Mac we checked while writing this, with Xcode 26.6, two iOS simulator runtimes took 15.0 GB on their own. This guide covers each kind of file in order of how much it usually frees.
What each one is
Four different things get called "simulator files". They live in different places and are removed in different ways.
- Simulator runtimes: the iOS, watchOS, tvOS or visionOS system each simulator runs. Several GB each. macOS stores them as disk images outside your home folder, so remove them with Xcode or
simctl, not in Finder. - Simulator devices (
~/Library/Developer/CoreSimulator/Devices): one folder per simulated iPhone or iPad, holding the apps and data you put on it. - Device Support (
~/Library/Developer/Xcode/iOS DeviceSupport, pluswatchOS DeviceSupportandtvOS DeviceSupport): debug symbols Xcode copied from real devices, one folder per device model and system version. - Simulator caches and preview devices (
~/Library/Developer/CoreSimulator/Cachesand~/Library/Developer/Xcode/UserData/Previews): files the simulator and SwiftUI previews rebuild on their own.
Step 1: Measure before you delete
Find out which of the four is large on your Mac. The first command lists installed runtimes with a total at the end. The others show folder sizes.
xcrun simctl runtime listdu -sh ~/Library/Developer/CoreSimulator/Devices ~/Library/Developer/CoreSimulator/Caches ~/Library/Developer/Xcode/UserData/Previewsdu -sh ~/Library/Developer/Xcode/*DeviceSupport/* | sort -rh | head -15If a folder does not exist, du says so. That is fine: you have nothing of that kind to remove.
Step 2: Remove simulators Xcode can no longer run
After an Xcode update, simulators made for a runtime you no longer have stay on disk. Xcode marks them unavailable. One command removes all of them and leaves every simulator you can still use.
xcrun simctl list devices unavailablexcrun simctl delete unavailableThis does not use the Trash. Any app data inside those simulators is gone.
Step 3: Remove runtimes you no longer test against
This is usually the biggest saving. In Xcode, open Settings > Components, select a platform version you no longer need and delete it. From Terminal, simctl can show what it would delete before it deletes anything. Keep the runtime that matches your current Xcode, and any older version your app still supports and you test on.
xcrun simctl runtime delete --notUsedSinceDays 90 --dry-runxcrun simctl runtime delete --notUsedSinceDays 90xcrun simctl runtime delete 90E0CA78-FBDA-4524-89C4-EC96EF2D94D3You can download a runtime again at any time in Xcode > Settings > Components.
Step 4: Clear Device Support for old system versions
Each time you connect a device running a system version Xcode has not seen, Xcode copies that version's symbols to your Mac. The folders for versions you no longer own or test stay there. Quit Xcode, then delete the versions you do not need, or all of them. Xcode copies symbols again the next time you connect that device, which takes a few minutes.
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/*Check the path before you press Return. rm -rf does not use the Trash. To keep the option of putting folders back, move them to the Trash in Finder.
Step 5: Reset simulators you still use, and clear previews
A simulator you still use can hold several GB of installed apps and data. Erasing it keeps the simulator and returns it to a clean state. Simulators must be shut down first. SwiftUI previews keep their own separate set of simulator devices, which Xcode recreates the next time a preview runs.
xcrun simctl shutdown all
xcrun simctl erase allxcrun simctl --set previews delete allWhat to leave alone
Two neighbours of these folders are not disposable.
- Archives (
~/Library/Developer/Xcode/Archives): the builds and debug symbols for versions you shipped. You need them to read crash reports for those versions. - UserData (
~/Library/Developer/Xcode/UserData), apart from its Previews folder: your key bindings, themes and code snippets.
When to let an app do it
Disk Housekeeper lists these in Smart Clean with the size of each: iOS, watchOS and tvOS device symbols, simulator caches, SwiftUI preview builds, and simulators Xcode no longer supports. Items you might want to keep, such as device symbols, are not ticked for you. Folders go to the Trash by default so you can put them back. Unavailable simulators are removed with Apple's own xcrun simctl delete unavailable, which cannot be undone, so that item is never ticked for you either. Disk Housekeeper does not delete simulator runtimes; use Step 3 for those. Scanning, previews and your first 2 GB of cleaning are free.
Questions
Is it safe to delete iOS DeviceSupport?
Yes. The folder holds debug symbols Xcode copied from devices you connected. Xcode copies them again the next time you connect a device with that system version, which takes a few minutes.
Is it safe to delete Xcode simulators?
Yes. You can create a simulator again in Xcode at any time. You lose only the apps and data inside the simulators you delete.
Where are Xcode simulators stored on a Mac?
Simulator devices are in ~/Library/Developer/CoreSimulator/Devices. Simulator runtimes are stored by macOS as disk images outside your home folder. List them with xcrun simctl runtime list.
What does xcrun simctl delete unavailable do?
It deletes simulator devices that the current Xcode cannot run, usually ones left behind by an older Xcode or a removed runtime. Simulators you can still use are kept.
How do I delete old simulator runtimes?
In Xcode, open Settings > Components and delete the platform version. In Terminal, run xcrun simctl runtime delete with the runtime's identifier, or with --notUsedSinceDays 90. Add --dry-run first to see what would be deleted.
How much space do simulators and Device Support take?
It depends on how many system versions you keep. A single simulator runtime is several GB. On the Mac we checked, two iOS runtimes took 15.0 GB. Measure yours with the commands in Step 1.