Skip to content

Fix iPhone Duo cover-display screenshots - #191

Merged
onevcat merged 1 commit into
mainfrom
fix/duo-cover-screenshot
Nov 18, 2026
Merged

onevcat merged 1 commit into
mainfrom
fix/duo-cover-screenshot

Conversation

@onevcat

@onevcat onevcat commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Summary

A folded iPhone Duo can return a black or stale 2007x2853 inner-display screenshot instead of its visible 1398x2034 cover display. The cover resolves to the main display, but idb's default framebuffer selection does not match the CoreDevice primary display reliably.

Capture the primary integrated display by UUID on multi-display simulators, using the existing simctl capture path. Single-display simulators retain the idb path; inner-display and Resize Mode capture paths are unchanged.

Add a closed/open/closed screenshot regression and fix the JSON screenshot test to parse stdout without appended Debug stderr logs. Include the changelog entry and investigation evidence.

Validation

  • make build passed with Xcode 27.2 after rebuilding the existing patched FB* dependencies.
  • Duo regression: 0.16.0 failed both closed-display assertions; the fixed build passed all three transitions. Cover screenshot content was inspected, and the original open posture was restored.
  • Portrait iPhone 18 Pro / iOS 27.2: all three screenshot E2E tests passed. Release and fixed screenshots had identical RGB values across all 3,162,132 pixels (1206x2622); UI reported 402x874 points.
  • swift test --skip-build --disable-xctest --enable-code-coverage: 1,254 Swift Testing tests passed.
  • git diff --check passed.

make test could not complete: XCTest stalled during IDE-session initialization before running tests and was terminated. XCTest-based suites, the full device E2E suite, Resize Mode, and video capture were not verified. Existing compiler warnings remain. Topology-query failure retains the previous default-framebuffer fallback.

Signed-off-by: onevcat <onevcat@gmail.com>
@onevcat
onevcat merged commit 25d1f70 into main Nov 18, 2026
5 checks passed
@onevcat
onevcat deleted the fix/duo-cover-screenshot branch November 18, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant