With every release of Xcode it seems to eat more and more space. I was thrilled to find the XcodeCleaner project from Baye on Github. This is a great project that allows you to tailor the space Xcode uses. I’ve been able to free up an easy 12GB without any issues.
I highly recommend checking out the project on GitHub at XcodeCleaner. You can build the project from source or download from the macOS App Store for $0.99.
It just takes creating a few example projects and suddenly you have a ton of simulator folders to deal with. Over time this becomes a junk drawer of simulator references to experiments and samples.
Toshihiro Morimoto (dealforest) has released the Cichlid Xcode plugin to help combat this. It is super simple to use and simply deletes the DerivedData associated with your project when you run Product-> Clean. I’ve been using it for the last week and it simply works.
Give it a try if you are looking for an easy way to clean the ~/Library/Developer/Xcode/DerivedData folders associated with your project.
Learn more on Github : https://github.com/dealforest/Cichlid