libimobiledevice
1.1、libimobiledevice简介

libimobiledevice是一个开源的、跨平台的用于连接iOS设备的工具。

libimobiledevice可以替代iTunesiTools

libimobiledeviceGitHub上的网址:https://github.com/libimobiledevice/libimobiledevice

libimobiledevice官网:http://www.libimobiledevice.org

1.2、通过包管理器安装libimobiledevice
操作系统包管理器安装命令
macOSHomeBrewbrew install libimobiledevice
GNU/LinuxLinuxBrewbrew install libimobiledevice
aptsudo apt-get install -y libimobiledevice-utils
CentOSyumsudo yum install -y libimobiledevice-utils
dnfsudo dnf install -y libimobiledevice-utils
openSUSEzyppersudo zypper install -y libimobiledevice-tools libimobiledevice-devel

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm libimobiledevice
Gentoo LinuxPortagesudo emerge libimobiledevice
1.3、通过源码安装libimobiledevice

step1、安装依赖

下载时git
编译时POSIX shGNU CoreUtilsautotools ( autoconfautomake )、makegcclibtoolpkg-configOpenSSLusbmuxd
运行时glibc ( libc.sold-linux-x86-64.so )

step2、使用git下载libimobiledevice源码

git clone https://github.com/libimobiledevice/libimobiledevice.git

step3、进入libimobiledevice目录,并查看其内容

step4、配置、编译、安装

./autogen.sh && make && sudo make install
1.4、idevice_id命令

该命令用于获取iOS设备UDID

示例: