Can we run flutter app wirelessly on iOS device?
Asked Answered
P

3

21

In Xcode I'm able to connect iOS device wirelessly but not in android studio. Can anyone know how to do in android studio if it is possible?

Pulpwood answered 17/4, 2020 at 9:24 Comment(3)
what is you Operating SystemGentilis
I m using Mac OS. My iOS device works well via Xcode but not with android studio.Pulpwood
It's now available! https://mcmap.net/q/601196/-can-we-run-flutter-app-wirelessly-on-ios-deviceOssuary
B
18

Not yet, but it will be implemented soon. Take a look at this issue.

Broaddus answered 1/6, 2020 at 17:4 Comment(4)
Not so "soon", it's a P4, even though it's one of the most voted issues.Sanderlin
not implemented yetCoprophilia
There are updates on this, github.com/flutter/flutter/issues/15072#issuecomment-1399056235 explains how to set it upLintwhite
As Kyle Venn said it's out with flutter 3.10 ! check out medium.com/@mfqscode/…Doubleton
O
14

You sure can! On Flutter 3.10. Note: it requires XCode (more details).

https://docs.flutter.dev/add-to-app/debugging#wireless-debugging

  1. Ensure that your device is wirelessly connected to Xcode as described in the iOS setup guide.

  2. Open Xcode > Product > Scheme > Edit Scheme

  3. Select the Arguments tab

  4. Add either --vm-service-host=0.0.0.0 for IPv4, or --vm-service-host=::0 for IPv6 as a launch argument

    You can determine if you’re on an IPv6 network by opening your Mac’s Settings > Wi-Fi > Details (of the network you’re connected to) > TCP/IP and check to see if there is an IPv6 address section.

xcode

Mathis wrote a great write-up with more details if you get stuck.

Ossuary answered 10/5, 2023 at 21:38 Comment(2)
You can check my article if you want fancy images to guide you through the process : medium.com/@mfqscode/…. I cover ios setup + flutter setupDoubleton
Nice write-up! I'll link it in the answer.Ossuary
A
3

Yes, you can run a Flutter app wirelessly on an iOS device using a process called wireless debugging. This process was introduced in Xcode 9. Wireless debugging allows you to deploy and debug your apps on an iOS device without a USB cord. Here's how you can setup wireless debugging:

  1. First, make sure that your iOS device and your Mac are on the same Wi-Fi network.

  2. Connect your iOS device to your Mac using a USB cable.

  3. Open Xcode, then go to the Window menu and choose Devices and Simulators.

  4. Select your device from the Discovered list on the left side of the window.

  5. Check the box that says "Connect via network." A globe icon will appear next to your iOS device in the sidebar, indicating that it's available for wireless debugging.

  6. Disconnect your device from USB. Now, you can deploy and debug apps wirelessly.

You can verify this by running a Flutter app from your terminal with the command: flutter run

If your device is set up correctly, it will appear in the list of available devices.

Please note that if your device or Mac goes to sleep, they might lose network connection, and you might need to reconnect your device to your Mac with a USB cable to re-enable network debugging.

Afrikander answered 18/5, 2023 at 7:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.