测试积点老人 发表于 2019-8-30 10:11:00

appium ios 真机调试 WebDriverAgent 连接不上

appium ios自动化,之前是用的是模拟器调试 一直都没有问题,最近想用真机调试 就出问题了

测试环境:
手机:iPhone 8 - ios12
xcode版本:10.1(最新的)
appium-desktop:1.9(最新的)
WebDriverAgent:是从刚刚从github clone下来的(appium内部自带的WebDriverAgent那个也试过,也不行)

基本都是按照这个步骤走的 https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md

问题:
走到安装WebDriverAgent
用 command+U 安装的时候 能够装到手机上 但是最后Test Fail了 然后log在下面
用iproxy 命令去 查看 WebDriverAgentRunner的运行状态 也找不行

xcode的报错log在下面:
2018-12-13 17:24:17.110503+0800 WebDriverAgentRunner-Runner + called within transaction
2018-12-13 17:24:17.139884+0800 WebDriverAgentRunner-Runner Running tests...
Failed to run tests: Timed out trying to establish connection to IDE.
Dumping buffered debug messages:
====================
17:24:17.144 WebDriverAgentRunner-Runner Linked XCTest.framework from /var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest, built with Xcode 1010(10B43a), modified on 2018年12月13日 星期四 中国标准时间 下午3:55:32
XCTest.framework bundle version: 14460.20
17:24:17.144 WebDriverAgentRunner-Runner System uptime: 22:03:27
17:24:17.144 WebDriverAgentRunner-Runner Process arguments: (
    "/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/WebDriverAgentRunner-Runner",
    "-NSTreatUnknownArgumentsAsOpen",
    NO,
    "-ApplePersistenceIgnoreState",
    YES
)
17:24:17.144 WebDriverAgentRunner-Runner Process environment: {
    "CA_ASSERT_MAIN_THREAD_TRANSACTIONS" = 0;
    "CA_DEBUG_TRANSACTIONS" = 0;
    "CFFIXED_USER_HOME" = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8";
    CLASSIC = 1;
    "DYLD_FRAMEWORK_PATH" = "/private/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/Frameworks:";
    "DYLD_LIBRARY_PATH" = "/private/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/Frameworks";
    HOME = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8";
    LOGNAME = mobile;
    "MTC_CRASH_ON_REPORT" = 1;
    NSUnbufferedIO = YES;
    "OS_ACTIVITY_DT_MODE" = YES;
    PATH = "/usr/bin:/bin:/usr/sbin:/sbin";
    SHELL = "/bin/sh";
    "SQLITE_ENABLE_THREAD_ASSERTIONS" = 1;
    TMPDIR = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8/tmp/";
    USER = mobile;
    XCTestConfigurationFilePath = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8/tmp/WebDriverAgentRunner-D115F51F-EA87-4682-B3E0-0F7DE7921CC2.xctestconfiguration";
    "XPC_FLAGS" = 0x0;
    "XPC_SERVICE_NAME" = "UIKitApplication:com.apple.test.WebDriverAgentRunner-Runner";
    "__CF_USER_TEXT_ENCODING" = "0x1F5:0:0";
}
17:24:17.144 WebDriverAgentRunner-Runner App Sandbox active: YES
17:24:17.144 WebDriverAgentRunner-Runner Loading test bundle at: file:///private/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
17:24:17.267 WebDriverAgentRunner-Runner Finished loading test bundle
17:24:17.268 WebDriverAgentRunner-Runner Readying IDE session
17:24:17.274 WebDriverAgentRunner-Runner Creating future for 'Exchange protocol versions with daemon' with timeout 15.00
17:24:17.275 WebDriverAgentRunner-Runner <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateInProgress> entering wait loop for 15.00s with expectations: `Exchange protocol versions with daemon`
17:24:32.363 WebDriverAgentRunner-Runner <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateInProgress> done waiting
17:24:32.363 WebDriverAgentRunner-Runner Canceling watchdog for <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateInProgress>.
17:24:32.364 WebDriverAgentRunner-Runner <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateFailed> reporting timed out failure with Exchange protocol versions with daemon
17:24:32.364 WebDriverAgentRunner-Runner <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateFailed> cleaning up `Exchange protocol versions with daemon`
17:24:32.364 WebDriverAgentRunner-Runner Connection to testmanagerd timed out, unknown protocol version. Client protocol version is 26
17:24:32.366 WebDriverAgentRunner-Runner Requesting socket
17:24:32.367 WebDriverAgentRunner-Runner <XCTWaiter: 0x280eb8080, state: XCTWaiterStateInProgress> entering wait loop for 60.00s with expectations: `Transport for IDE session acquired`
17:25:32.383 WebDriverAgentRunner-Runner <XCTWaiter: 0x280eb8080, state: XCTWaiterStateInProgress> done waiting
17:25:32.383 WebDriverAgentRunner-Runner Canceling watchdog for <XCTWaiter: 0x280eb8080, state: XCTWaiterStateInProgress>.
17:25:32.384 WebDriverAgentRunner-Runner <XCTWaiter: 0x280eb8080, state: XCTWaiterStateFailed> reporting timed out failure with Transport for IDE session acquired
17:25:32.384 WebDriverAgentRunner-Runner <XCTWaiter: 0x280eb8080, state: XCTWaiterStateFailed> cleaning up `Transport for IDE session acquired`
====================


qqq911 发表于 2019-9-2 10:44:15

看看权限

jingzizx 发表于 2019-9-2 12:11:19

连接有问题

litingting0214 发表于 2019-9-2 13:54:53

版本不一样

你好浮戈 发表于 2019-9-2 17:22:07

仔细检查下配置
页: [1]
查看完整版本: appium ios 真机调试 WebDriverAgent 连接不上