Help · Mac storage

How to clear Xcode's cache.

If you build apps, Xcode is often the biggest thing on your Mac after your own files: build data, simulators for every iOS version you've tried, debug symbols for every device you've plugged in, and archives of every release. Some of it rebuilds by itself; some you should keep.

Want to see what's worth clearing? Pangalin Space Manager lists Xcode's build data, caches and simulators, each with a note on what it is. The scan is free and changes nothing.

Quit Xcode and the Simulator first. Everything below lives in ~/Library/Developer. In Finder choose Go › Go to Folder… (⇧⌘G) and paste the paths.

Safe to delete: it rebuilds

Review first

Other developer tools

Package managers keep their own caches too. Use each tool's own clean-up command: brew cleanup, npm cache clean --force, pip cache purge, swift package purge-cache. These delete permanently and the caches rebuild as you install packages. For Docker, see reclaiming Docker's disk space.

See every developer cache, rated.

Pangalin Space Manager lists Xcode's DerivedData, simulator caches, previews and SwiftPM cache as safe to clean, device support one OS version at a time (the newest for each platform marked for review), and simulators, docsets and each archive, one row at a time, as worth a review, each with a note on what it is. Its Janitors run other tools' own clean-up commands (Homebrew, iOS Simulators, Docker, npm, pip and more), after a confirmation that says plainly they delete permanently. Janitors need a licence, because the space they free can't be measured in advance.

Janitors in Pangalin Space Manager: other tools' own clean-up commands, such as Homebrew, iOS Simulators and npm, listed with the button that runs each one.

Free scan · The scan changes nothing · First 5 GB freed free, then $25 a year · Notarised by Apple · Apple silicon, macOS 13 or later