mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Update "no devices" text to suggest "flutter emulators"
This commit is contained in:
parent
b4c967abee
commit
16dc94ef93
@ -32,7 +32,8 @@ class DevicesCommand extends FlutterCommand {
|
||||
if (devices.isEmpty) {
|
||||
printStatus(
|
||||
'No devices detected.\n\n'
|
||||
'If you expected your device to be detected, please run "flutter doctor" to diagnose\n'
|
||||
"Run 'flutter emulators' to list and start any available device emulators.\n\n"
|
||||
'Or, if you expected your device to be detected, please run "flutter doctor" to diagnose\n'
|
||||
'potential issues, or visit https://flutter.io/setup/ for troubleshooting tips.');
|
||||
final List<String> diagnostics = await deviceManager.getDeviceDiagnostics();
|
||||
if (diagnostics.isNotEmpty) {
|
||||
|
||||
@ -216,7 +216,7 @@ class RunCommand extends RunCommandBase {
|
||||
if (getCurrentHostPlatform() == HostPlatform.darwin_x64 &&
|
||||
xcode.isInstalledAndMeetsVersionCheck) {
|
||||
printStatus('');
|
||||
printStatus('To run on a simulator, launch it first: open -a Simulator.app');
|
||||
printStatus("Run 'flutter emulators' to list and start any available device emulators.");
|
||||
printStatus('');
|
||||
printStatus('If you expected your device to be detected, please run "flutter doctor" to diagnose');
|
||||
printStatus('potential issues, or visit https://flutter.io/setup/ for troubleshooting tips.');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user