# Xcode Taking Up Space: DerivedData, simulators and more

> Xcode can take tens of gigabytes on a Mac. Every folder it uses, what each one is for, which are safe to delete, and the one you should keep if you ship apps.

Canonical: https://bytesweep.app/xcode-storage-cleanup.html
Last updated: 2026-11-13

## Xcode is taking up all my space

Often tens of gigabytes on a working Mac, spread across six folders, none of which Xcode ever cleans up on its own. Here is each one, what it is for, and whether you can delete it.

Updated 25 October 2026

[Measure it in 10 seconds](https://bytesweep.app/download.html) [Buy · $29.99](https://bytesweep.app/pricing.html)

**Free to try for 3 days.** Cleaning needs a licence: one payment per computer.

### Measure it first

One command tells you how the total splits across Xcode's folders, so you know which one to go after:

```
du -sh ~/Library/Developer/Xcode/* ~/Library/Developer/CoreSimulator 2>/dev/null | sort -h
```

### The six folders

#### DerivedData — usually the biggest · safe to delete

Build intermediates, indexes and module caches, one folder per project, kept forever including for projects you deleted long ago.

```
~/Library/Developer/Xcode/DerivedData
```

Deleting it costs one slow rebuild and nothing else. It is also the standard fix for Xcode behaving strangely, which is why every iOS developer knows the path by heart.

#### iOS DeviceSupport — large · safe to delete

Symbol caches copied from every physical device you have ever connected, one folder per iOS build. Several gigabytes each, and they accumulate for phones you no longer own.

```
~/Library/Developer/Xcode/iOS DeviceSupport
```

Xcode re-copies these the next time you plug in a device running that iOS version — a slow first connection, no other cost.

#### CoreSimulator devices — large · mostly safe

Each simulated device has its own filesystem, and they are never reclaimed. Use Xcode's own command rather than deleting folders, so its database stays consistent:

```
xcrun simctl delete unavailable
```

To go further, `xcrun simctl delete all` removes every simulator device. Simulator runtimes themselves are managed in **Xcode → Settings → Components**.

#### Archives — small but irreplaceable · keep

Every build you have ever shipped, with its dSYM debug symbols.

```
~/Library/Developer/Xcode/Archives
```

**This is the one to leave alone.** Without the dSYM for a released build you cannot symbolicate crash reports from users running it — the stack traces stay as hex addresses forever. If you must reclaim here, keep the archives for every version still in the wild.

#### And again after the next iOS release

DerivedData is back the day you build, DeviceSupport grows with every device you plug in, and this is a chore rather than a fix. Bytesweep's Developer files page lists four of these folders by name, each with its size: DerivedData, iOS DeviceSupport, simulator devices and Archives. Under Archives it says that nothing rebuilds them, and it undoes any clean-up for seven days — which matters on the day you clear the wrong project.

[Try it free for 3 days](https://bytesweep.app/download.html) [Buy · $29.99](https://bytesweep.app/pricing.html)

#### Swift Package Manager cache — safe to delete

Cloned dependency repositories, re-fetched on demand.

```
~/Library/Caches/org.swift.swiftpm
```

#### Old simulator runtimes and old Xcode versions — safe with care

A previous Xcode.app is several gigabytes on its own, and its runtimes add more. Keep the version you still need for an older project; delete the rest through the Finder, then remove its associated runtimes in Settings → Components.

### Two habits that keep it down

#### Delete DerivedData per project, not wholesale

Each subfolder is named after a project. Clearing the whole folder forces a rebuild of everything you are currently working on; clearing the ones belonging to projects you finished last year costs nothing at all.

#### Check DeviceSupport after every iOS release

It grows by one folder per iOS build across every device you connect, so it climbs quietly all year. Two minutes each September keeps it from becoming 30 GB.

### Questions

#### Is it safe to delete DerivedData?

Yes. It is entirely derived from your source, which is what the name means. The only cost is that the next build of each affected project is a full one.

#### Will deleting DeviceSupport break debugging on my phone?

No. The symbols are fetched from the device again when you next plug in one on that iOS version. The first connection afterwards takes a few minutes longer.

#### Can I delete Xcode Archives?

You can, but think first. Archives hold the dSYM files for builds you shipped, and without them crash reports from those versions cannot be symbolicated. Keep anything still in users' hands; delete old betas freely.

#### Why is Xcode.app itself so large?

It ships the toolchains and SDKs for every platform Apple supports. You can remove unused simulator runtimes in Xcode → Settings → Components, but the app bundle itself is what it is.

#### Does Xcode clean any of this up automatically?

No. None of these folders has a size limit or an expiry. That is the whole reason this page exists.

### From the blog

Shorter pieces that go deeper on one part of this guide.

[Every article](https://bytesweep.app/blog/index.html)

- [**Xcode Archives and dSYMs: the one folder not to delete** Archives hold the exact binary you shipped and the symbol files that turn a user's crash report into a line number. They cannot be regenerated, and every cleanup guide tells you to delete them.](https://bytesweep.app/blog/xcode-archives-dsym.html)
- [**Deleting iOS simulators safely, and what simctl really removes** CoreSimulator keeps a runtime per iOS version and a device per configuration, and both accumulate. The commands that remove what is genuinely unused, and the caches simctl does not touch.](https://bytesweep.app/blog/xcode-simulators-cleanup.html)
- [**iOS DeviceSupport is 30 GB of iPhones you no longer own** Xcode keeps a full symbol cache for every iOS version of every device ever plugged in, and never removes any of them. What the folder is for, when you need it, and how to clear it without breaking debugging.](https://bytesweep.app/blog/ios-device-support-cleanup.html)
- [**DerivedData: what Xcode keeps there and when to delete it** DerivedData is usually the largest folder in a developer's home directory. What Xcode stores in it, why it never shrinks, when deleting it fixes a build, and the one part of it worth keeping.](https://bytesweep.app/blog/deriveddata-explained.html)

### See them in one list

Bytesweep's Developer files page lists DerivedData, iOS DeviceSupport, simulator devices and Archives by name, each with its size and a line on what brings it back. The Swift Package Manager cache and old copies of Xcode are not on that list; they show up in the Storage scan like any other folder. Everything you clear goes to a restore point, so undo is one click for seven days.

[Try it free for 3 days](https://bytesweep.app/download.html) [Buy a licence · $29.99](https://bytesweep.app/pricing.html)

- [Mac Pro](https://bytesweep.app/mac.html)
- [Mac Lite](https://bytesweep.app/mac-app-store.html)
- [Windows](https://bytesweep.app/windows.html)
- [Linux](https://bytesweep.app/linux.html)

Related: [Docker disk space](https://bytesweep.app/docker-disk-space-mac.html) · [every developer cache on a Mac](https://bytesweep.app/mac-cleaner-for-developers.html) · [the full Mac list](https://bytesweep.app/free-up-space-on-mac.html) · [Developer tools](https://bytesweep.app/dev-servers.html)

[See everything Bytesweep Pro for Mac does](https://bytesweep.app/mac.html)
