My MacBook hard drive is full. I have tried some common methods such as emptying the Trash and rebooting in Safe Mode, but these haven't helped. So I ran a Perl script with root privileges via sudo
which adds up file sizes, and I found that the InstallerSandboxes
directory is eating up most of my disk space.
It can be found on multiple locations, so I suppose it's hardlinked. It has a .PKInstallSandboxManager
subdirectory which contains 4 subdirectories with names in format: *SOME-UUID*.activeSandbox
. They all have huge sizes: 16.42GB, 18.72GB, 18.76GB and 29.27GB, all of which add up to 83.19GB.
All of them contain a Root/Application/Xcode.app
so I suppose they are all related to Xcode which is installed on my device (I have an /Application/Xcode.app
too).
I don't suppose all 4 of them are in use, how can I get rid of the ones that aren't in use?