The short answer

The Xcode app itself is under 4 GB (Xcode 27.1 on my Mac). What it makes while you work is far bigger: on the Mac measured for this post, device support files, simulators, simulator runtimes and build output came to more than 150 GB. Most of it is safe to clear:

  1. DerivedData (build output): safe; Xcode rebuilds it.
  2. iOS DeviceSupport: safe for iOS versions your devices no longer run.
  3. Simulators and runtimes: remove the ones you do not use, from Xcode’s own settings.
  4. Archives: keep those for versions people still use.

Xcode’s real size is not in Applications

Look at Xcode in your Applications folder and it seems reasonable: on my Mac, Xcode 27.1 takes under 4 GB. That number hides most of the cost. Everything Xcode makes while you work, the build output, the simulators, the files it copies off your iPhone, lives somewhere else, mostly in a folder macOS hides from you: Developer, inside the Library folder in your home folder.

Storage settings will not tell you much about it. It shows one number, often folded into the grey System Data bar, with no breakdown and no dates. So the space grows quietly, project by project and iOS version by iOS version, until the disk is full and you cannot see why.

When I measured my own Mac for this post, the total was startling. The device support folder held 63 GB, the simulators 49 GB, build output another 7 GB, and the simulator runtimes, which live in a system folder of their own, 34 GB. More than 150 GB in all, about forty times the size of Xcode itself. Most of it can go. The trick is seeing which parts.

See it first, with Klarity

Klarity, the Mac disk space analyzer I build, turns a folder into a map: every folder is a rectangle sized by the space it takes on disk, so the biggest thing is the biggest shape. Since version 1.3.1 it scans hidden folders too, which is exactly where Xcode keeps its leftovers.

Click Library in Klarity’s sidebar, and give Klarity access once if it asks. On a developer’s Mac, Developer is usually the largest rectangle on screen. Double-click it, then Xcode and CoreSimulator inside it, and the folders this post is about appear with their sizes.

Klarity 1.3.1 scanning the Library folder: Developer, with Xcode and CoreSimulator inside it, is the largest rectangle, ahead of Application Support, Caches and Containers
Klarity pointed at the Library folder: Developer, holding Xcode and CoreSimulator, takes most of the map.

Size is half the story. Klarity colours each rectangle by how long since it last changed: blue for this month, through green, gold and orange, to red for three years or more. In a Developer folder that colour does real work. A red build folder belongs to a project you have not opened in years. An orange device support folder is from an iOS version your phone left behind long ago. Old and big is the combination worth acting on, and the map shows both at once.

Select any rectangle and the inspector on the right shows its size, its share of the folder above it, how many items it holds, when it last changed, and the largest things inside. Klarity is $6.99 once on the Mac App Store, for macOS 14.6 or later, with no subscription, no account and no network access.

What each folder is, and whether it comes back

DerivedData: build output

Every project you build in Xcode gets a folder here, with the compiled app, the index Xcode uses for code completion and search, and logs. Old projects, renamed projects and copies of projects each leave their own folder behind. AI coding assistants can make such copies as they work; what AI coding tools leave on a Mac covers those. Safe to clear, and it rebuilds itself. Quit Xcode first. The next build of each project starts from scratch, so it is slower once, and Xcode re-indexes while you wait.

iOS DeviceSupport: files copied from your devices

The first time you connect an iPhone or iPad running an iOS version Xcode has not seen, it copies debugging information off the device. That is the “preparing device” wait. Each iOS version gets a folder of several gigabytes, and they pile up: on my Mac, eight folders, most from iOS 27 beta builds my devices have long since moved past, two of them 13 GB each. There is a watchOS DeviceSupport folder beside it that works the same way. Safe to clear for versions you no longer run. If you connect a device on that version again, Xcode simply copies the files again.

Simulators: one folder per simulated device

Each simulated iPhone, iPad or Watch you have created, or that Xcode created for you, keeps its own storage: the apps you installed on it, their data, photos you dragged in. They live under CoreSimulator, in a folder called Devices, with long random names that tell you nothing. I had 43 of them taking 49 GB. Safe to remove the ones you do not use, but do it from Xcode (below) so its list of simulators stays right. A removed simulator does not come back by itself; you can always create a fresh one.

Archives: the builds you shipped

Every time you choose Product → Archive, Xcode keeps the result in a folder named after the date. These do not rebuild themselves, and this is the one folder to be careful with: an archive holds the debug symbols that turn a crash report into readable function names. Keep the archive for every version still in your users’ hands. Archives for versions nobody runs any more, test builds and abandoned experiments can go.

Simulator runtimes: not in your Library at all

A runtime is the copy of iOS, watchOS or another platform that the simulators run on, and each one is several gigabytes. Here is the part many guides get wrong (our own System Data guide did too, until we corrected it): on current versions of Xcode and macOS, runtimes are not kept in your Library’s Developer folder. macOS stores them in a protected system location, outside your home folder, and Xcode attaches them like disks while you use them. One copy is shared by every version of Xcode on your Mac. On mine, iOS and watchOS runtimes take 34 GB there.

So a scan of your Library will not show them, and you cannot remove them by moving files. Klarity will not move anything inside the System folder to the Trash, and macOS would not let it anyway. Remove runtimes from Xcode’s own settings, as below. Developers on Apple’s forums report the occasional orphaned runtime that Xcode no longer lists and that cannot be deleted by hand; if that happens to you, report it to Apple rather than fighting the system.

Old copies of Xcode

A beta of Xcode kept next to the release, or an old version kept for one project, is several gigabytes each. Move the ones you no longer need to the Trash from Finder. Because runtimes are shared, removing an old Xcode does not remove its runtimes; check Components afterwards (below).

How to clear them from Xcode itself

Xcode has its own controls for most of this, and they are the safest route because Xcode keeps its records straight:

Or clear them straight from the map

For DerivedData, device support folders and old archives, Klarity is quicker, because you are already looking at the sizes and the ages. Right-click a rectangle, or use the Move to Trash… button in the inspector.

Klarity treats folders differently depending on where they are, and it is worth knowing how. Most of your Library is app data that apps need, so Klarity shows an extra warning before moving anything from it. Developer is an exception, along with Caches and Logs: clearing them is routine, so anything inside goes straight to the normal confirmation. Folders of 1 GB or more, which most of these are, need a deliberate slide to confirm, so a stray click cannot clear 13 GB.

Klarity’s confirmation for moving a 5.37 GB folder to the Trash: a slide-to-unlock control above a Cancel button
Large folders need a slide to unlock before they go to the Trash.

Klarity only ever moves things to the Trash. It never deletes anything outright and never empties the Trash for you, so a mistake can be put back right up until you empty it. And until you do empty it, the space is not free. Klarity rescans by itself after each move, so you see the rectangle disappear from the map.

What to keep

Xcode’s leftovers come back as you keep working, so this is not a one-off. A look at the Developer folder every few months, with age colouring on, keeps it from creeping back to a hundred gigabytes. If you want to go after old files elsewhere too, finding old files on a Mac uses the same red-is-old approach.

Questions people ask

How big is Xcode?

The Xcode app is under 4 GB (Xcode 27.1 on the author’s Mac), but the files it creates while you work are far larger. Device support files, simulators, simulator runtimes and build output took more than 150 GB on the Mac measured for this post, and most of that can be cleared safely.

Is it safe to delete Xcode DerivedData?

Yes. DerivedData is build output and indexes, and Xcode rebuilds it the next time you build each project. Quit Xcode first, and expect the first build afterwards to be slower while Xcode re-indexes.

Can I delete the iOS DeviceSupport folders?

Yes, for iOS versions your devices no longer run. Each folder holds debugging files Xcode copied from a device. If you connect a device on that version again, Xcode copies them again. Keep the folder for the version your phone runs now to avoid the wait.

Where are Xcode simulator runtimes stored?

On current versions of Xcode and macOS, runtimes are kept in a protected system location, not in the Developer folder in your Library, and one copy is shared by every installed Xcode. Remove them in Xcode, Settings, Components, not by deleting files.

Should I delete old Xcode archives?

Only for versions nobody uses any more. An archive holds the debug symbols that make crash reports readable, so keep the archive for every version of your app still in people’s hands. Test builds and abandoned experiments can go.

Why is Xcode taking up so much space on my Mac?

Most of the space is not the app. Xcode keeps build output (DerivedData), debugging files copied from each iOS version you connect (iOS DeviceSupport), one folder per simulated device, simulator runtimes and archives of the builds you shipped. They grow project by project and iOS version by iOS version, and Storage settings folds them into one number with no breakdown.

Where does Xcode store its files on a Mac?

In the Developer folder inside the Library folder in your home folder, which Finder hides: ~/Library/Developer/Xcode holds DerivedData, iOS DeviceSupport and Archives, and ~/Library/Developer/CoreSimulator/Devices holds the simulators. Simulator runtimes are the exception: current versions of macOS keep them in a protected system location outside your home folder.

How do I delete Xcode simulators?

In Xcode, choose Window, Devices and Simulators, then the Simulators tab, Control-click a simulator you do not use and choose Delete. Doing it from Xcode keeps its list of simulators right. To remove a whole runtime, use Xcode, Settings, Components instead.

Does deleting Xcode remove all its files?

No. Moving Xcode to the Trash removes only the app. DerivedData, device support files, simulators and archives stay in your Library, and simulator runtimes stay in their system location, shared by every Xcode. Remove runtimes in Xcode, Settings, Components before deleting the last copy of Xcode, and clear the Developer folder by hand if you are done with Xcode.

Will clearing Xcode files break my projects?

No. Your source code lives in your project folders, not in these. DerivedData, device support files and simulators are rebuilt or copied again when needed; the cost is a slower first build and a wait when you next connect a device. Archives are the exception: they do not come back, so keep those for versions still in use.

How often should I clean up Xcode files?

Every few months is enough for most developers, and after each major iOS release, when a new set of device support files and runtimes arrives. The leftovers come back as you work, so a quick look at the Developer folder, sorted by size and age, keeps it from growing back to a hundred gigabytes.

Updated on 28 November 2026: a short answer at the top, and more questions answered.

— Mukul