Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios14.2,xcode12.2,运行iOS自动化测试报错[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x100672ed8' #994

Open
crazymanpj opened this issue Mar 24, 2021 · 1 comment

Comments

@crazymanpj
Copy link

  • Macaca Version:
    2.2.1

  • Macaca Doctor Logs:
    macaca-doctor version: 2.0.18

    Node.js checklist:

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

    iOS checklist:

    macOS version: 10.15.5
    Xcode Command Line Tools is ready, version: 2373.
    xcodebuild version: 12.2
    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 not set
    ANDROID_HOME is not set
    Command Line Tools: gradle is uninstalled

    Installed driver list:

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

    electron: 7.0.4
    location: /usr/local/lib/node_modules/macaca-electron

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

  • Operate System:
    macOS version: 10.15.5

  • Programming Language:
    python

ios14.2版本的iPhone,xcode12.2环境,运行iOS自动化测试报错[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x100672ed8',具体执行是执行到send_keys这个api
详细server日志如下:

xctest-client.js:206:16 [master] pid:79162 t = 24.90s Find the "username" TextField

xctest-client.js:206:16 [master] pid:79162 t = 24.93s Find the "username" TextField

xctest-client.js:206:16 [master] pid:79162 t = 24.96s Find the "username" TextField

xctest-client.js:206:16 [master] pid:79162 t = 24.98s Tap "username" TextField

xctest-client.js:206:16 [master] pid:79162 t = 24.99s Wait for com.kingsoft.www.office.wpsoffice.debug to idle

xctest-client.js:206:16 [master] pid:79162 2021-03-24 11:38:25.824228+0800 XCTestWDUITests-Runner[5444:150994] [XCTestWDUITests-Runner] findWriterForTypeAndAlternateType:119: unsupported file format 'public.heic'

xctest-client.js:206:16 [master] pid:79162 2021-03-24 11:38:25.824416+0800 XCTestWDUITests-Runner[5444:150994] [XCTestWDUITests-Runner] findWriterForTypeAndAlternateType:119: unsupported file format 'public.heic'

xctest-client.js:206:16 [master] pid:79162 t = 25.04s Find the "username" TextField

xctest-client.js:206:16 [master] pid:79162 t = 25.07s Check for interrupting elements affecting "username" TextField

xctest-client.js:206:16 [master] pid:79162 t = 25.10s Synthesize event

xctest-client.js:206:16 [master] pid:79162 2021-03-24 11:38:25.935001+0800 XCTestWDUITests-Runner[5444:150994] [XCTestWDUITests-Runner] findWriterForTypeAndAlternateType:119: unsupported file format 'public.heic'

xctest-client.js:206:16 [master] pid:79162 2021-03-24 11:38:25.935185+0800 XCTestWDUITests-Runner[5444:150994] [XCTestWDUITests-Runner] findWriterForTypeAndAlternateType:119: unsupported file format 'public.heic'

xctest-client.js:206:16 [master] pid:79162 t = 25.21s Wait for com.kingsoft.www.office.wpsoffice.debug to idle

xctest-client.js:206:16 [master] pid:79162 2021-03-24 11:38:26.054801+0800 XCTestWDUITests-Runner[5444:150994] [XCTestWDUITests-Runner] findWriterForTypeAndAlternateType:119: unsupported file format 'public.heic'
2021-03-24 11:38:26.054985+0800 XCTestWDUITests-Runner[5444:150994] [XCTestWDUITests-Runner] findWriterForTypeAndAlternateType:119: unsupported file format 'public.heic'

xctest-client.js:206:16 [master] pid:79162 t = 25.37s Find the "username" TextField

xctest-client.js:206:16 [master] pid:79162 2021-03-24 11:38:26:213 XCTestWDUITests-Runner[5444:150994] XCTestWD-Debug-Info:
dismiss keyboard while aborting setValue, element does not have focus

xctest-client.js:206:16 [master] pid:79162 2021-03-24 11:38:26.213280+0800 XCTestWDUITests-Runner[5444:151045] XCTestWD-Debug-Info:
dismiss keyboard while aborting setValue, element does not have focus
2021-03-24 11:38:26.213761+0800 XCTestWDUITests-Runner[5444:150994] +[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x100672ed8

xctest-client.js:206:16 [master] pid:79162 2021-03-24 11:38:26.214811+0800 XCTestWDUITests-Runner[5444:150994] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x100672ed8'
*** First throw call stack:
(0x1b00d99d4 0x1c3a8ab54 0x1affee060 0x1b00dc018 0x1b00ddf8c 0x102bdbf98 0x1afd12280 0x1afcb62f4 0x102bdbea4 0x102bf4714 0x102beb170 0x102bea204 0x102be50dc 0x102be2000 0x102bdf3fc 0x102bdefb0 0x102bdf008 0x1afd12280 0x1afcc1c5c 0x1afd12280 0x1afcc105c 0x1b00595d0 0x1b0053a78 0x1b0052b90 0x1b12707f8 0x1b12a1964 0x102be0478 0x102a41dfc 0x102a41e70 0x1b00de130 0x1affc11c0 0x100549b60 0x100549b10 0x1005bd9f8 0x1005539bc 0x100549990 0x1005a1d48 0x100549478 0x10054ae88 0x1005a1d48 0x10054adc0 0x1005b5678 0x10054a688 0x10058dc24 0x10054411c 0x100543a28 0x1005b5678 0x1005b5588 0x1005439d0 0x100543cf8 0x10058dc24 0x10054411c 0x100543a28 0x1005b5678 0x1005b5588 0x1005439d0 0x100543cf8 0x10058dc24 0x10054411c 0x100543a28 0x1005b5678 0x1005b5588 0x1005439d0 0x100543cf8 0x10058dc24 0x1005c930c 0x1005b5678 0x1005b5588 0x1005c9260 0x1005c9408 0x10055e03c 0x1005c9030 0x100528bb8 0x1005b177c 0x100511674 0x100511658 0x1b0059940 0x1b0058bc8 0x1b00533e4 0x1b0052b90 0x1c6375598 0x1b293c638 0x1b2941bb8 0x100511840 0x1afd31588)

xctest-client.js:206:16 [master] pid:79162 libc++abi.dylib: terminating with uncaught exception of type NSException

proxy.js:63:22 [master] pid:79162 xctest client proxy error with: Error: socket hang up

@macaca-bot
Copy link

This is the translated issue:


iOS14.2, Xcode12.2, run iOS automation test error [xctestdriver sharedtestdriver]: unrecognized selector Sent to class 0x100672ed8 '

  • ** Macaca Version **:
    2.2.1

  • ** Macaca Doctor logs **:
    Macaca-Doctor Version: 2.0.18

    Node.js Checklist:

    Node env: / usr / local / bin / node
    Node Version: V8.14.0

    ios Checklist:

    Macos Version: 10.15.5
    Xcode Command Line Tools Is Ready, Version: 2373.
    XcodeBuild Version: 12.2
    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 not set
    Android_home is not set
    Command Line Tools: gradle is uninstalled

    Installed Driver List:

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

    Electron: 7.0.4
    Location: / usr / local / lib / node_modules / macaca-electron

    iOS: 2.1.0
    Location: / usr / local / lib / node_modules / macaca-ios

  • ** Operate system **:
    Macos Version: 10.15.5

  • ** programming language **:
    Python

iOS14.2 version of iPhone, Xcode12.2 environment, run iOS automation test error [xctestDriver sharedtestdriver]: unrecognized selector Sent to class 0x100672ed8 ', the specific execution is performed to send_keys this API
The detailed Server log is as follows:

Xctest-Client.js: 206: 16 [Master] PID: 79162 T = 24.90s Find The "Username" TextField

Xctest-Client.js: 206: 16 [Master] PID: 79162 T = 24.93S Find The "Username" TextField

Xctest-Client.js: 206: 16 [Master] PID: 79162 T = 24.96s Find The "Username" TextField

Xctest-Client.js: 206: 16 [Master] PID: 79162 T = 24.98s TAP "Username" TextField

XCTEST-Client.js: 206: 16 [Master] PID: 79162 T = 24.99s Wait for com.kingsoft.www.Office.wpsoffice.debug to id

xctest-client.js: 206: 16 [master] pid: 79162 2021-03-24 11: 38: 25.824228 + 0800 XCTestWDUITests-Runner [5444: 150994] [XCTestWDUITests-Runner] findWriterForTypeAndAlternateType: 119: unsupported file format ' Public.heic '

xctest-client.js: 206: 16 [master] pid: 79162 2021-03-24 11: 38: 25.824416 + 0800 XCTestWDUITests-Runner [5444: 150994] [XCTestWDUITests-Runner] findWriterForTypeAndAlternateType: 119: unsupported file format ' Public.heic '

Xctest-Client.js: 206: 16 [Master] PID: 79162 T = 25.04s Find The "Username" TextField

Xctest-Client.js: 206: 16 [Master] PID: 79162 T = 25.07S Check for Interrupting Elements Affecting "UserName" TextField

Xctest-Client.js: 206: 16 [Master] PID: 79162 T = 25.10S Synthesize Event

xctest-client.js: 206: 16 [master] pid: 79162 2021-03-24 11: 38: 25.935001 + 0800 XCTestWDUITests-Runner [5444: 150994] [XCTestWDUITests-Runner] findWriterForTypeAndAlternateType: 119: unsupported file format ' Public.heic '

xctest-client.js: 206: 16 [master] pid: 79162 2021-03-24 11: 38: 25.935185 + 0800 XCTestWDUITests-Runner [5444: 150994] [XCTestWDUITests-Runner] findWriterForTypeAndAlternateType: 119: unsupported file format ' Public.heic '

Xctest-Client.js: 206: 16 [Master] PID: 79162 T = 25.21s Wait for com.kingsoft.www.office.wpsoffice.debug to id

xctest-client.js: 206: 16 [master] pid: 79162 2021-03-24 11: 38: 26.054801 + 0800 XCTestWDUITests-Runner [5444: 150994] [XCTestWDUITests-Runner] findWriterForTypeAndAlternateType: 119: unsupported file format ' Public.heic '
2021-03-24 11: 38: 26.054985 + 0800 Xctestwduitests-Runner [5444: 150994] FindwriterfortypeandalternateType: 119: unsupported file format 'public.heic'

Xctest-Client.js: 206: 16 [Master] PID: 79162 T = 25.37S Find The "Username" TextField

Xctest-Client.js: 206: 16 [Master] PID: 79162 2021-03-24 11: 38: 26: 213 xctestwduitests-Runner [5444: 150994] xctestwd-debug-info:
Dismiss Keyboard While Aborting SetValue, Element Does Not Have Focus

Xctest-Client.js: 206: 16 [Master] PID: 79162 2021-03-24 11: 38: 26.213280 + 0800 Xctestwduitests-Runner [5444: 151045] xctestwd-debug-info:
Dismiss Keyboard While Aborting SetValue, Element Does Not Have Focus
2021-03-24 11: 38: 26.213761 + 0800 xctestwduitests-runner [5444: 150994] + [xctestdriver sharedtestdriver]: unrecognized selector Sent to class 0x100672ed8

xctest-client.js: 206: 16 [master] pid: 79162 2021-03-24 11: 38: 26.214811 + 0800 XCTestWDUITests-Runner [5444: 150994] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', Reason: '+ [XctestDriver SharedTestDriver]: unrecognized selector Sent to class 0x100672ed8'
*** First Throw Call Stack:
(0x1b00d99d4 0x1c3a8ab54 0x1affee060 0x1b00dc018 0x1b00ddf8c 0x102bdbf98 0x1afd12280 0x1afcb62f4 0x102bdbea4 0x102bf4714 0x102beb170 0x102bea204 0x102be50dc 0x102be2000 0x102bdf3fc 0x102bdefb0 0x102bdf008 0x1afd12280 0x1afcc1c5c 0x1afd12280 0x1afcc105c 0x1b00595d0 0x1b0053a78 0x1b0052b90 0x1b12707f8 0x1b12a1964 0x102be0478 0x102a41dfc 0x102a41e70 0x1b00de130 0x1affc11c0 0x100549b60 0x100549b10 0x1005bd9f8 0x1005539bc 0x100549990 0x1005a1d48 0x100549478 0x10054ae88 0x1005a1d48 0x10054adc0 0x1005b5678 0x10054a688 0x10058dc24 0x10054411c 0x100543a28 0x1005b5678 0x1005b5588 0x1005439d0 0x100543cf8 0x10058dc24 0x10054411c 0x100543a28 0x1005b5678 0x1005b5588 0x1005439d0 0x100543cf8 0x10058dc24 0x10054411c 0x100543a28 0x1005b5678 0x1005b5588 0x1005439d0 0x100543cf8 0x10058dc24 0x1005c930c 0x1005b5678 0x1005b5588 0x1005c9260 0x1005c9408 0x10055e03c 0x1005c9030 0x100528bb8 0x1005b177c 0x100511674 0x100511658 0x1b0059940 0x1b0058bc8 0x1b00533e4 0x1b0052b90 0x1c6375598 0x1b293c638 0x1b2941bb8 0x1 00511840 0x1AFD31588)

Xctest-Client.js: 206: 16 [Master] PID: 79162 Libc ++ Abi.dylib: Terminating with Uncauption of Type NSEXCEPTION

Proxy.js: 63: 22 [Master] PID: 79162 XCTEST Client Proxy Error With: Error: Socket HANG Up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants