#!/bin/bash # PAILot iOS Build Script set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" APP_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" cd "$APP_DIR" echo "=== Building IPA ===" flutter build ipa --release --no-pub --export-method development --no-tree-shake-icons echo "" echo "=== Fixing archive name ===" ARCHIVE="build/ios/archive/Runner.xcarchive/Info.plist" if [ -f "$ARCHIVE" ]; then plutil -replace Name -string "PAILot" "$ARCHIVE" plutil -replace SchemeName -string "PAILot" "$ARCHIVE" echo " Archive name set to 'PAILot'" fi echo "" echo "=== Done ===" echo "Build complete: build/ios/ipa/pailot.ipa" echo "Run ./tools/deploy.sh to install on device"