SiftMac
Where it’s stored · Updated 27 November 2026

How much space does Xcode take on a Mac?

By Mohit Nippanikar, who makes SiftMac

The short answer

Check your own Mac. SiftMac’s free scan lists what’s using space and says, for each item, whether it comes back on its own.

Download the free scanMac · macOS 13+ · nothing leaves your Mac

On this page
  1. Where Xcode keeps its files
  2. How much space it takes
  3. Moving parts of it to another drive
  4. What you can clear without losing work
  5. Questions

1. Where Xcode keeps its files

/Applications/Xcode.app
~/Library/Developer/Xcode/DerivedData
~/Library/Developer/Xcode/Archives
~/Library/Developer/Xcode/iOS DeviceSupport
~/Library/Developer/CoreSimulator/Devices
~/Library/Developer/Packages

The App Store puts Xcode in Applications. Everything it makes while you work goes into the Developer folder in your own Library, which is hidden: in Finder press Shift-Command-G and paste the path.

2. How much space it takes

Apple states one number: the size on Xcode’s Mac App Store page, 3.1 GB when this page was written. The page also names the macOS version that release needs, so check it before updating an older Mac.

Platforms come on top. Apple’s documentation says Xcode lets you install only the components you use, and that Xcode › Settings › Components shows the installed components along with the amount of storage you can recover by removing each. That list is the honest number for simulator runtimes on your Mac; Apple doesn’t publish a fixed size for them.

For the Developer folder, measure it, largest last:

du -sh /Applications/Xcode.app
du -sh ~/Library/Developer/* ~/Library/Developer/Xcode/* 2>/dev/null | sort -h

DerivedData grows with every project you build, and Xcode Help itself calls the folder “often large”. Nothing trims it for you, so on a Mac that has built apps for a while, the measurement tells you more than the App Store figure does.

3. Moving parts of it to another drive

Apple documents one move: DerivedData. In Xcode’s Locations settings, the Derived Data pop-up menu can be set to Relative, which keeps the folder inside each project or workspace folder, or Custom, an absolute path you choose, which can be a folder on another drive. Choosing Default brings it back to ~/Library/Developer/Xcode/DerivedData.

Two cautions. Builds read and write that folder constantly, so a slow drive makes every build slower, and the drive must be connected whenever you build. And Xcode Help advises against backing up a relative DerivedData folder, sending it to others, or checking it into source control.

Apple’s documentation doesn’t describe moving Xcode.app, simulator devices or device support files to another disk, so leave those where they are and trim them instead.

4. What you can clear without losing work

xcrun simctl delete unavailable

If you’re finished with Xcode altogether, uninstalling Xcode lists what the app leaves behind and what to keep.

Questions

How many GB is Xcode on a Mac?

The Mac App Store page listed 3.1 GB on 27 November 2026. Platforms, simulator runtimes and the Developer folder in your Library come on top, and vary from one Mac to the next.

Why is Xcode taking up so much space?

Usually it isn’t the app. It’s ~/Library/Developer: DerivedData from every project you’ve built, simulator devices, and device support files. Run the du command above to see which.

Can I install Xcode on an external drive?

Apple’s documentation doesn’t cover that. What it does document is moving DerivedData to a custom path in Locations settings, and removing platforms you don’t use in Components.

Is it safe to delete the whole ~/Library/Developer folder?

Not in one go. It also holds Archives, which don’t come back. Clear DerivedData, unused simulators and old device support, and leave Archives alone.

How SiftMac handles it. SiftMac’s Developer files category lists stale DerivedData, old device support files and unused simulators separately, each with its own verdict, most of them Rebuilds; it never lists Archives. What you pick there is deleted straight away rather than kept on the Undo Shelf, and simulators go through xcrun simctl delete. It doesn’t remove platforms or runtimes; that is Xcode’s Components settings.

Download SiftMac · scanning is free, and so is up to 20 GB of cleaning for 7 days · See how it works