If you”re a developer and you find your HD space just seems to disappear without you putting any new files on your computer, take a look into what Xcode is doing. For every project you create Xcode will cache a lot of data for intellisense, autocompletion, and some other features. Whether it”s a test project or a full on client project, Xcode will keep this data until you delete it. On my laptop I don”t think I”ve deleted any of this data for about 8 months, which worked out to be roughly 16GB worth. This includes archived apps I send to clients for testing purposes, stuff that I consider to be a one off.
Removing these is easy, but most people are probably unaware that Xcode does this. Open the organiser in Xcode (Command Shift 2).
First select the projects tab. If you often make test projects to isolate specific features before bringing them to your main project you will see all of these on the left side (the red ones meaning the project can no longer be found, probably deleted). Select as many as you need and hit the delete key. You can also do this for active projects, don”t worry, this will not delete the project but rather it”s derived data, which will be regenerated when you open the project the next time.
Next go to the archives tab, which is a list of every project and every build you have ever generated through the “Product > Archive” menu, either for distribution to the AppStore or for sending to a client. I haven”t found a quick way to delete all of these at once through the Xcode organiser, but instead you can right click on one, select “Show in Finder”, step back a directory and delete all archive folders in one go. The path should be “~/Library/Developer/Xcode/Archives/”.
Post how much HD space this clears for you below.