ci: switch from Firebase OTA to Xcode WiFi/USB direct deploy #5

Closed
millianlmx wants to merge 3 commits from ci/iphone-deploy-workflow into main
Showing only changes of commit e8fb70abd8 - Show all commits

View File

@@ -99,11 +99,29 @@ jobs:
CODE_SIGN_STYLE=Automatic \
DEVELOPMENT_TEAM=2MJF39L8VY
- name: Install to iPhone
- name: Install to iPhone (WiFi → USB fallback)
run: |
UDID="00008120-000925CE3672201E"
APP=$(find ../build/derived -name 'TabataGo.app' -type d | head -1)
echo "📱 Installing $APP to iPhone..."
ios-deploy --bundle "$APP" --id 00008120-000925CE3672201E --justlaunch
# 1. Try WiFi first (Xcode 15+ devicectl network discovery)
echo "📱 Trying WiFi install via devicectl..."
xcrun devicectl device install app --device "$UDID" "$APP" 2>&1 | tail -3
if [ ${PIPESTATUS[0]} -eq 0 ]; then
echo "✅ Installed via WiFi"
exit 0
fi
# 2. Fallback to USB via ios-deploy
echo "🔌 WiFi failed, trying USB..."
ios-deploy --bundle "$APP" --id "$UDID" --justlaunch
if [ $? -eq 0 ]; then
echo "✅ Installed via USB"
exit 0
fi
echo "❌ Install failed (both WiFi and USB)"
exit 1
- name: Post "Ready to test" comment
env: