fix(build): fail --prod builds with test server defaults; sync web assets before Gradle assembles

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude Code
2026-09-27 21:06:34 -06:00
co-authored by Claude Opus 5.5
parent 38af28154e
commit 28ee81b9d3
5 changed files with 142 additions and 12 deletions
+5
View File
@@ -680,6 +680,11 @@ safe_execute "Installing CocoaPods dependencies" "run_pod_install_with_workaroun
# Step 6.6: Sync with Capacitor (uses run_cap_sync_with_workaround defined above for Xcode 26)
safe_execute "Syncing with Capacitor" "run_cap_sync_with_workaround" || exit 6
# Step 6.7: Verify the synced web bundle has production server defaults
if [ "$BUILD_MODE" = "production" ]; then
safe_execute "Checking production bundle" "./scripts/check-prod-bundle.sh ios/App/App/public" || exit 10
fi
# Step 7: Generate assets
safe_execute "Generating assets" "generate_ios_assets" || exit 7