Skip to content

iOS: integration test hangs on white screen and Dart VM Service is not discovered when running drive-examples #188106

Description

@sreevishnuqa

Steps to reproduce

Environment
Flutter Version: 3.44.2 (Stable)
Xcode Version: 27 Beta
Device: Physical iPhone
Platform: iOS
Repository: flutter/packages
Package: image_picker_ios

Steps to Reproduce
Clone the flutter/packages repository.
Navigate to the packages repository root.
Connect a physical iPhone device and integration tests

Ex Run:
dart run script/tool/bin/flutter_plugin_tools.dart drive-examples --ios --packages image_picker_ios

Expected results

Expected Result
Example application should launch successfully.
Dart VM Service should be discovered.
Integration tests should start and complete successfully.

Actual results

Actual Result
Example application is built and installed successfully.
A blank white screen is displayed on the device.
Integration test execution does not proceed.

Terminal reports:
Xcode build done. 11.9s
The Dart VM Service was not discovered after 60 seconds. This is taking much longer than expected...

Additional Notes
Issue reproduced consistently on a physical iPhone.
No test failures are reported because test execution never starts.
Earlier deployment target issues were addressed, and the application now builds successfully before encountering this runtime hang.
Also observed warning during execution:

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[### Observed Logs

**Command Executed**

```bash
dart run script/tool/bin/flutter_plugin_tools.dart drive-examples --ios --packages image_picker_ios

Console Output

Running command: "flutter test -d <device_id> integration_test" in packages/image_picker/image_picker_ios/example

Plugin image_picker_ios has a Package.swift for ios but is missing a dependency on FlutterFramework.

Automatically signing iOS for device deployment using specified development team.

Xcode build done. 11.9s

The Dart VM Service was not discovered after 60 seconds. This is taking much longer than expected...

05:03 +0: loading packages/image_picker/image_picker_ios/example/integration_test/image_picker_test.dart

Observed Behavior

  • Example application builds successfully.
  • Application is installed on the physical iPhone.
  • Device displays a blank white screen after launch.
  • Dart VM Service is not discovered.
  • Integration test remains stuck and does not execute any test cases.
  • No pass/fail result is produced.

]


</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[vishnu@vishnu ~ % flutter doctor -v
[✓] Flutter (Channel stable, 3.44.2, on macOS 26.6 25G5028f darwin-arm64, locale en-US) [565ms]
    • Flutter version 3.44.2 on channel stable at /Users/vishnu/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c9a6c48423 (7 days ago), 2026-06-10 15:52:41 -0700
    • Engine revision 77e2e94772
    • Dart version 3.12.2
    • DevTools version 2.57.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android,
      enable-ios, cli-animations, enable-native-assets, enable-swift-package-manager, omit-legacy-version-file,
      enable-lldb-debugging, enable-uiscene-migration

[✓] Android toolchain - develop for Android devices (Android SDK version 37.0.0) [2.6s]
    • Android SDK at /Users/vishnu/Library/Android/sdk
    • Emulator version 36.6.11.0 (build_id 15507667) (CL:N/A)
    • Platform android-37.0, build-tools 37.0.0
    • ANDROID_HOME = /Users/vishnu/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.10+-117844308-b1163.108)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 27.0) [2.1s]
    • Xcode at /Users/vishnu/Downloads/Xcode-beta.app/Contents/Developer
    • Build 27A5194q
    • CocoaPods version 1.16.2

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

[✓] Connected device (3 available) [6.3s]
    • flutter’s iPhone (mobile) • 00008150-00125C1401C2401C • ios            • iOS 27.0 24A5355q
    • macOS (desktop)           • macos                     • darwin-arm64   • macOS 26.6 25G5028f darwin-arm64
    • Chrome (web)              • chrome                    • web-javascript • Google Chrome 149.0.7827.104
    ! Error: Browsing on the local area network for Quincy iphone 14 pro. Ensure the device is unlocked and attached
      with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

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

]

Metadata

Metadata

Assignees

Labels

from: manual-qaIssue caught from manual QA processhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Fields

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