flutter / flutter/flutter

Error: Did not find a Dart VM Service advertised for xxx

Open
#151,328 22 comments 2 reactions 0 assignees View on GitHub
needs repro info P2 platform-ios team-ios tool triaged-ios
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1.flutter Create a new project
2.flutter run -v

### Expected results

Ability to enter debug mode, hot-load debugging possible.

### Actual results

Error: Did not find a Dart VM Service advertised for xxx

### Code sample

Code sample

```dart
[Paste your code here]
```

### Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

### Logs

Logs

```console
The Dart VM Service was not discovered after 60 seconds. This is taking much longer than expected...
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.
[ +5 ms] Checking for advertised Dart VM Services...
[+1994 ms] Checking for available port on
com.example.vmcs._dartVmService._tcp.local
[+5005 ms] Checking for available port on
com.example.vmcs._dartVmService._tcp.local
[+5004 ms] Unexpectedly found more than one Dart VM Service report for
com.example.vmcs._dartVmService._tcp.local - using first one
(54292).
[ +3 ms] Checking for available port on
com.example.vmcs._dartVmService._tcp.local
[ ] Checking for available port on
com.example.vmcs._dartVmService._tcp.local
[ ] Checking for available port on
com.example.vmcs._dartVmService._tcp.local
[ ] Checking for available port on
com.example.vmcs._dartVmService._tcp.local
[ ] Checking for available port on
com.example.vmcs._dartVmService._tcp.local
[ ] Checking for available port on
com.example.vmcs._dartVmService._tcp.local
[ ] Checking for available port on
com.example.vmcs._dartVmService._tcp.local
[ ] Checking for available port on
com.example.vmcs._dartVmService._tcp.local
[+3348 ms] Checking for available port on
com.example.vmcs._dartVmService._tcp.local
[ +4 ms] Checking for available port on
com.example.vmcs._dartVmService._tcp.local
[+44636 ms] The Dart VM Service was not discovered after 60 seconds. This is
taking much
longer than expected...
[ +1 ms] 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.
[ ] No path provided for Symbols directory.
Error: Did not find a Dart VM Service advertised for xxx
```

### Flutter Doctor output

Doctor output

```console
Apple M3 Pro
MacOS:14.5 (23F79)

Xcode - develop for iOS and macOS (Xcode 15.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15F31d
• CocoaPods version 1.15.2

Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale
zh-Hans-CN)
• Flutter version 3.22.2 on channel stable at /Users/22hu/Desktop/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 761747bfc5 (4 weeks ago), 2024-06-05 22:15:13 +0200
• Engine revision edd8546116
• Dart version 3.4.3
• DevTools version 2.34.3
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.