Mac上编译libimobiledevice库

夏宏旷
2023-12-01

1. 安装依赖库:

1. brew install openssl (or brew install libgnutls)
2. brew install libplist 
3. brew install libusb
4. brew install libusbmuxd

2. openssl 安装

1. brew install gnutls
2. brew install libgcrypt
3. brew install openssl
   // 下边这句话是为了解决 sudo apt-install openssl-dev的问题
4. cp /usr/local/opt/openssl@1.1/lib/pkgconfig/*.pc /usr/local/lib/pkgconfig/

3. github 源码地址

libimobiledevice源码地址

4. 进入代码保存的目录

./configure
make
make install

5. 官网以及例子

libimobiledevice 官网

afc例子

python 例子

 类似资料: