Revyl Documentation

Runtime / Mobile

iPhone Duo

Start an iPhone Duo session on iOS 27.1, fold and unfold it from the CLI, the local MCP server or a test, and see what follows the active display.

Revyl runs the iPhone Duo, Apple's foldable iPhone, as an iOS simulator on iOS 27.1. You fold and unfold a running iPhone Duo from the CLI, the local MCP server, a YAML test step, the test editor, or the quick actions in a live session.

Start an iPhone Duo session

revyl device start --platform ios --device-model "iPhone Duo" --os-version "iOS 27.1" --computer=none

--computer=none starts a standalone device even when your shell runs inside a Revyl computer. revyl device targets --platform ios lists the iPhone Duo with the iOS versions it pairs with.

To build your app for it remotely, pin the ios-macos-26-xcode-27.1 image, which has the iOS 27.1 simulator SDK. See Toolchain images and Artifact requirements for the simulator app it needs to produce.

Fold and unfold

From the CLI, revyl device set-fold-state takes exactly folded or unfolded:

revyl device set-fold-state unfolded
revyl device screenshot --out unfolded.png
revyl device set-fold-state folded
revyl device screenshot --out folded.png

These commands act on your active session. When more than one session is live, pass -s <session-id> to each.

The command succeeds only after the device confirms the fold. With --json, a fold returns {"fold_state":"folded","status":"set"}. The command waits up to 30 seconds for the device to confirm. If no confirmation arrives, check the same session in the viewer or with revyl device screenshot before you fold again. See Live Fold State.

From an agent, the device_set_fold_state tool in the local core and full profiles of Revyl's MCP server does the same on a running iPhone Duo. See MCP tools.

In a test, add a set_fold_state step:

- type: manual
  step_type: set_fold_state
  step_description: "unfolded"

The test editor has the same step, and a live session has fold and unfold in its quick actions. See YAML test format.

What follows the active display

Live views and reports follow whichever iPhone Duo display is active. A fold changes the screen size, so take a new screenshot after each fold before you tap by coordinates. In a CLI capture on December 1, 2026, the folded screenshot was 1398 × 2034 pixels and the unfolded one was 2853 × 2007, both sizes App Store Connect lists for iPhone Duo screenshots.

Scope

A fold step sets the iPhone Duo to folded or unfolded. For the partially open pose and hinge angles, use Xcode's Device Hub, or XCUIHinge in the Xcode 27.3 beta.

Atlas builds its map from web sessions and from sessions on single-display iOS and Android devices.

For Apple's side, including the Xcode versions, the layout APIs and the App Store dates, read iPhone Duo simulator: where to get it and how to fold it.

On this page