appium 可以正常启动设备上的应用,但是运行具体的 case 的时候就会报错。
我试过重启 appium,但是有时可以正常运行 case 一次,有时一次都不行。
还是报找不到设备,说是没有连接设备。我检查过设备是正常连上的啊。
没有思路查啊,求大神给个思路。
报错信息如下:
info: <-- GET /wd/hub/status 200 4.956 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"1d181126-da99-44b1-a006-bc7f573df115"}
warn: Could not capture logs from device. Continuing without capturing logs.
error: Log capture did not start in a reasonable amount of time
info: [debug] Creating iDevice object with udid 57e95712fdd52a1fce030ed46808f1xxxxxxxx
error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u 57e95712fdd52a1fce030ed46808f1xxxxxx -i cn.com.10jqka.iHexinFee
No iOS device found, is it plugged in?
info: [debug] App is not installed. Will try to install the app.
info: [debug] Cleaning up appium session
info: [debug] Error: Command failed: /bin/sh -c ideviceinstaller -u 57e95712fdd52a1fce030ed46808f1xxxxxxx -i cn.com.xxxxxxxxx
No iOS device found, is it plugged in?
at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket.<anonymous> (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: /bin/sh -c ideviceinstaller -u 57e95712fdd52a1fce030ed46808f1xxxxxxxx -i cn.com.10jqka.iHexinFee\nNo iOS device found, is it plugged in?\n)","killed":false,"code":255,"signal":null,"cmd":"/bin/sh -c ideviceinstaller -u 57e95712fdd52a1fce030ed46808f1axxxxxxxx -i cn.com.xxxxxxxx","origValue":"Command failed: /bin/sh -c ideviceinstaller -u 57e95712fdd52a1fce030ed46808f1xxxxxxxx -i cn.com.xxxxxxx\nNo iOS device found, is it plugged in?\n"},"sessionId":null}
info: <-- POST /wd/hub/session 500 10078.116 ms - 581