Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter : How to specify a device id in flutter?

Tags:

flutter

dart

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) 
like image 428
Nizzam Avatar asked Apr 06 '18 03:04

Nizzam


People also ask

How do I identify a device on Flutter?

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).


1 Answers

Simply use

flutter run -d iPhone 6 

For me this also works fine

flutter run -d BA8CXXXXXXD0-577D675d 
like image 182
ap14 Avatar answered Oct 03 '22 22:10

ap14