What is the iOS DeviceSupport folder, and can you delete it?

The iOS DeviceSupport folder holds debug symbols that Xcode copies from each iPhone or iPad you connect, one subfolder per iOS version, and old ones are safe to delete.

Shiva ChandraMaker of Clean House · · 2 min read
Short answer

iOS DeviceSupport is the folder where Xcode stores debug symbols copied from every iPhone or iPad you connect. Each iOS version gets its own subfolder. It is safe to delete old versions: Xcode copies the symbols again the next time you connect a device running that version.

Path
~/Library/Developer/Xcode/iOS DeviceSupport
What it is
Debug symbols Xcode copied from connected iPhones and iPads
Typical size
A few gigabytes per iOS version; it adds up over years of updates
Made by
Xcode
Safe to delete?
Safe to clear
Comes back?
Yes, Xcode copies the symbols again the next time you connect that device or iOS version

What is in this folder?

When you plug in a device and run an app from Xcode, Xcode copies the system symbols from the device so the debugger can show readable stack traces. Each iOS version and build gets a subfolder such as a version number followed by a build code. Apple Watch and Apple TV have matching folders next to it, named watchOS DeviceSupport and tvOS DeviceSupport.

Every iOS update you install on a test device adds another subfolder, and Xcode never removes the old ones. That is how this folder reaches tens of gigabytes on a Mac that has been used for development for a few years.

Is it safe to delete?

Yes, for versions you no longer test on. The files are copies of data that still lives on the device, so deleting them loses nothing permanent. The next time you connect a device on that iOS version, Xcode spends a few minutes copying the symbols again before it lets you debug.

If you keep one device on an older iOS version for testing, leave that version's folder and delete the rest.

How do I clear it by hand?

  1. Quit Xcode.
  2. In Finder press Shift-Command-G, paste the path above, and open the folder.
  3. Move the subfolders for iOS versions you no longer use to the Trash, or the whole folder if you want it all back.
ls ~/Library/Developer/Xcode/"iOS DeviceSupport"
The command lists the versions that are stored. Quit Xcode before removing anything, because Xcode may be reading symbols for a connected device.

How do I stop it growing?

There is no setting to limit it. Deleting old iOS version folders after each major iOS release keeps the total in check.

How Clean House handles it

Clean House recognizes this folder as iPhone debugging support, made by Xcode, and rates it as something that comes back: Xcode copies the symbols again when you connect the device. The Why card says so before you clear anything, and the files go to the Trash first.

Questions

Is it safe to delete iOS DeviceSupport?

Yes. The symbols are copies from your device and Xcode copies them again the next time you connect it.

Why is iOS DeviceSupport so big?

Xcode adds a few gigabytes of symbols for every iOS version and build you connect and never removes the old ones.

Is iOS DeviceSupport the same as an iPhone backup?

No. A backup lives in MobileSync and holds your phone data. DeviceSupport only holds debug symbols.

Sources

  1. Apple Developer: Xcode documentation
  2. Apple Developer: Adding identifiable symbol names to a crash report