Files
MatchLiveTv/scripts/build_ios_release.sh
Emiliano Frascaro 731b43ea88 Stabilizza diretta iOS e aggiunge test simulatore pre-release.
Corregge lifecycle RTMP/preview tra partite, reset tabellone, orientamento
con debounce, condivisione su iPad e script test_ios_simulator per CI locale.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-20 12:02:14 +02:00

31 lines
675 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
IOS_DIR="$ROOT/native/ios"
PROJECT="$IOS_DIR/MatchLiveTv.xcodeproj"
SCHEME="MatchLiveTv"
CONFIG="${CONFIG:-Release}"
API_BASE_URL="${API_BASE_URL:-https://www.matchlivetv.it}"
echo "== Pre-release: test simulatore =="
"$ROOT/scripts/test_ios_simulator.sh"
cd "$IOS_DIR"
if [[ ! -d "$PROJECT" ]]; then
echo "Generazione progetto Xcode..."
python3 "$IOS_DIR/generate_xcodeproj.py"
fi
xcodebuild \
-project "$PROJECT" \
-scheme "$SCHEME" \
-sdk iphoneos \
-configuration "$CONFIG" \
API_BASE_URL="$API_BASE_URL" \
CODE_SIGNING_ALLOWED=NO \
build
echo "Build iOS completata."