Skip to content

Instantly share code, notes, and snippets.

@bright23
Created May 15, 2018 11:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bright23/6dc8fd43432a42e8edc7c95589098014 to your computer and use it in GitHub Desktop.
Save bright23/6dc8fd43432a42e8edc7c95589098014 to your computer and use it in GitHub Desktop.
clean_macbook
#!/bin/sh
sudo rm -rf ~/Library/Developer/Xcode/DerivedData/*
echo "clean Xcode/DerivedData!"
sudo rm -rf ~/Library/Developer/Xcode/Archives/*
echo "clean Xcode/Archives!"
sudo rm -rf ~/Library/Caches/*
echo "clean Library/Caches!"
sudo rm -rf ~/Library/Logs/iOS\ Simulator
echo "clean iOS logs"
# 全てのシミュレーターのキャッシュを一度で削除する場合
sudo rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/*
echo "clean simulator cache"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment