Linux command
ideviceinfo 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show every available property
ideviceinfo
Target a specific device by UDID
ideviceinfo -u [device-udid]
Query a specific key only
ideviceinfo -k [ProductVersion]
Query a specific Lockdown domain
ideviceinfo -q [com.apple.disk_usage]
Output as an XML property list
ideviceinfo -x
Connect to a device over the network
ideviceinfo -n
Simple/unpaired connection
ideviceinfo -s
说明
ideviceinfo queries the Lockdown service on a connected iOS (iPhone, iPad, iPod, Apple TV) device and prints its properties. Without a key or domain, it dumps the public root-level keys — `DeviceName`, `ProductType`, `ProductVersion`, `BuildVersion`, `SerialNumber`, `UniqueDeviceID`, `WiFiAddress`, `BluetoothAddress`, and so on. Per-domain queries (`-q`) unlock protected namespaces like `com.apple.disk_usage` (storage stats) or `com.apple.mobile.battery` (battery info). Most domains require the device to be paired and unlocked.
参数
- -u, --udid _UDID_
- Target a specific device by its UDID. Required when more than one device is connected.
- -q, --domain _NAME_
- Restrict the query to the given Lockdown domain (e.g. `com.apple.disk_usage`, `com.apple.mobile.battery`, `com.apple.mobile.wireless_lockdown`).
- -k, --key _NAME_
- Only print the value of the given key. Prints the raw value with no key header.
- -x, --xml
- Emit output as an Apple XML plist instead of `key: value` lines. Useful for scripting.
- -s, --simple
- Use a simple Lockdown connection that does not pair with the device. A smaller subset of keys is available.
- -n, --network
- Connect to a device paired over Wi-Fi instead of USB.
- -d, --debug
- Verbose debugging output from libimobiledevice.
- -h, --help
- Show help.
- -v, --version
- Show version information.
FAQ
What is the ideviceinfo command used for?
ideviceinfo queries the Lockdown service on a connected iOS (iPhone, iPad, iPod, Apple TV) device and prints its properties. Without a key or domain, it dumps the public root-level keys — `DeviceName`, `ProductType`, `ProductVersion`, `BuildVersion`, `SerialNumber`, `UniqueDeviceID`, `WiFiAddress`, `BluetoothAddress`, and so on. Per-domain queries (`-q`) unlock protected namespaces like `com.apple.disk_usage` (storage stats) or `com.apple.mobile.battery` (battery info). Most domains require the device to be paired and unlocked.
How do I run a basic ideviceinfo example?
Run `ideviceinfo` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -u, --udid _UDID_ do in ideviceinfo?
Target a specific device by its UDID. Required when more than one device is connected.