AirtestProject / AirtestProject/iOS-Tagent

Xcode 12.0 iOS 13.7 - [XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x10484eaf0

Open
#182 23 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
722
Forks
194
PR merge metrics
No merged PRs in 30d

Description

Xcode 12.0
iOS 13.7

**The WebAgentRunner worked perfectly on iOS 13.7 a day before the Xcode update**
After the update, running the Test in Xcode raises the exception:

```
libsystem_kernel.dylib`__pthread_kill:
0x1c933f984 <+0>: mov x16, #0x148
0x1c933f988 <+4>: svc #0x80
-> 0x1c933f98c <+8>: b.lo 0x1c933f9a8 ; <+36> **Thread 5: "+[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x10484eaf0"**
0x1c933f990 <+12>: stp x29, x30, [sp, #-0x10]!
0x1c933f994 <+16>: mov x29, sp
0x1c933f998 <+20>: bl 0x1c931c714 ; cerror_nocancel
0x1c933f99c <+24>: mov sp, x29
0x1c933f9a0 <+28>: ldp x29, x30, [sp], #0x10
0x1c933f9a4 <+32>: ret
0x1c933f9a8 <+36>: ret
```

Full Stack:
2020-09-18 13:40:17.128411+0300 WebDriverAgentRunner-Runner[1127:321373] Running tests...
Test Suite 'All tests' started at 2020-09-18 13:40:17.833
Test Suite 'WebDriverAgentRunner.xctest' started at 2020-09-18 13:40:17.833
Test Suite 'UITestingUITests' started at 2020-09-18 13:40:17.833
t = nans Suite Set Up
2020-09-18 13:40:17.852203+0300 WebDriverAgentRunner-Runner[1127:321373] [User Defaults] Couldn't write values for keys (
KeyboardAutocorrection
) in CFPrefsPlistSource<0x283622f00> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-09-18 13:40:17.860041+0300 WebDriverAgentRunner-Runner[1127:321373] [User Defaults] Couldn't write values for keys (
KeyboardPrediction
) in CFPrefsPlistSource<0x283622f00> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-09-18 13:40:17.860904+0300 WebDriverAgentRunner-Runner[1127:321373] [User Defaults] Couldn't write values for keys (
KeyboardShowPredictionBar
) in CFPrefsPlistSource<0x283622f00> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-09-18 13:40:17.863284+0300 WebDriverAgentRunner-Runner[1127:321373] [User Defaults] Couldn't write values for keys (
DidShowGestureKeyboardIntroduction
) in CFPrefsPlistSource<0x283622f00> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
Test Case '-[UITestingUITests testRunner]' started.
t = 0.00s Start Test at 2020-09-18 13:40:17.864
t = 0.00s Set Up
2020-09-18 13:40:17.869654+0300 WebDriverAgentRunner-Runner[1127:321373] Built at Apr 15 2020 16:38:43
2020-09-18 13:40:17.880909+0300 WebDriverAgentRunner-Runner[1127:321373] ServerURLHere->http://192.168.10.244:8100<-ServerURLHere
2020-09-18 13:40:17.881787+0300 WebDriverAgentRunner-Runner[1127:321600] +[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x10484eaf0
2020-09-18 13:40:17.886415+0300 WebDriverAgentRunner-Runner[1127:321600] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x10484eaf0'
*** First throw call stack:
(0x19d4165ac 0x1b149042c 0x19d325324 0x19d419130 0x19d41b420 0x106e42efc 0x106e42eb0 0x19d014ac8 0x19d016250 0x106e42e88 0x106e20d84 0x19d014ac8 0x19d016250 0x106e20d60 0x106e2053c 0x19d012fd0 0x19d014ac8 0x19d01bc08 0x19d01c734 0x19d026528 0x1e4968908 0x1e496f77c)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x10484eaf0'
terminating with uncaught exception of type NSException
(lldb)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.