#!/bin/bash # PAILot iOS Deploy Script set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" APP_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" cd "$APP_DIR" # Device UDIDs MATTHIAS="8708CADC-3330-50B6-AA0A-1655526A573A" DEVICE="$MATTHIAS" while [[ $# -gt 0 ]]; do case "$1" in -a) DEVICE="$AMELIE"; shift ;; *) shift ;; esac done # Build first if no IPA exists if [[ ! -f build/ios/ipa/pailot.ipa ]]; then echo "=== No IPA found, building first ===" bash tools/build.sh fi echo "=== Installing on device $DEVICE ===" xcrun devicectl device install app --device "$DEVICE" build/ios/ipa/pailot.ipa echo "" echo "=== Done ===" echo "Force-quit and reopen PAILot on your phone."