Guest User

Untitled

a guest
Jun 25th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. instruments -s devices \
  4. | grep "(\d[.0-9]\+) \[[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}\]" \
  5. | grep -o "[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}" \
  6. | while read -r line ; do
  7. echo "Reseting Simulator with UDID: $line"
  8. xcrun simctl erase $line
  9. done
  10.  
  11. rm -rf ~/Library/Developer/Xcode/DerivedData/*
Add Comment
Please, Sign In to add comment