stremio/apps/ios/scripts/vmc-ios-device-build.sh
Jos Vooges | STH 6de2c767bf Show real subtitle languages by probing MKV track tags on the node.
Pass embedded track language/title through play ACK into clients so Android/iOS can label tracks instead of generic Ondertitel N when ExoPlayer/VLC miss tags.
2026-09-12 20:58:24 +02:00

24 lines
930 B
Bash

#!/bin/bash
set -euo pipefail
cd ~/Code/mediacluster/apps/ios
mkdir -p build
security list-keychains -s ~/Library/Keychains/login.keychain-db /Library/Keychains/System.keychain || true
echo "BUILD_START $(date)"
xcodebuild -project VMC.xcodeproj -scheme VMC -configuration Debug \
-destination "platform=iOS,id=00008150-00040DC10250C01C" \
-allowProvisioningUpdates \
DEVELOPMENT_TEAM=X25NYX3K49 \
CODE_SIGN_STYLE=Automatic \
-derivedDataPath "$HOME/Code/mediacluster/apps/ios/build/DerivedData" \
build 2>&1 | tee build/device-build.log
EC=${PIPESTATUS[0]}
echo "BUILD_EXIT:$EC"
if [ "$EC" -ne 0 ]; then
echo "---- last errors ----"
grep -E "error:|FAILED" build/device-build.log | tail -40 || true
exit "$EC"
fi
APP=$(find build/DerivedData/Build/Products -name "VMC.app" -type d | head -1)
echo "APP=$APP"
xcrun devicectl device install app --device 00008150-00040DC10250C01C "$APP"
echo "INSTALL_OK $(date)"