I would like to deploy a flutter app to all physical phones connected. My current solution is to deploy to each device one at a time, but I would like to do them all at once. The closest match I found from this answer is to use flutter run -d all
with the --release
flag in order to deploy to all devices.
However, using -d all
attempts to deploy to emulators as well, which throws this error (and does not deploy to any of the devices):
Release mode is not supported by iPhone 8.
Output of flutter devices
looks like this (with true ids removed):
PhysicalPixel (mobile) • XXX1 • android-arm64 • Android 11 (API 30)
PhysicaliPhone (mobile) • XXX2 • ios • iOS 14.4.1
iPhone 8 (mobile) • XXX3 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
Chrome (web) • chrome • web-javascript • Google Chrome
Is there a way to "deploy all" only to physical devices? Desired result deploys to PhysicalPixel
and PhysicaliPhone
(etc. with more phones), but not to iPhone 8
(simulator) or Chrome
.