Skip to content

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

@crazymanpj

Description

@crazymanpj
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions