Created
February 9, 2014 13:38
-
-
Save brunogama/8899208 to your computer and use it in GitHub Desktop.
it will clean *ALL* the apps in the iOS Simulator.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# clean_ios_simulator | |
# Author: Bruno Gama | |
pkill -9 -fi simulator 2>/dev/null | |
_WD="$HOME/Library/Application Support/iPhone Simulator" | |
find "$_WD" -iname "*.app" | while read l; do | |
f=$(dirname "$l") | |
rm -rf "$f" | |
unset f | |
done | |
unset _WD | |
cat <<-__HEREDOC__ | |
Finished wiping iPhone Simulator Apps. | |
__HEREDOC__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment