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

Error when running XCTestWDUnitTest #214

Closed jade685 closed 5 years ago

jade685 commented 5 years ago

Environment check:

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

macaca-doctor version: 2.0.15

Node.js checklist:

node env: /usr/local/bin/node node version: v10.15.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 1.8 JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home ANDROID_HOME is set to /Users/yaoweiqi/Applications/android-sdk-macosx Android SDK Platforms directory is not exist, please install the whole thing Command Line Tools: gradle is uninstalled

Installed driver list:

ios: 2.0.35


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

server.js:16:12 [master] pid:19000 server start with config: { port: 5678, verbose: true, udid: '8f4ac7de8f045e70a0b8c18d1b09cf36e3de3a67', ip: '192.168.199.187', host: 'yaoweiqideMBP.lan', loaded_time: '2019-01-11 17:44:12' } app-inspector.js:45:12 [master] pid:19000 server start at: http://192.168.199.187:5678 xctest-client.js:55:14 [master] pid:19000 project path: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:247:14 [master] pid:19000 xcode version: 10.1 XCTestWD version: 1.4.5 xctest-client.js:195:18 [master] pid:19000 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:195:18 [master] pid:19000 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:195:18 [master] pid:19000 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:286:14 [master] pid:19000 killing runnerProc pid: 19003 xctest-client.js:206:16 [master] pid:19000 xctest client exit with code: 65, signal: null

Following is the error when running XCTestWDUnitTest: Command PhaseScriptExecution failed with a nonzero exit code

Also, I have two XCTestWD. One is in app-inspector and the other is in macaca-ios. Both signed. Is this going to be a problem?

macaca-bot commented 5 years ago

This is the translated issue:


Error when running XCTestWDUnitTest

Environment check:

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

  Macaca-doctor version: 2.0.15

  Node.js checklist:

  Node env: /usr/local/bin/node   Node version: v10.15.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 1.8   JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home   ANDROID_HOME is set to /Users/yaoweiqi/Applications/android-sdk-macosx   Android SDK Platforms directory is not exist, please install the whole thing   Command Line Tools: gradle is uninstalled

  Installed driver list:

  Ios: 2.0.35


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

server.js:16:12 [master] pid:19000 server start with config:  { port: 5678,   Verbose: true,   Udid: '8f4ac7de8f045e70a0b8c18d1b09cf36e3de3a67',   Ip: '192.168.199.187',   Host: 'yaoweiqideMBP.lan',   Loaded_time: '2019-01-11 17:44:12' } app-inspector.js:45:12 [master] pid:19000 server start at: http://192.168.199.187:5678 xctest-client.js:55:14 [master] pid:19000 project path: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:247:14 [master] pid:19000 xcode version: 10.1 XCTestWD version: 1.4.5 xctest-client.js:195:18 [master] pid:19000 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:195:18 [master] pid:19000 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:195:18 [master] pid:19000 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:286:14 [master] pid:19000 killing runnerProc pid: 19003 xctest-client.js:206:16 [master] pid:19000 xctest client exit with code: 65, signal: null

Following is the error when running XCTestWDUnitTest: Command PhaseScriptExecution failed with a nonzero exit code

Also, I have two XCTestWD. One is in app-inspector and the other is in macaca-ios. Both signed. Is this going to be a problem?

jade685 commented 5 years ago

This is the error running XCTestWDUnitTests: default

SamuelZhaoY commented 5 years ago

install ideviceinstaller first, or alternatively, remove that script in build phase