当前位置: 首页 > article >正文

Ubuntu 2204 安装libimobiledevice

libimobiledevice是一个开源的软件,它可以直接使用系统原生协议和IOS设备进行通信,类似iMazing,iTunes,libimobiledevice不依赖IOS的私有库,并且连接IOS设备时用的都是原生协议,IOS无需越狱就能实现设备信息的收集,文件备份等功能。

以下就是在Ubuntu2204上的安装步骤:

在开始安装之前先安装一下相关依赖包。

0.安装依赖

sudo apt update
sudo apt install \
	build-essential \
	pkg-config \
	checkinstall \
	git \
	autoconf \
	automake \
	libtool-bin \
	libplist-dev \
	libusbmuxd-dev \
    libssl-dev \
    usbmuxd

1.安装libplist

libplist是libimobiledevice必要依赖,虽然在安装依赖这一步中我们已经安装过libplist-dev,但是通过ubuntu默认安装源安装的libplist版本无法满足libimobiledevice的需求,必须单独安装,否则会在安装libimobiledevice时会报错。

1.1 拉取源码

从github上拉取libplist的源码。

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

在这里插入图片描述在这里插入图片描述
🎶 如果安装过程中出现问题可以检查分支是否和我本文中描述的一致。

1.2编译安装

源码拉取之后,进入源码包,使用autogen.sh命令进行自动配置,然后编译、安装。

./autogen.sh
make
sudo make install

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

2.安装libimobiledevice-glue-dev

安装libimobiledevice开发包,这里使用了一个胶水包,看来是为了解决原生libimobiledevice-dev包不可用的问题。

2.1 拉取资源包

git clone https://github.com/libimobiledevice/libimobiledevice-glue.git
cd libimobiledevice-glue

2.2.自动编译

./autogen.sh

2.3 安装

make
make install

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

📟 当前使用的分支,如果你的程序无法正常运行请检查是否和我当前使用的分支相同。
在这里插入图片描述

3.安装libimobiledevice

3.1 拉取源码包

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

3.2 编译安装

cd libimobiledevice
./autogen.sh
make
sudo make install

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
🎶 当前分支
在这里插入图片描述

4.连接手机验证

连接iphone手机,使用ideviceinfo命令查看手机相关信息。

ideviceinfo

在这里插入图片描述

5.libimobiledevice命令

libimobiledevice,内置了以下命令。

命令描述
idevice_idList attached devices or print device name of given device
idevicebackupCreate or restore backup for devices (legacy)
idevicebackup2Create or restore backups for devices running iOS 4 or later
idevicebtloggerCapture Bluetooth HCI traffic from a device (requires log profile)
idevicecrashreportRetrieve crash reports from a device
idevicedateDisplay the current date or set it on a device
idevicedebugInteract with the debugserver service of a device
idevicedebugserverproxyProxy a debugserver connection from a device for remote debugging
idevicediagnosticsInteract with the diagnostics interface of a device
ideviceenterrecoveryMake a device enter recovery mode
ideviceimagemounterMount disk images on the device
ideviceinfoShow information about a connected device
idevicenameDisplay or set the device name
idevicenotificationproxyPost or observe notifications on a device
idevicepairManage host pairings with devices and usbmuxd
ideviceprovisionManage provisioning profiles on a device
idevicescreenshotGets a screenshot from the connected device
idevicesetlocationSimulate location on device
idevicesyslogRelay syslog of a connected device

:ps 如果你的操作系统是AMD架构的,还需要手动安装libusbmuxd,否则会出现``No package ‘libusbmuxd-2.0’ found`以下是安装步骤。

安装libusbmuxd

git clone https://github.com/libimobiledevice/libusbmuxd.git
cd libusbmuxd
./autogen.sh
make
sudo make install

执行完上述的安装步骤后,再进入libimobiledevice的安装。

在这里插入图片描述


http://www.kler.cn/a/158166.html

相关文章:

  • PIC12F1572-I/SN国产低成本32位MCU替换
  • 操作系统复习总结——文件管理
  • 如何判断服务器是否被CC攻击了,被CC了要如何防御
  • 食品行业研究:金枪鱼产业发展及市场消费分析
  • 11.30BST理解,AVL树操作,定义;快速幂,二分求矩阵幂(未完)
  • 矩阵的初等变换
  • 如何优雅的调用三方接口
  • JS中的 回调函数(callback)
  • k8s的部署管理以及prometheus相关监控
  • postgresql 将所有表的id列设置为自增主键,自增起始数值为该表的最大id
  • 微信小程序云开发报错
  • Native API 在 HarmonyOS 应用工程中的使用指导
  • Leetcode 2949. Count Beautiful Substrings II
  • mapbox实现框选要素
  • 10倍提升启动的时间?Graalvm打包Springboot+MyBatis实测
  • 珠海市第四届职业技能大赛成功举办,开源网安提供全程技术支持
  • 基于Spring,SpringMVC,MyBatis的高校大学社团系统
  • ESP32 LVGL Gui-Guider的移植
  • Linux 进程优先级
  • 国防科技大博士招生入学考试【50+论文主观题】