Skip to content

Commit 2bbdacc

Browse files
authored
Improve ideviceinstaller error message (flutter#8662)
Homebrew is an expected part of the iOS toolchain. Update the error message to assume that.
1 parent 6a2148d commit 2bbdacc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/flutter_tools/lib/src/ios/devices.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import '../globals.dart';
2020
import '../protocol_discovery.dart';
2121
import 'mac.dart';
2222

23-
const String _ideviceinstallerInstructions =
23+
const String _kIdeviceinstallerInstructions =
2424
'To work with iOS devices, please install ideviceinstaller.\n'
25-
'If you use homebrew, you can install it with "\$ brew install ideviceinstaller".';
25+
'To install, run \'brew install ideviceinstaller\'.';
2626

2727
const Duration kPortForwardTimeout = const Duration(seconds: 10);
2828

@@ -124,7 +124,7 @@ class IOSDevice extends Device {
124124

125125
static String _checkForCommand(
126126
String command, [
127-
String macInstructions = _ideviceinstallerInstructions
127+
String macInstructions = _kIdeviceinstallerInstructions
128128
]) {
129129
try {
130130
command = runCheckedSync(<String>['which', command]).trim();

0 commit comments

Comments
 (0)