Xcode is often the hungriest app on a developer Mac. DerivedData alone can exceed 20–50 GB.
Deleting it does not touch your source code. The next build reindexes and recompiles until the cache is warm again.
Pair DerivedData cleanup with DeviceSupport, simulators and Archives when Storage still will not move.
Is DerivedData safe to delete?
Yes. It stores intermediate build products and indexes. Source code in your project folders is untouched.
Three ways to clear it
- Xcode → Settings → Locations → Derived Data → arrow → delete folders.
- Delete ~/Library/Developer/Xcode/DerivedData in Finder (quit Xcode first).
- Surface it in DoomDisk junk scan and move to Safe Bin.
rm -rf ~/Library/Developer/Xcode/DerivedData/*Other Xcode folders that grow
| Path | Notes |
|---|---|
| ~/Library/Developer/Xcode/Archives | Old archives — keep what you need for App Store |
| ~/Library/Developer/Xcode/iOS DeviceSupport | Symbols per iOS version |
| ~/Library/Developer/CoreSimulator | Simulator runtimes and data |
| ~/Library/Caches/com.apple.dt.Xcode | Xcode caches |
FAQ
Will deleting DerivedData break my project?
No. The next build is slower until indexes rebuild.
Can I delete only one project's DerivedData?
Yes. Inside DerivedData, folders are named after projects — remove only the ones you recognize.
Simulators vs DerivedData?
Different folders. Simulators can be larger; manage them in Xcode → Settings → Platforms / Components.