Xcode cleanup · Updated September 14, 2026 · 7 min read

How to delete Xcode archives without losing important dSYMs

An .xcarchive is not ordinary cache. It can contain the exact app build and debug symbols needed to symbolicate crash reports.

Quick answer: open Xcode → Window → Organizer → Archives. Select an archive only after confirming its app version and upload history, then delete it in Organizer. Keep or separately back up archives and dSYMs for builds still distributed to users.

What an Xcode archive contains

Deleting an archive does not delete source code, but rebuilding the same commit may not recreate identical symbols. A shipped archive deserves different treatment from disposable Derived Data.

Find how much space archives use

du -sh ~/Library/Developer/Xcode/Archives
open ~/Library/Developer/Xcode/Archives

The first command measures the default archive folder. The second opens it in Finder. Use Xcode Organizer to match each archive to its app, version, and date.

A safe retention decision

ArchiveRecommendation
Current App Store or customer buildKeep it or verify its dSYM is retained elsewhere.
Active TestFlight/beta buildKeep while testers may report crashes.
Old internal build never distributedUsually removable after review.
Unknown provenanceDo not delete until identified.

Delete through Organizer

  1. Open Xcode → Window → Organizer.
  2. Select Archives and the correct app.
  3. Review version, build number, date, and distribution status.
  4. Back up a needed .xcarchive before removal.
  5. Delete only the selected obsolete archive.
Avoid blanket commands. Recursively deleting ~/Library/Developer/Xcode/Archives removes every local archive at once, including symbols for shipped builds. Age alone is not proof an archive is safe to discard.

Archive vs Derived Data

Derived Data contains rebuildable indexes and intermediates; an archive represents a distribution build. Start with Derived Data cleanup, then review unused Simulator runtimes. The developer storage guide covers other tools.

Review before cleanup.
TrimyMac helps identify large folders while keeping deletion decisions under your control.

Source

Archive behavior was checked against Apple's Xcode Organizer documentation on September 14, 2026.