The-Definitive-iOS-Simulator-Reset-Script icon indicating copy to clipboard operation
The-Definitive-iOS-Simulator-Reset-Script copied to clipboard

Not working on XCode 6

Open rvi opened this issue 9 years ago • 3 comments

Hi,

just find this great tool, but it's not working anymore on Xcode 6, with Yosemite.

I've got this error :

System Events got an error: Can’t get process "iPhone Simulator".

rvi avatar Oct 13 '14 13:10 rvi

same problem here

miquelbotanch avatar Dec 02 '14 00:12 miquelbotanch

@miquelbotanch

Here is a script, to erase all simulators :

#!/bin/sh

instruments -s devices \
 | grep Simulator \
 | 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

rvi avatar Dec 02 '14 09:12 rvi

thanks!

I’ve also found this on a single line

xcrun simctl list | grep -oh '[A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12}' | xargs -I{} xcrun simctl erase {}

On 02/12/2014, at 10:47, Rémy Virin [email protected] wrote:

@miquelbotanch https://github.com/miquelbotanch Here is a script, to erase all simulators :

#!/bin/sh

instruments -s devices
| grep Simulator
| 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 — Reply to this email directly or view it on GitHub https://github.com/stianhoiland/The-Definitive-iOS-Simulator-Reset-Script/issues/2#issuecomment-65205444.

miquelbotanch avatar Dec 02 '14 11:12 miquelbotanch