编译libimobiledevice方法

来源:互联网 发布:驱动精灵软件 编辑:程序博客网 时间:2024/06/13 00:27

群友提供,记录一下

安装homebrew(已安装的可以跳过此步骤)
/usr/bin/ruby -e “s$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

命令行输入:
echo “#fix make problem” >> ~/.bash_profile
echo “export PKG_CONFIG_PATH=$(brew –prefix)/opt/openssl/lib/pkgconfig” >> ~/.bash_profile

然后关掉窗口,再开一个新的终端窗口,输入:

brew remove libimobiledevice
brew install openssl libplist usbmuxd automake autoconf libtool pkg-config gcc doxygen
mkdir -p ~/Documents/github
cd ~/Documents/github
git clone https://github.com/libimobiledevice/libimobiledevice.git
cd libimobiledevice
./autogen.sh
make
sudo make install

然后命令行输入idevicesyslog查看日志。还有其他idevice开头的命令