From 9c502cba95d0fdaf0a583eb790f4f95407365342 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Wed, 31 May 2017 12:08:45 -0700 Subject: [PATCH] Clean up ideviceinstaller doctor messages (#10408) Eliminates nearly-duplicate install instructions for libimobiledevice, ideviceinstaller. Since ideviceinstaller depends on libimobiledevice, it's almost certain that if libimobiledevice isn't installed, or needs updating, so does ideviceinstaller. --- packages/flutter_tools/lib/src/ios/ios_workflow.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/flutter_tools/lib/src/ios/ios_workflow.dart b/packages/flutter_tools/lib/src/ios/ios_workflow.dart index c4dff576b1..4fe9d24d3f 100644 --- a/packages/flutter_tools/lib/src/ios/ios_workflow.dart +++ b/packages/flutter_tools/lib/src/ios/ios_workflow.dart @@ -152,14 +152,13 @@ class IOSWorkflow extends DoctorValidator implements Workflow { if (!await hasWorkingLibimobiledevice) { brewStatus = ValidationType.partial; messages.add(new ValidationMessage.error( - 'libimobiledevice is not installed or requires updating. To update, run:\n' + 'libimobiledevice and ideviceinstaller are not installed or require updating. To update, run:\n' ' brew update\n' ' brew uninstall --ignore-dependencies libimobiledevice\n' - ' brew install --HEAD libimobiledevice' + ' brew install --HEAD libimobiledevice\n' + ' brew install ideviceinstaller' )); - } - - if (!await hasIDeviceInstaller) { + } else if (!await hasIDeviceInstaller) { brewStatus = ValidationType.partial; messages.add(new ValidationMessage.error( 'ideviceinstaller not available; this is used to discover connected iOS devices.\n'