4

我正在使用 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

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

4

2 回答 2

4

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

1-转到https://brew.sh网站并在终端中复制并运行“Install Homebrew”命令,如下所示:

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

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

2-brew install wget

3-卸载ideviceinstaller:brew uninstall ideviceinstaller -g

4-卸载 libimobiledevice :brew uninstall libimobiledevice -g

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

6-安装 ideviceinstaller :brew install ideviceinstaller -g

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

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

于 2018-06-12T07:43:39.957 回答
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

于 2019-01-10T16:25:40.467 回答