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.
This commit is contained in:
2026-10-26 22:24:47 +08:00
parent 29fa4a4c44
commit 9a37e93cfc
23 changed files with 2458 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/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