Guide · Xcode

Delete old Xcode simulators and runtimes

Xcode simulators live in ~/Library/Developer/CoreSimulator/Devices, and the iOS runtimes they boot are separate disk images of several gigabytes each. Run xcrun simctl delete unavailable to remove simulators whose runtime is gone, list runtimes with xcrun simctl runtime list, and remove old ones in Xcode, Settings, Components.

Why it gets big

There are two separate things here, and they take space in different ways.

  • Simulators are virtual devices, such as “iPhone 16 Pro on iOS 18.2”. Each one keeps its own installed apps, data and settings in ~/Library/Developer/CoreSimulator/Devices. Ones you use a lot grow as your test apps write data.
  • Runtimes are the operating systems the simulators boot: iOS, watchOS, tvOS and visionOS. Each version is a disk image of several gigabytes, managed by Xcode outside your home folder.

Each Xcode update tends to add a new runtime and a new set of simulators. Old ones stay. When you remove a runtime, the simulators built on it stay behind as “unavailable”. They can no longer start, but their data is still on disk. Parallel testing adds more: Xcode clones simulators into ~/Library/Developer/XCTestDevices and leaves the clones there.

How to clear it by hand

Quit Xcode and the Simulator app first. Then check the sizes:

du -sh ~/Library/Developer/CoreSimulator/Devices \
  ~/Library/Developer/CoreSimulator/Caches \
  ~/Library/Developer/XCTestDevices 2>/dev/null

1. Remove simulators that cannot start

xcrun simctl list devices
xcrun simctl delete unavailable

The list marks simulators that cannot start as unavailable; the second line removes all of them. These simulators have no runtime any more, so you lose nothing you could still use.

2. Remove simulators you no longer use

xcrun simctl list devices
xcrun simctl delete 0A1B2C3D-0000-0000-0000-000000000000

Copy the ID in brackets from the list. You can also select a simulator in Xcode, Window, Devices and Simulators, and delete it there. A new one takes seconds to create. Avoid xcrun simctl delete all unless you really mean every simulator.

3. Remove runtimes you no longer test on

xcrun simctl runtime list
xcrun simctl runtime delete <identifier>

Use an identifier from the list. The easier way is Xcode, Settings, Components (called Platforms in older Xcode versions): select a runtime you no longer need and delete it. Xcode can download any runtime again from the same place.

4. Clear the caches

  • ~/Library/Developer/CoreSimulator/Caches: shared caches that help simulators start faster. Safe to delete; rebuilt on next launch.
  • ~/Library/Developer/XCTestDevices: clones from parallel testing. Safe to delete; Xcode makes new ones on the next test run.
  • Safe: unavailable simulators, simulator caches and test clones.
  • Think first: a simulator with app data or a login you set up for testing. Deleting it loses that data.
  • Think first: runtimes. They download again, but they are large.

For build data, DeviceSupport and Archives, see how to clear Xcode DerivedData.

How Berth handles it

Berth asks Xcode’s own simctl tool what is installed, then sorts it out:

  • Re-downloadable: simulators reported as unavailable, removed with xcrun simctl delete unavailable. If there are none, Berth instead flags simulators not started in four months or more and removes only those, by ID.
  • Your call: unused simulator runtimes. Berth only offers a runtime when no simulator is set up on it, Xcode does not pick it for new simulators, and it has not been used for 30 days.
  • Rebuilds itself: simulator caches, and the test clones in XCTestDevices.

Simulators and runtimes are removed with Xcode’s own commands, so its device list stays consistent. Those commands do not use the Trash, and Undo cannot bring them back. Berth marks them “Can’t be undone” and leaves them out of the “add everything recommended” action. The caches and test clones go to the Trash as usual.

Berth never runs simctl delete all. Older runtimes that Xcode mounts straight from Apple’s download are not offered, because simctl cannot free that space.

Whatever Berth finds goes into a review tray first. A dry run shows exactly what would move, pre-flight checks make sure the owning app is closed, and everything goes to the macOS Trash, so Undo puts it back. Berth is free to scan and explore; one-click cleanup is part of Berth Pro, $14.99 one-time for 2 Macs. There is no account and nothing is uploaded.

Questions

Is it safe to delete Xcode simulators?

Yes. You lose only the apps and data inside the simulator. You can create a new one in seconds from Window, Devices and Simulators.

What does xcrun simctl delete unavailable do?

It removes simulators whose runtime is no longer installed. They cannot start any more, so removing them only frees space.

How do I delete old iOS simulator runtimes?

In Xcode, open Settings, Components, select the runtime and delete it. Or list them with xcrun simctl runtime list and remove one with xcrun simctl runtime delete.

Can I download a runtime again later?

Yes. Xcode downloads any supported runtime again from Settings, Components. It takes a while, since each one is several gigabytes.

Where are simulators counted in macOS storage?

In System Data, along with the rest of ~/Library/Developer. Berth splits it out as Xcode build data and simulators.

Make room.
See what’s filling your Mac.

Free to scan, explore and understand everything on your disk. Berth Pro adds one-click cleanup when you want it.

Find my old simulators, free

Free download · Version 1.0.0 · Signed and notarized by Apple

Berth runs on macOS. Send yourself the link and open it there.