AAmpleCapacity

Guide · Xcode

Is it safe to delete Xcode DerivedData?

Xcode can make all of it again from your source files. The cost is time: your next build of each project starts from scratch. Here is what the folder holds, what not to confuse it with, and how to remove it.

Updated 10 November 2026.

What DerivedData is

Apple's Xcode help: "By default, Xcode stores derived data for all of your projects in ~/Library/Developer/Xcode/DerivedData." It "consists of project indexes, logs, and build products including intermediate build files."

By default each project gets its own folder inside, named after the project or workspace. Apple also notes that the folder "is often large and can be re-created at any time from your source files."

What changes if it goes

Apple itself gives removing a project's DerivedData as part of a fix. The Xcode 26 release notes describe a build failure whose workaround includes quitting Xcode, removing the DerivedData for the project, then restarting Xcode and building again.

Don't confuse it with Archives

Archives live next door, in ~/Library/Developer/Xcode/Archives. Apple describes an archive as "a build of your app, including debugging information." It is what you send to the App Store, and what Xcode uses to make sense of crash reports from that build.

Apple is direct about keeping them: "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." More on Xcode archives.

How to remove it

  1. Quit Xcode.
  2. In Finder, choose Go > Go to Folder, or press Shift-Command-G. Type ~/Library/Developer/Xcode/DerivedData and press Return.
  3. Move everything inside to the Trash. To reset just one project, move only its folder.
  4. Empty the Trash. Until you do, the space is not free.

For one project, from inside Xcode, there is also Product > Clean Build Folder, or Shift-Command-K. An Apple engineer describes it as removing "all those build products and intermediate files Xcode created for that project".

If you changed where Xcode keeps derived data, the Locations pane of Xcode's settings shows the folder.

What AmpleCapacity does with DerivedData. Xcode build files are labelled Safe. AmpleCapacity will not move them while Xcode is open, leaves out .xcuserstate files, and moves the rest to its vault, where you can put it back for seven days. It needs the Developer plan. It also explains the other large Xcode folders, such as Simulator runtimes and iOS device support files.

See what is on your Mac

The scan is free and changes nothing. It shows every item it finds, what made it, and what happens if it goes. You pay once, only if you want AmpleCapacity to clear it.

Sources

  1. Apple, Xcode Help: Manage the locations of project-generated files (location, contents, one folder per project, re-created from source, Archives location).
  2. Apple: Xcode 26 release notes (removing a project's DerivedData as part of a workaround).
  3. Apple: Distributing your app for beta testing and releases (what an archive is).
  4. Apple: Building your app to include debugging information (keep the archive for each build you distribute).
  5. Apple developer forums, answer by an Apple DTS engineer: thread 835883 (what Clean Build Folder removes).
  6. Apple: Go directly to a specific folder on Mac and Free up storage space on Mac (Go to Folder, the Trash).