Skip to content

[ios] uiscene integration test doesn't use the correct runtime when Xcode 27 is installed #194147

Closed

Description

@hellohuanlin

Steps to reproduce

  1. Install Xcode 27.1 beta
  2. sudo xcode-select -s /Applications/Xcode\ 26.4.app/Contents/Developer
  3. Run UIScene integration test: ../../bin/cache/dart-sdk/bin/dart bin/test_runner.dart test --exit -t uiscene_plugin_lifecycle_test_ios --local-engine ios_debug_sim_unopt_arm64 --local-engine-host host_debug_unopt_arm64

Expected results

Test passes

Actual results

Test failed:

Unable to create a device for device type: iPad Pro (11-inch) (3rd generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Pro-11-inch-3rd-generation), runtime: iOS 27.1 (27.1 - 24A94401) - com.apple.CoreSimulator.SimRuntime.iOS-27-1

It still tries to use iOS 27.1, even explicitly xcode-select 26.4

This is expected failure because 3rd gen ipad pro doesn't support ios 27 (btw we should fix that by using 4th gen ipad pro)

Solution:

{'preferredBuild': final String build} => build,

Add a new key:

    {'chosenRuntimeBuild': final String build} => build,

Because

xcrun simctl runtime match list --json

This now uses a new key chosenRuntimeBuild rather than preferredBuild:

{
  "appletvos26.4" : {
    "chosenRuntimeBuild" : "23L236",
    "defaultBuild" : "23L236",
    "platform" : "com.apple.platform.appletvos",
    "sdkBuild" : "23L236",
    "sdkDirectory" : "\/Applications\/Xcode 26.4.app\/Contents\/Developer\/Platforms\/AppleTVOS.platform\/Developer\/SDKs\/AppleTVOS26.4.sdk",
    "sdkVersion" : "26.4"
  },
  "iphoneos26.4" : {
    "chosenRuntimeBuild" : "23E244",
    "defaultBuild" : "23E237",
    "platform" : "com.apple.platform.iphoneos",
    "sdkBuild" : "23E237",
    "sdkDirectory" : "\/Applications\/Xcode 26.4.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/SDKs\/iPhoneOS26.4.sdk",
    "sdkVersion" : "26.4"
  },
  "watchos26.4" : {
    "chosenRuntimeBuild" : "23T238",
    "defaultBuild" : "23T238",
    "platform" : "com.apple.platform.watchos",
    "sdkBuild" : "23T238",
    "sdkDirectory" : "\/Applications\/Xcode 26.4.app\/Contents\/Developer\/Platforms\/WatchOS.platform\/Developer\/SDKs\/WatchOS26.4.sdk",
    "sdkVersion" : "26.4"
  },
  "xros26.4" : {
    "chosenRuntimeBuild" : "23O238",
    "defaultBuild" : "23O238",
    "platform" : "com.apple.platform.xros",
    "sdkBuild" : "23O238",
    "sdkDirectory" : "\/Applications\/Xcode 26.4.app\/Contents\/Developer\/Platforms\/XROS.platform\/Developer\/SDKs\/XROS26.4.sdk",
    "sdkVersion" : "26.4"
  }
}

Code sample

NA

Screenshots or Video

NA

Logs

NA

Flutter Doctor output

NA

Activity

  1. added
    platform-iosiOS applications specifically
    toolAffects the "flutter" command-line tool. See also t: labels.
    team-iosOwned by iOS platform team
    on Oct 10, 2026
  2. added
    P1High-priority issues at the top of the work list
    on Oct 14, 2026
  3. jmagman commented on Oct 15, 2026

    @jmagman
    Member

    See also #139917 and #139919

  4. self-assigned this
    on Oct 15, 2026
  5. github-actions commented on Oct 31, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  6. locked as resolved and limited conversation to collaborators on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions