GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — iOS Simulator screenshots fail on Xcode 26.x: pinned expo-device-hub passes `--display=1` to simctl · Issue #28035 · pingdotgg/t3code

iOS Simulator screenshots fail on Xcode 26.x: pinned expo-device-hub passes --display=1 to simctl #28035

New issue
Copy link
New issue
Copy link
Closed
Closed
iOS Simulator screenshots fail on Xcode 26.x: pinned expo-device-hub passes --display=1 to simctl#28035
Copy link

Description

@JoeRMiller
JoeRMiller
opened on Oct 31, 2026
Issue body actions

What happened

On an iOS Simulator served from an Intel Mac SSH device host, device screenshots always fail. T3 shows "Device screenshot failed: Could not communicate with device support. Try refreshing devices." Running simctl by hand on the same Mac takes the screenshot without any problem.

Diagnosis

The hub that T3 pins in apps/server/src/device/deviceToolVersions.json is [email protected], pinned by #24912 to fix #24900 (the multi-display iPhone Duo on Xcode 27.2). Its vendored serve-sim/dist/middleware.js now always passes a numeric display port to simctl:

args: ["simctl","io",udid,"screenshot", ...(display===undefined ? [] : [`--display=${display}`]), file]

On Xcode 26.3, simctl io <udid> screenshot takes only --display=internal|external (or a port UUID) and rejects --display=1:

Detected file type 'PNG' from extension
Error: Device does not have a '1' display port

So every screenshot fails on Xcode 26.x single-display simulators. The 500 then reaches T3 as a generic DeviceOperationError ("Could not communicate with device support"), which hides the real simctl error (see #24033). main (as of 2026-10-31) still pins the same hub version.

Steps to reproduce

  1. Use a Mac with Xcode 26.3 as the device host. Here it is an SSH device host; local should behave the same.
  2. Boot an iOS 26.2 simulator (iPhone 17 Pro) and open it in the T3 Device panel, or call the device_screenshot MCP tool.
  3. Take a screenshot. It fails every time.
  4. On the Mac, xcrun simctl io <udid> screenshot --display=1 out.png fails with the same error. xcrun simctl io <udid> screenshot out.png and --display=internal both succeed.

Version

T3 Code 0.1.5 (server: t3 serve service on Linux; Mac desktop app T3 Code (Beta) 0.1.5). expo-device-hub 0.19.0-canary-20261023-1357114.

Environment

Device host: MacBook Pro 2018 (Intel i9-8950HK, x86_64), macOS 15.7.9, Xcode 26.3 (17C529), iOS 26.2 simulator runtime. Server: Linux x64, Node 26.12.1. Clients: Linux desktop app and iOS app 2.2.0, both over T3 Connect.

Evidence

# device host hub.log (~/.t3/device/hosts/<owner>/hub.log), repeated for each attempt
simctl screenshot failed for 3C7A115F-197A-4626-A6A0-A5353B1E975C: Detected file type 'PNG' from extension
Error: Device does not have a '1' display port

# server.trace.ndjson on the Linux server
DeviceHubOperations.screenshot Failure: DeviceOperationError: Device screenshot failed: Could not communicate with device support. Try refreshing devices.

# manual, on the Mac
$ xcrun simctl io <udid> screenshot out.png             # Wrote screenshot to: out.png
$ xcrun simctl io <udid> screenshot --display=internal out.png  # Wrote screenshot to: out.png
$ xcrun simctl io <udid> screenshot --display=1 out.png  # Error: Device does not have a '1' display port

Related issues

  • [Bug]: Device screenshot fails with 500 on iPhone Duo (Xcode 27.2): serve-sim calls simctl without --display #24900: the fix for that issue (fix(server): select the active iPhone Duo display for screenshots #24912, hub bump) appears to have caused this regression on Xcode 26.x.
  • [Bug]: device_screenshot returns bare "Device screenshot failed." and drops the reason (device shut down, not open, hub error) #24033: the bare screenshot error hides the simctl reason. Related, but that issue is about the error message, not this failure.
  • Separate: [Bug]: iOS Simulator video never arrives from an Intel (x86_64) SSH device host: vendored serve-sim is arm64-only #17935 / discussion iOS Simulator video never arrives from an Intel (x86_64) SSH device host: vendored serve-sim is arm64-only #18804 cover the Intel video stream (serve-sim is arm64-only). That is a different failure from this one. Screenshots go through simctl, not the arm64 native addon.

Fix applied or workaround

None applied. Workaround: take screenshots manually with xcrun simctl io booted screenshot out.png on the Mac.

Filed by

Claude Code (claude-opus-5-5) via t3 triage

Activity

  1. shivamhwp
    added 3 commits that reference this issue on Nov 3, 2026

    fix(server): iOS screenshots work again on Xcode 26 simulators

    This issue will close once commit d14435c is merged into the 'main' branch.
    d14435c

    fix(server): iOS screenshots work again on Xcode 26 simulators

    This issue will close once commit 3617eaa is merged into the 'main' branch.
    3617eaa

    fix(server): iOS screenshots work again on Xcode 26 simulators

    This issue will close once commit 6b75e74 is merged into the 'main' branch.
    6b75e74
  2. charlieweinberger commented on Nov 5, 2026

    @charlieweinberger
    charlieweinberger
    on Nov 5, 2026
    More actions

    Additional observation on T3 Code Beta 0.1.7, local Apple Silicon host, expo-device-hub 0.19.1, agent-device 0.21.31, iOS 26.3 simulator.

    device_list confirmed the owned simulator was booted and device_open succeeded. device_screenshot failed twice, including after following its device-list advice:

    Device screenshot failed: The device hub could not complete the request. Call device_list to check the device state, and device_open if it needs to be reopened.

    The installed 0.19.1 vendored serve-sim screenshot implementation still passes --display=${display} from a numeric display value. Installed simctl io help documents internal, external, or a port UUID. We have not captured the underlying simctl stderr for this occurrence, so this is consistent with this issue, not an independently proven reproduction of the exact invalid-port error.

    In an earlier local session, the supported bound agent-device screenshot command succeeded and its PNG was inspected while the hub capture failed. That fallback has not been tried on the current isolated simulator: T3's injected device instructions require stopping after a failed retry, with no exception for its own supported screenshot CLI. This turns the capture regression into a complete verification blocker.

    Suggested regression coverage: screenshot on an Xcode 26.x single-display simulator and newer multi-display simulators; resolve a display selector supported by the installed simctl rather than universally substituting internal. Preserve the underlying capture error in the tool response. See also #24033 for error propagation.

  3. shivamhwp
    added a commit that references this issue on Nov 6, 2026

    fix(server): iOS screenshots work again on Xcode 26 simulators

    This issue will close once commit 94464bf is merged into the 'main' branch.
    94464bf
  4. juliusmarminge commented on Nov 10, 2026

    @juliusmarminge
    juliusmarminge
    on Nov 10, 2026 – with GitCafe Production
    Member
    More actions

    Fixed by #28353, merged as 41443e5. Thanks for the detailed report and reproduction!

  5. juliusmarminge
    closed this as completedon Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.