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

Not able to inspect element in macaca inspector #174

Closed krupar92 closed 6 years ago

krupar92 commented 6 years ago

Hi All,

I am trying to run an app file on macaca browser for inspecting mobile element. I am getting following error. The bowser starts up saying waiting for device.Can you please help.

I am using iphone 6 simulator , not a real device.

xctest-client.js:201:16 [master] pid:82949 xctest client exit with code: 65, signal: null xctest-client.js:115:18 [master] pid:82949 simulator log process exit with code: null, signal: SIGKILL .

These are versions of software installed in my MAC macaca-doctor version: 2.0.5

Node.js checklist:

node env: /usr/local/bin/node node version: v8.9.2

iOS checklist:

Xcode Command Line Tools is ready, version: 2349. xcodebuild version: 9.2 iproxy[usbmuxd] is installed at: /usr/local/bin/iproxy ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy carthage is installed, version: 0.27.0

krupar92 commented 6 years ago

Can anyone please help in this?

wispy316 commented 6 years ago

Installed driver list: ios: 2.0.30

is macaca-ios driver installed? parse your full macaca doctor log.

krupar92 commented 6 years ago

yes it is installed.Please check

macaca-doctor version: 2.0.5

Node.js checklist:

node env: /usr/local/bin/node node version: v8.9.2

iOS checklist:

Xcode Command Line Tools is ready, version: 2349. xcodebuild version: 9.2 iproxy[usbmuxd] is installed at: /usr/local/bin/iproxy ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy carthage is installed, version: 0.27.0

Android checklist:

JAVA version is 1.8.0_144 JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home ANDROID_HOME is set to /Users/krupa/Android Platforms is set to /Users/krupa/Android/platforms/android-20 ADB tool is set to /Users/krupa/Android/platform-tools/adb Command Line Tools: gradle is uninstalled

Installed driver list:

ios: 2.0.30

krupar92 commented 6 years ago

@wispy316 :Still same issue persists.Please help

rdhandapani88 commented 6 years ago

@krupar92 Macaca App ispector is working fine in Real devices. I tried with real devices. Please make sure that you have installed the latest version of app-inspector , and even i tried with latest ios version 11.2.6. it is working fine. It is not working only for IPAD's.

krupar92 commented 6 years ago

@rdhandapani88 :Thank you so much

xudafeng commented 6 years ago

@krupar92

please check your host environment.

$ npx macaca-cli doctor
krupar92 commented 6 years ago

Still not working for simulator.

lgzwo commented 6 years ago

同样遇到这个问题,macaca测试运行正常,app-inspector无法启动,用的模拟器。详细信息如下 % app-inspector -u 8C034D11-22E0-425B-BC5D-FD898B27C06D --verbose

server.js:16:12 [master] pid:14702 server start with config: { port: 5678, verbose: true, udid: '8C034D11-22E0-425B-BC5D-FD898B27C06D', ip: '192.168.199.195', host: 'liuguanhengsMBP.lan', loaded_time: '2018-03-13 15:10:22' } app-inspector.js:45:12 [master] pid:14702 server start at: http://192.168.199.195:5678 xctest-client.js:56:14 [master] pid:14702 project path: /usr/local/lib/node_modules/app-inspector/nodemodules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:242:14 [master] pid:14702 xcode version: 9.2 XCTestWD version: 1.3.20 Read simulator log at: /var/folders/d/_j2dn9514r75cl4x4qbw3v_r0000gn/T/com.apple.dt.XCTest/IDETestRunSession-03317DF2-FBAC-4E8B-B99D-06A5442DA02C/XCTestWDUITests-810F70D7-41CF-42C4-8911-42EB85961E2E/StandardOutputAndStandardError.txt xctest-client.js:190:18 [master] pid:14702 please check project: /usr/local/lib/node_modules/app-inspector/nodemodules/xctestwd/XCTestWD/XCTestWD.xcodeproj Read simulator log at: /var/folders/d/_j2dn9514r75cl4x4qbw3v_r0000gn/T/com.apple.dt.XCTest/IDETestRunSession-03317DF2-FBAC-4E8B-B99D-06A5442DA02C/XCTestWDUITests-810F70D7-41CF-42C4-8911-42EB85961E2E/StandardOutputAndStandardError.txt xctest-client.js:190:18 [master] pid:14702 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:190:18 [master] pid:14702 please check project: /usr/local/lib/node_modules/app-inspector/nodemodules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:276:14 [master] pid:14702 killing deviceLogProc pid: 14765 xctest-client.js:281:14 [master] pid:14702 killing runnerProc pid: 14705 xctest-client.js:201:16 [master] pid:14702 xctest client exit with code: 65, signal: null xctest-client.js:115:18 [master] pid:14702 simulator log process exit with code: null, signal: SIGKILL Read simulator log at: /var/folders/d/_j2dn9514r75cl4x4qbw3v_r0000gn/T/com.apple.dt.XCTest/IDETestRunSession-03317DF2-FBAC-4E8B-B99D-06A5442DA02C/XCTestWDUITests-810F70D7-41CF-42C4-8911-42EB85961E2E/StandardOutputAndStandardError.txt

SamuelZhaoY commented 6 years ago

https://github.com/macacajs/app-inspector/issues/184 please check about xcode compilation issue