Hi everyone, I’m an iOS developer working on a Mac with limited storage (256 GB).
I’ve noticed that the ~/Library/Developer folder is taking up almost 90 GB, mainly due to Xcode-related content. Inside it I see folders like:
Xcode/DerivedDataDocumentationCacheiOS DeviceSupportUserDataCoreSimulator/Devices
Before deleting anything, I’d like to understand which of these folders are safe to clean up, and what the potential side effects might be (for example, rebuild times, simulator re-downloads, etc.).
What is the recommended best practice to manage disk space when using Xcode on a low-storage machine?
Thanks in advance for your help.
The easy ones:
- You can delete
DerivedDataat any time. It grows back as you load and build projects. - In
iOS DeviceSupportyou can delete any OS versions that don't correspond to devices you actually use for debugging. That could be old versions (after you install OS updates on your devices) or devices you just don't use any more.