Reference / Developer artifacts
Is it safe to delete ~/Library/Developer/Xcode/DerivedData on a Mac?
Safe to delete
Your tools rebuild it the next time you build.
~/Library/Developer/Xcode/DerivedData
What it is
Xcode rebuilds this automatically on next build
If you delete it
Next Xcode build of any existing project will recompile from scratch (~2-10 min)
How to get it back
(automatic on next Xcode build)Recovery time
about 5 minutes
Category
Developer artifacts
Don't guess — let diskspace check it live.
It pressure-tests the path against your live disk state and stages it reversibly, so you never lose anything you needed.
$ brew install tymrtn/diskspace/diskspace
$ diskspace explain ~/Library/Developer/Xcode/DerivedData # verdict + live pressure-test