# Xcode DerivedData in a project

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

**Safe to delete.** Yes. Rebuilds on the next Xcode or xcodebuild build that uses it.

## What it is

Xcode writes build products, indexes and logs to the DerivedData folder a build names (xcodebuild -derivedDataPath, or a custom location in Xcode's settings) and makes it again on the next build.

Only a folder holding nothing but what Xcode makes there (Build, Logs, its .noindex caches, SourcePackages, TestResults, info.plist) and no archive, so never a project's own folder; your sources, schemes and archives live elsewhere. Nothing goes while Xcode or xcodebuild runs, or within 3 days of a build.

## Where it is

Usually a DerivedData folder an Xcode build was pointed at (`xcodebuild -derivedDataPath`, or a custom location in Xcode's settings). DiskCity recognises it by what's inside, wherever it is.

## How to remove it

1. Quit Xcode, xcodebuild, XCBBuildService, SWBBuildService first.
2. Leave anything opened or changed less than 3 days ago (for a folder, its newest file counts). DiskCity waits that long too.
3. Remove it from inside the app or tool that made it, or find it in Finder and move it to the Trash.

## 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 only suggests it once it hasn't been used for 3 days. It waits until Xcode is closed.

## Sources

- https://developer.apple.com/library/archive/technotes/tn2339/_index.html
- https://developer.apple.com/documentation/xcode/build-system

Checked 2026-10-28.
