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

pid:2641 xctest client exit with code: 65, signal: null #209

Closed rafaelcs closed 5 years ago

rafaelcs commented 5 years ago

Actually the inspector was working perfectly, but it suddenly stopped working

Environment check:

  macaca-doctor version: 2.0.15

  Node.js checklist:

  node env: /usr/local/opt/node@10/bin/node
  node version: v10.13.0

  iOS checklist:

  Xcode Command Line Tools is ready, version: 2354.
  xcodebuild version: 10.1
  iproxy[usbmuxd] is installed at: `/usr/local/bin/iproxy`
  ios_webkit_debug_proxy is installed at: `/usr/local/bin/ios_webkit_debug_proxy`

  Android checklist:

  JAVA version is `11`
  JAVA_HOME is not set
  ANDROID_HOME is set to `/Users/rafaelcarvalho/Library/Android/sdk`
  Platforms is set to `/Users/rafaelcarvalho/Library/Android/sdk/platforms/android-28`
  ADB tool is set to `/Users/rafaelcarvalho/Library/Android/sdk/platform-tools/adb`
  Not accepted Android SDK license agreements
  Command Line Tools: gradle is uninstalled

  Installed driver list:

  ios: 2.0.35

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

✘  ~  app-inspector -u 40B4361A-6FCA-45B9-994C-6E58352CD063 --verbose
> server.js:16:12 [master] pid:2641 server start with config:
{ port: 5678,
verbose: true,
udid: '40B4361A-6FCA-45B9-994C-6E58352CD063',
ip: '192.168.0.3',
host: 'MacBook-Rafael.local',
loaded_time: '2018-11-29 21:13:57' }
> app-inspector.js:45:12 [master] pid:2641 server start at: http://192.168.0.3:5678
> xctest-client.js:55:14 [master] pid:2641 project path: /Users/rafaelcarvalho/.npm-global/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
> xctest-client.js:247:14 [master] pid:2641 xcode version: 10.1
> XCTestWD version: 1.4.5
> xctest-client.js:195:18 [master] pid:2641 please check project: /Users/rafaelcarvalho/.npm-global/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
> xctest-client.js:195:18 [master] pid:2641 please check project: /Users/rafaelcarvalho/.npm-global/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
> xctest-client.js:195:18 [master] pid:2641 please check project: /Users/rafaelcarvalho/.npm-global/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
> xctest-client.js:286:14 [master] pid:2641 killing runnerProc pid: 2644
> xctest-client.js:206:16 [master] pid:2641 xctest client exit with code: 65, signal: null
macaca-bot commented 5 years ago

This is the translated issue:


pid:2641 xctest client exit with code: 65, signal: null

Actually the inspector was working perfectly, but it suddenly stopped working

Environment check:

  Macaca-doctor version: 2.0.15

  Node.js checklist:

  Node env: /usr/local/opt/node@10/bin/node
  Node version: v10.13.0

  iOS checklist:

  Xcode Command Line Tools is ready, version: 2354.
  Xcodebuild version: 10.1
  Iproxy[usbmuxd] is installed at: `/usr/local/bin/iproxy`
  Ios_webkit_debug_proxy is installed at: `/usr/local/bin/ios_webkit_debug_proxy`

  Android checklist:

  JAVA version is `11`
  JAVA_HOME is not set
  ANDROID_HOME is set to `/Users/rafaelcarvalho/Library/Android/sdk`
  Platforms is set to `/Users/rafaelcarvalho/Library/Android/sdk/platforms/android-28`
  ADB tool is set to `/Users/rafaelcarvalho/Library/Android/sdk/platform-tools/adb`
  Not accepted Android SDK license agreements
  Command Line Tools: gradle is uninstalled

  Installed driver list:

  Ios: 2.0.35

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

 ✘  ~  app-inspector -u 40B4361A-6FCA-45B9-994C-6E58352CD063 --verbose
> server.js:16:12 [master] pid:2641 server start with config:
 { port: 5678,
  Verbose: true,
  Udid: '40B4361A-6FCA-45B9-994C-6E58352CD063',
  Ip: '192.168.0.3',
  Host: 'MacBook-Rafael.local',
  Loaded_time: '2018-11-29 21:13:57' }
> app-inspector.js:45:12 [master] pid:2641 server start at: http://192.168.0.3:5678
> xctest-client.js:55:14 [master] pid:2641 project path: /Users/rafaelcarvalho/.npm-global/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
> xctest-client.js:247:14 [master] pid:2641 xcode version: 10.1
> XCTestWD version: 1.4.5
> xctest-client.js:195:18 [master] pid:2641 please check project: /Users/rafaelcarvalho/.npm-global/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
> xctest-client.js:195:18 [master] pid:2641 please check project: /Users/rafaelcarvalho/.npm-global/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
> xctest-client.js:195:18 [master] pid:2641 please check project: /Users/rafaelcarvalho/.npm-global/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
> xctest-client.js:286:14 [master] pid:2641 killing runnerProc pid: 2644
> xctest-client.js:206:16 [master] pid:2641 xctest client exit with code: 65, signal: null
jade685 commented 5 years ago

Hi, I'm having the same problem. Wondering if you've solved this yet?

SamuelZhaoY commented 5 years ago

Hi @jade685 @rafaelcs please check the xcode project installed under the node global directory: /Users/rafaelcarvalho/.npm-global/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj , I think there is some compilation issue on your device

jade685 commented 5 years ago

Hi, @SamuelZhaoY. Thanks for the reply. Actually I do have a problem running the project.

Following is the error message: bug

Also I found two XCTestWD.xcodeproj, one in app-inspector folder and another in masaca-ios. And I signed them both. Is this going to be a problem?

SirCYong commented 5 years ago

I also encountered the same problem, how can I solve it?

jade685 commented 5 years ago

@SirCYong This is how I solve the problem.

step1 : recompile your XCTestWD.xcodeproj in xcode, make sure it's signed. step2 : check if there's an app called XCTestWDUITests installed on your device. If not, go to /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD on your terminal. You might not have same path as mine, just find where XCTestWD is. Then compile XCTestWD.xcodeproj ( command : xcodebuild -project XCTestWD.xcodeproj -scheme XCTestWDUITests -destination 'id=DEVICE-ID' test)

Then try restart app inspector, it should be working.