Xcode storage
How to clean Xcode DerivedData safely
DerivedData is where Xcode keeps build products and indexes, and Xcode can recreate all of it. You can delete it once Xcode and any running builds have stopped, though the next build and indexing will take longer. Leave Xcode Archives and your project folders alone, because they live elsewhere and can’t be recreated.
Where DerivedData lives
By default it is in ~/Library/Developer/Xcode/DerivedData, with one folder per project or workspace. Each folder name starts with the project name followed by a random string, so you can tell them apart. In Xcode you can also open Settings, go to Locations, and click the small arrow next to the DerivedData path.
Archives sit next door in ~/Library/Developer/Xcode/Archives. They hold the builds you exported and the symbol files you need to read crash reports from those builds, so keep them out of this cleanup.
Deleting it by hand
If one project is misbehaving, delete only that project’s folder. If you want space back, sort the folders by date and remove the ones for projects you haven’t opened in a while.
- Let running builds, tests and previews finish, then quit Xcode.
- Open the DerivedData folder and look at each folder’s name, date and size.
- Move the project folders you picked to the Trash.
- Open your current project, let Xcode index and build it, and then empty the Trash.
What Mint adds
Mint’s Disk tab lists DerivedData under Rebuildable, split into rows so you can choose project by project. The rows are ticked only while Xcode and its build tools are not running. If a build is in progress, they stay unticked.
For rows Mint ticked, the button is Delete permanently, with one confirmation, since moving build output to the Trash frees nothing until the Trash is emptied. The same scan also finds simulator caches, package manager caches and node_modules folders.
Frequently asked questions
Is it safe to delete Xcode DerivedData?
Yes, as long as nothing is building. Xcode recreates it, and the cost is a slower next build and a fresh round of indexing.
Will deleting DerivedData delete my code?
No. Your source code lives in your project folder. Check the path before you delete so you don’t select a project or Archives folder by mistake.
Can the App Store edition of Mint clean DerivedData?
No. The App Store edition can’t reach ~/Library, so DerivedData cleanup is part of the Direct and Setapp editions.
See how much DerivedData you have
Run a scan in Mint, open Rebuildable, and delete the project folders you no longer need.