Repository navigation
flutter run should support wireless debugging of iOS devices #15072
Copy link
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: annoyanceRepeatedly frustrating issues with non-experimental functionalityRepeatedly frustrating issues with non-experimental functionalityc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.platform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Latest update: #15072 (comment)
Steps to Reproduce
connect iPhone via usb
Open xcode -> window -> devices & Simulators -> select correct device and enable connect via network
Network Symbol is shown in the list to the left
disconnect iPhone
Android Studio shows devices but if you try to run it it is in an endless waiting loop without visual indication
If you then connect the devices via USB it continues on
Logs
https://gist.github.com/phumberdroz/9700d43d2bc9f5e510bebc6dab9b509c
Flutter Doctor
[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, locale en-US)
• Flutter version 0.1.5 at /Users/phumberdroz/flutter
• Framework revision 3ea4d06340 (8 days ago), 2018-02-22 11:12:39 -0800
• Engine revision ead227f118
• Dart version 2.0.0-dev.28.0.flutter-0b4f01f759
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/phumberdroz/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.4.0
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.3.4)
• Flutter plugin version 22.2.2
• Dart plugin version 173.4548.30
[✓] VS Code (version 1.20.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.9.2
[✓] Connected devices (2 available)
• Pierre’s iPhone • ec754a5c0607923df2a99ccd051938e0045dee6b • ios • iOS 11.2.6
• iPhone 7 • 5001A557-2FB6-49EB-8C5C-ABC8396F19E9 • ios • iOS 11.2 (simulator)
• No issues found!
> For more information about diagnosing and reporting Flutter bugs, please see [https://flutter.io/bug-reports/](https://flutter.io/bug-reports/).
Reactions are currently unavailable
Metadata
Metadata
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: annoyanceRepeatedly frustrating issues with non-experimental functionalityRepeatedly frustrating issues with non-experimental functionalityc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.platform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Activity
Hixie commentedon May 30, 2018
cc @devoncarew IDE bug
devoncarew commentedon Jun 1, 2018
This issue was moved to flutter/flutter-intellij#2308
devoncarew commentedon Jun 1, 2018
@phumberdroz, to re-phrase your report:
enable connect via networkWe then locate the device correctly, but when you try and run,
flutter rundoesn't work with it. It sounds like flutter_tools doesn't work with the network style connection. @cbracken @xster[-]Wireless Debugging does not work with Android Studio[/-][+]flutter_tools doesn't support the wireless debugging style connections for iOS devices (for flutter run)[/+]phumberdroz commentedon Jun 1, 2018
100% correct
cbracken commentedon Jun 4, 2018
I suspect we'll need to apply patches to our integration with the
libimobiledevicetoolchain. IIRC, we intentionally disabled wifi debugging due to issues a couple of years ago. I'll see if I can dig up the issue(s) and x-ref them here then we can look at a fix. Tooling has improved significantly since then, so definitely worth another look.cbracken commentedon Jun 4, 2018
#8309 is where I disabled this. #7233 and #8308 were a couple reports of issues with wifi debugging enabled.
tonikami commentedon Nov 24, 2018
@cbracken Any update on this?
anderscheow commentedon Feb 11, 2019
We need this :(
zoechi commentedon Feb 11, 2019
The thumbs-ups should be on the initial comment to raise priority.
85 remaining items
saviourdog commentedon Nov 18, 2022
edgarfroes commentedon Nov 19, 2022
ahyangnb commentedon Dec 5, 2022
jmagman commentedon Dec 5, 2022
jmagman commentedon Jan 19, 2023
#118826 was temporarily reverted.
jmagman commentedon Jan 20, 2023
#118104 is available on the master channel, and we would love some feedback!
Setup
flutter, you need to do it from Xcode.Add feature to enable iOS wireless debugging from a
fluttercommand. #118912flutter devices --device-timeout 5/flutter run --device-timeout 5etc. from the command line. You may need to adjust that timeout number up depending on your network.Caveats
--device-timeoutto yourfluttercommands, as networked devices take longer to discover. We're working on making this a better experience.iOS network device not available when doing
flutter run#118109iOS network device not selected when running/debugging in VSCode #118113
--device-timeoutasargs.VSCode launch.json example:
flutter attach, you must add--observatory-host=0.0.0.0or--observatory-host=::0as a launch argument in your Xcode scheme. This would also be true for running an add-to-app host app with an embedded Flutter module. See Support iOS wireless debugging #118104 for instructions.Xcode > Window > Devices and Simulators > Devicesand make sure you see the device is under connected with globe network icon, and Connect via Network is checked. If either isn't true then you'll have to play with the settings in Xcode until it shows up.Please file new issues, including usability suggestions, as you see them. Thank you!
AmitSonkhiya commentedon Jan 30, 2023
Submitted feedback
#119493
jmagman commentedon Feb 21, 2023
#118104 is available on 3.7.0-24.0.pre and higher on the beta channel. If you are trying to test this you must either be on the master or beta channels, it is not yet available in stable.
github-actions commentedon Mar 7, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.