Is there a simple way to launch a iOS simulator through the command line. I am working in a project, and it's got some complicated to get the UUID of a simulator using grep, and then launch it by its UUID:
UUID=$(
xcrun instruments -s |
grep "${{ matrix.device }}" | # Grep device(s) - can expect more than one
grep -Eo -m1 "\[.*\]" | # Extract device ID of the first result
sed -e 's/^\[//' -e 's/\]$//' # Trimming the square brackets surrounding UUID
)
xcrun simctl boot "$UUID"