iOS-Tagent
iOS-Tagent copied to clipboard
Xcode 12.0 iOS 13.7 - [XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x10484eaf0
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)
i m hitting the same issue. Something in xcode 12 broke
i found this issue again on Xcode 12.0 and iOS 12.4.
I tried disabling [FBConfiguration configureDefaultKeyboardPreferences]; This led to another issue: 2020-09-24 12:08:43.033119+0530 WebDriverAgentRunner-Runner[1434:225760] Running tests... Test Suite 'All tests' started at 2020-09-24 12:08:43.924 Test Suite 'WebDriverAgentRunner.xctest' started at 2020-09-24 12:08:43.925 Test Suite 'UITestingUITests' started at 2020-09-24 12:08:43.925 t = nans Suite Set Up Test Case '-[UITestingUITests testRunner]' started. t = 0.00s Start Test at 2020-09-24 12:08:43.926 t = 0.00s Set Up 2020-09-24 12:08:43.935635+0530 WebDriverAgentRunner-Runner[1434:225760] Built at Apr 15 2020 16:38:43 2020-09-24 12:08:43.948352+0530 WebDriverAgentRunner-Runner[1434:225760] ServerURLHere->http://192.168.0.108:8100<-ServerURLHere 2020-09-24 12:08:43.948714+0530 WebDriverAgentRunner-Runner[1434:226001] +[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x10039aed8 2020-09-24 12:08:43.949276+0530 WebDriverAgentRunner-Runner[1434:226001] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x10039aed8' *** First throw call stack: (0x199cb1114 0x1ad4d7cb4 0x199bc5e6c 0x199cb3758 0x199cb56cc 0x103442efc 0x103442eb0 0x1998ea280 0x1998bbd5c 0x103442e88 0x103420d84 0x1998ea280 0x1998bbd5c 0x103420d60 0x10342053c 0x1998e9298 0x1998ea280 0x1998c64fc 0x1998c6fe8 0x1998d0808 0x1df5045a4 0x1df507874) 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 0x10039aed8' terminating with uncaught exception of type NSException
一样的问题,看起来像是xcode12.0的问题,啥时候能解决啊、、、
Me too!!!
the same issue, anyone knows how to fix the bug?
the same!!maybe there are some changes of api in XCTest.framework
+1
Same problem here
为啥没人解决呢
一样的问题,看起来像是xcode12.0的问题,啥时候能解决啊、、、
ok了求喊···
How to solve this problem?
2020-11-04 xcode12+ios13.4 baibai
Here too 2020-11-06 xcode12.2 RC+iOS14.2
Thread 3: "+[XCTestDriver sharedTestDriver]: unrecognized selector sent to class 0x1027d2ed8" 我这边是这个问题,难不成是xcode12的问题??
upgrade Xcode to the latest version and clone the latest WebDriverAgent repo (https://github.com/appium/WebDriverAgent) solve my problem.
@jiaxw32 suggestion worked for me!
Xcode 12没问题,不信你用官方的XCUItest直接写自动化。 毕竟层层依赖,iOS升级,xcode升级 Facebook作为第三方要适配wda 大家的各种框架要等等wda才能继续适配。 个人认为直接写XCUITest和依赖wda各有优劣吧
@jiaxw32 @spozdbpc I've tried to use the latest WebDriverAgent release and managed to install the runner. The runner can be run successfully from the command line. However, when I tried to connect to the device using the Airtest IDE, it didn't work. Basically, nothing happened.
Have you encountered a similar issue? Maybe I'm doing something wrong?
I did the following:
- Run the WebDriverAgent in the terminal - got "ServerURLHere ->" message (seems ok)
- run 'iproxy 8100 8100 --udid "device id"
- Clicked Connect in the Airtest IDE. (http://127.0.0.1:8100) -> Got "Requesting connection to USB device handle" in iproxy, with no error (meaning the device is found successfully) That being said, nothing else happened, and the device didn't appear in the Airtest IDE. I've used this connection method multiple times, and it worked previously.
I managed to get the message of the session from a GenericDict object: GenericDict(value={'message': 'WebDriverAgent is ready to accept commands', 'state': 'success', 'os': {'testmanagerdVersion': 28, 'name': 'iOS', 'sdkVersion': '14.0', 'version': '14.0.1'}, 'ios': {'ip': '192.168.10.88'}, 'ready': True, 'build': {'time': 'Dec 2 2020 17:05:50', 'productBundleIdentifier': 'com.facebook.WebDriverAgentRunner'}}, sessionId=None)
@InsaneQA Hi, I use the python library facebook-wda not the Airtest IDE. The facebook-wda lib work for me and can connect the device right. If you use the lasted WebDriverAgent and can connect the device from the Browser URL, maybe AirTest have a bug. You also can you use the network monitor tool such as Charles to see what happened when try to connect the device. hope it helps!
@InsaneQA Hi, did you get around the issue? I'm stuck at the same cross roads. Everything checks out when using WDA, but Airtest does not connect.
Using IOS-Tangent project on Xcode 12.3 just crashes with NSexception.
I installed the other version of Xcode11.4
| | 房建宇 | | [email protected] | 签名由网易邮箱大师定制
On 02/2/2021 16:19,Kazim Hasan[email protected] wrote:
@InsaneQA Hi, did you get around the issue? I'm stuck at the same cross roads. Everything checks out when using WDA, but Airtest does not connect.
Using IOS-Tangent project on Xcode 12.3 just crashes with NSexception.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Any luck getting it to work with IOS 14?