Files
TZGyn 9a37e93cfc Add a native iOS client for relay-based file sharing
The SwiftUI app bundles the Go swarm engine through gomobile, so an iPhone is a real peer using the existing PAKE handshake, chunk verification, and relay fallback. XcodeGen builds the project and devicectl installs it on the paired phone.
2026-10-26 22:24:47 +08:00

16 lines
507 B
Bash
Executable File

#!/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