Skip to content

Instantly share code, notes, and snippets.

@LamourBt
Forked from ZevEisenberg/resetAllSimulators.sh
Created January 17, 2018 20:08
Show Gist options
  • Select an option

  • Save LamourBt/acdbbda5fb0f355fac64952ee5677a4b to your computer and use it in GitHub Desktop.

Select an option

Save LamourBt/acdbbda5fb0f355fac64952ee5677a4b to your computer and use it in GitHub Desktop.

Revisions

  1. @ZevEisenberg ZevEisenberg revised this gist Dec 16, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion resetAllSimulators.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,3 @@
    osascript -e 'tell application "iOS Simulator" to quit'
    xcrun simctl list devices | grep -v '^[-=]' | cut -d "(" -f2 | cut -d ")" -f1 | xargs -I {} xcrun simctl erase "{}"
    osascript -e 'tell application "Simulator" to quit'
    xcrun simctl erase all
  2. @ZevEisenberg ZevEisenberg revised this gist Oct 12, 2014. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions resetAllSimulators.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,2 @@
    osascript -e 'tell application "iOS Simulator" to quit'
    allSimulators=`xcrun simctl list devices | grep -v '^[-=]' | cut -d "(" -f2 | cut -d ")" -f1`
    printf %s "$allSimulators" | while IFS= read -r simulator; do
    xcrun simctl erase "$simulator"
    done
    xcrun simctl list devices | grep -v '^[-=]' | cut -d "(" -f2 | cut -d ")" -f1 | xargs -I {} xcrun simctl erase "{}"
  3. @ZevEisenberg ZevEisenberg revised this gist Oct 12, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions resetAllSimulators.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    osascript -e 'tell application "iOS Simulator" to quit'
    allSimulators=`xcrun simctl list devices | grep -v '^[-=]' | cut -d "(" -f2 | cut -d ")" -f1`
    printf %s "$allSimulators" | while IFS= read -r simulator; do
    xcrun simctl erase "$simulator"
  4. @ZevEisenberg ZevEisenberg created this gist Sep 27, 2014.
    4 changes: 4 additions & 0 deletions resetAllSimulators.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    allSimulators=`xcrun simctl list devices | grep -v '^[-=]' | cut -d "(" -f2 | cut -d ")" -f1`
    printf %s "$allSimulators" | while IFS= read -r simulator; do
    xcrun simctl erase "$simulator"
    done