-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Wirelessly paired iPhone launches app, stuck at Dart VM Service discovery and does not attach #144634
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
@hellohuanlin Is the Dart VM url visible in the Xcode console? |
If the app starts with the blank screen, you need to run into console flutter attach then open the dev tools using the url provided after the attach and then resume the app. |
I suspect that this is related to wireless debugging. Just passed the test after wiring up. |
this is happening with the Xcode 15 and iOS 17 to me, but the way that I fixes was that way. have u tried? |
@Hiraokii thanks for your input! This will be run on flutter CI, so manual operations in Xcode won't solve it. |
@hellohuanlin Looks like test It's could be that port publication is disabled, since we disable it for perf tests in CI (#136562), which would cause wireless debugging to not work. |
@jmagman downgraded to P3. I think I will just keep my phone always plugged. Not too important. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Sometimes the debugging session will run into wireless even if you've plugged the cable. A most edged case is if the user is denied access to connected devices then they won't realize because the device is shown in the list. (EDIT: Another case is really really dumb, which I just did. I plugged my phone into my hub but didn't plug the hub's cable into my computer. So the phone is charging but not connected to the computer 😆) There are some approaches that I would suggest:
IMO all of them can help users to realize the issue without struggling. (EDIT: The second approach should be easy to implement and I'd like to go for it if anyone agrees with) |
It's quite a huge inconvenience to wire my phone up every time I start development. It's on a MagSafe charger and connected to a charging cable simultaneously. Could you explain the reason for this issue? Many people including myself would greatly appreciate this feature for a better experience. It's on 3rd priority, which is sad. |
…0497) An improvement for #144634. A wirelessly connected device will displayed as `Target device 1 (wireless)` in various of places. ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
These two improvements are landed in #160497. |
…tter#160497) An improvement for flutter#144634. A wirelessly connected device will displayed as `Target device 1 (wireless)` in various of places. ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
Is wireless launch/debug something that is not supported yet? After many retries and checking all the solutions it still doesn't work for me |
Wireless debugging should work without plugging in your phone. For those of you having issues, please answer the following questions:
|
This comment has been minimized.
This comment has been minimized.
@vashworth 18.1.1
16.2
Yes
It appears in the list and shows network icon. I clicked the icon but nothing happened.
$ flutter run -d {device-id}
Launching lib/main.dart on Dev iPhone (wireless) in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: {project-code}
Running Xcode build...
└─Compiling, linking and signing... 6.4s
Xcode build done. 25.0s
You may be prompted to give access to control Xcode. Flutter uses Xcode to run your app. If access is not allowed, you
can change this through your Settings > Privacy & Security > Automation.
The Dart VM Service was not discovered after 75 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.
Your debugging device seems wirelessly connected. Consider plugging it in and trying again.
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.
Installing and launching... ⣽ $ dns-sd -B _dartVmService._tcp
Browsing for _dartVmService._tcp
DATE: ---Thu 01 May 2025---
13:50:05.819 ...STARTING...
|
I upgraded to 18.4.1 but it didn't help but $ dns-sd -B _dartVmService._tcp
Browsing for _dartVmService._tcp
DATE: ---Thu 01 May 2025---
14:08:54.984 ...STARTING...
Timestamp A/R Flags if Domain Service Type Instance Name
14:08:55.145 Add 2 16 local. _dartVmService._tcp. {my-instance-name} |
Steps to reproduce
When I run device lab test:
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
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
[Paste your output here]
The text was updated successfully, but these errors were encountered: