Skip to content
This repository has been archived by the owner on Dec 26, 2019. It is now read-only.

WDAError: WDAError #1126

Open
xiaoyaoamiao opened this issue Jul 3, 2019 · 1 comment
Open

WDAError: WDAError #1126

xiaoyaoamiao opened this issue Jul 3, 2019 · 1 comment

Comments

@xiaoyaoamiao
Copy link

HOOK-ERROR in before_all: WDAError: WDAError(status=13, value=+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x103828880

(
0 CoreFoundation 0x00000001048c46fb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x0000000103e68ac5 objc_exception_throw + 48
2 CoreFoundation 0x00000001048e29b4 +[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00000001048c9443 forwarding + 1443
4 CoreFoundation 0x00000001048cb238 _CF_forwarding_prep_0 + 120
5 WebDriverAgentLib 0x000000011bda5eb4 __37+[FBApplication fb_activeApplication]_block_invoke + 36
6 WebDriverAgentLib 0x000000011bd7c76a -[FBRunLoopSpinner spinUntilTrue:error:] + 138
7 WebDriverAgentLib 0x000000011bd7c6b6 -[FBRunLoopSpinner spinUntilTrue:] + 86
8 WebDriverAgentLib 0x000000011bda5c08 +[FBApplication fb_activeApplication] + 136
9 WebDriverAgentLib 0x000000011bd8fb4e -[FBSession application] + 318
10 WebDriverAgentLib 0x000000011bd972a7 +[FBSessionCommands currentCapabilities] + 87
11 WebDriverAgentLib 0x000000011bd97179 +[FBSessionCommands sessionInformation] + 233
12 WebDriverAgentLib 0x000000011bd96852 +[FBSessionCommands handleGetActiveSession:] + 66
13 WebDriverAgentLib 0x000000011bd7b1f6 -[FBRoute_TargetAction mountRequest:intoResponse:] + 182
14 WebDriverAgentLib 0x000000011bd70709 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 553
15 RoutingHTTPServer 0x000000011be30c18 -[RoutingHTTPServer handleRoute:withRequest:response:] + 136
16 RoutingHTTPServer 0x000000011be314fa __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 47
17 libdispatch.dylib 0x000000010934dd02 _dispatch_client_callout + 8
18 libdispatch.dylib 0x000000010935a6e8 _dispatch_async_and_wait_invoke + 109
19 libdispatch.dylib 0x000000010934dd02 _dispatch_client_callout + 8
20 libdispatch.dylib 0x0000000109359a50 _dispatch_main_queue_callback_4CF + 1276
21 CoreFoundation 0x000000010482b8a9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
22 CoreFoundation 0x0000000104825f56 _CFRunLoopRun + 2310
23 CoreFoundation 0x0000000104825302 CFRunLoopRunSpecific + 626
24 Foundation 0x0000000103933044 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
25 WebDriverAgentLib 0x000000011bd6f51c -[FBWebServer startServing] + 348
26 WebDriverAgentRunner 0x000000011bd62a4a -[UITestingUITests testRunner] + 122
27 CoreFoundation 0x00000001048cb4cc invoking
+ 140
28 CoreFoundation 0x00000001048c8a45 -[NSInvocation invoke] + 325
29 XCTest 0x000000010371eb74 __24-[XCTestCase invokeTest]_block_invoke.194 + 78
30 XCTest 0x00000001037768a4 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
31 XCTest 0x00000001037767c2 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
32 XCTest 0x000000010371e804 __24-[XCTestCase invokeTest]_block_invoke + 848
33 XCTest 0x000000010377cd01 -[XCUITestContext performInScope:] + 128
34 XCTest 0x000000010371e3f1 -[XCTestCase testContextPerformInScope:] + 116
35 XCTest 0x000000010371e4a7 -[XCTestCase invokeTest] + 137
36 XCTest 0x000000010371ff73 __26-[XCTestCase performTest:]_block_invoke_2 + 43
37 XCTest 0x00000001037768a4 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
38 XCTest 0x00000001037767c2 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
39 XCTest 0x000000010371fe8a __26-[XCTestCase performTest:]_block_invoke.316 + 88
40 XCTest 0x00000001037873b7 +[XCTContext runInContextForTestCase:block:] + 225
41 XCTest 0x000000010371f5f8 -[XCTestCase performTest:] + 676
42 XCTest 0x0000000103762d6c -[XCTest runTest] + 57
43 XCTest 0x000000010371a0d7 __27-[XCTestSuite performTest:]_block_invoke + 365
44 XCTest 0x00000001037198b3 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
45 XCTest 0x0000000103719b6f -[XCTestSuite performTest:] + 290
46 XCTest 0x0000000103762d6c -[XCTest runTest] + 57
47 XCTest 0x000000010371a0d7 __27-[XCTestSuite performTest:]_block_invoke + 365
48 XCTest 0x00000001037198b3 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
49 XCTest 0x0000000103719b6f -[XCTestSuite performTest:] + 290
50 XCTest 0x0000000103762d6c -[XCTest runTest] + 57
51 XCTest 0x000000010371a0d7 __27-[XCTestSuite performTest:]_block_invoke + 365
52 XCTest 0x00000001037198b3 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
53 XCTest 0x0000000103719b6f -[XCTestSuite performTest:] + 290
54 XCTest 0x0000000103762d6c -[XCTest runTest] + 57
55 XCTest 0x0000000103791986 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 171
56 XCTest 0x0000000103791a57 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.80 + 68
57 XCTest 0x0000000103731474 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 588
58 XCTest 0x000000010379173d -[XCTTestRunSession runTestsAndReturnError:] + 623
59 XCTest 0x00000001036fe41c -[XCTestDriver runTestsAndReturnError:] + 446
60 XCTest 0x000000010378356f _XCTestMain + 2333
61 WebDriverAgentRunner-Runner 0x000000010342f053 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
62 WebDriverAgentRunner-Runner 0x000000010342ef51 _XCTRunnerRunTests + 0
63 CoreFoundation 0x000000010482baec CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12
64 CoreFoundation 0x000000010482b2b0 __CFRunLoopDoBlocks + 336
65 CoreFoundation 0x0000000104825b34 __CFRunLoopRun + 1252
66 CoreFoundation 0x0000000104825302 CFRunLoopRunSpecific + 626
67 GraphicsServices 0x000000010ce772fe GSEventRunModal + 65
68 UIKitCore 0x000000010740aba2 UIApplicationMain + 140
69 WebDriverAgentRunner-Runner 0x000000010342f21b main + 183
70 libdyld.dylib 0x00000001093bb541 start + 1
71 ??? 0x0000000000000005 0x0 + 5
))

ABORTED: By user.

Process finished with exit code 0

@xiaoyaoamiao
Copy link
Author

xiaoyaoamiao commented Jul 3, 2019

WDA able to running, but when I using uiautomator to connect it, it throws above error.
I added "-ObjC" in "Other links flag", still not work.
Is there has other workaround?
My Xcode are 10.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant