Xcode DerivedData No Space Left
Xcode `No space left on device` errors often point at DerivedData or ModuleCache, but the safest fix is to separate rebuildable cache from archives, simulator runtimes, and 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 safer to clean
- DerivedData after Xcode and xcodebuild jobs are stopped
- ModuleCache.noindex when the build can regenerate modules
- Old build logs and temporary intermediates after preserving failure logs you need
Review before deleting
- Archives used for releases, crash symbolication, or App Store history
- Simulator runtimes required by active projects or CI matrix jobs
- DeviceSupport folders for devices still used by QA or release testing
Read-only checks first
du -sh ~/Library/Developer/Xcode/DerivedData
du -sh ~/Library/Developer/Xcode/Archives
du -sh ~/Library/Developer/CoreSimulator
du -sh ~/Library/Developer/Xcode/iOS\ DeviceSupport 2>/dev/null
Need this as a repeatable team rule?
Start with the free SafeDisk Mac scan. If deletion risk is still unclear, send one request for the free SafeDisk AI deletion trial next step.
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.