MacOS Ventura13安装libimobiledevice踩坑记
背景:Mac环境搭建iOS自动化环境,Mac系统:MacOS Ventura13.2(手残党更新了一把)。
说明:libimobiledevice类似安卓的adb,是一个与iOS设备进行通信的库。git地址: https://github.com/libimobiledevice/libimobiledevice
ideviceinstaller(依赖上面的libimobiledevice库,无法独自运行)可以查看设备已经安装的软件和安装,卸载功能。
问题一:
brew install libimobiledevice --HEAD
报错提示:
Updating Homebrew...
Warning: You are using macOS 13.2.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub.
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this pre-release version.
Error: pkg-config: wrong number of arguments (given 1, expected 0)
解决方案:2月14日MacOS Ventura13有个新版本更新(意思解决相关的系统安全问题,建议所有人更新),抱着试试的心态又更新了一把(侥幸心理作怪)。
问题二:
背景:升级完系统到MacOS Ventura13.2.1后再继续执行brew install libimobiledevice,出现如下保存信息
报错提示:
checking for libimobiledevice-glue-1.0 >= 1.0.0… no
configure: error: Package requirements (libimobiledevice-glue-1.0 >= 1.0.0) were not met:
No package ‘libimobiledevice-glue-1.0’ found
解决方案:
先卸载:
➜ ~ brew uninstall libimobiledevice
再执行:
➜ ~ brew tap kozyrap/libimobiledevice
➜ ~ brew install kozyrap/libimobiledevice/libimobiledevice --HEAD
装完之后发现还是没有ideviceinstaller,直接 brew install ideviceinstaller,即安装成功了
最后在终端输入命令:iproxy -v,出现如下信息,表示成功安装啦~~
iproxy -v
iproxy 2.0.2