运行ideviceinfo命令后,得到'Device <iOS simulator id> not found!'错误信息。

问题描述 投票:0回答:1
  • Xcode版本11.3.1 (11C504)
  • Mojave版本10.14.4 (18E226)

我正在做的步骤:1.使用Xcode启动iOS模拟器。2. 打开终端,运行`ideviceinfo -u 。

ideviceinfo -u 175669E4-93EE-413A-83A0-2FEE6B419826
  1. 得到结果。ERROR: Device 175669E4-93EE-413A-83A0-2FEE6B419826 not found!

其他人在重复我的步骤后,在终端得到这样的答案。

ideviceinfo -u BFD70ACE-3786-4BEE-B76D-D8D072EBAAC1
Usage: ideviceinfo [OPTIONS]
Show information about a connected device.

  -d, --debug       enable communication debugging
  -s, --simple      use a simple connection to avoid auto-pairing with the device
  -u, --udid UDID   target specific device by its 40-digit device UDID
  -q, --domain NAME set domain of query to NAME. Default: None
  -k, --key NAME    only query key specified by NAME. Default: All keys.
  -x, --xml     output information as xml plist instead of key/value pairs
  -h, --help        prints usage information

  Known domains are:

  com.apple.disk_usage
  com.apple.disk_usage.factory
  com.apple.mobile.battery
  com.apple.iqagent
  com.apple.purplebuddy
  com.apple.PurpleBuddy
  com.apple.mobile.chaperone
  com.apple.mobile.third_party_termination
  com.apple.mobile.lockdownd
  com.apple.mobile.lockdown_cache
  com.apple.xcode.developerdomain
  com.apple.international
  com.apple.mobile.data_sync
  com.apple.mobile.tethered_sync
  com.apple.mobile.mobile_application_usage
  com.apple.mobile.backup
  com.apple.mobile.nikita
  com.apple.mobile.restriction
  com.apple.mobile.user_preferences
  com.apple.mobile.sync_data_class
  com.apple.mobile.software_behavior
  com.apple.mobile.iTunes.SQLMusicLibraryPostProcessCommands
  com.apple.mobile.iTunes.accessories
  com.apple.mobile.internal
  com.apple.mobile.wireless_lockdown
  com.apple.fairplay
  com.apple.iTunes
  com.apple.mobile.iTunes.store
  com.apple.mobile.iTunes

Homepage: <http://libimobiledevice.org>

有什么问题吗? libimobiledevice已安装。'ideviceinfo -u'命令在真正的iOS设备上正常工作。

ios simulator
1个回答
0
投票

ideviceinfo (以及libimobiledevice的其他实用程序)只适用于使用USB电缆或通过WiFi连接到计算机的真实物理设备。它们不能在模拟器上工作。

你可以通过运行以下命令来列出所有可以通过libimobiledevice与之交互的设备的UDID idevice_id -l.

© www.soinside.com 2019 - 2024. All rights reserved.