Xcode DerivedData on Mac: what it is and whether you can delete it
MACMAN FOLDER · 2026-11-16
~/Library/Developer/Xcode/DerivedData
What it is
~/Library/Developer/Xcode/DerivedDataSafe to delete nowXcode build products — regenerated
Why it grows
When Xcode builds a project, it stores intermediate files, build products and the index it uses for code search in this folder, one subfolder per project.
Every project you have opened and built gets a folder, and the folder stays after you stop opening that project. With many or large projects it can reach tens of GB.
How to check its size
In Finder, choose Go > Go to Folder (Shift-Command-G), enter ~/Library/Developer/Xcode/DerivedData, then use Get Info (Command-I) to see the size.
In Terminal, run du -sh ~/Library/Developer/Xcode/DerivedData to see the size.
You can also see the DerivedData location in Xcode > Settings > Locations and open it in Finder from there.
The free MacMan Scan diagnosis lists this folder with its size and grade. The scan is read-only.
How to shrink it safely
- Quit Xcode first.
- Open this folder in Finder, move the project folders you want to clear (or all of them) to the Trash, then empty the Trash.
- The next time you open a project, Xcode builds it again and rebuilds the index. The first build takes longer than usual.
How MacMan Scan handles this folder
MacMan Scan lists the items inside this folder one by one on the cleanup screen, checked by default. Nothing is deleted until you press the delete button yourself.
Related folders
- CoreSimulator on Mac: what it is and whether you can delete it
- iOS DeviceSupport on Mac: what it is and whether you can delete it
- Xcode Archives on Mac: what it is and whether you can delete it
The scan is read-only. Diagnosis alone deletes nothing.