Skip to content

XCTestWD在真机上正常运行,命令行执行app-inspector -u xxxx后,提示:Terminated due to signal 9 #1006

@sunpei12

Description

@sunpei12
  • Macaca Version: 2.2.2

  • Macaca Doctor Logs:

  • macaca doctor

    macaca-doctor version: 2.0.18

    Node.js checklist:

    node env: /usr/local/bin/node
    node version: v17.4.0

    iOS checklist:

    macOS version: 11.4
    Xcode Command Line Tools is ready, version: 2384.
    xcodebuild version: 13.1
    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:

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

  • Operate System: iphone 8 plus ios 13.7

  • Programming Language:

step1:XCTestWD在真机上可正常运行
2022-02-11 13:22:40.301286+0800 XCTestWDUITests-Runner[344:10963] XCTestWDSetup->http://localhost:8001<-XCTestWDSetup
step2:终端执行命令—成功
DEVELOPMENT_TEAM_ID=xxxx cnpm i macaca-ios -g
step3:终端执行命令—失败
app-inspector -u “真机udid” --verbose
xcode-XCTestWD log如下:
2022-02-11 13:28:59.958366+0800 XCTestWDUITests-Runner[357:13208] Running tests...
Test Suite 'All tests' started at 2022-02-11 13:29:01.063
Test Suite 'XCTestWDUITests.xctest' started at 2022-02-11 13:29:01.064
Test Suite 'XCTextWDRunner' started at 2022-02-11 13:29:01.064
Test Case '-[XCTestWDUITests.XCTextWDRunner testRunner]' started.
t = 0.00s Start Test at 2022-02-11 13:29:01.065
t = 0.03s Set Up
2022-02-11 13:29:01.103188+0800 XCTestWDUITests-Runner[357:13208] initializing wd server
2022-02-11 13:29:01.103512+0800 XCTestWDUITests-Runner[357:13208] check log dir @:["/var/mobile/Containers/Data/Application/B6A5DEC2-8BDE-4A95-911B-D874224CF791/Documents"]
2022-02-11 13:29:01.103825+0800 XCTestWDUITests-Runner[357:13208] CocoaLumberjack: Warning: Usage of DDTTYLogger detected when DDOSLogger is available and can be used! Please consider migrating to DDOSLogger.
2022-02-11 13:29:01:104 XCTestWDUITests-Runner[357:13208] XCTestWD-Debug-Info:
setup debug log
2022-02-11 13:29:01.105016+0800 XCTestWDUITests-Runner[357:13389] XCTestWD-Debug-Info:
setup debug log
2022-02-11 13:29:01.108418+0800 XCTestWDUITests-Runner[357:13208] XCTestWDRunner.XCTestWDRunner.sundeMacBook-Pro.local.xctrunner
2022-02-11 13:29:01.108484+0800 XCTestWDUITests-Runner[357:13208] XCTestWDSetup->http://localhost:8001<-XCTestWDSetup
2022-02-11 13:29:25:467 XCTestWDUITests-Runner[357:13208] XCTestWD-Debug-Info:
bundle ID input is nil, create session with current active app
2022-02-11 13:29:25.468413+0800 XCTestWDUITests-Runner[357:13505] XCTestWD-Debug-Info:
bundle ID input is nil, create session with current active app
t = 24.43s Find the Application 'com.apple.springboard'
2022-02-11 13:29:25:493 XCTestWDUITests-Runner[357:13208] XCTestWD-Debug-Info:
create app failure
2022-02-11 13:29:25.495084+0800 XCTestWDUITests-Runner[357:13504] XCTestWD-Debug-Info:
create app failure
t = 24.55s Find the Application 'com.apple.springboard'
t = 24.85s Find the Application 'com.apple.springboard'
t = 24.95s Requesting snapshot of accessibility hierarchy for app with pid 56
t = 25.10s getting device orientation
t = 25.14s getting device orientation
t = 25.18s getting device orientation
t = 25.21s getting device orientation
t = 25.24s getting device orientation
t = 25.28s getting device orientation
t = 25.31s getting device orientation
t = 25.34s getting device orientation
t = 25.37s getting device orientation
t = 25.41s getting device orientation
t = 25.44s getting device orientation
t = 25.47s getting device orientation
t = 25.51s getting device orientation
t = 25.54s getting device orientation
t = 25.58s getting device orientation
t = 25.61s getting device orientation
t = 25.64s getting device orientation
t = 25.68s getting device orientation
t = 25.71s getting device orientation
t = 25.74s getting device orientation
t = 25.77s getting device orientation
t = 25.81s getting device orientation
t = 25.84s getting device orientation
t = 25.87s getting device orientation
t = 25.91s getting device orientation
t = 25.94s getting device orientation
t = 25.97s getting device orientation
t = 26.00s getting device orientation
t = 26.04s getting device orientation
t = 26.07s getting device orientation
t = 26.10s getting device orientation
t = 26.14s getting device orientation
t = 26.18s getting device orientation
t = 26.21s getting device orientation
t = 26.24s getting device orientation
t = 26.27s getting device orientation
t = 26.31s getting device orientation
t = 26.34s getting device orientation
t = 26.37s getting device orientation
t = 26.41s getting device orientation
t = 26.44s getting device orientation
t = 26.48s getting device orientation
t = 26.51s getting device orientation
t = 26.55s getting device orientation
t = 26.58s getting device orientation
t = 26.61s getting device orientation
t = 26.65s getting device orientation
t = 26.68s getting device orientation
t = 26.71s getting device orientation
t = 26.75s getting device orientation
t = 26.78s getting device orientation
t = 26.81s getting device orientation
t = 26.84s getting device orientation
t = 26.88s getting device orientation
t = 26.91s getting device orientation
t = 26.95s getting device orientation
t = 26.98s getting device orientation
t = 27.01s getting device orientation
t = 27.04s getting device orientation
t = 27.08s getting device orientation
t = 27.11s getting device orientation
t = 27.15s getting device orientation
t = 27.18s getting device orientation
t = 27.21s getting device orientation
t = 27.25s getting device orientation
t = 27.28s getting device orientation
t = 27.31s getting device orientation
t = 27.34s getting device orientation
t = 27.38s getting device orientation
2022-02-11 13:29:28:473 XCTestWDUITests-Runner[357:13208] XCTestWD-Debug-Info:
no session id in current request
2022-02-11 13:29:28.474061+0800 XCTestWDUITests-Runner[357:13508] XCTestWD-Debug-Info:
no session id in current request
2022-02-11 13:29:28:662 XCTestWDUITests-Runner[357:13208] XCTestWD-Debug-Info:
no session id in current request
2022-02-11 13:29:28.663039+0800 XCTestWDUITests-Runner[357:13503] XCTestWD-Debug-Info:
no session id in current request
Message from debugger: Terminated due to signal 9

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