Recently, space on my Mac shrank a lot and I was looking for any method to remove some files.
I spent a lot of time looking for a solution on how to remove some system files that aren’t needed. I used some external tool and I found that there are some Archive files.
I thought it looks like files I don’t need right now. And I was right.
Read the whole post before you do some action
For each Product -> Archive you do in Xcode there is a new Archive file that takes some space. I had a lot of them.
For a while, I was wondering if I need all these Archives and the answer was no, so I can delete them. If you want to delete them you need to make your own decision. If you delete them you may lose something.
Remember to think for yourself and don’t do everything that someone says on the Internet.
If you want to see how many Archives you have, you can do it in Xcode Window -> Organizer, there you have a window with all archives.
If you want to see them in Finder, there are at ~/Library/Developer/Xcode/Archives
If you want to delete them, select them all and move to Bin, then Empty Bin.
In my case, there were around 50GB of files.
After you delete them, if you open in Xcode, Window -> Organizer, there won’t be anything.