How to select a device id in flutter run?
please specify a device with the '-d ' flag, or use '-d all' to act on all devices
iPhone 6 • 54XXXXXX35130ebefd38f • ios • iOS 10.3.3 iPhone 7 Plus • BA8CXXXXXXD0-577D675d • ios • iOS 11.2 (simulator)
If you need only the id of the device that your app is running on, the simplest and quickest solution is to use the platform_device_id package. It works on Android (AndroidId), iOS (IdentifierForVendor), Windows (BIOS UUID), macOS (IOPlatformUUID), and Linux (BIOS UUID).
Simply use
flutter run -d iPhone 6
For me this also works fine
flutter run -d BA8CXXXXXXD0-577D675d
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With