From 2432b5205bf0801a7e7cc91b9bd20ab10e5135c5 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 7 Feb 2017 18:52:50 -0800 Subject: [PATCH] Improve flutter doctor messages for ios-deploy (#7962) Differentiate between the not-installed and the out-of-date scenario. --- .../flutter_tools/lib/src/ios/ios_workflow.dart | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/flutter_tools/lib/src/ios/ios_workflow.dart b/packages/flutter_tools/lib/src/ios/ios_workflow.dart index fae1f2a65b..b77bb45f52 100644 --- a/packages/flutter_tools/lib/src/ios/ios_workflow.dart +++ b/packages/flutter_tools/lib/src/ios/ios_workflow.dart @@ -122,10 +122,17 @@ class IOSWorkflow extends DoctorValidator implements Workflow { } if (!hasIDeviceId || !_iosDeployIsInstalledAndMeetsVersionCheck) { brewStatus = ValidationType.partial; - messages.add(new ValidationMessage.error( - 'ios-deploy version >= $iosDeployMinimumVersion not available; this is used to deploy to connected iOS devices.\n' - 'Install via \'brew install ios-deploy\'.' - )); + if (hasIosDeploy) { + messages.add(new ValidationMessage.error( + 'ios-deploy out of date: $iosDeployMinimumVersion is required.\n' + 'Upgrade via \'brew upgrade ios-deploy\'.' + )); + } else { + messages.add(new ValidationMessage.error( + 'ios-deploy not installed: $iosDeployMinimumVersion is required.\n' + 'Install via \'brew install ios-deploy\'.' + )); + } } else { // Check for compatibility between libimobiledevice and Xcode. // TODO(cbracken) remove this check once libimobiledevice > 1.2.0 is released.