How much space does Xcode take on a Mac?
- About 3 GB for the app itself. Xcode’s Mac App Store page listed its size as 3.1 GB on 27 November 2026. That is the download, before any platform or simulator is added.
- The rest is in two Developer folders. Build output, device support files and simulator devices collect in
~/Library/Developer, and they are usually what makes Xcode feel huge. - Most of it rebuilds. Xcode’s Components settings show what each platform would free, and Apple describes DerivedData as something that can be re-created at any time from your source files.
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
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.
- DerivedData: Xcode Help says that by default Xcode stores derived data for all of your projects here, and that it holds project indexes, logs and build products, including intermediate build files.
- Archives: the builds you made with Product › Archive. These are the only copies of what you shipped; see Xcode archives.
- iOS DeviceSupport: files Xcode copies from each iPhone or iPad you plug in. The device support page explains which ones are stale.
- CoreSimulator/Devices: one folder per simulator device, with the apps and data you put on it.
- Packages: Apple’s documentation says
xcodebuild -runFirstLaunch -checkForNewerComponentsstores newer hardware support files in~/Library/Developer/Packages/.
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
- DerivedData. It comes back the next time you build; the first build is slower. Steps and what to expect are in the DerivedData guide.
- Platforms you don’t target. In Xcode › Settings › Components, click the information button next to a platform or simulator runtime and choose Delete. Xcode shows the space each one gives back, and the Get button downloads it again.
- Simulators that no longer work.
xcrun simctl delete unavailableremoves devices whose runtime is gone. Xcode simulators covers the ones you still have. - Old device support folders, for iOS versions your devices no longer run. Xcode copies them again when you plug that device in.
- Not Archives, unless you’re sure. An archive holds the build and the symbols you need to read crash reports for a version you shipped.
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