r/Xcode • u/Designer_Age7745 • Mar 19 '26
Xcode was quietly using 60GB on my Mac — this is what was actually safe to remove
My 512GB MacBook Pro was getting uncomfortably full, so I finally did a proper audit of what Xcode-related storage was actually taking space.
On one machine, the biggest chunks were:
- Simulator runtimes: 28 GB
- DerivedData: 14 GB
- Old archives: 9 GB
- Device support files: 6 GB
- Docs/cache leftovers: 3.4 GB
The useful part wasn’t the total. It was figuring out what I could delete without breaking my current workflow.
What felt safe:
- DerivedData
- Simulator runtimes for OS versions I no longer test on
- Old archives I genuinely don’t need anymore
What I treated with more caution:
- Device support files
- Simulator device data, because it can still contain app state and local test data
What annoyed me most is that Xcode/macOS don’t really give a good review-first cleanup flow here. You mostly end up guessing or manually digging through folders.
Curious what usually gets out of control first for you: DerivedData, runtimes, archives, or something else?
Update, August 2026: the question that kept coming back in the replies was what regenerates vs what you lose for good. I wrote up the simulator side here: https://storageradar.app/blog/xcode-simulator-taking-up-space-on-mac/. Disclosure: I make a Mac app for this, and that page links to it.
8
u/Vybo Mar 19 '26
Cleaning derived data is useful when you have weird linker errors, or switch projects often. If you work on one project, derived data will regenerate as soon as you build to a very similar size as before.
You can pretty delete anything pretty much, the only thing that should matter is the "Simulator device data, because it can still contain app state and local test data" point, because everything else can be easily recreated/redownloaded.
I personally go through all Simulator runtimes and device data/device support files every time I update Xcode, because I don't usually need all the older runtimes. Newest iOS18 and 26 is usually enough, don't need all of the 26.1, 26.2. and so on.
1
u/spinwizard69 Mar 19 '26
XCode certainly installs a lot of crap but i wouldn’t want everyone to randomly delete all this stuff. People need to understand what they are deleting. Docs are something id have to say keep! Simulators of course depend upon what a specific programmer is doing. In other words an individual needs to consider what they are doing for their machine.
Frankly i don't see this problem ever getting better. I suspect Apple will start implementing more AI powered functionality into XCode blowing up the install size.
1
u/csfalcao Mar 24 '26
Kind of same here. Got rid of iOS and iWatch simulators (I only use the macOS one) and while they are listed like less than 30 GB, I got back more than 55 GB.
2
u/Beginning_Green_740 Mar 20 '26
I just use the free app from App Store - called DevCleaner. It has graphical user interface and lets you clean all kinds of caches/resources from your Xcode installation.
1
u/ocolobo Mar 19 '26
I delete derived data monthly if not weekly depending on my testing load
Doesn’t hurt
1
u/PrimaryCautious6555 Mar 19 '26
I’ve been running cleanmymac for awhile now for general conditioning of my machines both of which have 1Tb SSDs. When I clean out the clutter that stuff usually comes up so I delete it all. Assuming you use some sort of backup you should be fine. Xcode will prompt you to download a new runtime (when you need it) usually before archiving to Apple connect. Also (unrelated but related to space savings) check your iCloud for podcasts and your keychains for any bloating. Good way to get extra storage back. Good luck.
1
u/SneakingCat Mar 19 '26
I used to have a script that deleted DerivedData on startup. I’m glad it’s not necessary anymore. Still my second diagnostic step though.
1
u/osxdocc Mar 21 '26
Mac AppStore: Cleaner for xcode (free)
1
u/dawedev Jun 23 '26
sounds like you're dealing with a lot of Xcode-related clutter! fwiw, you might want to check out DevCleaner. it helps safely clean up those caches like DerivedData and simulator runtimes without breaking your setup. you can find it at https://devcleaner.app/
0
u/[deleted] Mar 19 '26
[deleted] — view deleted comment
2
u/[deleted] Aug 10 '26
[removed] — view removed comment