Skip to content

Instantly share code, notes, and snippets.

@iMaximus
iMaximus / resetDeviceSimulators.sh
Last active August 25, 2016 15:09
Script for reset all xcode ios simulators only for the specific device (Example "iphone 6s")
xcrun simctl list
osascript -e 'tell application "Simulator" to quit'
myVar=($(xcrun simctl list | grep 'iPhone 6s'| cut -d " " -f8 ))
for i in "${myVar[@]}"
do
identifier=${i:1:36}
xcrun simctl erase $identifier
echo $identifier
done