git flutter 安装期间 libusbmuxd 版本错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/52602425/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
libusbmuxd version error during flutter install
提问by Dave Lister
I'm having problems installing and configuring flutter
我在安装和配置 flutter 时遇到问题
On mac OS Sierra 10.12.6
在 Mac OS Sierra 10.12.6 上
Xcode 9.2
Xcode 9.2
brew doctor reported all ok
brew 医生报告一切正常
flutter doctor reported
扑医生报告
[!] iOS toolchain - develop for iOS devices (Xcode 9.2)
[!] iOS 工具链 - 为 iOS 设备开发 (Xcode 9.2)
? **libimobiledevice and ideviceinstaller are not installed. To install, run:
brew install --HEAD libimobiledevice
brew install ideviceinstaller**
prompt$: brew install --HEAD libimobiledevice
prompt$: brew install --HEAD libimobiledevice
==> Cloning https://git.libimobiledevice.org/libimobiledevice.gitUpdating /Users/rjoiner/Library/Caches/Homebrew/libimobiledevice--git
==> 克隆https://git.libimobiledevice.org/libimobiledevice.git更新 /Users/rjoiner/Library/Caches/Homebrew/libimobiledevice--git
==> Checking out branch master Already on 'master' Your branch is up to date with 'origin/master'. HEAD is now at b34e343 tools: Remove length check on device UDID arguments to support newer devices
==> 检出分支 master 已经在 'master' 你的分支是最新的 'origin/master'。HEAD 现在位于 b34e343 工具中:删除对设备 UDID 参数的长度检查以支持较新的设备
==> ./autogen.sh Last 15 lines from /Users/rjoiner/Library/Logs/Homebrew/libimobiledevice/01.autogen.sh: checking dynamic linker characteristics... darwin16.7.0 dyld checking how to hardcode library paths into programs... immediate checking for pkg-config... /usr/local/opt/pkg-config/bin/pkg-config
==> ./autogen.sh 来自 /Users/rjoiner/Library/Logs/Homebrew/libimobiledevice/01.autogen.sh 的最后 15 行:检查动态链接器特征... darwin16.7.0 dyld 检查如何将库路径硬编码到程序中... 立即检查 pkg-config ... /usr/local/opt/pkg-config/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes checking for libusbmuxd >= 1.1.0... no configure: error: Package requirements (libusbmuxd >= 1.1.0) were not met:
检查 pkg-config 至少是 0.9.0 版本...是检查 libusbmuxd >= 1.1.0 ... 没有配置:错误:未满足包要求(libusbmuxd >= 1.1.0):
Requested 'libusbmuxd >= 1.1.0' but version of libusbmuxd is 1.0.10
请求 'libusbmuxd >= 1.1.0' 但 libusbmuxd 的版本是 1.0.10
I don't know how to install version 1.1.0 of libusbmuxd
我不知道如何安装 libusbmuxd 1.1.0 版
Cheers
干杯
Rob
抢
回答by cbracken
A recent changeto libimobiledevice
bumped the constrainton libusbmuxd to >= version 1.1.0. The current usbmuxd
homebrew package is version 1.0.10.
一个最近的变化对libimobiledevice
撞着约束上libusbmuxd为> = 1.1.0版本。当前的usbmuxd
自制软件包是 1.0.10 版。
As a result, homebrew --HEAD
installs of libimobiledevice no longer build without a --HEAD
install of usbmuxd
.
因此,--HEAD
如果不--HEAD
安装usbmuxd
.
Until the usbmuxd
homebrew formula is updated, a workaround is to install it at HEAD:
在usbmuxd
更新自制公式之前,解决方法是将其安装在 HEAD:
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew install --HEAD libimobiledevice
You can track progress on this issue on flutter/flutter#22595.
您可以在flutter/flutter#22595上跟踪此问题的进度。
回答by Frederik Carlier
It's a bit odd, but it appears the formula for libusbmuxd
is usbmuxd
. Can you try brew install --HEAD usbmuxd
?
这有点奇怪,但似乎公式libusbmuxd
是usbmuxd
。你可以试试brew install --HEAD usbmuxd
吗?
回答by Hymanson Smith
This works to me in this exactly sequence :
这对我来说完全按照以下顺序工作:
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
回答by Dave Lister
I found another thread that deals with the pod setup failing
我发现了另一个处理 pod 设置失败的线程
I found this worked for me
我发现这对我有用
pod repo remove master
pod setup
Cocoapods: Failed to connect to GitHub to update the CocoaPods/Specs specs repo