Prune

How-to · macOS

Where does Xcode DerivedData go, and can I delete it?

DerivedData is build output and indexes, not your source. Deleting it is normal maintenance. Expect 10–30 GB on busy Macs.

Location

~/Library/Developer/Xcode/DerivedData
# also heavy:
~/Library/Developer/Xcode/iOS DeviceSupport

Clear it

du -sh ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Developer/Xcode/DerivedData/*

Quit Xcode first. The next build is slower while caches regenerate. That is expected, not a broken project.

On Windows, skip this guide and clear Ollama / Hugging Face / npm instead.

FAQ

Will deleting DerivedData break my Xcode project?

No. Xcode rebuilds DerivedData the next time you compile. Device support files may need a one-time re-download.

Where is DerivedData?

~/Library/Developer/Xcode/DerivedData on macOS.

Related