---
title: "Xcode DerivedData · MacMelon"
description: "DerivedData is Xcode's per-project build cache of indexes and intermediate products. It can be removed and rebuilt; Disk Housekeeper can add it to Smart Clean."
url: "https://macmelon.com/glossary/deriveddata"
---

# DerivedData

Xcode's build cache: indexes, module caches, and intermediate products that the next build can recreate.

By [Harish Ganapathi](https://macmelon.com/about), Co-founder · Updated November 21, 2026

DerivedData is the directory Xcode uses for a project's generated build state. Indexes, precompiled modules, and intermediate build products land there so the next compile can reuse them. The usual location is ~/Library/Developer/Xcode/DerivedData. Your source tree is not stored there.

Removing it does not delete the project. It makes the next build slower, because Xcode reconstructs the cache. [Disk Housekeeper](https://macmelon.com/apps/disk-housekeeper) Smart Clean can include DerivedData. You get a preview first, and the removal goes to the Trash by default. See [Clear Xcode DerivedData](https://macmelon.com/use-cases/clear-xcode-deriveddata).

## Where Xcode DerivedData is, and how big it gets

The default path is `~/Library/Developer/Xcode/DerivedData`, with one subfolder per project or workspace. Each can run to several gigabytes, and folders for projects you no longer open are never removed. Xcode shows and lets you change the path in Settings > Locations.

-   [How to clear Xcode DerivedData safely](https://macmelon.com/guides/how-to-clear-xcode-deriveddata-safely)

## Questions

What is DerivedData in Xcode?

It is the folder where Xcode keeps build products, indexes and module caches for each project, so the next build can reuse them.

Is it safe to delete Xcode DerivedData?

Yes. Your source code is not stored there. Xcode rebuilds the folder, and the first build afterwards is slower.

Where is the DerivedData folder?

At `~/Library/Developer/Xcode/DerivedData` unless you changed it in Xcode's Settings > Locations.

## Apps

[Make room for what matters. Clear clutter with confidence. ### Disk Housekeeper](https://macmelon.com/apps/disk-housekeeper)

## Related guides

[### How to clean developer files on macOS](https://macmelon.com/guides/how-to-clean-developer-files-on-macos)[### How to clear Xcode DerivedData safely](https://macmelon.com/guides/how-to-clear-xcode-deriveddata-safely)

## Related use cases

[### Clear Xcode DerivedData](https://macmelon.com/use-cases/clear-xcode-deriveddata)[### Clean npm, Gradle, and Cargo caches](https://macmelon.com/use-cases/clean-developer-caches)

## Related terms

[Apple's integrated development environment for building apps on Apple platforms. ### Xcode](https://macmelon.com/glossary/xcode)[Files a developer tool keeps so the next build or install can skip a download or a compile. ### Developer cache](https://macmelon.com/glossary/developer-cache)[Disk Housekeeper's cleaner for developer caches and node\_modules, behind a preview. ### Smart Clean](https://macmelon.com/glossary/smart-clean)
