macacajs / app-inspector

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

app-inspector连iOS真机查看元素报错:xctest-client.js:309:14 [master] pid:34606 Fail to start xctest: Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products' Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products' #238

Closed YGQ8988 closed 4 years ago

YGQ8988 commented 4 years ago

环境:


  macaca-doctor version: 2.0.18

  Node.js checklist:

  node env: /usr/local/bin/node
  node version: v12.10.0

  iOS checklist:

  macOS version: 10.14.6
  Xcode Command Line Tools is ready, version: 2354.
  xcodebuild version: 10.3
  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/ygq/Documents/android-sdk`
  Platforms is set to `/Users/ygq/Documents/android-sdk/platforms/android-26`
  ADB tool is set to `/Users/ygq/Documents/android-sdk/platform-tools/adb`
  gradle is installed, version: 5.1

  Installed driver list:

  android: 2.1.0
  location: /usr/local/lib/node_modules/macaca-android

  ios: 2.0.36
  location: /usr/local/lib/node_modules/macaca-ios

server.js:16:12 [master] pid:34606 server start with config: { port: 5678, verbose: true, udid: 'fca2ddc52a5b19d6d997c6d6d2cb0a5570629257', ip: '172.16.16.225', host: 'ygqs-MacBook-Pro.local', loaded_time: '2019-09-10 15:56:46' } app-inspector.js:45:12 [master] pid:34606 server start at: http://172.16.16.225:5678 xctest-client.js:56:14 [master] pid:34606 project path: /usr/local/lib/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:283:14 [master] pid:34606 xcode version: 10.3 XCTestWD version: 1.4.18 xctest-client.js:309:14 [master] pid:34606 Fail to start xctest: Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products' Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products' at Object.readdirSync (fs.js:865:3) at /usr/local/lib/node_modules/xctestwd/lib/xctest-client.js:189:26 at new Promise () at XCTest.startBootstrap (/usr/local/lib/node_modules/xctestwd/lib/xctest-client.js:182:12) at startBootstrap.next () at onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/_co@4.6.0@co/index.js:65:19) at /usr/local/lib/node_modules/app-inspector/node_modules/_co@4.6.0@co/index.js:54:5 at new Promise () at co (/usr/local/lib/node_modules/app-inspector/node_modules/_co@4.6.0@co/index.js:50:10) at toPromise (/usr/local/lib/node_modules/app-inspector/node_modules/_co@4.6.0@co/index.js:118:63) { errno: -2, syscall: 'scandir', code: 'ENOENT', path: '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products' } iOS device started: fca2ddc52a5b19d6d997c6d6d2cb0a5570629257 inspector start at: http://172.16.16.225:5678 <-- GET / <-- GET /android.json --> GET /android.json 404 <-- GET /android-screenshot.png --> GET /android-screenshot.png 404 helper.js:94:16 [master] pid:34606 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001

Error: connect ECONNREFUSED 127.0.0.1:8001 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1126:14)

macaca-bot commented 4 years ago

This is the translated issue:


App-inspector even iOS real machine view element error: xctest-client.js:309:14 [master] pid:34606 Fail to start xctest: Error: ENOENT: no such file or directory, scandir '/usr/local/lib/ Node_modules/xctestwd/XCTestWD/build/Build/Products' Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products'

surroundings:


  Macaca-doctor version: 2.0.18

  Node.js checklist:

  Node env: /usr/local/bin/node
  Node version: v12.10.0

  iOS checklist:

  macOS version: 10.14.6
  Xcode Command Line Tools is ready, version: 2354.
  Xcodebuild version: 10.3
  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/ygq/Documents/android-sdk`
  Platforms is set to `/Users/ygq/Documents/android-sdk/platforms/android-26`
  ADB tool is set to `/Users/ygq/Documents/android-sdk/platform-tools/adb`
  Gradle is installed, version: 5.1

  Installed driver list:

  Android: 2.1.0
  Location: /usr/local/lib/node_modules/macaca-android

  Ios: 2.0.36
  Location: /usr/local/lib/node_modules/macaca-ios

server.js:16:12 [master] pid:34606 server start with config:  {   Port: 5678,   Verbose: true,   Udid: 'fca2ddc52a5b19d6d997c6d6d2cb0a5570629257',   Ip: '172.16.16.225',   Host: 'ygqs-MacBook-Pro.local',   Loaded_time: '2019-09-10 15:56:46' } app-inspector.js:45:12 [master] pid:34606 server start at: http://172.16.16.225:5678 xctest-client.js:56:14 [master] pid:34606 project path: /usr/local/lib/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:283:14 [master] pid:34606 xcode version: 10.3 XCTestWD version: 1.4.18 xctest-client.js:309:14 [master] pid:34606 Fail to start xctest: Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build /Products' Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products'     At Object.readdirSync (fs.js:865:3)     At /usr/local/lib/node_modules/xctestwd/lib/xctest-client.js:189:26     At new Promise ()     At XCTest.startBootstrap (/usr/local/lib/node_modules/xctestwd/lib/xctest-client.js:182:12)     At startBootstrap.next ()     At onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/_co@4.6.0@co/index.js:65:19)     At /usr/local/lib/node_modules/app-inspector/node_modules/_co@4.6.0@co/index.js:54:5     At new Promise ()     At co (/usr/local/lib/node_modules/app-inspector/node_modules/_co@4.6.0@co/index.js:50:10)     At toPromise (/usr/local/lib/node_modules/app-inspector/node_modules/_co@4.6.0@co/index.js:118:63) {   Errno: -2,   Syscall: 'scandir',   Code: 'ENOENT',   Path: '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products' } iOS device started: fca2ddc52a5b19d6d997c6d6d2cb0a5570629257 inspector start at: http://172.16.16.225:5678   <-- GET /   <-- GET /android.json   --> GET /android.json 404   <-- GET /android-screenshot.png   --> GET /android-screenshot.png 404 helper.js:94:16 [master] pid:34606 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001

  Error: connect ECONNREFUSED 127.0.0.1:8001       At TCPConnectWrap.afterConnect [as oncomplete] (net.js:1126:14)

YGQ8988 commented 4 years ago

This is the translated issue:

App-inspector even iOS real machine view element error: xctest-client.js:309:14 [master] pid:34606 Fail to start xctest: Error: ENOENT: no such file or directory, scandir '/usr/local/lib/ Node_modules/xctestwd/XCTestWD/build/Build/Products' Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products'

surroundings:


  Macaca-doctor version: 2.0.18

  Node.js checklist:

  Node env: /usr/local/bin/node
  Node version: v12.10.0

  iOS checklist:

  macOS version: 10.14.6
  Xcode Command Line Tools is ready, version: 2354.
  Xcodebuild version: 10.3
  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/ygq/Documents/android-sdk`
  Platforms is set to `/Users/ygq/Documents/android-sdk/platforms/android-26`
  ADB tool is set to `/Users/ygq/Documents/android-sdk/platform-tools/adb`
  Gradle is installed, version: 5.1

  Installed driver list:

  Android: 2.1.0
  Location: /usr/local/lib/node_modules/macaca-android

  Ios: 2.0.36
  Location: /usr/local/lib/node_modules/macaca-ios
  • app inspector version / version number: 2.0.24
  • os version / system: Mac 10.14.6
  • device information / device version: iOS 12.4.1
  • terminal log / terminal output information:

server.js:16:12 [master] pid:34606 server start with config:  {   Port: 5678,   Verbose: true,   Udid: 'fca2ddc52a5b19d6d997c6d6d2cb0a5570629257',   Ip: '172.16.16.225',   Host: 'ygqs-MacBook-Pro.local',   Loaded_time: '2019-09-10 15:56:46' } app-inspector.js:45:12 [master] pid:34606 server start at: http://172.16.16.225:5678 xctest-client.js:56:14 [master] pid:34606 project path: /usr/local/lib/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:283:14 [master] pid:34606 xcode version: 10.3 XCTestWD version: 1.4.18 xctest-client.js:309:14 [master] pid:34606 Fail to start xctest: Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build /Products' Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products'     At Object.readdirSync (fs.js:865:3)     At /usr/local/lib/node_modules/xctestwd/lib/xctest-client.js:189:26     At new Promise ()     At XCTest.startBootstrap (/usr/local/lib/node_modules/xctestwd/lib/xctest-client.js:182:12)     At startBootstrap.next ()     At onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/_co@4.6.0@co/index.js:65:19)     At /usr/local/lib/node_modules/app-inspector/node_modules/_co@4.6.0@co/index.js:54:5     At new Promise ()     At co (/usr/local/lib/node_modules/app-inspector/node_modules/_co@4.6.0@co/index.js:50:10)     At toPromise (/usr/local/lib/node_modules/app-inspector/node_modules/_co@4.6.0@co/index.js:118:63) {   Errno: -2,   Syscall: 'scandir',   Code: 'ENOENT',   Path: '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products' } iOS device started: fca2ddc52a5b19d6d997c6d6d2cb0a5570629257 inspector start at: http://172.16.16.225:5678   <-- GET /   <-- GET /android.json   --> GET /android.json 404   <-- GET /android-screenshot.png   --> GET /android-screenshot.png 404 helper.js:94:16 [master] pid:34606 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001

  Error: connect ECONNREFUSED 127.0.0.1:8001       At TCPConnectWrap.afterConnect [as oncomplete] (net.js:1126:14)

what ?

YGQ8988 commented 4 years ago

/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products 手动创建,Build及Products后运行成功,大家参考下吧

macaca-bot commented 4 years ago

This is the translated issue comment: @YGQ8988


/ Usr / local / lib / node_modules / xctestwd / XCTestWD / build / Build / Products Manually create, run after Build Products and success, we refer to the bar

liyaoyao6342 commented 4 years ago

/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products 手动创建,Build及Products后运行成功,大家参考下吧

请问具体是怎么做呢,我一直遇到这个问题,刚才还提了个issue

macaca-bot commented 4 years ago

This is the translated issue comment: @liyaoyao6342


/ Usr / local / lib / node_modules / xctestwd / XCTestWD / build / Build / Products Manually create, run after Build Products and success, we refer to the bar

I ask specifically how to do it, I have been experiencing this problem, it has also raised a issue