mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-24 15:10:02 -06:00
10 lines
377 B
Bash
Executable File
10 lines
377 B
Bash
Executable File
#!/bin/bash
|
|
RUNTIME=$(xcrun simctl runtime list -j | jq '.[].runtimeIdentifier' -r | head -1)
|
|
ID=$(xcrun simctl create test-iphone com.apple.CoreSimulator.SimDeviceType.iPhone-14-Pro $RUNTIME 2>/dev/null)
|
|
xcrun simctl boot $ID
|
|
xcrun simctl bootstatus $ID
|
|
echo Simulator ID is $ID
|
|
( trap exit SIGINT ; read -r -d '' _ </dev/tty ) ## wait for Ctrl-C
|
|
xcrun simctl delete $ID
|
|
|
|
|