如何用家酿来解决扑医问题?

时间:2018-03-13 20:14:00

标签: flutter flutter-dependencies

我正在使用OS X High Sierra。 我从这里开始安装文档: https://flutter.io/setup-macos/ 但我似乎无法安装libimobiledevice和ideviceinstaller。

当我开始扑医时,我得到以下内容:

✗ libimobiledevice and ideviceinstaller are not installed. To install, run:
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller

所以我按要求做了:

brew install --HEAD libimobiledevice
Error: libimobiledevice 1.2.0_2 is already installed
To install HEAD_2, first run `brew unlink libimobiledevice`


brew install ideviceinstaller
Warning: ideviceinstaller 1.1.0_4 is already installed

之后如果再次给医生打电话,会显示与上述相同的错误。我该如何解决这个问题?

3 个答案:

答案 0 :(得分:3)

用brew安装颤振的最简单方法

点击fabsb / flutter存储库

brew tap fabsb/flutter

然后安装颤动:

brew cask install flutter

最后确认您的安装:

flutter doctor

要消除抖动,请点击以下按钮:

brew cask uninstall flutter
brew untap fabsb/flutter

来源:

https://github.com/fabsb/homebrew-flutter

答案 1 :(得分:1)

在MacOS中经过几个小时后,我按照以下所有步骤解决了这个问题:

1-访问https://brew.sh网站并复制&运行"安装Homebrew"终端命令如下:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 

然后在终端中运行所有这些命令:

2- brew install wget

3- uninstall ideviceinstaller:brew uninstall ideviceinstaller -g

4-uninstall libimobiledevice:brew uninstall libimobiledevice -g

使用--HEAD安装libimobiledevice:brew install --HEAD libimobiledevice -g

6-install ideviceinstaller:brew install ideviceinstaller -g

7- sudo rm -rf /var/db/lockdown/*

8-然后运行./flutter doctor并为我解决了问题:)

答案 2 :(得分:0)

我有很多问题,但我基本上只是按照提示。

只是在这台机器上升级到High Sierra。首先,我不得不重新安装自制软件,然后更新Xcode。跑完扑医后,我得到了你所做的同样的信息。我最终多次运行$brew install --HEAD libimobiledevice并按照提示进行操作。是否取消链接或重新安装。这些是我最终重新安装的软件包:

$brew install --HEAD libimobiledevice
$brew reinstall autoconf
$...
$brew reinstall automake
$...
$brew reinstall libtool
$...
$brew reinstall pkg-config
$...