flutter / website

Flutter documentation web site
https://docs.flutter.dev
Other
2.82k stars 3.22k forks source link

Explain that dev can run a Flutter iOS on an Apple Silicon M1 "Designed for iPad" app using `flutter attach` #5956

Open jmagman opened 3 years ago

jmagman commented 3 years ago

On an arm64 M1 Apple Silicon Mac, a Flutter iOS app can be run from Xcode natively as a desktop app.
Screen Shot 2021-06-10 at 10 22 49 PM Screen Shot 2021-06-10 at 9 36 26 PM

The user can then flutter attach from the command line. The user cannot flutter run, only flutter attach to an already-running app launched from Xcode.

Implemented in https://github.com/flutter/flutter/pull/84411.

whywilson commented 10 months ago

While using flutter attach the connected devices show the Mac Designed for iPad, but after choosing it, it shows below:

Waiting for a connection from Flutter on Mac Designed for iPad...
The Dart VM Service was not discovered after 30 seconds. This is taking much longer than expected...

Click "Allow" to the prompt asking if you would like to find and connect devices on your local network. 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.
                                                                                                                                                                                                                                                                                                                                                      Waiting for a connection from Flutter on Mac Designed for iPad...

But there is no Local Network permission for macOS. Are there any reliable solutions? I'm debugging the App with Bluetooth equipment. If this is solved, it will not need a phone for connection.

jmagman commented 10 months ago

@whywilson Can you file an issue in flutter itself (instead of the documentation website) and completely fill out the template? Thanks!