Improve ideviceinstaller error message (#8662)
Homebrew is an expected part of the iOS toolchain. Update the error message to assume that.
This commit is contained in:
parent
6a2148dde9
commit
2bbdacce35
@ -20,9 +20,9 @@ import '../globals.dart';
|
||||
import '../protocol_discovery.dart';
|
||||
import 'mac.dart';
|
||||
|
||||
const String _ideviceinstallerInstructions =
|
||||
const String _kIdeviceinstallerInstructions =
|
||||
'To work with iOS devices, please install ideviceinstaller.\n'
|
||||
'If you use homebrew, you can install it with "\$ brew install ideviceinstaller".';
|
||||
'To install, run \'brew install ideviceinstaller\'.';
|
||||
|
||||
const Duration kPortForwardTimeout = const Duration(seconds: 10);
|
||||
|
||||
@ -124,7 +124,7 @@ class IOSDevice extends Device {
|
||||
|
||||
static String _checkForCommand(
|
||||
String command, [
|
||||
String macInstructions = _ideviceinstallerInstructions
|
||||
String macInstructions = _kIdeviceinstallerInstructions
|
||||
]) {
|
||||
try {
|
||||
command = runCheckedSync(<String>['which', command]).trim();
|
||||
|
Loading…
x
Reference in New Issue
Block a user