Mac storage basics · Developer tools
Is it safe to delete Xcode's DerivedData folder?
Short answer: Yes — it's rebuildable build output and indexes. Quit Xcode and delete its contents; the next build takes longer while Xcode recreates it.
Yes. DerivedData holds intermediate build products, indexes and logs that Xcode regenerates. Quit Xcode, then delete the contents of ~/Library/Developer/Xcode/DerivedData (or use the path shown in Xcode's Settings → Locations).
The only cost is time: the next build of each project is a full build and indexing starts again. Your source code and project settings aren't stored there.