Post

Removing Xcode Derived Data from the Terminal

Remove Xcode's Derived Data folder from the terminal to free disk space and resolve build issues.

Removing Xcode Derived Data from the Terminal

Why Remove Derived Data?

Xcode stores build information in Derived Data to help speed up compilation. Over time, this folder can grow large or get corrupted, leading to project or disk issues.

Quick Cleanup via Terminal

Open your terminal and run the following command:

1
rm -rf ~/Library/Developer/Xcode/DerivedData

That’s it—Xcode will automatically recreate the folder as needed on the next build. This can help fix strange build errors and free up disk space quickly.

☕ Support My Work

If you found this post helpful and want to support more content like this, you can buy me a coffee!

Your support helps me continue creating useful articles and tips for fellow developers. Thank you! 🙏

This post is licensed under CC BY 4.0 by the author.