Commit 2bbdacce authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Improve ideviceinstaller error message (#8662)

Homebrew is an expected part of the iOS toolchain. Update the error
message to assume that.
parent 6a2148dd
...@@ -20,9 +20,9 @@ import '../globals.dart'; ...@@ -20,9 +20,9 @@ import '../globals.dart';
import '../protocol_discovery.dart'; import '../protocol_discovery.dart';
import 'mac.dart'; import 'mac.dart';
const String _ideviceinstallerInstructions = const String _kIdeviceinstallerInstructions =
'To work with iOS devices, please install ideviceinstaller.\n' '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); const Duration kPortForwardTimeout = const Duration(seconds: 10);
...@@ -124,7 +124,7 @@ class IOSDevice extends Device { ...@@ -124,7 +124,7 @@ class IOSDevice extends Device {
static String _checkForCommand( static String _checkForCommand(
String command, [ String command, [
String macInstructions = _ideviceinstallerInstructions String macInstructions = _kIdeviceinstallerInstructions
]) { ]) {
try { try {
command = runCheckedSync(<String>['which', command]).trim(); command = runCheckedSync(<String>['which', command]).trim();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment