How to Uninstall a Downloaded iOS Simulator Runtime in Xcode

How to Uninstall a Downloaded iOS Simulator Runtime in Xcode

Written by

in

Quick answer: Simulator runtimes are not inside Xcode.app, so deleting Xcode, clearing caches, or removing a device does not uninstall them. Delete the runtime from Xcode > Settings > Platforms, or run xcrun simctl runtime delete <id>, then download a fresh copy. On older Xcode versions the runtime bundles live in /Library/Developer/CoreSimulator/Profiles/Runtimes.

Why this happens

A simulator runtime is a separate download from Xcode itself. It is installed system-wide under /Library/Developer/CoreSimulator, not inside Xcode.app and not in ~/Library. That is why deleting Xcode and reinstalling it from the App Store leaves the old iOS runtime sitting there, and why clearing ~/Library/Caches/com.apple.dt.Xcode changes nothing.

The second source of confusion is the difference between a device and a runtime. A device is one entry in the simulator list — a name, an OS version, and a folder of app data. The runtime is the actual iOS system image that every device of that version boots from. Resetting a device, deleting it, and creating it again only touches the device. If the runtime image itself is damaged — a download that was interrupted, or a runtime left over from an older macOS — every new device you create from it will fail with Unable to boot the iOS Simulator.

So the fix is to remove the runtime, not the device, and then download it again.

How to fix it

Quit Xcode and the Simulator app before you start, so nothing is holding the runtime files open.

1. Delete the runtime from Xcode Settings (current Xcode versions)

This is the safest route because Xcode cleans up its own bookkeeping.

  1. Open Xcode > Settings (called Preferences in older versions).
  2. Go to the Platforms tab (in older Xcode it is the Components tab).
  3. Find the iOS runtime you want gone in the list.
  4. Select it and click the minus button, then confirm the deletion.
  5. Click the plus button to download a fresh copy of the same version.

If the runtime is stuck in a half-downloaded state and the minus button is unavailable, move on to the command line below.

2. Delete it with simctl runtime

Recent Xcode versions ship a runtime subcommand that lists and removes installed runtimes without touching the rest of CoreSimulator.

xcrun simctl runtime list

You get one line per installed runtime, with a name, a build number, and an identifier. Copy the identifier for the runtime you want to remove, then:

xcrun simctl runtime delete <runtime-identifier>

Run xcrun simctl runtime list again to confirm it is gone. This is the cleanest option when Xcode’s UI refuses to remove a broken runtime.

3. Remove the runtime bundle from /Library/Developer/CoreSimulator/Profiles/Runtimes

On older Xcode versions — and on any version where the runtime still exists as a .simruntime bundle — the accepted fix is to delete the bundle directly. Note the path: it is the system-level /Library, not ~/Library.

ls /Library/Developer/CoreSimulator/Profiles/Runtimes

You will see entries such as iOS 7.1.simruntime. Delete only the one you want to reinstall:

sudo rm -rf "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime"

Two cautions. First, quote the path, because runtime names contain spaces. Second, delete only .simruntime bundles — nothing else in that folder. Newer Xcode versions store runtimes as disk images elsewhere under /Library/Developer/CoreSimulator instead of as bundles, which is why this folder may be empty or missing on a current install. If that is your situation, use method 1 or 2 instead.

After deleting, relaunch Xcode and download the runtime again from Settings > Platforms.

4. Delete the device as well, if it is also broken

Deleting a device does not free the runtime, but it is worth doing once the runtime is reinstalled so you start from a clean device.

In Xcode, open Window > Devices and Simulators, select the simulator in the left-hand list, right-click it, and choose Delete. From the command line:

xcrun simctl list devices
xcrun simctl delete <device-udid>

You can also sweep up devices whose runtime is no longer installed:

xcrun simctl delete unavailable

Then create a new device with File > New Simulator or the + button in Devices and Simulators.

5. Reset CoreSimulator state if the runtime still will not go away

If the runtime is listed but cannot be deleted, or the Simulator still reports Unable to boot the iOS Simulator after reinstalling, restart the CoreSimulator service.

xcrun simctl shutdown all
killall -9 com.apple.CoreSimulator.CoreSimulatorService

Quit Xcode first, run those two commands, then reopen Xcode. The service relaunches automatically the next time Xcode or simctl needs it.

If you want to wipe all simulator device data at the same time — this erases every simulator’s contents, so use it deliberately — run:

xcrun simctl erase all

Do not delete the whole /Library/Developer/CoreSimulator folder by hand. It holds every installed runtime and every device, and Xcode does not always rebuild it cleanly.

How to prevent it

  • Remove runtimes through Xcode > Settings > Platforms or xcrun simctl runtime delete, not by dragging folders around in Finder.
  • Never delete and reinstall Xcode.app to fix a simulator problem — the runtimes are not in the app bundle and will survive the reinstall.
  • Let runtime downloads finish before quitting Xcode; an interrupted download is the usual cause of a runtime that will not boot.
  • Keep an eye on free disk space. Runtimes are large, and a full disk produces failed installs and failed boots.
  • After a major Xcode upgrade, delete the old runtimes you no longer test against instead of keeping every version installed.

FAQ

Does deleting a simulator in Devices and Simulators uninstall the runtime?

No. It removes the device configuration and its data container only. The iOS system image stays installed and can be used by any other device of the same version.

Where are simulator runtimes stored?

Under /Library/Developer/CoreSimulator. Older Xcode versions keep them as .simruntime bundles in Profiles/Runtimes; newer versions store them as disk images managed by Xcode and simctl runtime. Either way, they are outside your home folder and outside Xcode.app.

Do I need to reinstall Xcode to get a working simulator back?

Almost never. Delete the damaged runtime, reinstall just that runtime from Settings > Platforms, and create a fresh device. Reinstalling Xcode does not remove runtimes, so it rarely fixes a boot failure anyway.

Sources & credits

Parts of this guide are adapted from content licensed under CC BY-SA 4.0; this article is shared under the same license.