macacajs / app-inspector

App-inspector is a mobile UI viewer in browser.
https://macacajs.github.io/app-inspector/
MIT License
389 stars 77 forks source link

连接iOS真机,启动时却总是使用adb并提示找不到设备 #259

Open Sherryutan opened 3 years ago

Sherryutan commented 3 years ago

Environment check:

$ npm i macaca-cli -g && macaca doctor

try app-inspector -u xxxx --verbose for more log detail. $ app-inspector -u 2f90fb2867d52b61350f6bec

_Error: Command failed: /Users/tantan/Library/Android/sdk/platform-tools/adb -s 2f90fb2867d52b61350f6bec forward tcp:9001 tcp:9001 adb: error: device '2f90fb2867d52b61350f6bec' not found

at ChildProcess.exithandler (node:child_process:397:12)
at ChildProcess.emit (node:events:394:28)
at maybeClose (node:internal/child_process:1067:16)
at Socket.<anonymous> (node:internal/child_process:453:11)
at Socket.emit (node:events:394:28)
at Pipe.<anonymous> (node:net:672:12) {

killed: false, code: 1, signal: null, cmd: '/Users/tantan/Library/Android/sdk/platform-tools/adb -s 2f90fb2867d52b61350f6bec forward tcp:9001 tcp:9001' }_

macaca-bot commented 3 years ago

This is the translated issue:


Connect the iOS real machine, but always use ADB and prompt can not find the device

Environment CHECK: ENVIRONMENT Check:

`` $ npm i macaca-cli -g && macaca doctor `


TRY app-inspector -u xxxx --verbose for more log detail. $ app-inspector -u 2f90fb2867d52b61350f6bec

_ERROR: Command Failed: / Users / Tantan / Library / Android / SDK / Platform-Tools / Adb -s 2F90FB2867D52B61350F6BEC Forward TCP: 9001 TCP: 9001 Adb: error: Device '2f90fb2867d52b61350f6bec' not found

At childprocess.exithandler (Node: Child_Process: 397: 12)
At childprocess.emit (Node: Events: 394: 28)
AT Maybeclose (Node: INTERNAL / CHILD_PROCESS: 1067: 16)
At Socket. <anonymous> (Node: Internal / CHild_Process: 453: 11)
AT Socket.emit (Node: Events: 394: 28)
At Pipe. <anonymous> (Node: NET: 672: 12) {

Killed: false, Code: 1, Signal: NULL, Cmd: '/ users / tantan / library / android / sdk / platform-tools / adb -s 2f90fb2867d52b61350f6bec forward TCP: 9001 TCP: 9001' }