Problem: With Xcode 14.x, Simulators sometimes turn to blank black screen, and the only fix is to restart it. The following solution helps to do it automatically.
- Create a file
quit_simulator.sh
#!/bin/bash
osascript <<EOF &
tell application "Simulator"