iOS 测试 WebDriverAgent 连接真机启动报错--IOS 系统升级至 12.0.1 所出现的

xrwen · 2018年11月01日 · 2136 次阅读

WebDriverAgent 连接真机启动报如下错,请有经验的大神告知处理办法,谢谢!😀

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=2068dcd81a74a8682444830d663e72f9d0ec7a9d' test

MyWind Mine

//XCUIElementTypeButton[@name="MyWind Mine"]

2018-11-01 11:25:29.565987+0800 WebDriverAgentRunner-Runner[361:8022] +[CATransaction synchronize] called within transaction
2018-11-01 11:25:29.575150+0800 WebDriverAgentRunner-Runner[361:8022] Running in the background.
2018-11-01 11:25:29.579351+0800 WebDriverAgentRunner-Runner[361:8022] Running tests...
Failed to run tests: Timed out trying to establish connection to IDE.

Dumping buffered debug messages:

11:25:29.584 WebDriverAgentRunner-Runner[361:8022] Linked XCTest.framework from /var/containers/Bundle/Application/76DF42C5-5619-447E-91AC-D54592CDBE89/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest, built with Xcode 1000(10L201x), modified on2018年11月1日星期四 中国标准时间 11:19:26
XCTest.framework bundle version: 14284
11:25:29.585 WebDriverAgentRunner-Runner[361:8022] System uptime: 8:25
11:25:29.585 WebDriverAgentRunner-Runner[361:8022] Process arguments: (
"/var/containers/Bundle/Application/76DF42C5-5619-447E-91AC-D54592CDBE89/WebDriverAgentRunner-Runner.app/WebDriverAgentRunner-Runner",
"-NSTreatUnknownArgumentsAsOpen",
NO,
"-ApplePersistenceIgnoreState",
YES
)
11:25:29.585 WebDriverAgentRunner-Runner[361:8022] Process environment: {
"CA_ASSERT_MAIN_THREAD_TRANSACTIONS" = 0;
"CA_DEBUG_TRANSACTIONS" = 0;
"CFFIXED_USER_HOME" = "/private/var/mobile/Containers/Data/Application/1D733581-4F2A-4773-8532-242B66A02C90";
CLASSIC = 1;
"DYLD_FRAMEWORK_PATH" = "/private/var/containers/Bundle/Application/76DF42C5-5619-447E-91AC-D54592CDBE89/WebDriverAgentRunner-Runner.app/Frameworks:";
"DYLD_LIBRARY_PATH" = "/private/var/containers/Bundle/Application/76DF42C5-5619-447E-91AC-D54592CDBE89/WebDriverAgentRunner-Runner.app/Frameworks";
HOME = "/private/var/mobile/Containers/Data/Application/1D733581-4F2A-4773-8532-242B66A02C90";
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/1D733581-4F2A-4773-8532-242B66A02C90/tmp/";
USER = mobile;
XCTestConfigurationFilePath = "/private/var/mobile/Containers/Data/Application/1D733581-4F2A-4773-8532-242B66A02C90/tmp/WebDriverAgentRunner-8CDEA214-983C-44A6-895E-B154725B90B2.xctestconfiguration";
"XPC_FLAGS" = 0x0;
"XPC_SERVICE_NAME" = "UIKitApplication:com.apple.test.WebDriverAgentRunner-Runner[0x4c28][65]";
"__CF_USER_TEXT_ENCODING" = "0x1F5:0:0";
}
11:25:29.585 WebDriverAgentRunner-Runner[361:8022] App Sandbox active: YES
11:25:29.585 WebDriverAgentRunner-Runner[361:8022] Loading test bundle at: file:///private/var/containers/Bundle/Application/76DF42C5-5619-447E-91AC-D54592CDBE89/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
11:25:29.742 WebDriverAgentRunner-Runner[361:8022] Finished loading test bundle
11:25:29.743 WebDriverAgentRunner-Runner[361:8022] Readying IDE session
11:25:29.746 WebDriverAgentRunner-Runner[361:8022] Creating future for 'Exchange protocol versions with daemon' with timeout 15.00
11:25:29.747 WebDriverAgentRunner-Runner[361:8022] entering wait loop for 15.00s with expectations: (
"Exchange protocol versions with daemon"
)
11:25:44.823 WebDriverAgentRunner-Runner[361:8022] done waiting
11:25:44.824 WebDriverAgentRunner-Runner[361:8022] reporting timed out failure with Exchange protocol versions with daemon
11:25:44.825 WebDriverAgentRunner-Runner[361:8022] cleaning up Exchange protocol versions with daemon
11:25:44.825 WebDriverAgentRunner-Runner[361:8022] Connection to testmanagerd timed out, unknown protocol version. Client protocol version is 26
11:25:44.826 WebDriverAgentRunner-Runner[361:8022] Requesting socket
11:25:44.827 WebDriverAgentRunner-Runner[361:8022] entering wait loop for 60.00s with expectations: (
"Transport for IDE session acquired"
)
11:26:44.858 WebDriverAgentRunner-Runner[361:8022] done waiting
11:26:44.859 WebDriverAgentRunner-Runner[361:8022] reporting timed out failure with Transport for IDE session acquired

11:26:44.859 WebDriverAgentRunner-Runner[361:8022] cleaning up Transport for IDE session acquired

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册