Skip to content

Wirelessly paired iPhone launches app, stuck at Dart VM Service discovery and does not attach #144634

@hellohuanlin

Description

@hellohuanlin

Steps to reproduce

When I run device lab test:

../../bin/dart bin/run.dart -d 00008030-001A083911C3802E --ab=2 --local-engine=ios_profile_unopt --local-engine-host host_profile_unopt -t platform_views_scroll_perf_ad_banners__timeline_summary

My phone shows a white screen and gets stuck. It looks like it's waiting for "Dart VM Service".

I have clicked this "Allow". Also tried uninstalling and reinstalling.

This didn't happen last week, with exactly the same code.

Expected results

NA

Actual results

NA

Code sample

[2024-03-05 11:26:42.539065] [STDOUT] stdout:            2024-03-05 11:26:42.277 xcodebuild[33190:2944419] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
[2024-03-05 11:26:42.551960] [STDOUT] stdout: [  +52 ms] executing: /usr/bin/xcode-select --print-path
[2024-03-05 11:26:42.558253] [STDOUT] stdout: [   +6 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[2024-03-05 11:26:42.558270] [STDOUT] stdout: [        ] /Applications/Xcode.app/Contents/Developer
[2024-03-05 11:26:42.558459] [STDOUT] stdout: [        ] executing: /usr/bin/arch -arm64e xcrun osascript -l JavaScript /Users/huanlin/Desktop/flutter/flutter/packages/flutter_tools/bin/xcode_debug.js check-workspace-opened --xcode-path /Applications/Xcode.app --project-path /Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj --workspace-path /Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/ios/Runner.xcworkspace --verbose
[2024-03-05 11:26:42.645908] [STDOUT] stdout: [  +87 ms] {"status":false,"errorMessage":"Xcode is not running","debugResult":null}
[2024-03-05 11:26:42.645933] [STDOUT] stdout: 
[2024-03-05 11:26:42.645938] [STDOUT] stdout:            {"command":"check-workspace-opened","xcodePath":"/Applications/Xcode.app","projectPath":"/Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj","projectName":null,"expectedConfigurationBuildDir":null,"workspacePath":"/Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/ios/Runner.xcworkspace","targetDestinationId":null,"targetSchemeName":null,"skipBuilding":null,"launchArguments":null,"closeWindowOnStop":null,"promptToSaveBeforeClose":null,"verbose":true}
[2024-03-05 11:26:42.646373] [STDOUT] stdout: [        ] Error checking if project opened in Xcode: Xcode is not running
[2024-03-05 11:26:42.646518] [STDOUT] stdout: [        ] executing: open -a /Applications/Xcode.app -g -j -F /Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/ios/Runner.xcworkspace
[2024-03-05 11:26:42.729353] [STDOUT] stdout: [  +82 ms] executing: /usr/bin/arch -arm64e xcrun osascript -l JavaScript /Users/huanlin/Desktop/flutter/flutter/packages/flutter_tools/bin/xcode_debug.js debug --xcode-path /Applications/Xcode.app --project-path /Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj --workspace-path /Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/ios/Runner.xcworkspace --project-name Runner --expected-configuration-build-dir /Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/build/ios/iphoneos --device-id 00008030-001A083911C3802E --scheme Runner --skip-building --launch-args ["--enable-dart-profiling","--start-paused","--verbose-logging","--enable-impeller=true","--vm-service-host=0.0.0.0"] --verbose
[2024-03-05 11:26:42.770374] [STDOUT] stdout: [  +40 ms] stderr: {"command":"debug","xcodePath":"/Applications/Xcode.app","projectPath":"/Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj","projectName":"Runner","expectedConfigurationBuildDir":"/Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/build/ios/iphoneos","workspacePath":"/Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/ios/Runner.xcworkspace","targetDestinationId":"00008030-001A083911C3802E","targetSchemeName":"Runner","skipBuilding":true,"launchArguments":["--enable-dart-profiling","--start-paused","--verbose-logging","--enable-impeller=true","--vm-service-host=0.0.0.0"],"closeWindowOnStop":null,"promptToSaveBeforeClose":null,"verbose":true}
[2024-03-05 11:26:45.881182] [STDOUT] stdout: [+3110 ms] stderr: Workspace: /Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/ios/Runner.xcworkspace
[2024-03-05 11:26:47.071875] [STDOUT] stdout: [+1190 ms] stderr: Device: My Mac (00006002-0014504C11FBC01E)
[2024-03-05 11:26:47.187233] [STDOUT] stdout: [ +115 ms] stderr: Device: Huan’s iPhone 13 Mini (00008110-00023DDC1A84801E)
[2024-03-05 11:26:47.317621] [STDOUT] stdout: [ +129 ms] stderr: Device: iPad (00008103-000D25610E33001E)
[2024-03-05 11:26:47.426878] [STDOUT] stdout: [ +109 ms] stderr: Device: iPhone 11 (00008030-001A083911C3802E)
[2024-03-05 11:26:48.795289] [STDOUT] stdout: [+1368 ms] stderr: CONFIGURATION_BUILD_DIR: /Users/huanlin/Desktop/flutter/flutter/dev/benchmarks/platform_views_layout/build/ios/iphoneos
[2024-03-05 11:26:48.836169] [STDOUT] stdout: [  +40 ms] stderr: Action result status: not yet started
[2024-03-05 11:26:49.354369] [STDOUT] stdout: [ +517 ms] {"status":true,"errorMessage":null,"debugResult":{"completed":false,"status":"running","errorMessage":null}}
[2024-03-05 11:26:49.357745] [STDOUT] stdout: [   +4 ms] Application launched on the device. Waiting for Dart VM Service url.
[2024-03-05 11:26:49.366759] [STDOUT] stdout: [   +7 ms] Checking for advertised Dart VM Services...
[2024-03-05 11:28:04.364272] [STDOUT] stderr: [+74997 ms] The Dart VM Service was not discovered after 75 seconds. This is taking much longer than expected...
[2024-03-05 11:28:04.364376] [STDOUT] stderr: [        ] Open the Xcode window the project is opened in to ensure the app is running. If the app is not running, try selecting "Product > Run" to fix the problem.
[2024-03-05 11:28:04.364390] [STDOUT] stderr: [        ] 
[2024-03-05 11:28:04.364403] [STDOUT] stderr:            Click "Allow" to the prompt asking if you would like to find and connect devices on your local network. This is required for wireless debugging. If you selected "Don't Allow", you can turn it on in Settings > Your App Name > Local Network. If you don't see your app in the Settings, uninstall the app and rerun to see the prompt again.

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions