Guides · Xcode

Is it safe to delete iOS DeviceSupport? Keep one version, clear the rest

Every time you connect an iPhone or iPad to Xcode on an iOS version it hasn't seen, Xcode copies several gigabytes from it and never removes them. Here is what that folder holds, which versions you still need, and how to clear the rest.

Short answerYes, for versions none of your devices runs any more. ~/Library/Developer/Xcode/iOS DeviceSupport holds the debug symbols Xcode copied from each iOS version you debugged on, 5 to 7 GB per version. Keep the version your test devices run today and move the older folders to the Trash. If you later connect a device on a version you removed, Xcode copies its symbols again, which takes a few minutes.

What's in iOS DeviceSupport

The first time you connect a device on a new iOS version, Xcode spends a few minutes preparing it. Part of that is copying the system's own libraries, with their symbols, to your Mac. With them, the debugger and crash logs can show names for iOS's code instead of bare addresses. Xcode keeps one folder per version:

~/Library/Developer/Xcode/iOS DeviceSupport/
  iPhone17,3 26.2 (23C55)/
  iPhone17,3 27.3 (24C5037i)/
  iPhone17,3 27.3 (24C5049d)/

Each name is the device's model identifier, the iOS version and its build. Folders from older Xcode versions have only the version and build, such as 16.4 (20E247). Inside each one is an Info.plist and a Symbols folder with a copy of the system's frameworks and libraries.

The same happens for other platforms, in watchOS DeviceSupport, tvOS DeviceSupport and visionOS DeviceSupport, if you debug on those devices. Everything below applies to them too.

How big it gets

Each version is 5 to 7 GB, and nothing removes old ones. Every point release and every beta build gets its own folder, so a summer of betas leaves one behind for each build you debugged on. On the Mac this guide was written on, one iPhone had left three folders taking 19 GB, and two of them were betas of the same iOS version:

du -sh ~/Library/Developer/Xcode/*DeviceSupport/* | sort -h
5.3G  …/iOS DeviceSupport/iPhone17,3 26.2 (23C55)
6.6G  …/iOS DeviceSupport/iPhone17,3 27.3 (24C5037i)
6.7G  …/iOS DeviceSupport/iPhone17,3 27.3 (24C5049d)

Which versions to keep

FolderKeep it?
The version a test device runs todayKeep. Xcode would copy it again the next time you run on that device.
Older releases no device of yours runsDelete. They are only used with a device on that exact version.
Betas you have since updated pastDelete. Each folder matches one build, so an old beta's symbols don't help with the next beta or the release.
A folder whose name you can't readLook inside first. Its Info.plist names the version.

To see what a device runs, open Settings › General › About on it, or connect it and open Window › Devices and Simulators in Xcode.

How to delete old versions

  1. Quit Xcode, so it isn't copying symbols into the folder while you change it.
  2. List the versions with their sizes, with the du command above.
  3. Move the versions you don't need to the Trash. In Finder, choose Go › Go to Folder and paste ~/Library/Developer/Xcode/iOS DeviceSupport. Or in Terminal on macOS 15 and later:
    cd ~/Library/Developer/Xcode/"iOS DeviceSupport"
    trash "iPhone17,3 26.2 (23C55)"
    The quotes matter: the names have spaces and brackets in them.
  4. Empty the Trash when you're sure. Until then the space isn't free, but you can still put a folder back.

Avoid rm -rf "iOS DeviceSupport"/*: it removes the version your phone runs too, and there is no undo.

What happens if you remove a version you still need

Nothing breaks. The next time you run on a device with that version, Xcode sees it has no symbols for it and copies them again before debugging starts. That takes a few minutes and the same few gigabytes. Your apps, the device and your projects are not affected either way.

Will it come back?

Yes: one folder for every new iOS version or beta you debug on. Clearing it after you update your test devices, or a couple of times a year, keeps it to one or two versions.

Device support, sorted by version

DevSweep lists every iOS, watchOS, tvOS and visionOS device support folder by version, build and device, ticks the older ones, and leaves the newest version of each platform unticked for you to decide. What you pick goes to the Trash, and History can put it back.