IDB的安装与使用

安装IDB


众所周知,ADB是安卓命令行调试工具。Facebook开发了一个给iPhone使用的类似工具,叫做IDB。下载附件(见我本文绑定的资源)到一个合理的路径下,并运行其中的 registry.bat 。

问:安装了iTunes并且重启后,在运行idb的时候,依然弹出了 iTunes must be installed in order to use iExplorer 弹窗,这是为什么?

答:注意事项:要使用iTunes官网 https://www.apple.com.cn/itunes/ 上下载的iTunes,而不要直接按自动引导安装微软商店里的iTunes。否则会弹出弹窗“ iTunes must be installed in order to use iExplorer ”。

(提前安装好爱思助手也可以。)

IDB常用命令

● idb devices
查看连接的ios设备。演示如下:

命令行输入 > idb devices
Trying to connect to mobile device running iOS ...
Mobile Device '机器名iPhone' connected
FOUND: ID: 00008110-001264D63E0A401E NAME: 机器名iPhone


● idb pull
拉取ios设备的文件到本地。要推送/拉取app里的文件时,需要指定bundleid, 添加参数 -bundle com.mygame。演示如下:

 命令行输入 > idb pull -bundle com.mygame /Documents/mygame/Saved/Logs  ./Logs
Trying to connect to mobile device running iOS ...
Mobile Device '设备名’s iPhone' connected
 ... Finished copying to './Logs' in 1.33 s


● idb push

推送本地文件到ios设备上。演示如下:

命令行输入 > idb push -bundle com.mygame I:\DD\Beacon\Tools\IDB\PushTo  /Documents/mygame/Saved/Logs
Trying to connect to mobile device running iOS ...
Mobile Device '设备名’s iPhone' connected
 ... Finished copying to '/Documents/mygame/Saved/Logs' in 1.30 s

 IDB的安装与使用_第1张图片

IDB的安装与使用_第2张图片

● idb cmd

调用控制台命令:

idb cmd "stat fps"

● idb install

安装ipa。演示如下

命令行输入 > idb install C:\Users\我\Downloads\某安装包.ipa
Trying to connect to mobile device running iOS ...
Mobile Device '设备名’s iPhone' connected
Device '设备名’s iPhone' with id 00008110-001264D63E0A401E of type iPhone14,5 is being checked against .
Installing IPA on device '设备名’s iPhone' ...
Void _AMDeviceStopSession(IntPtr) => -402653139
Void _AMDeviceStartSession(IntPtr) => -402653139
CreatingStagingDirectory(5%)
ExtractingPackage(15%)
InspectingPackage(20%)
PreflightingApplication(30%)
VerifyingApplication(40%)
CreatingContainer(50%)
InstallingApplication(60%)
PostflightingApplication(70%)
SandboxingApplication(80%)
GeneratingApplicationMap(90%)
InstallComplete(100%)
Complete(100%)
Install of "MyGameName.ipa" completed successfully in 230.63 seconds

● idb uninstall

卸载app。

idb uninstall com.mygame

你可能感兴趣的:(macos,idb)