← 返回命令列表

Linux command

idevicediagnostics 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Restart device

idevicediagnostics restart

Shutdown device

idevicediagnostics shutdown

Put device to sleep

idevicediagnostics sleep

Get diagnostics info

idevicediagnostics diagnostics

Get battery info

idevicediagnostics diagnostics GasGauge

Target a specific device

idevicediagnostics -u [UDID] restart

Print IORegistry

idevicediagnostics ioregistry IODeviceTree

说明

idevicediagnostics interacts with the diagnostics interface of an iOS device to retrieve diagnostics data, MobileGestalt data, and IORegistry information, as well as perform actions like restart, shutdown, and sleep. Part of the libimobiledevice suite. Available for iOS 4 and later; IORegistry access requires iOS 5 or later.

参数

-u, --udid _UDID_
Target specific device by its UDID.
-n, --network
Connect to network device.
-d, --debug
Enable communication debugging.
-h, --help
Print usage information.
-v, --version
Print version information.

FAQ

What is the idevicediagnostics command used for?

idevicediagnostics interacts with the diagnostics interface of an iOS device to retrieve diagnostics data, MobileGestalt data, and IORegistry information, as well as perform actions like restart, shutdown, and sleep. Part of the libimobiledevice suite. Available for iOS 4 and later; IORegistry access requires iOS 5 or later.

How do I run a basic idevicediagnostics example?

Run `idevicediagnostics restart` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -u, --udid _UDID_ do in idevicediagnostics?

Target specific device by its UDID.