flutter / flutter/flutter

Support `flutter run` and `flutter drive` for `Mac Designed for iPad` apps on arm64 Macs

Open
#141,328 6 comments 27 reactions 0 assignees View on GitHub
P2 platform-target-arm team-ios triaged-ios
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.