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.
This commit is contained in:
Chris Bracken 2017-05-31 12:08:45 -07:00 committed by GitHub
parent 479e533b01
commit 9c502cba95

View file

@ -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'