DiskSpace AI

Xcode taking up space? What you can delete (and what you can't)

In short

DerivedData and iOS DeviceSupport recreate themselves: delete them freely. Simulators and simulator runtimes can go if you don't test on those iOS versions. Keep the archives of builds you shipped: they hold the symbols you need to read crash reports.

DerivedData: delete it

~/Library/Developer/Xcode/DerivedData holds build results and indexes. It often reaches 10–50 GB. Deleting it loses nothing: the next build takes longer while Xcode makes it again. Close Xcode first.

iOS DeviceSupport: delete the old ones

~/Library/Developer/Xcode/iOS DeviceSupport keeps debug symbols for each iOS version of the devices you connected, a few GB each. Xcode copies them again the next time you connect a device with that version.

Simulators and runtimes

Each simulator lives in ~/Library/Developer/CoreSimulator/Devices. To delete the ones for iOS versions you no longer have installed:

xcrun simctl delete unavailable

The runtimes themselves (each iOS version, 5–10 GB) are managed in Xcode → Settings → Components (Platforms in older Xcode), or with xcrun simctl runtime list and xcrun simctl runtime delete.

Archives: keep the shipped ones

~/Library/Developer/Xcode/Archives holds each build you archived. Old test builds can go (Xcode → Window → Organizer), but keep those of versions that are in the App Store: their dSYM files turn crash reports into readable code.

Old Xcode versions

An extra Xcode in Applications is 10+ GB, and a leftover Xcode_x.y.xip in Downloads is 7–12 GB more. If you don't need that version, delete both.

DiskSpace AI does this for you

It analyzes your Mac in minutes, tells you what each folder is and only selects what recreates itself. Your files are kept 7 days in case you change your mind. Free during the beta.

Download the Beta

Folders in this guide

More guides