Xcode · Archives
Can I delete Xcode archives?
Only the ones you never distributed. Apple's documentation says you must keep the archive for every build you ship, because its dSYM files are what turn that build's crash reports into readable function names, and no later build can stand in for them. If they are taking too much room, copy ~/Library/Developer/Xcode/Archives to another drive, check the copy, and then remove them from your Mac.
What an archive is
When you choose Product → Archive, Xcode builds your app for distribution and stores the build, with its debugging information, in a bundle: an archive. You see them in Window → Organizer, under Archives, and that is where Distribute App sends a build to App Store Connect or exports it.
On disk they are in ~/Library/Developer/Xcode/Archives, one folder per day you archived, each holding .xcarchive bundles. Inside each are the built app, in Products, and its symbol files, in dSYMs. To see which days take the most space, and then every archive:
du -sh ~/Library/Developer/Xcode/Archives/* 2>/dev/null | sort -hfind ~/Library/Developer/Xcode/Archives -name "*.xcarchive" -maxdepth 2Why Apple says to keep them
A release build keeps its debug symbols in separate dSYM files, so the app you ship is smaller. A crash report from that build is only readable with that build's own dSYMs: the two are matched by a build ID, and building the same code again, with a different Xcode or different settings, gives a different one. So an archive cannot be remade later. Apple's documentation puts it simply: you must keep the archive for each build of your app you distribute, or you might not be able to diagnose an issue from its crash reports.
If you uploaded the symbols with a build to App Store Connect, Apple adds the names to the crash reports it gives you in Xcode's Crashes organizer. Crash reports that reach you any other way, from a tester's Mac or a customer's email, still need the dSYMs on your Mac.
Which ones are safe to delete
- Archives you never distributed: a test archive, or one that failed validation and was never uploaded or exported. No crash report will ever come from them.
- Everything else is a candidate for moving, not deleting. That includes old versions nobody runs any more, if you would ever want to read a crash report from them.
Move them to another drive
- Quit Xcode.
- In Finder, choose Go → Go to Folder, type
~/Library/Developer/Xcode/Archivesand press Return. - Copy the date folders you want to keep to an external drive or a backup folder. Keep the folder structure as it is.
- Check the copy: Control-click a copied
.xcarchive, choose Show Package Contents, and make suredSYMsis there. - Drag the originals to the Trash, and empty it once you are sure.
If you need an archive on the Mac again, copy it back into the same folder. Use the Trash rather than rm -rf for all of this: an archive deleted outright cannot be rebuilt.
The rest of ~/Library/Developer
Archives are often not the biggest thing Xcode keeps. DerivedData is rebuilt by the next build (where DerivedData lives), device support folders come back when you next connect a device (iOS DeviceSupport), and old simulator runtimes can be removed with simctl (old simulator runtimes).
Where the app comes in
Both editions of RefreshYourMac measure Xcode Archives, each day's archives on their own row, and rate them Backup recommended, with the reason: they may be App Store submissions, and their dSYMs are needed to read crash reports. A scheduled clean never takes them, nor does Clean All Safe unless you move the category there yourself. You pick them one at a time, and the main button is Move Selected to…, which copies them to the drive you choose and removes the originals only once the copy exists. Anything you clean instead goes to the Trash. The Mac App Store edition sees them once you allow it your Developer folder.
What to do next: see these numbers for your own Mac. Download RefreshYourMac free, or get it on the Mac App Store.
What it costs to have an app do this
| RefreshYourMac | CleanMyMac | MacKeeper | |
|---|---|---|---|
| Pay once | $24.99 | €119.95 on MacPaw’s store; $89.99 for CleanMyMac X on the Mac App Store | subscription only |
| Yearly | $14.99 a year, first 7 days free | $39.99/yr on the Mac App Store; €39.95/yr on MacPaw’s store | €71.40 for the first year, 1 Mac. Their page shows it against a €119.40 list price |
| Monthly | $1.99 a month | $9.99/mo | €10.95/mo |
| Account needed | No | Yes | Yes |
Before you pay anything, both versions give you 3 free scans. CleanMyMac and MacKeeper prices read from their own pages and the Mac App Store on 27 October 2026; the full comparison is at RefreshYourMac vs CleanMyMac and MacKeeper.
Frequently asked questions
Where are Xcode archives stored?
In ~/Library/Developer/Xcode/Archives, one folder for each day you archived, each holding .xcarchive bundles with the built app and its dSYM files. Xcode lists them in Window → Organizer, under Archives.
Is it safe to delete old Xcode archives?
Only for builds you never distributed. Apple says to keep the archive for every build you ship, because its dSYM files are needed to read that build’s crash reports and a later build cannot replace them. Move the others to another drive instead.