DevCleaner
Menu

Xcode cleaner

An Xcode cleaner that knows DerivedData from your project.

DevCleaner scans Xcode’s caches, labels each one Safe, Warning, or Danger, and leaves the risky rows unchecked. Safe cleanup is free.

Free to scan and clean safe caches. Pro for deep cleanup and automation.

What it looks at

LocationWhat it isTypical sizeLabel
Xcode/DerivedDataBuild intermediates, indexes, logs10 to 50 GBSafe
CoreSimulator/CachesSimulator dyld caches2 to 10 GBSafe
Xcode/UserData/PreviewsSwiftUI preview caches1 to 5 GBSafe
iOS DeviceSupportDebug symbols per iOS version2 to 15 GBWarning
CoreSimulator/DevicesSimulators and their data5 to 60 GBWarning
Xcode/Archives.xcarchive builds, including dSYMs1 to 20 GBWarning

Those sizes are the typical ranges from the DerivedData guide, not a promise for your Mac. DerivedData itself can be split into Compilation Cache, Module Cache, Symbol Cache, SDK Stat Caches, and per-project folders, so one cache can be reviewed without deleting every project.

The manual command

Quit Xcode first. Then:

du -sh ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Developer/Xcode/DerivedData

The next build of each project is a full rebuild. Do not delete DerivedData while a build is running. Swift Package Manager checkouts live inside it. Unavailable simulators are a different command, xcrun simctl delete unavailable, covered in how to remove old iOS simulators.

What the app adds

DevCleaner is a menu bar app for macOS 14 or later, Apple silicon and Intel. It is Developer ID signed and notarized by Apple. David Tereba makes it in Prague.