flutter doctor报错:libimobiledevice and ideviceinstaller are not installed....


在运行 flutter doctor 查应用环境时报错;

 libimobiledevice and ideviceinstaller are not installed. To install with Brew, run:
        brew update
        brew install --HEAD usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller

尝试 brew update,但是 即使安装了这几个库依然报这个错误,经过一番尝试,解决问题:

要先把这几个库卸载掉然后重新安装一下;

brew update
        brew uninstall --ignore-dependencies libimobiledevice
        brew uninstall --ignore-dependencies usbmuxd
        brew install --HEAD usbmuxd
        brew install --HEAD libimobiledevice

相关issue: https://github.com/flutter/flutter/issues/22595