簡體   English   中英

如何用家釀來解決撲醫問題?

[英]How to resolve flutter doctor issues with home brew?

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

之后如果再次給醫生打電話,會顯示與上述相同的錯誤。 我怎樣才能解決這個問題?

在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-uninstall libimobiledevice: brew uninstall libimobiledevice -g

使用--HEAD brew install --HEAD libimobiledevice -gbrew install --HEAD libimobiledevice -g

6-install ideviceinstaller: brew install ideviceinstaller -g

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

8-然后運行./flutter doctor ,它為我解決了:)

使用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

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

剛剛在這台機器上升級到High Sierra。 首先,我不得不重新安裝自制軟件,然后更新Xcode。 跑完撲醫后,我得到了你所做的同樣的信息。 我最后多次運行$brew install --HEAD libimobiledevice並按照提示進行操作。 是否取消鏈接或重新安裝。 這些是我最終重新安裝的軟件包:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM