Skip to content

Instantly share code, notes, and snippets.

@antonyalkmim
Forked from Bunn/cleanup.sh
Created October 9, 2020 12:21
Show Gist options
  • Save antonyalkmim/0c518debd8104931640235b1d718ac95 to your computer and use it in GitHub Desktop.
Save antonyalkmim/0c518debd8104931640235b1d718ac95 to your computer and use it in GitHub Desktop.
Cleanup space
#!/bin/bash
echo "Removing unavailable simulators..."
xcrun simctl delete unavailable
echo "Brew cleanup..."
brew cleanup
echo "Removing Xcode Caches..."
rm -rf ~/Library/Caches/com.apple.dt.Xcode
echo "Removing Xcode DerivedData..."
rm -rf ~/Library/Developer/Xcode/DerivedData
echo "Removing Xcode Archives..."
rm -rf ~/Library/Developer/Xcode/Archives
echo "Removing Xcode DeviceSupport..."
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment