Clarify libimobiledevice installation status message (#12303)

Differentiate between 'not installed' and 'not working' and emit a more
targeted message.
This commit is contained in:
Chris Bracken
2017-09-28 13:04:59 -07:00
committed by GitHub
parent 1a3097025d
commit 283f27d422
2 changed files with 31 additions and 3 deletions

View File

@@ -125,10 +125,17 @@ class IOSWorkflow extends DoctorValidator implements Workflow {
if (hasHomebrew) {
brewStatus = ValidationType.installed;
if (!await iMobileDevice.isWorking) {
if (!iMobileDevice.isInstalled) {
brewStatus = ValidationType.partial;
messages.add(new ValidationMessage.error(
'libimobiledevice and ideviceinstaller are not installed or require updating. To update, run:\n'
'libimobiledevice and ideviceinstaller are not installed. To install, run:\n'
' brew install --HEAD libimobiledevice\n'
' brew install ideviceinstaller'
));
} else if (!await iMobileDevice.isWorking) {
brewStatus = ValidationType.partial;
messages.add(new ValidationMessage.error(
'libimobiledevice and ideviceinstaller may require updating. To update, run:\n'
' brew uninstall --ignore-dependencies libimobiledevice\n'
' brew install --HEAD libimobiledevice\n'
' brew install ideviceinstaller'