Macaca app-inspector 一直提示:Internal Server Error,可以帮助一下嘛,或者有没有 macaca 的官方群可以加一下

我喜欢的K17 · 2019年09月03日 · 最后由 我喜欢的K17 回复于 2019年10月09日 · 2617 次阅读

想用 app-inspector 查看 UI 树状图,但是一直报错 Internal Server Error,之前一直是好的,也没有升级,只是安装了一下网易的 airtest,这个会有影响吗

macaca doctor 信息:
wangruideMacBook-Pro-2:~ liyaoyao$ macaca doctor

macaca-doctor version: 2.0.18

Node.js checklist:

node env: /usr/local/homebrew/bin/node
node version: v12.7.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/homebrew/bin/iproxy
ios_webkit_debug_proxy is installed at: /usr/local/homebrew/bin/ios_webkit_debug_proxy

Android checklist:

JAVA version is 1.8
JAVA_HOME is not set
ANDROID_HOME is set to /Users/liyaoyao/Downloads/android-sdk-macosx
Platforms is set to /Users/liyaoyao/Downloads/android-sdk-macosx/platforms/android-29
ADB tool is set to /Users/liyaoyao/Downloads/android-sdk-macosx/platform-tools/adb
Not accepted Android SDK license agreements
gradle is installed, version: 5.5

Installed driver list:

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

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

app-inspector 日志:
wangruideMacBook-Pro-2:~ liyaoyao$ app-inspector -u 25ff8f554eec8da683a00f0310291573f313a72f --verbose

server.js:16:12 [master] pid:37069 server start with config:
{
port: 5678,
verbose: true,
udid: '25ff8f554eec8da683a00f0310291573f313a72f',
ip: '172.16.48.136',
host: 'wangruideMacBook-Pro-2.local',
loaded_time: '2019-09-03 11:58:49'
}
app-inspector.js:45:12 [master] pid:37069 server start at: http://172.16.48.136:5678
xctest-client.js:56:14 [master] pid:37069 project path: /usr/local/homebrew/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
xctest-client.js:283:14 [master] pid:37069 xcode version: 10.3
XCTestWD version: 1.4.18
xctest-client.js:309:14 [master] pid:37069 Fail to start xctest: Error: ENOENT: no such file or directory, scandir '/usr/local/homebrew/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/build/Build/Products'
Error: ENOENT: no such file or directory, scandir '/usr/local/homebrew/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/build/Build/Products'
at Object.readdirSync (fs.js:795:3)
at /usr/local/homebrew/lib/node_modules/app-inspector/node_modules/xctestwd/lib/xctest-client.js:189:26
at new Promise ()
at XCTest.startBootstrap (/usr/local/homebrew/lib/node_modules/app-inspector/node_modules/xctestwd/lib/xctest-client.js:182:12)
at startBootstrap.next ()
at onFulfilled (/usr/local/homebrew/lib/node_modules/app-inspector/node_modules/co/index.js:65:19)
at /usr/local/homebrew/lib/node_modules/app-inspector/node_modules/co/index.js:54:5
at new Promise ()
at co (/usr/local/homebrew/lib/node_modules/app-inspector/node_modules/co/index.js:50:10)
at toPromise (/usr/local/homebrew/lib/node_modules/app-inspector/node_modules/co/index.js:118:63) {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/usr/local/homebrew/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/build/Build/Products'
}
iOS device started: 25ff8f554eec8da683a00f0310291573f313a72f
inspector start at: http://172.16.48.136:5678
<-- GET /
helper.js:94:16 [master] pid:37069 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

共收到 8 条回复 时间 点赞

有没有大佬帮忙看一下,因为我之前是好的,中间没有做什么操作,就挂掉了,很疑惑这一点

up 一下,help me

up,有小伙伴遇到这样的问题吗

打开 /usr/local/homebrew/lib/node_modules/app-inspector/node_modules/xctestwd/lib/xctest-client.js,把截图上这三处存在 xctestrun 相关代码都注释了,重新运行试试看看效果

看错误是你本地网络的问题

发生概率最大的问题,网上解决办法没几个管用的,自己多卸载重装几遍总有一次能成功,要碰运气的

ltyd5788 回复

注释了,没效果

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册