51Testing软件测试论坛

标题: appium ios 真机调试 WebDriverAgent 连接不上 [打印本页]

作者: 测试积点老人    时间: 2019-8-30 10:11
标题: 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 ... al-device-config.md

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

xcode的报错log在下面:
  1. 2018-12-13 17:24:17.110503+0800 WebDriverAgentRunner-Runner[2664:322433] +[CATransaction synchronize] called within transaction
  2. 2018-12-13 17:24:17.139884+0800 WebDriverAgentRunner-Runner[2664:322433] Running tests...
  3. Failed to run tests: Timed out trying to establish connection to IDE.
  4. Dumping buffered debug messages:
  5. ====================
  6. 17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] 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
  7. XCTest.framework bundle version: 14460.20
  8. 17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] System uptime: 22:03:27
  9. 17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] Process arguments: (
  10.     "/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/WebDriverAgentRunner-Runner",
  11.     "-NSTreatUnknownArgumentsAsOpen",
  12.     NO,
  13.     "-ApplePersistenceIgnoreState",
  14.     YES
  15. )
  16. 17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] Process environment: {
  17.     "CA_ASSERT_MAIN_THREAD_TRANSACTIONS" = 0;
  18.     "CA_DEBUG_TRANSACTIONS" = 0;
  19.     "CFFIXED_USER_HOME" = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8";
  20.     CLASSIC = 1;
  21.     "DYLD_FRAMEWORK_PATH" = "/private/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/Frameworks:";
  22.     "DYLD_LIBRARY_PATH" = "/private/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/Frameworks";
  23.     HOME = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8";
  24.     LOGNAME = mobile;
  25.     "MTC_CRASH_ON_REPORT" = 1;
  26.     NSUnbufferedIO = YES;
  27.     "OS_ACTIVITY_DT_MODE" = YES;
  28.     PATH = "/usr/bin:/bin:/usr/sbin:/sbin";
  29.     SHELL = "/bin/sh";
  30.     "SQLITE_ENABLE_THREAD_ASSERTIONS" = 1;
  31.     TMPDIR = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8/tmp/";
  32.     USER = mobile;
  33.     XCTestConfigurationFilePath = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8/tmp/WebDriverAgentRunner-D115F51F-EA87-4682-B3E0-0F7DE7921CC2.xctestconfiguration";
  34.     "XPC_FLAGS" = 0x0;
  35.     "XPC_SERVICE_NAME" = "UIKitApplication:com.apple.test.WebDriverAgentRunner-Runner[0x6bfe][62]";
  36.     "__CF_USER_TEXT_ENCODING" = "0x1F5:0:0";
  37. }
  38. 17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] App Sandbox active: YES
  39. 17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] Loading test bundle at: file:///private/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
  40. 17:24:17.267 WebDriverAgentRunner-Runner[2664:322433] Finished loading test bundle
  41. 17:24:17.268 WebDriverAgentRunner-Runner[2664:322433] Readying IDE session
  42. 17:24:17.274 WebDriverAgentRunner-Runner[2664:322433] Creating future for 'Exchange protocol versions with daemon' with timeout 15.00
  43. 17:24:17.275 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateInProgress> entering wait loop for 15.00s with expectations: `Exchange protocol versions with daemon`
  44. 17:24:32.363 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateInProgress> done waiting
  45. 17:24:32.363 WebDriverAgentRunner-Runner[2664:322433] Canceling watchdog for <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateInProgress>.
  46. 17:24:32.364 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateFailed> reporting timed out failure with Exchange protocol versions with daemon
  47. 17:24:32.364 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateFailed> cleaning up `Exchange protocol versions with daemon`
  48. 17:24:32.364 WebDriverAgentRunner-Runner[2664:322433] Connection to testmanagerd timed out, unknown protocol version. Client protocol version is 26
  49. 17:24:32.366 WebDriverAgentRunner-Runner[2664:322433] Requesting socket
  50. 17:24:32.367 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eb8080, state: XCTWaiterStateInProgress> entering wait loop for 60.00s with expectations: `Transport for IDE session acquired`
  51. 17:25:32.383 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eb8080, state: XCTWaiterStateInProgress> done waiting
  52. 17:25:32.383 WebDriverAgentRunner-Runner[2664:322433] Canceling watchdog for <XCTWaiter: 0x280eb8080, state: XCTWaiterStateInProgress>.
  53. 17:25:32.384 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eb8080, state: XCTWaiterStateFailed> reporting timed out failure with Transport for IDE session acquired
  54. 17:25:32.384 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eb8080, state: XCTWaiterStateFailed> cleaning up `Transport for IDE session acquired`
  55. ====================
复制代码



作者: qqq911    时间: 2019-9-2 10:44
看看权限
作者: jingzizx    时间: 2019-9-2 12:11
连接有问题
作者: litingting0214    时间: 2019-9-2 13:54
版本不一样
作者: 你好浮戈    时间: 2019-9-2 17:22
仔细检查下配置




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2