What are Xcode Archives, and should you delete them?

Xcode Archives hold the exact builds you submitted to the App Store or TestFlight, together with the symbols that turn crash reports into readable code, so keep the versions people still run.

Shiva ChandraMaker of Clean House · · 2 min read
Short answer

Xcode Archives are the builds you created with Product, Archive to submit an app to the App Store or TestFlight. Each one holds the app and its dSYM debug symbols. Keep archives of versions people still use, because you need them to read their crash reports. Old releases can go.

Path
~/Library/Developer/Xcode/Archives
What it is
Archived app builds with their dSYM debug symbols, grouped by date
Typical size
Tens to hundreds of megabytes per archive; more for large apps or games
Made by
Xcode (Product > Archive)
Safe to delete?
Keep
Comes back?
No. An archive cannot be rebuilt byte for byte from source, and a lost dSYM cannot be recovered

What is in this folder?

Archives are grouped in date folders, and each .xcarchive bundle contains the built app, a dSYMs folder and build information. Xcode Organizer shows them under Archives.

The dSYM files map memory addresses in a crash report back to function names and line numbers. Apple's documentation advises retaining the Xcode archive for each release, because without the archive for a version you cannot symbolicate its crash reports.

Is it safe to delete?

Not by default. Unlike a cache, an archive is the only copy of that exact build and its symbols. If a user on an old version reports a crash, a missing archive means an unreadable crash log. Rebuilding from source later will not match, because the binary and its UUID differ.

Archives for versions that nobody runs any more, or ones where you stored the dSYMs on your crash-reporting service, are fine to delete. Keep at least the latest build of each version still on the App Store.

How do I clear it by hand?

  1. Open Xcode, then Window, Organizer, and choose Archives.
  2. Check which versions are still live. In App Store Connect, confirm the oldest version users still run.
  3. Delete older archives from the Organizer, or move the date folders in the path above to the Trash.
If you upload dSYMs to a crash reporter, confirm they are there before deleting the archive.

How do I stop it growing?

Archive only when you are submitting a build, and delete archives of superseded versions after each release.

How Clean House handles it

Clean House shows this folder as Xcode app archives and rates it Look first, with the plain note that you lose the exact build and its crash-report symbols. It suggests keeping the archives of versions people still use. Nothing is cleared without your say-so, and the Trash gives you an undo.

Questions

Can I delete Xcode Archives?

You can, but you lose the exact build and its dSYM symbols. Keep archives of any version users still run.

What are dSYM files for?

They translate addresses in a crash report into function names and line numbers.

Where does Xcode store archives?

In ~/Library/Developer/Xcode/Archives, in folders grouped by date.

Sources

  1. Apple Developer: Adding identifiable symbol names to a crash report
  2. Apple Xcode Help: If logs aren't symbolicated