The-Definitive-iOS-Simulator-Reset-Script
The-Definitive-iOS-Simulator-Reset-Script copied to clipboard
Not working on XCode 6
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".
same problem here
@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
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.