How to clean up Xcode and free space
Xcode quietly collects build files, simulators and device files. Most of it is rebuilt when needed.
DerivedData (safe)
Build output and indexes. Xcode rebuilds it on the next build.
rm -rf ~/Library/Developer/Xcode/DerivedData/*
Simulators (safe for unavailable ones)
Remove simulators for runtimes you no longer have installed:
xcrun simctl delete unavailable
Old simulator runtimes can be removed in Xcode → Settings → Platforms.
iOS DeviceSupport (mostly safe)
Debug symbols for every iOS version you connected a device with, in ~/Library/Developer/Xcode/iOS DeviceSupport. Old versions can go; Xcode copies them again when that device connects.
Archives (careful)
~/Library/Developer/Xcode/Archives holds builds you submitted. Keep the ones you may need to symbolicate crash reports.
~/Library/Developer/CoreDevice by hand. Connected devices can appear there as very large folders that are not really on your disk.Questions
Is it safe to delete DerivedData?
Yes. It only holds build output and indexes, which Xcode rebuilds. The next build will take longer.
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free beta for Mac.
Download for MacUpdated 2026-11-20