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