-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Error: Did not find a Dart VM Service advertised for xxx #151328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
[ +3 ms]
#0 throwToolExit
(package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand
(package:flutter_tools/src/commands/run.dart:840:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command.dart:1394:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#4 CommandRunner.runCommand
(package:args/command_runner.dart:212:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:372:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand
(package:flutter_tools/src/runner/flutter_command_runner.dart:308:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure>
(package:flutter_tools/runner.dart:130:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:93:3)
<asynchronous suspension> |
Hi @hugaveme
Please provide the entire output of |
output.txt |
Thanks, I can see the build failed on
|
I am using wired debugging and can run the project using xcode. However, the same problem occurs when running flutter. |
Thanks for your response. I can't reproduce this issue, will label this for input from others. |
Related to #127875 |
Quick question:
|
Looks like output suggests the phone actually is connected, so I wonder if the bug is in our port forwarding via From the log attached above.
|
I don't quite understand how you confirm the forwarding error about iproxy above. What can I do to provide the information you need? |
Sorry that was more of a comment to myself and anyone else who's trying to repro this. I'll do some local exploration to see if I can find a nice way to collect info to verify whether |
I remember i occasionally had this before. My fix was to restart the computer. |
I have tried restarting the computer but it doesn't work. I also found that there is no problem debugging through the Xcode simulator, and the VM can start normally; but real machine debugging does not work. |
I tried this https://flutter.keicode.com/devenv/flutter-on-mac-catalina.php (Sorry for the Japanese article.) |
Interesting; that should only be necessary when running unsigned (or incorrectly signed) binaries. This shouldn't be necessary though since we codesign the libimobiledevice binaries we distribute in the Flutter SDK. Out of curiosity, can you try two things in a terminal and let me know the output? I'm interested in answers from both @nunupy345345 and @hugaveme.
% which iproxy
iproxy not found
% codesign -dv --verbose=4 bin/cache/artifacts/usbmuxd/iproxy
Executable=/Users/cbracken/Developer/flutter/flutter/bin/cache/artifacts/usbmuxd/iproxy
Identifier=iproxy
Format=Mach-O thin (x86_64)
CodeDirectory v=20500 size=498 flags=0x10000(runtime) hashes=7+5 location=embedded
VersionPlatform=1
VersionMin=658944
VersionSDK=658944
Hash type=sha256 size=32
CandidateCDHash sha256=0708007ef94a7b90f044272d4776de7a10dea6f8
CandidateCDHashFull sha256=0708007ef94a7b90f044272d4776de7a10dea6f8a08e8fb5865841d1a9a6fc99
Hash choices=sha256
CMSDigest=0708007ef94a7b90f044272d4776de7a10dea6f8a08e8fb5865841d1a9a6fc99
CMSDigestType=2
Page size=4096
CDHash=0708007ef94a7b90f044272d4776de7a10dea6f8
Signature size=8979
Authority=Developer ID Application: FLUTTER.IO LLC (S8QB4VV633)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Timestamp=2020-09-02 at 17:16:31
Info.plist=not bound
TeamIdentifier=S8QB4VV633
Runtime Version=10.14.0
Sealed Resources=none
Internal requirements count=1 size=168 |
Also please provide:
(it's notarization that matters, in addition to codesigning) |
@jmagman
|
The problem I encountered was that the Dart VM Service could not start normally, which resulted in the inability to use hot loading when the app and the phone were debugged. I did not encounter any warnings similar to the above. |
The above operation still cannot solve the problem. But I found that when debugging with the simulator of Xcode, the Dart VM Service can be started normally. |
Doesn't work for wireless connection |
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
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: