Xcode’s ~/Library/Developer/Xcode/iOS DeviceSupport folder can quietly grow to 15-20 GB or more. If you are cleaning your Mac, it is one of the biggest reclaimable chunks. You can safely delete old versions without breaking your projects.
Why this happens
Every time you connect a physical iPhone or iPad to your Mac, Xcode copies symbol data from that device into a versioned subfolder inside iOS DeviceSupport. The folder name matches the iOS version on the device, for example 17.5 or 18.1.
Xcode uses those symbols for one main job: symbolicating crash logs. When you get a crash report from a device running a specific iOS version, Xcode needs the matching symbols to translate memory addresses into readable function names, file names, and line numbers. Without them, crash logs stay unsymbolicated.
The folder grows because Xcode never cleans up old versions automatically. If you have tested on iOS 16, 17, and 18 over a year or two, you will have a separate subfolder for each point release you ever connected. Each one is several gigabytes. The data is not needed for building, archiving, or running your app on a current device. It is only needed if you still need to symbolicate crashes from that exact older iOS version.
How to fix it
You do not need to keep every version. Keep the iOS version you currently use for testing and any versions you still support and might need to debug. Everything else can go.
1. Check how much space it uses
Open Finder and go to the folder, or check from Terminal.
In Finder, press Shift + Cmd + G and paste:
~/Library/Developer/Xcode/iOS DeviceSupport
Then switch to List view and enable View > Show View Options > Calculate all sizes to see each version’s size.
From Terminal, run:
du -sh ~/Library/Developer/Xcode/iOS\ DeviceSupport/*
du -sh ~/Library/Developer/Xcode/iOS\ DeviceSupport
This shows you which versions are the largest and the total size. It is common to see 2-6 GB per version.
Close Xcode before deleting to avoid file locks.
2. Delete old iOS DeviceSupport versions
This is the accepted safe fix. You can delete individual version folders or the entire iOS DeviceSupport folder.
Option A: Delete only old versions (recommended)
Keep the folder for the iOS version currently on your test device. Delete the rest.
In Finder, select the folders for versions you no longer need and move them to Trash, then empty Trash.
In Terminal:
# Example: keep 18.5, delete an old 16.7 and 17.4 folder
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/16.7
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/17.4
Option B: Purge the entire folder
You can delete the whole iOS DeviceSupport directory if you want maximum space back:
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport
Nothing breaks permanently. The next time you connect an iPhone or iPad, Xcode will copy the symbol data again from the device for that specific iOS version. That copy takes a few minutes and Xcode may show Copying symbol files or Preparing debugger support.
You do not need to delete the version you are actively debugging if you want to avoid that wait. If you only test on one device, just keep that one folder.
3. Reclaim more space from other safe Xcode folders
If you still need space after cleaning iOS DeviceSupport, these related locations are also safe to clean with caveats:
DerivedData – safe to delete anytime:
~/Library/Developer/Xcode/DerivedData
This holds build artifacts, indexes, and intermediate files. Deleting it forces a clean rebuild and re-index next time you open the project. No source code is lost.
rm -rf ~/Library/Developer/Xcode/DerivedData/*
Archives – keep if you need to debug released builds:
~/Library/Developer/Xcode/Archives
Each .xcarchive is needed to symbolicate crashes from App Store or TestFlight builds and to re-distribute that exact build. Xcode manages this folder, but it never deletes archives on its own. Only delete archives for versions you will never need to debug again.
CoreSimulator – delete unavailable runtimes:
~/Library/Developer/CoreSimulator
This stores simulator runtimes and app data. Do not manually delete folders inside it with Finder if you can avoid it. Use the supported command to remove simulators for runtimes you no longer have installed:
xcrun simctl delete unavailable
If you want to wipe all simulator app data, use Device > Erase All Content and Settings in the Simulator menu instead of deleting files directly.
Caches – safe to delete:
~/Library/Caches/com.apple.dt.Xcode
This is a cache that Xcode recreates as needed. You can delete it while Xcode is closed.
rm -rf ~/Library/Caches/com.apple.dt.Xcode
4. Let Xcode rebuild what it needs
After cleaning, reopen Xcode and connect your test device once. Xcode will recreate iOS DeviceSupport for that connected iOS version and DerivedData for your next build. Verify in Window > Devices and Simulators that your device appears as ready. No further action is needed.
If you deleted an archive you later need, you cannot recreate it exactly without rebuilding from the same commit and Xcode version, so be selective there.
How to prevent it
- Review
iOS DeviceSupportevery few months and delete versions for iOS releases you no longer support. Keep only your current test version plus one or two recent versions if you still get crash reports from them. - Clean
DerivedDatawhen builds behave strangely or after switching branches. It will regrow, but it should not accumulate for months. - Run
xcrun simctl delete unavailableafter you delete an old simulator runtime in Xcode > Settings > Platforms. - Avoid keeping every simulator runtime installed. Remove runtimes for iOS versions you do not test against.
- Empty the Trash after deleting in Finder. The space is not freed until you do.
FAQ
Is it safe to delete the entire iOS DeviceSupport folder?
Yes. The folder only contains copies of symbols used for symbolicating crash logs. Deleting it does not delete your projects, source code, or archives. Xcode will copy the symbols again the next time you connect a device running that iOS version. If you want to avoid the re-copy wait, keep the folder for your current iOS version and delete only older ones.
Will Xcode redownload DeviceSupport after I delete it?
Xcode does not download it from Apple servers. It copies the symbols directly from the connected iOS device when needed. Connect the device via USB, unlock it, and wait for Xcode to finish preparing the device. That creates a new versioned folder for that iOS version.
Can I delete DerivedData and CoreSimulator too?
DerivedData is safe to delete at any time. You will just trigger a full rebuild and re-index. CoreSimulator data can be deleted, but use xcrun simctl delete unavailable or the Simulator’s Erase All Content and Settings rather than manually deleting folders inside ~/Library/Developer/CoreSimulator to avoid corrupting the simulator state.
Parts of this guide are adapted from content licensed under CC BY-SA 4.0; this article is shared under the same license.
