flutter 安装 libimobiledevice 报错 syntax error near unexpected token `libusbmuxd,'

 Mac 安装 flutter 开发环境过程中按官方文档使用 brew 安装 libimobiledevice 。

brew install --HEAD libimobiledevice 在执行 ./autogen.sh 脚本过程中报错如下:

checking how to hardcode library paths into programs... immediate

./configure: line 16049: syntax error near unexpected token `libusbmuxd,'

./configure: line 16049: `PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= $LIBUSBMUXD_VERSION)'


解决方法:

执行:brew link --overwrite pkg-config 后再次尝试 brew install --HEAD libimobiledevice

你可能感兴趣的:(flutter 安装 libimobiledevice 报错 syntax error near unexpected token `libusbmuxd,')