Mac storage basics · Developer tools

How do I free up space used by Xcode?

Short answer: Quit Xcode, then clear DerivedData, old Archives you don't need, old iOS DeviceSupport versions and unused simulators/runtimes, all under ~/Library/Developer.

Xcode spreads data across several places under ~/Library/Developer. The big, safe-to-clear ones are:

  • DerivedData (build products and indexes) — delete its contents; rebuilt on the next build.
  • Archives — old app archives you've already distributed; keep ones you might need for crash symbolication.
  • iOS DeviceSupport — support files for each device OS version you've connected; old versions can go.
  • Simulators and runtimes — see removing simulators.

Quit Xcode first. Storage Studio's What's Using Space measures DerivedData, device support and simulator data by name, and Free Up Space can clear developer caches with a review first.

Last reviewed

Also available as Markdown and JSON.