SPB Git

Repository Public License

sim.sh 922 B 22 lines shellscript

1#!/usr/bin/env bash2# ORIX Secure3# File: Scripts/sim.sh4# Description: Installs the Debug build on a simulator, launches it with the given launch arguments and saves a screenshot.5#              usage: sim.sh <out.png> <seconds> [launch arguments…]      ORIX_SIM selects the simulator.6#7# Author: Simon-Pierre Boucher8# Contact: contact@spboucher.ai9set -euo pipefail10cd "$(dirname "$0")/.."11SIM="${ORIX_SIM:-ORIXSecure iPhone}"12OUT="$1"; WAIT="$2"; shift 213xcrun simctl boot "$SIM" 2>/dev/null || true14xcrun simctl bootstatus "$SIM" -b >/dev/null 2>&1 || true15xcrun simctl install "$SIM" build/DerivedData/Build/Products/Debug-iphonesimulator/ORIXSecure.app16xcrun simctl terminate "$SIM" ai.spboucher.orix.secure >/dev/null 2>&1 || true17xcrun simctl launch "$SIM" ai.spboucher.orix.secure "$@" >/dev/null18sleep "$WAIT"19mkdir -p "$(dirname "$OUT")"20xcrun simctl io "$SIM" screenshot "$OUT" >/dev/null 2>&121echo "$OUT"22
Files main
Menu

Theme