# Xcode DerivedData

Source: https://diskcity.app/folders/xcode-derived-data

**Safe to delete.** Yes. Rebuilds on your next Xcode build.

## What it is

Xcode writes each project's build products, indexes and logs here and recreates them on the next build.

Your projects, schemes and archives live elsewhere and are untouched.

## Where it is

- `~/Library/Developer/Xcode/DerivedData/*`

## How big is it?

```sh
du -sh "$HOME/Library/Developer/Xcode/DerivedData"
```

## How to remove it

1. Quit Xcode, xcodebuild, XCBBuildService first.
2. In Finder, choose Go > Go to Folder (Shift-Command-G), paste the path above and press Return.
3. Move its contents to the Trash.
4. Empty the Trash to get the space back. Until then, you can still put things back.

## What DiskCity does with it

DiskCity labels it as rebuildable and removes it when you approve, or on its own if you turn on Autopilot. It waits until Xcode is closed.

## Sources

- https://developer.apple.com/documentation/xcode/build-system

Checked 2026-10-23.
