执行 brew install –HEAD libimobiledevice 报错
brew install --HEAD libimobiledevice
==> ./autogen.sh
Last 15 lines from /Users/YanYi/Library/Logs/Homebrew/libimobiledevice/01.autogen.sh:
checking dynamic linker characteristics... darwin18.0.0 dyld
checking how to hardcode library paths into programs... immediate
checking for 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:
Requested 'libusbmuxd >= 1.1.0' but version of libusbmuxd is 1.0.10
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables libusbmuxd_CFLAGS
and libusbmuxd_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
READ THIS: https://docs.brew.sh/Troubleshooting
- 原因
很明显libimobiledevice已经更新了,那么我们肯定要安装新版本。
- 解决方案
既然直接安装不行,那就卸载重装
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