Is it safe to delete Xcode Archives on Mac?

Safe with care~/Library/Developer/Xcode/Archives

Only with care. Xcode Archives hold the builds and debug symbols for apps you shipped. Which ones you can delete, which to keep, and how to move them.

Updated 16 November 2026 · 4 min read

Verdict: Safe with care. Archives you never shipped are safe to delete, but an archive for a build you distributed holds the only exact copy of that build's debug symbols, and Apple says you must keep it. Delete test and abandoned archives in Xcode's Organizer, and move shipped ones to another drive rather than deleting them.

What lives in Archives

Every time you choose Product > Archive, Xcode saves the result in ~/Library/Developer/Xcode/Archives, the default Apple gives on its Xcode locations help page. Archives are grouped into one folder per day, and each one is an .xcarchive bundle containing:

  • The built app, ready to export or upload.
  • dSYM files, the debug symbol files that turn the addresses in a crash report into function names and line numbers.
  • Information about the build, such as its version, build number and date.

Apple's guide to building your app to include debugging information explains that when archiving for distribution, Xcode gathers all binaries and dSYM files for your app and stores them inside the archive.

What happens if you delete it

Nothing here rebuilds by itself. Deleting an archive loses, for good:

  • The exact app binary you shipped.
  • Its dSYM files. Apple's guide notes that a binary and a dSYM file only work together when they have identical build UUIDs, so building the same code again later does not produce symbols that match the shipped build.

Apple is direct about the consequence: "You must retain the Xcode archive for each build of your app you distribute. Without this archive, you might not be able to diagnose an issue from crash reports."

That applies to App Store and TestFlight builds as much as to builds you sent out yourself: the archive on your Mac is the copy you control, and for builds distributed outside the App Store it is often the only one.

Archives you never shipped carry none of that risk. A test archive is just a snapshot you can make again from your source code.

How to check its size safely

In Terminal, run:

du -sh ~/Library/Developer/Xcode/Archives/* 2>/dev/null | sort -h

This lists each dated folder with its size, biggest last. It only reads. For a single total, run du -sh ~/Library/Developer/Xcode/Archives. If you have never archived an app, the folder does not exist.

In Xcode, choose Window > Organizer and click Archives to see every archive by app, with its version and date. This is the best place to decide what goes, because it shows what each archive is rather than just a folder name.

In Finder, choose Go > Go to Folder, paste ~/Library/Developer/Xcode/Archives, select the folder and choose File > Get Info.

The safest way to get the space back

  1. In Xcode, choose Window > Organizer and click Archives.
  2. Choose an app in the sidebar and look through its archives.
  3. Delete archives you never distributed: test builds, builds that failed review or upload, and duplicates. Select one and press the Delete key, or Control-click it and choose to delete it, then confirm.
  4. For builds you did ship, keep the archive. If you need the room, copy the older dated folders from ~/Library/Developer/Xcode/Archives to an external drive, check the copy, then move the originals to the Bin.
  5. Empty the Bin.

Warning: emptying the Bin deletes archives for good. Make sure each shipped build has a copy somewhere before you do.

From Terminal, macOS 14 Sonoma and later include a trash command:

trash ~/Library/Developer/Xcode/Archives/"FOLDER NAME"

Replace FOLDER NAME with one of the dated folders. This moves it to the Bin, so you can still put it back. Avoid rm -rf here: there is no undo, and these files cannot be recreated.

What never to touch

  • The archive for any build you distributed, to the App Store, TestFlight or anyone else, unless you have a copy elsewhere.
  • The insides of an .xcarchive bundle. Removing the dSYMs folder to save space defeats the point of keeping the archive.
  • Archives your team or CI system relies on. Check whether anyone else symbolicates crash reports from your Mac first.

If you need space for development rather than storage, other Xcode folders are far easier. DerivedData rebuilds itself, and old iOS DeviceSupport folders come back when needed. Our guide to clearing Xcode DerivedData, simulators and archives covers them together.

How Headroom helps

Headroom never cleans Xcode Archives, because they cannot be rebuilt and only you know which builds you shipped. Its Space map shows them instead: open Library, then Developer, noted as "Xcode and simulators", and you can see how much the Archives folder holds next to DerivedData and the simulators, with Show in Finder on every row. The map is free. The $19 one-time licence adds the clearing tools elsewhere in the app. See the disk space map or download Headroom.

Questions

What happens if I delete an Xcode archive?

The build and its dSYM debug symbol files are gone for good. Rebuilding the same code does not give you a matching dSYM, so crash reports from that version may show bare addresses instead of function names.

Which Xcode archives can I delete?

Archives you never distributed: test archives, abandoned builds and duplicates from failed uploads. Keep the archive for every build you shipped to testers or the App Store.

Can I move Xcode archives to an external drive?

Yes. Copy the dated folders from ~/Library/Developer/Xcode/Archives to the drive, check the copy opens, then remove the originals. Xcode's Organizer only lists archives in the current location, so keep the drive somewhere you can find it.

Where does Xcode store archives?

By default in ~/Library/Developer/Xcode/Archives, in one folder per day, with each archive saved as an .xcarchive bundle. You can change the location in Xcode > Settings > Locations.