Is it safe to delete iOS DeviceSupport on Mac?
Safe~/Library/Developer/Xcode/iOS DeviceSupport
Yes. iOS DeviceSupport holds debug symbols Xcode copies from your devices, and it copies them again when needed. How to measure it and clear old versions.
Verdict: Safe. You can delete ~/Library/Developer/Xcode/iOS DeviceSupport, or just the old version folders inside it, because Xcode copies the debug symbols again from a device the next time you connect it. The only cost is a wait the first time you debug on that OS version again.
What lives in iOS DeviceSupport
Apple's guide to acquiring operating system symbol information explains it directly: Xcode automatically copies operating system binaries that contain symbols from each device you connect to your Mac, and saves them in ~/Library/Developer/Xcode/ under a folder for each platform, such as iOS DeviceSupport or watchOS DeviceSupport.
Inside, there is one folder per OS version and build that Xcode has seen. Xcode uses these symbols in two ways:
- To debug on a device, so the debugger can show names for system code rather than bare addresses.
- To symbolicate crash reports from devices running that version, turning addresses in system frameworks into readable function names.
Each version folder holds a full set of system binaries, so they add up quickly. Over a few years of iOS updates, and with several test devices, the folder fills with versions none of your devices run any more, and the old ones stay until you remove them.
What happens if you delete it
- Old versions you no longer test on: nothing at all. Xcode never needs them again unless a device on that version comes back.
- Versions your devices still run: rebuilt by themselves. The next time you connect that device, Xcode copies the symbols again. Xcode shows a progress message while it copies, and you have to wait for it to finish before debugging works properly.
- Crash reports from old OS versions: Xcode may not be able to name system frames in them until it has the matching symbols again.
Nothing in this folder is unique to your work. Your apps, projects, archives and signing settings are stored elsewhere.
How to check its size safely
In Terminal, run:
du -sh ~/Library/Developer/Xcode/"iOS DeviceSupport"/* 2>/dev/null | sort -h
This lists each OS version folder with its size, biggest last. It only reads and changes nothing. For every platform's folder at once:
du -sh ~/Library/Developer/Xcode/*DeviceSupport 2>/dev/null
This prints a total for iOS, watchOS, tvOS and visionOS DeviceSupport, for whichever ones exist. If Xcode has never been installed, there is nothing to show.
In Finder, choose Go > Go to Folder, paste ~/Library/Developer/Xcode/iOS DeviceSupport and press Return. Choose View > as List, then View > Show View Options, and tick Calculate all sizes.
The safest way to get the space back
- Quit Xcode.
- Check which OS versions your test devices run, in Settings > General > About on each device.
- In Finder, choose Go > Go to Folder and open
~/Library/Developer/Xcode/iOS DeviceSupport. - Select the folders for OS versions you no longer test on and press Command-Delete to move them to the Bin. Keep the ones that match devices on your desk.
- Repeat for watchOS DeviceSupport and the other platform folders if they exist.
- Empty the Bin to get the space back.
From Terminal, macOS 14 Sonoma and later include a trash command that moves an item to the Bin. Quote the name, because it contains spaces:
trash ~/Library/Developer/Xcode/"iOS DeviceSupport"/"FOLDER NAME"
Replace FOLDER NAME with the exact folder name from the list. You can still put it back until you empty the Bin.
Warning: rm -rf on these folders skips the Bin and deletes immediately. If you use it, read the path twice.
If you would rather fetch symbols ahead of time, for example before travelling with a device, Apple's guide gives the xcodebuild -prepareDeviceSupport command for an unlocked, attached device.
What never to touch
- Archives in
~/Library/Developer/Xcode/Archives. Those hold your own builds and their debug symbols, and they cannot be recreated. See is it safe to delete Xcode Archives. - Simulator devices in
~/Library/Developer/CoreSimulator. Use Xcode orsimctl, as the CoreSimulator page explains. - The folder for a device you are debugging right now. Wait until you have finished.
For the quickest win in the same place, DerivedData can go entirely. Our guide to clearing Xcode DerivedData, simulators and archives puts all of these in one place.
How Headroom helps
Headroom does not clean iOS DeviceSupport, because only you know which OS versions you still test on. Its Space map shows where the space has gone instead: your Library folder, then Developer (noted as "Xcode and simulators"), then each Xcode folder sized as a block, with Show in Finder on every row so you can remove old versions yourself. The map is free. The $19 one-time licence adds the clearing tools elsewhere in the app. See the disk space map or download Headroom.
Questions
What is the iOS DeviceSupport folder?
It is where Xcode keeps the operating system binaries with debug symbols that it copies from each iPhone or iPad you connect. Xcode uses them to debug on the device and to show function names in crash reports from it.
What happens if I delete iOS DeviceSupport?
Nothing breaks for good. The next time you connect a device running that OS version, Xcode copies the symbols again, which can take several minutes before you can run or debug.
Which DeviceSupport folders can I delete?
Folders for OS versions that none of your test devices run any more. Each folder is named after an OS version and build, so keep the ones that match the devices you still use.
Is there a watchOS DeviceSupport folder too?
Yes, Xcode keeps a separate folder for each platform, such as watchOS DeviceSupport and tvOS DeviceSupport, next to the iOS one. The same rules apply to each.