Support `flutter run` and `flutter drive` for `Mac Designed for iPad` apps on arm64 Macs
- Dominant language
- Dart
- Stars
- 179k
- Forks
- 31.1k
- PR merge metrics
- PR metrics pending
Description
Once `Mac Designed for iPad` are discoverable https://github.com/flutter/flutter/issues/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 https://github.com/flutter/flutter/pull/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.
https://github.com/flutter/flutter/blob/d1f3ae73eb21187220a9498665352a63b9a547e7/packages/flutter_tools/lib/src/commands/run.dart#L583
https://github.com/flutter/flutter/blob/d1f3ae73eb21187220a9498665352a63b9a547e7/packages/flutter_tools/lib/src/commands/drive.dart#L220
Once implemented, validate it works from the IDE GUI.
Part of https://github.com/flutter/flutter/issues/125741
Contributor guide
Assessment
This issue has not been assessed yet.