Skip to content

[devicelab] Mac_arm64_ios flutter_gallery_ios__compile fails with Xcode 26 #175918

Description

@danagbemava-nc

Steps to reproduce

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 flutter_gallery_ios__compile 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. This is similar to #175905 albeit with different references

�[0m�[34m[2025-09-24 09:02:10.801473] [STDOUT] stderr: Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibility51
[2025-09-24 09:02:10.801503] [STDOUT] stderr: 
�[0m�[34m[2025-09-24 09:02:10.801783] [STDOUT] stderr: Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibility56
[2025-09-24 09:02:10.801811] [STDOUT] stderr: 
[2025-09-24 09:02:10.801825] [STDOUT] stderr: Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency
[2025-09-24 09:02:10.801837] [STDOUT] stderr: 
[2025-09-24 09:02:10.801846] [STDOUT] stderr: Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
[2025-09-24 09:02:10.801856] [STDOUT] stderr: 
�[0m�[34m[2025-09-24 09:02:10.883960] [STDOUT] stderr: Encountered error while building for device.

Code sample

N/A

Screenshots or Video

N/A

Logs

Mac_arm64_ios_flutter_gallery_ios__compile.log

Mac_arm64_ios_flutter_gallery_ios__compile_xcode26.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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions