Skip to content

Instantly share code, notes, and snippets.

@brunogama
Created February 9, 2014 13:38
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 brunogama/8899208 to your computer and use it in GitHub Desktop.
Save brunogama/8899208 to your computer and use it in GitHub Desktop.
it will clean *ALL* the apps in the iOS Simulator.
#!/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