Once Mac Designed for iPad are discoverable #141290 implement flutter run and flutter drive on these devices.
We originally didn't allow flutter run to avoid confusion with macOS-proper development when that platform was not yet in stable (see comment in #84411). Now that macOS development has been in stable for awhile, and arm64 Macs are far more prevalent, let's enable this to make it easier for developers to debug their app in whatever way Apple supports.
Test as many as the run and drive flags as possible. If any of them don't make sense for Mac Designed for iPad throw a toolExit() in the respective validateCommand() methods so it just fails instead of doing some weird behavior.
|
Future<void> validateCommand() async { |
|
Future<void> validateCommand() async { |
Once implemented, validate it works from the IDE GUI.
Part of #125741
Once
Mac Designed for iPadare discoverable #141290 implementflutter runandflutter driveon these devices.We originally didn't allow
flutter runto avoid confusion with macOS-proper development when that platform was not yet in stable (see comment in #84411). Now that macOS development has been in stable for awhile, and arm64 Macs are far more prevalent, let's enable this to make it easier for developers to debug their app in whatever way Apple supports.Test as many as the
runanddriveflags as possible. If any of them don't make sense forMac Designed for iPadthrow atoolExit()in the respectivevalidateCommand()methods so it just fails instead of doing some weird behavior.flutter/packages/flutter_tools/lib/src/commands/run.dart
Line 583 in d1f3ae7
flutter/packages/flutter_tools/lib/src/commands/drive.dart
Line 220 in d1f3ae7
Once implemented, validate it works from the IDE GUI.
Part of #125741