Skip to main content
Glama
boot_simulator.sh1.02 kB
#!/bin/bash # Specify the device type and runtime as per your requirements DEVICE_TYPE="iPhone 15 Pro" RUNTIME="iOS18.6" # Create a unique identifier for the new simulator to avoid naming conflicts SIMULATOR_NAME="Simulator_$(uuidgen)" echo "Creating a new iOS simulator: $SIMULATOR_NAME (Device: $DEVICE_TYPE, Runtime: $RUNTIME)" # Create the simulator simulator_id=$(xcrun simctl create "$SIMULATOR_NAME" "$DEVICE_TYPE" $RUNTIME) echo "Simulator ID: $simulator_id created." # Boot the simulator echo "Booting the simulator..." xcrun simctl boot "$simulator_id" # Wait for the simulator to be fully booted while true; do # Check the current state of the simulator state=$(xcrun simctl list | grep "$simulator_id" | grep -o "Booted" || true) if [ "$state" == "Booted" ]; then echo "Simulator $SIMULATOR_NAME is now ready." break else echo "Waiting for the simulator to be ready..." sleep 5 # sleep for 5 seconds before checking again to avoid spamming fi done

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mobile-dev-inc/Maestro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server