Cleaning Up Xcode To Free Up Disk Space
Xcode cleanup is safest when you separate rebuildable cache from archives, simulator runtimes, DeviceSupport, and important project state.
Free Mac scan
Run the free Mac scan before deleting.
The Mac scan reads storage metadata locally, then shows the largest visible buckets and the files that need an AI delete / confirm / protect judgment.
Usually Safe After Closing Xcode
~/Library/Developer/Xcode/DerivedDatabuild products and indexes.- Unavailable simulator devices from old runtimes.
- SwiftPM and package-manager caches through their own cleanup commands.
Review First
~/Library/Developer/Xcode/Archives, especially shipped apps and symbolication archives.~/Library/Developer/CoreSimulatorif active projects need specific iOS runtimes.- DeviceSupport folders if you still test on older physical devices.
Read-Only Xcode Checks
du -sh "$HOME/Library/Developer/Xcode/DerivedData" 2>/dev/null
du -sh "$HOME/Library/Developer/Xcode/Archives" 2>/dev/null
du -sh "$HOME/Library/Developer/CoreSimulator" 2>/dev/null
du -sh "$HOME/Library/Developer/Xcode/iOS DeviceSupport" 2>/dev/null
xcrun simctl list runtimes 2>/dev/null
xcrun simctl list devices unavailable 2>/dev/null
Safer Cleanup Order
- Close Xcode and stop running simulators.
- Measure DerivedData, Archives, CoreSimulator, and DeviceSupport separately.
- Clean DerivedData first if it is the largest rebuildable bucket.
- Delete unavailable simulator devices before removing runtimes.
- Review archives with the app/release owner before removing them.
Free AI deletion trial
Still full after the SafeDisk Lite scan?
Start with the SafeDisk Lite scan. If the scan still leaves unclear delete / confirm / protect decisions, send one request for the free SafeDisk AI deletion trial next step.