MAC-清理硬盘空间

OSX 系统清理占用空间。

清理 XCode 空间

1
2
3
4
5
rm -rf ~/Library/Developer/CoreSimulator/Devices
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Developer/Xcode/Archives
rm -rf /Library/Developer/CoreSimulator/Profiles/Runtimes

清理 缓存 空间

1
2
3
4
5
sudo rm -rf /private/var/folders/
cd /private/var/tmp/
sudo rm -rf TM*
sudo rm -rf ~/Library/Caches/*
sudo rm -rf /private/var/log/*