How to Clean Xcode DerivedData & Caches
Xcode is one of the biggest storage hogs on a developer's Mac. DerivedData, simulator runtimes, and build archives routinely consume 20–80 GB. OptiClear clears all of it safely in seconds.
What is DerivedData and why is it so large?
DerivedData stores compiled intermediate build products, index data, and code completion caches for every project you've opened. It grows without bound and can safely be deleted — Xcode rebuilds it on next build.
Simulator runtimes: the hidden 10–30 GB
Each iOS/watchOS/tvOS simulator you download can occupy 5–15 GB. You likely have runtimes for versions you no longer test. OptiClear's Developer Tools section lists them by size so you can remove outdated ones.
Other Xcode caches worth clearing
Xcode also stores Previews data, SwiftPM caches, and old device support files. OptiClear's Developer Tools mode removes all of these at once, showing the total space recovered before you confirm.
Frequently Asked Questions
Is it safe to delete DerivedData?
Yes. Deleting DerivedData only means your next build will take slightly longer to re-index. No source code or project settings are affected.
How often should I clean Xcode caches?
Most developers clean every 2–4 weeks, or whenever disk space drops below 20 GB. OptiClear can schedule automatic cleanups.