Is it safe to delete Xcode DerivedData?

~/Library/Developer/Xcode/DerivedData · Safe to delete

What it is

Build output, indexes and logs for every Xcode project you have built.

Can you delete it?

Yes, it is rebuilt automatically. Xcode rebuilds it on the next build. It is the most common reason a developer Mac fills up.

How to clean it safely

  1. Quit Xcode.
  2. Run: rm -rf ~/Library/Developer/Xcode/DerivedData/*
  3. The next build takes longer while Xcode rebuilds the index.

Questions

Is it safe to delete ~/Library/Developer/Xcode/DerivedData?

Yes, it is rebuilt automatically. Xcode rebuilds it on the next build. It is the most common reason a developer Mac fills up.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free beta for Mac.

Download for Mac