Skip to content

Instantly share code, notes, and snippets.

@Bunn
Created May 19, 2019 15:21
Show Gist options
  • Save Bunn/dee546cef4fed925ecf1be4ebcd1e5ca to your computer and use it in GitHub Desktop.
Save Bunn/dee546cef4fed925ecf1be4ebcd1e5ca 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