fix(mobile-benchmark): adopt UIKit scenes so the app launches on iOS 27

Merged
LE
8d ago
+32-0

Issue

Fixes #1894

What changed

  • apps/mobile-benchmark/app.json turns on expo-build-properties' ios.enableSceneSupport, Expo's own SDK 57 switch for the UIKit scene lifecycle. expo-build-properties is pinned at 57.0.23, the version expo@57.0.33's bundledNativeModules.json names.
  • On prebuild it rewrites the template AppDelegate to ExpoAppDelegate, ExpoReactNativeFactoryProvider with no window of its own, and adds a UIApplicationSceneManifest that names EXExpoAppSceneDelegate (shipped in expo@57.0.33). The SDK 58 template has the same shape.
  • No custom config plugin: Expo maintains this one, and on SDK 58 it only warns that the option is no longer needed.
  • The README says why the option is there, how to regenerate an ios/ prebuilt before this change (expo run:ios does not re-prebuild an existing one), and to remove the plugin entry and dependency on SDK 58.
  • examples/with-expo needs no change: its app.json has had the same option since #856. A scratch prebuild of it (expo 57.0.33, expo-build-properties 57.0.23) produces the same AppDelegate and scene manifest. I did not build or run it, so its README "Last checked" line is unchanged.
  • No changeset: @e2e-dev/mobile-benchmark is private.
  • CI: the native fingerprint changes (expoConfig), so mobile.yml misses the Expo cache once and rebuilds the app on both platforms. The Android mods in expo-build-properties are no-ops without android props.

Verified

Ran it locally: yes, the built CLI on the mobile benchmark, Xcode 27.2 (27B52), an iPhone 18 Pro simulator on iOS 27.2. This Mac has no iOS 26 runtime, so CI's iOS 26.5 job is the check there. Android was not run locally.

mainthis branch
Info.plist UIApplicationSceneManifestabsentEXExpoAppSceneDelegate
launch on iOS 27.2exited due to SIGTRAP ... ran for 5047ms (_UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption)runs, home list shown
e2e run --target ios-simulator (59 tests)every test fails: the app is not running44 passed, 14 failed, 1 skipped

Deep links, which now reach JS through the scene delegate:

  • Warm: from Control Inventory, simctl openurl e2e-benchmark://login-form pushes Login Form.
  • Cold: with the app terminated, simctl openurl e2e-benchmark://gestures launches straight into Gestures, over Benchmark Examples.
  • tests/device-fixture.e2e.ts "openLink opens the scenario a deep link names" passed in the last full run.

What the 14 failures are, and why I read them as not caused by this change:

  • 11 are ACTION_FAILED: operation timed out on a screen read, mostly the first read after opening a scenario ("expect gave up after 0 reads in 5.0s"). The screen at failure shows the expected node. The Mac was running an Android emulator and Gradle builds (load average 8 to 27), and a different set of tests failed in each of three runs: 18, then 14, with openLink failing in one and passing in the other.
  • refusals › a missing locator fails as not found got ACTION_FAILED where it expects LOCATOR_NOT_FOUND: the same read timeout.
  • sequential onboarding echoes the exact values and onboarding rejects a malformed email fail every run with UNSUPPORTED_CAPABILITY: keyboard dismissal failed: the keyboard has no dismiss key. That is the engine against iOS 27's keyboard, not the app, and it is out of scope here. dismissing the keyboard over choice controls failed the same way in the previous run, and on a read timeout in this one.

There is no main baseline on iOS 27 to compare the failures against, since main does not launch there.

🤖 Generated with Claude Code