Skip to content

[devicelab] Mac_arm64 module_test_ios fails with Xcode 26 #175905

@danagbemava-nc

Description

@danagbemava-nc

Steps to reproduce

  1. Clone the flutter repo
  2. Follow the setup instructions for the devicelab tests in https://github.com/flutter/flutter/blob/master/docs/contributing/testing/Running-and-writing-tests.md#running-device-lab-tests-locally
  3. From the devicelab directory run ../../bin/dart bin/run.dart -t module_test_ios with Xcode 26

Expected results

The test passes as it does on Xcode 16

Actual results

The test fails with Xcode 26. It appears to be related to some undefined symbols as I see this in the logs right before the test fails

The same test passes as expected on Xcode 16.3. Logs for both versions of xcode are attached below.

[2025-09-24 07:03:07.698090] [STDOUT] stdout: Undefined symbols for architecture arm64:
�[0m�[34m[2025-09-24 07:03:07.698096] [STDOUT] stdout:   "__swift_FORCE_LOAD_$_swiftCompatibility51", referenced from:
[2025-09-24 07:03:07.698241] [STDOUT] stdout:       __swift_FORCE_LOAD_$_swiftCompatibility51_$_url_launcher_ios in liburl_launcher_ios.a[3](Launcher.o)
[2025-09-24 07:03:07.698258] [STDOUT] stdout:   "__swift_FORCE_LOAD_$_swiftCompatibility56", referenced from:
[2025-09-24 07:03:07.698263] [STDOUT] stdout:       __swift_FORCE_LOAD_$_swiftCompatibility56_$_url_launcher_ios in liburl_launcher_ios.a[3](Launcher.o)
[2025-09-24 07:03:07.698266] [STDOUT] stdout:   "__swift_FORCE_LOAD_$_swiftCompatibilityConcurrency", referenced from:
[2025-09-24 07:03:07.698269] [STDOUT] stdout:       __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_url_launcher_ios in liburl_launcher_ios.a[3](Launcher.o)
[2025-09-24 07:03:07.698274] [STDOUT] stdout: ld: symbol(s) not found for architecture arm64
[2025-09-24 07:03:07.698276] [STDOUT] stdout: clang: error: linker command failed with exit code 1 (use -v to see invocation)
[2025-09-24 07:03:07.698280] [STDOUT] stdout: 

Code sample

N/A

Screenshots or Video

N/A

Logs

Mac_arm64_module_test_ios_xcode26.log
Mac_arm64_module_test_ios.log

Flutter Doctor output

Doctor output
[✓] Flutter (Channel master, 3.37.0-1.0.pre-256, on macOS 15.6.1 24G90 darwin-arm64, locale en-GH) [3.2s]
    • Flutter version 3.37.0-1.0.pre-256 on channel master at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d1c69e931c (3 hours ago), 2025-09-24 00:49:42 -0400
    • Engine revision d1c69e931c
    • Dart version 3.10.0 (build 3.10.0-236.0.dev)
    • DevTools version 2.50.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-dart-data-assets, omit-legacy-version-file, enable-windowing, enable-lldb-debugging

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [1,932ms]
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Emulator version 36.1.9.0 (build_id 13823996) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • ANDROID_HOME = /Users/nexus/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [1,680ms]
    • Xcode at /Applications/Xcode-16.3.0.app/Contents/Developer
    • Build 16E140
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [4ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Connected device (5 available) [6.9s]
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 16 (API 36) (emulator)
    • iPhone 16 Pro Max (mobile)  • 00008140-00194CC23A68801C            • ios            • iOS 26.1 23B5044l
    • iPhone 17 (mobile)          • 9C921F07-0975-4CC8-95E5-57721BC18827 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-26-0 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 15.6.1 24G90 darwin-arm64
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 140.0.7339.133

[✓] Network resources [921ms]
    • All expected network resources are available.

• No issues found!
[✓] Flutter (Channel master, 3.37.0-1.0.pre-256, on macOS 15.6.1 24G90 darwin-arm64, locale en-GH) [1,941ms]
    • Flutter version 3.37.0-1.0.pre-256 on channel master at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d1c69e931c (3 hours ago), 2025-09-24 00:49:42 -0400
    • Engine revision d1c69e931c
    • Dart version 3.10.0 (build 3.10.0-236.0.dev)
    • DevTools version 2.50.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-dart-data-assets, omit-legacy-version-file, enable-windowing, enable-lldb-debugging

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [1,366ms]
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Emulator version 36.1.9.0 (build_id 13823996) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • ANDROID_HOME = /Users/nexus/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.0) [956ms]
    • Xcode at /Applications/Xcode-26.0.0-release-candidate.app/Contents/Developer
    • Build 17A321
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [4ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Connected device (5 available) [6.4s]
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 16 (API 36) (emulator)
    • iPhone 16 Pro Max (mobile)  • 00008140-00194CC23A68801C            • ios            • iOS 26.1 23B5044l
    • iPhone 17 (mobile)          • 9C921F07-0975-4CC8-95E5-57721BC18827 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-26-0 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 15.6.1 24G90 darwin-arm64
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 140.0.7339.133

[✓] Network resources [1,128ms]
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: regressionIt was better in the past than it is nowfound in release: 3.37Found to occur in 3.37frameworkflutter/packages/flutter repository. See also f: labels.from: manual-qaIssue caught from manual QA processhas reproducible stepsThe issue has been confirmed reproducible and is ready to work oninfra: device labInfrastructure device lab problemsplatform-iosiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    Status

    Not started

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions