Guides Xcode
How to free up space from Xcode on a Mac
Xcode quietly keeps build data, device files and simulators that can grow to 50 GB or more. Here's what each folder is, and which ones are safe to clear.
Updated 17 November 2026
Where Xcode keeps its files
Almost everything Xcode stores outside your projects is in one hidden folder: ~/Library/Developer. To see how big each part is, open Terminal and run:
du -sh ~/Library/Developer/Xcode/* ~/Library/Developer/CoreSimulator/* 2>/dev/null | sort -h
The biggest folders are usually these:
| Folder | What it is | Safe to clear? |
|---|---|---|
Xcode/DerivedData |
Build data for every project you’ve built | Yes |
Xcode/iOS DeviceSupport |
Files for each iOS version of devices you’ve plugged in | Yes |
CoreSimulator/Caches |
Simulator caches | Yes |
CoreSimulator/Devices |
The simulators themselves | Use Xcode’s tools |
Xcode/Archives |
Builds you’ve shipped | Only for apps you no longer support |
DerivedData
DerivedData holds build output, indexes and logs, one folder per project. Xcode rebuilds it the next time you build, so clearing it is always safe. The first build afterwards takes longer.
Quit Xcode, then move the folder to the Trash:
open ~/Library/Developer/Xcode/DerivedData
Folders for projects you no longer work on are the best place to start. Each is named after its project, followed by a random code.
Device support files
Each time you connect an iPhone or iPad running a new iOS version, Xcode copies files for that version into iOS DeviceSupport. Each copy can be several gigabytes, and old ones are never removed. There are matching folders for watchOS and other platforms.
Remove the versions your devices no longer run. If you connect a device with that version again, Xcode copies the files again, which takes a few minutes.
Simulators
Simulators for iOS versions you no longer have installed stay on disk. Remove them in Terminal:
xcrun simctl delete unavailable
To remove whole iOS versions you don’t test on, open Xcode › Settings › Platforms, select one and click the minus button.
Simulator caches, in ~/Library/Developer/CoreSimulator/Caches, are safe to move to the Trash.
Archives
Archives are the builds you made with Product › Archive. Each keeps the debug symbols you need to read crash reports from that version. Keep archives for any version people still use.
To remove old ones, open Window › Organizer in Xcode, choose Archives, and delete the versions you no longer need.
Old copies of Xcode
Each copy of Xcode in Applications takes many gigabytes. If you have an old version or a beta you no longer use, move it to the Trash.