获取错误:运行appium时命令'idevice_id -l'

时间:2016-12-02 15:26:46

标签: java selenium appium

我在运行appium时遇到此错误,但不知道如何解决它:

[XCUITest] Error: Command 'idevice_id -l' errored out: Error: spawn idevice_id ENOENT
    at exports._errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at ChildProcess.<anonymous> (../../lib/teen_process.js:32:14)
    at emitOne (events.js:96:13)
    at ChildProcess.emit (events.js:188:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:213:12)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

2 个答案:

答案 0 :(得分:0)

删除udid功能可以解决问题

答案 1 :(得分:0)

mysite.com/products/xbox360-fifa-15-1 idevice_id的一部分。您可以使用libimobiledevice安装它(如果您使用的是iOS10设备,我现在也建议使用--HEAD标记),或者https://github.com/libimobiledevice/libimobiledevice