#!/usr/bin/env bash # Install the signed device build on a paired iPhone and launch it. # Usage: ./run-device.sh [device-name-or-udid] set -euo pipefail DEVICE="${1:-FeelsCringeMan}" APP="/tmp/share-dd-device/Build/Products/Debug-iphoneos/Share.app" if [[ ! -d "$APP" ]]; then echo "No device build at $APP. Run ./build.sh device first." >&2 exit 1 fi xcrun devicectl device install app --device "$DEVICE" --timeout 180 "$APP" xcrun devicectl device process launch --device "$DEVICE" dev.tzgyn.share