Skip to content

flutter run -d <unsupported device> tries to run on the unsupported device #97331

@jmagman

Description

@jmagman

I started working on #97329, and when the tethered device had IosDevice.isSupported() set to false, and then I flutter run -d <unsupported-id> it surprisingly ran on the device without complaint.

Note the correct (unsupported):

$ flutter devices
3 connected devices:

iPhone 4s (mobile) • 1754b457ae0324670be2493c147bf08bdad86907 • ios            • iOS 9.3.6 13G37 (unsupported)
macOS (desktop)    • macos                                    • darwin-x64     • macOS 12.1 21C52 darwin-x64
Chrome (web)       • chrome                                   • web-javascript • Google Chrome 97.0.4692.99

But it was able to flutter run:

$ flutter run -d 1754b457ae0324670be2493c147bf08bdad86907
Launching lib/main.dart on iPhone 4s in debug mode...
etc

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions