From 489c9e39a221ca64d3898be78a1d021987b67181 Mon Sep 17 00:00:00 2001 From: uvtqt Date: Tue, 17 Nov 2026 22:01:11 +0100 Subject: [PATCH 1/2] ci(ios): build the release with Xcode >= 27.1 so the iPhone Duo runs full screen iOS 27 letterboxes apps built with an SDK older than iOS 27.1 on the unfolded iPhone Duo. The ios job never picked an Xcode, so it got the runner image's default. Select the newest installed Xcode, fail loudly below 27.1, and log the SDK the app was built against. Refs #752. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 096907a5d..aecbd5a8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -368,6 +368,26 @@ jobs: TAG: ${{ github.ref_name }} run: bash .github/scripts/assert_release_unpublished.sh "$TAG" + # iOS 27 gives the unfolded iPhone Duo's full inner display only to apps + # built with the iOS 27.1 SDK or later; an older SDK ships an app iOS + # letterboxes in a compatibility window (#752). The runner image's + # default Xcode is not pinned and has been older than that, so pick the + # newest installed Xcode and refuse to build below 27.1 rather than + # silently shipping a letterboxed IPA. + - name: Select Xcode >= 27.1 + run: | + pick=$(for x in /Applications/Xcode*.app; do + v=$(/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' \ + "$x/Contents/Info.plist" 2>/dev/null) && echo "$v $x" + done | sort -V | tail -1) + v=${pick%% *}; x=${pick#* } + if [ -z "$pick" ] || [ "$(printf '%s\n27.1\n' "$v" | sort -V | head -1)" != 27.1 ]; then + echo "::error::Newest Xcode on this runner is '${v:-none}'; the iPhone Duo needs >= 27.1 (#752). Use a runner image that ships it." + exit 1 + fi + sudo xcode-select -s "$x/Contents/Developer" + xcodebuild -version + - uses: subosito/flutter-action@v2 with: # PINNED, not `channel: stable` — that floats forward every run and @@ -414,6 +434,11 @@ jobs: - name: Build unsigned iOS app run: flutter build ios --release --no-codesign --dart-define-from-file=.env + - name: Record the SDK the app was built against + run: | + /usr/libexec/PlistBuddy -c 'Print :DTSDKName' build/ios/iphoneos/Runner.app/Info.plist + /usr/libexec/PlistBuddy -c 'Print :DTXcode' build/ios/iphoneos/Runner.app/Info.plist + # See the job-level comment above: the Watch companion cannot survive a # per-user free-account resign under any sideloading tool (Sideloadly, # AltStore, ...) — it fails install for every such user, every time, with From 8e66980f42ec042c1631e811e8286e0cd2bc71aa Mon Sep 17 00:00:00 2001 From: uvtqt Date: Wed, 18 Nov 2026 09:52:02 +0100 Subject: [PATCH 2/2] ci(ios): run on the xcode-27 image and gate the SDK the app was built with macos-latest is macOS 26 whose newest Xcode is 26.6, so the Xcode gate would have stopped every iOS release. Use GitHub's xcode-27 image (Xcode 27.0-27.2, public preview), and fail when the built app's DTSDKName is below iphoneos27.1 instead of only printing it. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/build.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aecbd5a8a..2cc782d06 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -354,7 +354,12 @@ jobs: # every target's plist, including this one, at build time. ios: needs: [preflight, release] - runs-on: macos-latest + # Not macos-latest: that is macOS 26, whose newest Xcode is 26.6, and an + # iOS 26 SDK build runs letterboxed on the unfolded iPhone Duo (#752). + # `xcode-27` is GitHub's image with Xcode 27.0-27.2 (27.1 default); it is + # still a public preview (actions/runner-images#14404), so expect the odd + # queueing delay. Move to the GA label once one ships Xcode >= 27.1. + runs-on: xcode-27 permissions: contents: write steps: @@ -434,10 +439,18 @@ jobs: - name: Build unsigned iOS app run: flutter build ios --release --no-codesign --dart-define-from-file=.env - - name: Record the SDK the app was built against + # The Xcode gate above checks the toolchain; this checks what the app + # was actually built against, so an older SDK can't slip through. + - name: Assert the app was built against the iOS 27.1+ SDK run: | - /usr/libexec/PlistBuddy -c 'Print :DTSDKName' build/ios/iphoneos/Runner.app/Info.plist - /usr/libexec/PlistBuddy -c 'Print :DTXcode' build/ios/iphoneos/Runner.app/Info.plist + plist=build/ios/iphoneos/Runner.app/Info.plist + sdk=$(/usr/libexec/PlistBuddy -c 'Print :DTSDKName' "$plist") + echo "Built against $sdk (DTXcode $(/usr/libexec/PlistBuddy -c 'Print :DTXcode' "$plist"))" + v=${sdk#iphoneos} + if [ "$v" = "$sdk" ] || [ "$(printf '%s\n27.1\n' "$v" | sort -V | head -1)" != 27.1 ]; then + echo "::error::Built against '$sdk'; the iPhone Duo needs the iOS 27.1+ SDK (#752)." + exit 1 + fi # See the job-level comment above: the Watch companion cannot survive a # per-user free-account resign under any sideloading tool (Sideloadly,