先说下用到的git命令
查看当前sha分支 :
git rev-parse HEAD
切换到指定sha分支:
git checkout sha
切换python版本,指定使用python3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
安装libplist
sudo apt-get install libxml2-dev python-dev python-pip
sudo pip install cython
git clone https://github.com/libimobiledevice/libplist.git
cd libplist
git checkout cf7a3f3d7c06b197ee71c9f97eb9aa05f26d63b5
./autogen.sh
make
sudo make install
安装libimobiledevice-glue
git clone https://github.com/libimobiledevice/libimobiledevice-glue.git
cd libimobiledevice-glue
git checkout 3cb687baa8e69fbf57c5e05f4865184eb44abf67
./autogen.sh
make
sudo make install
安装libusbmuxd
git clone https://github.com/libimobiledevice/libusbmuxd.git
cd libusbmuxd
git checkout 2ec5354a6ff2ba5e2740eabe7402186f29294f79
./autogen.sh
make
sudo make install
安装libimobiledevice
sudo apt-get install libssl-dev
git clone https://github.com/libimobiledevice/libimobiledevice.git
cd libimobiledevice
git checkout 2c6121db9ad84b8aad05b937e071ff7dcc9c8867
./autogen.sh
make
sudo make install
安装usbmuxd
sudo apt-get install libusb-dev libusb-1.0-0-dev
git clone https://github.com/libimobiledevice/usbmuxd.git
cd usbmuxd
git checkout e3a3180b9b380ce9092ee0d7b8e9d82d66b1c261
./autogen.sh
make
sudo make install
最后重启一下
sudo reboot
PS:刚开始我libplist直接拉取最新安装了,后面我删除直接指定拉取安装,不确定有没有影响
PS:如果出现了报错 找不到libplist-2.0.so.3
usbmuxd: error while loading shared libraries: libplist-2.0.so.3: cannot open shared object file: No such file or directory
那就要去找一下,找不到就装一下,然后定义对应的输出路径
dpkg -L libplist3
没有安装需要安装
sudo apt-get update
sudo apt-get install libplist3
如果存在就查找位置
find / -name libplist-2.0.so.3 2>/dev/null
设置对应路径
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
更新库缓存
sudo ldconfig