macaca icon indicating copy to clipboard operation
macaca copied to clipboard

Known issues and walkarounds 目前已知问题+解决方案

Open paradite opened this issue 5 years ago • 15 comments

目前已知问题汇总:

English version below

iOS 真机测试 iproxy 报错

下载最新版 iproxy (usbmuxd)。

$ brew install usbmuxd

Error xctest client exit with code: 65, signal: null

通过 Xcode 手动安装 xctestwd到测试机,详见 https://github.com/alibaba/macaca/issues/948

MacOS 10.5 iOS 找不到 Webview

macOS 10.15 ios-webkit-debug-proxy 兼容问题,MR已合并,等待新版。 https://github.com/google/ios-webkit-debug-proxy/pull/329

MacOS 10.5 安装 macaca-iosios-deploy 安装失败报错 - MacOS 10.5

ios-deploy catalina 10.15兼容性问题。可以用 brew install ios-deploy 全局安装 ios-deploy,忽略macaca-ios 的报错。 参考该库 isssue: ios-control/ios-deploy#387 ios-control/ios-deploy#415

Currently known issues

iOS real device iproxy error

Download latest iproxy (usbmuxd)。

$ brew install usbmuxd

Error xctest client exit with code: 65, signal: null

Install xctestwd on your device using Xcode, refer to https://github.com/alibaba/macaca/issues/948

MacOS 10.5 iOS Cannot find any Webview

macOS 10.15 ios-webkit-debug-proxy issue, MR merged, waiting for new version release: google/ios-webkit-debug-proxy#329

MacOS 10.5 ios-deploy failure when installing macaca-ios

ios-deploy catalina 10.15 compatibility isssue, install ios-deploy globally via brew install ios-deploy and ignore the error from macaca-ios installation. Refer to: ios-control/ios-deploy#387 ios-control/ios-deploy#415

paradite avatar May 29 '19 16:05 paradite

.

macaca-bot avatar May 29 '19 16:05 macaca-bot

支持批量真机测试吗,如果批量真机测试,最大稳定android 设备链接数多少?

gezihua avatar Jan 15 '20 13:01 gezihua

This is the translated issue comment: @gezihua


Support batch real test, and if the bulk real test, the maximum stable android device link count how many?

macaca-bot avatar Jan 15 '20 13:01 macaca-bot

出现新的错误,详细见https://gitee.com/jiodg45/macaca-issue-test

>> xctest-client.js:233:20 [master] pid:6656 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctestwd start with port: 8001
>> proxy.js:55:14 [master] pid:6656 Proxy: /wd/hub/session:POST to http://127.0.0.1:8001/wd/hub/session:POST with body: {"desiredCapabilities":{"bundleId":"xudafeng.ios-app-bootstrap1.longxiang","platformName":"iOS","browserName":"firefox"}}
>> xctest-client.js:270:16 [master] pid:6656 Invalid listen port specified in argument '8001'!
>> proxy.js:63:22 [master] pid:6656 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:279:14 [master] pid:6656 iproxy exit with code: 234, signal: null
>> helper.js:20:18 [master] pid:6656 retrying... (10 retries left)
>> proxy.js:63:22 [master] pid:6656 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:224:18 [master] pid:6656 2021-01-04 10:37:49.123 xcodebuild[6674:1054763] [MT] IDETestOperationsObserverDebug: (F00A4BC7-8187-400C-9071-847E03D45063) Finished requesting crash reports. Continuing with testing.
....

LongXiangGuo avatar Jan 04 '21 03:01 LongXiangGuo

This is the translated issue comment: @LongXiangGuo


New mistakes, see https://gitee.com/jiodg45/macaca-issue-test `` `shell

Xctest-Client.js: 233: 20 [Master] PID: 6656 please check supplion_modules/macaca-ios/node_modules/xctestwd/xcteproj Xctestwd Start With Port: 8001 Proxy.js: 55: 14 [Master] PID: 6656 Proxy: / wd / hub / session: post to http://127.0.0.1:8001/wd/hub/session :Post with body: {"desiredcapabilities" : {"bundleid": "xudafeng.ios-app-bootstrap1.longxiang", "PlatformName": "iOS", "browsername": "firefox"}} Xctest-Client.js: 270: 16 [Master] PID: 6656 INVALID LISTEN Port Specified in Argument '8001'! Proxy.js: 63: 22 [Master] PID: 6656 XCTEST Client Proxy Error With: Error: Connect Econnrefused 127.0.0.1:8001 Xctest-Client.js: 279: 14 [Master] PID: 6656 iProxy EXIT with CODE: 234, SIGNAL: NULL Helper.js: 20: 18 [Master] PID: 6656 RETRYING ... (10 Retries LEFT) Proxy.js: 63: 22 [Master] PID: 6656 XCTEST Client Proxy Error With: Error: Connect Econnrefused 127.0.0.1:8001 Xctest-Client.js: 224: 18 [Master] PID: 6656 2021-01-04 10: 37: 49.123 Xcodebuild [6674: 1054763] [MT] IDETESTOPERATIONSOBSERVERDEBUG: (F00A4BC7-8187-400C-9071-847E03D45063) Finished Requesting Crash Reports. Continuing with Testing. .... `` `

macaca-bot avatar Jan 04 '21 03:01 macaca-bot

出现新的错误,详细见https://gitee.com/jiodg45/macaca-issue-test

>> xctest-client.js:233:20 [master] pid:6656 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctestwd start with port: 8001
>> proxy.js:55:14 [master] pid:6656 Proxy: /wd/hub/session:POST to http://127.0.0.1:8001/wd/hub/session:POST with body: {"desiredCapabilities":{"bundleId":"xudafeng.ios-app-bootstrap1.longxiang","platformName":"iOS","browserName":"firefox"}}
>> xctest-client.js:270:16 [master] pid:6656 Invalid listen port specified in argument '8001'!
>> proxy.js:63:22 [master] pid:6656 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:279:14 [master] pid:6656 iproxy exit with code: 234, signal: null
>> helper.js:20:18 [master] pid:6656 retrying... (10 retries left)
>> proxy.js:63:22 [master] pid:6656 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:224:18 [master] pid:6656 2021-01-04 10:37:49.123 xcodebuild[6674:1054763] [MT] IDETestOperationsObserverDebug: (F00A4BC7-8187-400C-9071-847E03D45063) Finished requesting crash reports. Continuing with testing.
....

应该就是列表里第一个问题“iOS 真机测试无法开启8001端口”,手动patch一下。

paradite avatar Jan 04 '21 03:01 paradite

This is the translated issue comment: @paradite


New mistakes, see https://gitee.com/jiodg45/macaca-issue-test

`` `shell

Xctest-Client.js: 233: 20 [Master] PID: 6656 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/xctestwd/xctestwd.xcodeproj Xctestwd Start With Port: 8001 Proxy.js: 55: 14 [Master] PID: 6656 Proxy: / wd / hub / session: post to http://127.0.0.1:8001/wd/hub/session :Post with body: {"DesiredCapability ": {" bundleid ":" xudafeng.ios-app-bootstrap1.longxiang "," platformname ":" iOS "," browsername ":" firefox "}} Xctest-Client.js: 270: 16 [Master] PID: 6656 INVALID LISTEN Port Specified in Argument '8001'! Proxy.js: 63: 22 [Master] PID: 6656 XCTEST Client Proxy Error with: Error: Connect Econnrefused 127.0.0.1:8001 Xctest-Client.js: 279: 14 [Master] PID: 6656 iProxy EXIT with CODE: 234, SIGNAL: NULL Helper.js: 20: 18 [Master] PID: 6656 RETRYING ... (10 Retries LEFT) Proxy.js: 63: 22 [Master] PID: 6656 XCTEST Client Proxy Error with: Error: Connect Econnrefused 127.0.0.1:8001 Xctest-Client.js: 224: 18 [Master] PID: 6656 2021-01-04 10: 37: 49.123 Xcodebuild [6674: 1054763] [MT] IDETESTOPERATIONSOBSERVERDEBUG: (F00A4BC7-8187-400C-9071-847E03D45063) Finished Requesting Crash Reports. Continuing With Testing. .... `` `

It should be that the first question in the list "IOS real machine test cannot be opened 8001 port", manual PATCH.

macaca-bot avatar Jan 04 '21 03:01 macaca-bot

出现新的错误,详细见https://gitee.com/jiodg45/macaca-issue-test

>> xctest-client.js:233:20 [master] pid:6656 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctestwd start with port: 8001
>> proxy.js:55:14 [master] pid:6656 Proxy: /wd/hub/session:POST to http://127.0.0.1:8001/wd/hub/session:POST with body: {"desiredCapabilities":{"bundleId":"xudafeng.ios-app-bootstrap1.longxiang","platformName":"iOS","browserName":"firefox"}}
>> xctest-client.js:270:16 [master] pid:6656 Invalid listen port specified in argument '8001'!
>> proxy.js:63:22 [master] pid:6656 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:279:14 [master] pid:6656 iproxy exit with code: 234, signal: null
>> helper.js:20:18 [master] pid:6656 retrying... (10 retries left)
>> proxy.js:63:22 [master] pid:6656 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:224:18 [master] pid:6656 2021-01-04 10:37:49.123 xcodebuild[6674:1054763] [MT] IDETestOperationsObserverDebug: (F00A4BC7-8187-400C-9071-847E03D45063) Finished requesting crash reports. Continuing with testing.
....

应该就是列表里第一个问题“iOS 真机测试无法开启8001端口”,手动patch一下。

多谢,我试试看, 这个 地址的内容无法访问https://gist.github.com/paradite/1569c4012dd1bdb3d71213b536bb5a05,可以提供下具体的xctest-client.js么?

LongXiangGuo avatar Jan 04 '21 05:01 LongXiangGuo

This is the translated issue comment: @LongXiangGuo


New mistakes, see https://gitee.com/jiodg45/macaca-issue-test `` `shell

xctest-client.js: 233: 20 [Master] PID: 6656 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/xctestwd/xctestwd.xcodeproj Xctestwd Start With Port: 8001 proxy.js: 55: 14 [Master] PID: 6656 Proxy: / wd / hub / session: post to http://127.0.0.1:8001/wd/hub/session :Post with body: { DesignedCapabilities ": {" bundleid ":" xudafeng.ios-app-bootstrap1.longxiang "," PlatformName ":" iOS "," browsername ":" firefox "}} Xctest-Client.js: 270: 16 [Master] PID: 6656 Invalid Listen Port Specified in Argument '8001'! proxy.js: 63: 22 [Master] PID: 6656 XCTEST Client Proxy Error: Connect Econnrefused 127.0.0.1:8001 Xctest-Client.js: 279: 14 [Master] PID: 6656 iProxy Exit with code: 234, Signal: NULL Helper.js: 20: 18 [Master] PID: 6656 RETRYING ... (10 Retries LEFT) proxy.js: 63: 22 [Master] PID: 6656 XCTEST Client Proxy Error: Connect Econnrefused 127.0.0.1:8001 xctest-client.js: 224: 18 [Master] PID: 6656 2021-01-04 10: 37: 49.123 Xcodebuild [6674: 1054763] [MT] IDETESTOPERATIONSOBSERVERDEBUG: (F00A4BC7-8187-400C-9071-847E03D45063 Finished Requesting Crash Reports. Continuing with Testing. .... `` `

Should be the first question in the list "IOS real machine test cannot be opened 8001 port", manual PATCH.

Thank you, I will try, this address is unable to access https: // gist.github.com / paradite / 1569c4012dd1bdb3d71213b536bb5a05, can provide the specific `xctest-client.js.

macaca-bot avatar Jan 04 '21 05:01 macaca-bot

出现新的错误,详细见https://gitee.com/jiodg45/macaca-issue-test

>> xctest-client.js:233:20 [master] pid:6656 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctestwd start with port: 8001
>> proxy.js:55:14 [master] pid:6656 Proxy: /wd/hub/session:POST to http://127.0.0.1:8001/wd/hub/session:POST with body: {"desiredCapabilities":{"bundleId":"xudafeng.ios-app-bootstrap1.longxiang","platformName":"iOS","browserName":"firefox"}}
>> xctest-client.js:270:16 [master] pid:6656 Invalid listen port specified in argument '8001'!
>> proxy.js:63:22 [master] pid:6656 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:279:14 [master] pid:6656 iproxy exit with code: 234, signal: null
>> helper.js:20:18 [master] pid:6656 retrying... (10 retries left)
>> proxy.js:63:22 [master] pid:6656 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:224:18 [master] pid:6656 2021-01-04 10:37:49.123 xcodebuild[6674:1054763] [MT] IDETestOperationsObserverDebug: (F00A4BC7-8187-400C-9071-847E03D45063) Finished requesting crash reports. Continuing with testing.
....

应该就是列表里第一个问题“iOS 真机测试无法开启8001端口”,手动patch一下。

多谢,我试试看, 这个 地址的内容无法访问https://gist.github.com/paradite/1569c4012dd1bdb3d71213b536bb5a05,可以提供下具体的xctest-client.js么?

替换 patch文件后,手动在Xcode运行test server还是报这个错误, 本机Sarfari http://localhost:8001无法访问

>> xctest-client.js:233:20 [master] pid:43554 please check project: /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctestwd start with port: 8001
>> proxy.js:55:14 [master] pid:43554 Proxy: /wd/hub/session:POST to http://127.0.0.1:8001/wd/hub/session:POST with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari"}}
>> xctest-client.js:316:14 [master] pid:43554 Fail to start xctest: TypeError: this.device.openURL is not a function
>> xctest-client.js:329:14 [master] pid:43554 killing runnerProc pid: 44240
>> xctest-client.js:335:14 [master] pid:43554 killing iproxyProc pid: 44554
>> proxy.js:63:22 [master] pid:43554 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:279:14 [master] pid:43554 iproxy exit with code: null, signal: SIGKILL
>> xctest-client.js:245:16 [master] pid:43554 xctest client exit with code: null, signal: SIGKILL

LongXiangGuo avatar Jan 04 '21 07:01 LongXiangGuo

This is the translated issue comment: @LongXiangGuo


New mistakes, see https://gitee.com/jiodg45/macaca-issue-test `` `shell

xctest-client.js: 233: 20 [Master] PID: 6656 please check project: /usr/local/lib/node_modules/maca-ios/node_modules/xctestwd/xctestwd/xctestwd.xcodeproj Xctestwd Start with Port: 8001 proxy.js: 55: 14 [Master] PID: 6656 Proxy: / wd / hub / session: post to http://127.0.0.1:8001/wd/hub/session :Post with body: { "designedcapabilities": {"bundleid": "xudafeng.ios-app-bootstrap1.longxiang", "platformname": "iOS", "browsername": "firefox"}} Xctest-Client.js: 270: 16 [Master] PID: 6656 Invalid Listen Port Specified in Argument '8001'! proxy.js: 63: 22 [Master] PID: 6656 XCTEST Client Proxy Error With: Error: Connect Econnrefused 127.0.0.1:8001 Xctest-Client.js: 279: 14 [Master] PID: 6656 iProxy Exit with code: 234, Signal: NULL Helper.js: 20: 18 [Master] PID: 6656 RETRYING ... (10 Retries LEFT) proxy.js: 63: 22 [Master] PID: 6656 XCTEST Client Proxy Error With: Error: Connect Econnrefused 127.0.0.1:8001 xctest-client.js: 224: 18 [Master] PID: 6656 2021-01-04 10: 37: 49.123 Xcodebuild [6674: 1054763] [MT] IDETESTOPERATIONSOBSERVERDEBUG: (F00A4BC7-8187-400C-9071- 847E03D45063) Finished Requesting Crash Reports. Continuing with Testing. . `` `

It should be that the first question in the list "IOS real machine test cannot be opened 8001 port", and manually PATCH.

Thank you, I will try, this address is unable to access https: // gist.github.com / paradite / 1569c4012dd1bdb3d71213b536bb5a05, can provide the specific `xctest-client.js.

After replacing the Patch file, manually run Test Server in Xcode or report this error, this machine SARFARI http: // localhost: 8001 Unaciscloud

`` `shell

Xctest-Client.js: 233: 20 [Master] PID: 43554 please check project: /usr/local/lib/node_modules/maca-ios/node_modules/xctestwd/xcteproj Xctestwd Start With Port: 8001 Proxy.js: 55: 14 [Master] PID: 43554 Proxy: / WD / HUB / Session: Post to http://127.0.0.1:8001/wd/hub/session :Post with body: {"desiredcapabilities" : {"bundleid": "com.apple.mobilesafari"}}} Xctest-Client.js: 316: 14 [Master] PID: 43554 Fail To Start Xctest: TypeError: this.device.openurl is not a function Xctest-Client.js: 329: 14 [Master] PID: 43554 Killing RunnerProc PID: 44240 Xctest-Client.js: 335: 14 [Master] PID: 43554 Killing iProxyProc PID: 44554 Proxy.js: 63: 22 [Master] PID: 43554 XCTEST Client Proxy Error with: Error: Connect ECONNREFUSED 127.0.0.1:8001 Xctest-Client.js: 279: 14 [Master] PID: 43554 iProxy EXIT WITH CODE: NULL, SIGNAL: SIGKILL Xctest-Client.js: 245: 16 [Master] PID: 43554 XCTEST Client Exit with code: null, Signal: Sigkill `` `

macaca-bot avatar Jan 04 '21 07:01 macaca-bot

这个怎么patch啊

stephenwang1011 avatar Oct 13 '21 06:10 stephenwang1011

This is the translated issue comment: @stephenwang1011


How to patch this

macaca-bot avatar Oct 13 '21 06:10 macaca-bot

这个怎么patch啊

不用patch了,直接用新的 usbmuxd( brew install usbmuxd) 和最新的macaca库即可

paradite avatar Oct 13 '21 06:10 paradite

This is the translated issue comment: @paradite


How is this patch?

No Patch, you can use the new usbmuxd ( Brew Install USBMUXD) and the latest Macaca library

macaca-bot avatar Oct 13 '21 06:10 macaca-bot

看起来相关issue已都close,暂关闭当前issue

yihuineng avatar Oct 20 '23 08:10 yihuineng