Cleaning Up Xcode To Free Up Disk Space
Xcode cleanup is safest when you separate rebuildable cache from archives, simulator runtimes, DeviceSupport, and team-critical project state.
Read-only first pass
Measure Xcode storage before deleting DerivedData, simulators, or archives.
The local scan records Xcode, simulator, Docker, Homebrew, and common developer storage sizes. It does not inspect file contents or delete files.
curl -fsSL https://site-xi-orcin-50.vercel.app/scan.sh -o safedisk-scan.sh && bash safedisk-scan.sh "$HOME/Desktop"
Not sure what is safe?
Send the Xcode evidence and get the safest first cleanup step.
Paste the biggest Xcode folders, whether you ship apps, and whether archives or old simulator runtimes matter. We will reply with a safe/review/do-not-touch order.
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.
Team policy
Want a repeatable Xcode cleanup policy for your team?
The $99 Team Storage Pilot turns one representative scan into safe/review/do-not-touch rules for Xcode, simulators, archives, SwiftPM, Docker, and onboarding cleanup.