An unknown server-side error - iOS

Hello,
I’m triyng to execute test on iOS device but I have this error:

    java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: -[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x2821d05a0

(
	0   CoreFoundation                      0x00000001af8f1c44 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1256516
	1   libobjc.A.dylib                     0x00000001af60c0c8 objc_exception_throw + 60
	2   CoreFoundation                      0x00000001af7effc0 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 200640
	3   CoreFoundation                      0x00000001af8f63d4 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1274836
	4   CoreFoundation                      0x00000001af8f8570 _CF_forwarding_prep_0 + 96
	5   WebDriverAgentLib                   0x0000000106e34f7c -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60
	6   WebDriverAgentLib                   0x0000000106e2cac0 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 732
	7   WebDriverAgentLib                   0x0000000106e2cce4 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 168
	8   CoreFoundation                      0x00000001af8f5f50 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1273680
	9   CoreFoundation                      0x00000001af8f8570 _CF_forwarding_prep_0 + 96
	10  WebDriverAgentLib                   0x0000000106e5138c +[FBElementCommands handleGetWindowSize:] + 128
	11  WebDriverAgentLib                   0x0000000106e1f938 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220
	12  WebDriverAgentLib                   0x0000000106e0eda4 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 504
	13  RoutingHTTPServer                   0x0000000106f063cc -[RoutingHTTPServer handleRoute:withRequest:response:] + 144
	14  RoutingHTTPServer                   0x0000000106f06b80 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44
	15  libdispatch.dylib                   0x00000001af59900c ED0789CD-8D80-39F4-9651-D8707D9C0337 + 12300
	16  libdispatch.dylib                   0x00000001af5a58e0 ED0789CD-8D80-39F4-9651-D8707D9C0337 + 63712
	17  libdispatch.dylib                   0x00000001af59900c ED0789CD-8D80-39F4-9651-D8707D9C0337 + 12300
	18  libdispatch.dylib                   0x00000001af5a4cd8 _dispatch_main_queue_callback_4CF + 968
	19  CoreFoundation                      0x00000001af86ce20 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 712224
	20  CoreFoundation                      0x00000001af867b7c 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 691068
	21  CoreFoundation                      0x00000001af867098 CFRunLoopRunSpecific + 480
	22  Foundation                          0x00000001afbac580 672CF0CB-4951-3B91-89DF-55E953AEA00F + 34176
	23  WebDriverAgentLib                   0x0000000106e0d858 -[FBWebServer startServing] + 428
	24  WebDriverAgentRunner                0x00000001057d7bd4 -[UITestingUITests testRunner] + 120
	25  CoreFoundation                      0x00000001af8f8724 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1283876
	26  CoreFoundation                      0x00000001af7c1280 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 8832
	27  XCTest                              0x0000000104fa2950 __24-[XCTestCase invokeTest]_block_invoke_2.218 + 72
	28  XCTest                              0x000000010501635c -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 76
	29  XCTest                              0x0000000104facdc8 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 116
	30  XCTest                              0x0000000104fa28d4 __24-[XCTestCase invokeTest]_block_invoke.212 + 204
	31  XCTest                              0x0000000104ffb3b8 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72
	32  XCTest                              0x0000000104ffb2c8 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112
	33  XCTest                              0x0000000104fa233c __24-[XCTestCase invokeTest]_block_invoke + 1092
	34  XCTest                              0x0000000105002720 -[XCUITestContext performInScope:] + 136
	35  XCTest                              0x0000000104fa1e0c -[XCTestCase testContextPerformInScope:] + 188
	36  XCTest                              0x0000000104fa1ee4 -[XCTestCase invokeTest] + 156
	37  XCTest                              0x0000000104fa3cf0 __26-[XCTestCase performTest:]_block_invoke_2 + 48
	38  XCTest                              0x0000000104ffb3b8 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72
	39  XCTest                              0x0000000104ffb2c8 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112
	40  XCTest                              0x0000000104fa3c04 __26-[XCTestCase performTest:]_block_invoke.352 + 112
	41  XCTest                              0x000000010500ecf8 +[XCTContext runInContextForTestCase:block:] + 216
	42  XCTest                              0x0000000104fa33a0 -[XCTestCase performTest:] + 676
	43  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	44  XCTest                              0x0000000104f9db68 __27-[XCTestSuite performTest:]_block_invoke + 284
	45  XCTest                              0x0000000104f9d3e0 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
	46  XCTest                              0x0000000104f9d6c4 -[XCTestSuite performTest:] + 344
	47  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	48  XCTest                              0x0000000104f9db68 __27-[XCTestSuite performTest:]_block_invoke + 284
	49  XCTest                              0x0000000104f9d3e0 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
	50  XCTest                              0x0000000104f9d6c4 -[XCTestSuite performTest:] + 344
	51  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	52  XCTest                              0x0000000104f9db68 __27-[XCTestSuite performTest:]_block_invoke + 284
	53  XCTest                              0x0000000104f9d3e0 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
	54  XCTest                              0x0000000104f9d6c4 -[XCTestSuite performTest:] + 344
	55  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	56  XCTest                              0x0000000105021208 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 180
	57  XCTest                              0x0000000105021314 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 116
	58  XCTest                              0x0000000104fb756c -[XCTestObservationCenter _observeTestExecutionForBlock:] + 520
	59  XCTest                              0x0000000105020fbc -[XCTTestRunSession runTestsAndReturnError:] + 624
	60  XCTest                              0x0000000104f81378 -[XCTestDriver runTestsAndReturnError:] + 444
	61  XCTest                              0x000000010500b080 _XCTestMain + 2404
	62  WebDriverAgentRunner-Runner         0x0000000104c678e8 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
	63  WebDriverAgentRunner-Runner         0x0000000104c677f0 _XCTRunnerRunTests + 0
	64  CoreFoundation                      0x00000001af86d07c 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 712828
	65  CoreFoundation                      0x00000001af86c800 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 710656
	66  CoreFoundation                      0x00000001af867800 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 690176
	67  CoreFoundation                      0x00000001af867098 CFRunLoopRunSpecific + 480
	68  GraphicsServices                    0x00000001b99d1534 GSEventRunModal + 108
	69  UIKitCore                           0x00000001b39877ac UIApplicationMain + 1940
	70  WebDriverAgentRunner-Runner         0x0000000104c67ab4 main + 192
	71  libdyld.dylib                       0x00000001af6e6f30 0DC9A4BA-C3E8-3487-99DB-1B5C86597AF5 + 3888
)
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'MacBook-Air-di-F.local', ip: 'fe80:0:0:0:1cad:f6ca:5ae0:7188%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.1', java.version: '1.8.0_181'
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {appWaitActivity: *, automationName: XCUITest, browserName: , bundleId: com.ca.app, databaseEnabled: false, deviceId: 7768822F-8671-490A-8EE9-F64..., deviceName: C’s iPhone, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 1800, platform: MAC, platformName: iOS, platformVersion: 13.1.2, realDeviceLogger: /Applications/Katalon Studi..., takesScreenshot: true, udid: 00008020-00140D5A3686002E, waitForAppScript: true;, wdaLocalPort: 54799, webStorageEnabled: false}
Session ID: edb9dfde-4a91-4ccf-a605-943f313540ce
	at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:49)
	at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12.run(MobileLocalAppComposite.java:474)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: -[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x2821d05a0

(
	0   CoreFoundation                      0x00000001af8f1c44 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1256516
	1   libobjc.A.dylib                     0x00000001af60c0c8 objc_exception_throw + 60
	2   CoreFoundation                      0x00000001af7effc0 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 200640
	3   CoreFoundation                      0x00000001af8f63d4 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1274836
	4   CoreFoundation                      0x00000001af8f8570 _CF_forwarding_prep_0 + 96
	5   WebDriverAgentLib                   0x0000000106e34f7c -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60
	6   WebDriverAgentLib                   0x0000000106e2cac0 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 732
	7   WebDriverAgentLib                   0x0000000106e2cce4 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 168
	8   CoreFoundation                      0x00000001af8f5f50 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1273680
	9   CoreFoundation                      0x00000001af8f8570 _CF_forwarding_prep_0 + 96
	10  WebDriverAgentLib                   0x0000000106e5138c +[FBElementCommands handleGetWindowSize:] + 128
	11  WebDriverAgentLib                   0x0000000106e1f938 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220
	12  WebDriverAgentLib                   0x0000000106e0eda4 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 504
	13  RoutingHTTPServer                   0x0000000106f063cc -[RoutingHTTPServer handleRoute:withRequest:response:] + 144
	14  RoutingHTTPServer                   0x0000000106f06b80 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44
	15  libdispatch.dylib                   0x00000001af59900c ED0789CD-8D80-39F4-9651-D8707D9C0337 + 12300
	16  libdispatch.dylib                   0x00000001af5a58e0 ED0789CD-8D80-39F4-9651-D8707D9C0337 + 63712
	17  libdispatch.dylib                   0x00000001af59900c ED0789CD-8D80-39F4-9651-D8707D9C0337 + 12300
	18  libdispatch.dylib                   0x00000001af5a4cd8 _dispatch_main_queue_callback_4CF + 968
	19  CoreFoundation                      0x00000001af86ce20 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 712224
	20  CoreFoundation                      0x00000001af867b7c 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 691068
	21  CoreFoundation                      0x00000001af867098 CFRunLoopRunSpecific + 480
	22  Foundation                          0x00000001afbac580 672CF0CB-4951-3B91-89DF-55E953AEA00F + 34176
	23  WebDriverAgentLib                   0x0000000106e0d858 -[FBWebServer startServing] + 428
	24  WebDriverAgentRunner                0x00000001057d7bd4 -[UITestingUITests testRunner] + 120
	25  CoreFoundation                      0x00000001af8f8724 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 1283876
	26  CoreFoundation                      0x00000001af7c1280 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 8832
	27  XCTest                              0x0000000104fa2950 __24-[XCTestCase invokeTest]_block_invoke_2.218 + 72
	28  XCTest                              0x000000010501635c -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 76
	29  XCTest                              0x0000000104facdc8 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 116
	30  XCTest                              0x0000000104fa28d4 __24-[XCTestCase invokeTest]_block_invoke.212 + 204
	31  XCTest                              0x0000000104ffb3b8 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72
	32  XCTest                              0x0000000104ffb2c8 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112
	33  XCTest                              0x0000000104fa233c __24-[XCTestCase invokeTest]_block_invoke + 1092
	34  XCTest                              0x0000000105002720 -[XCUITestContext performInScope:] + 136
	35  XCTest                              0x0000000104fa1e0c -[XCTestCase testContextPerformInScope:] + 188
	36  XCTest                              0x0000000104fa1ee4 -[XCTestCase invokeTest] + 156
	37  XCTest                              0x0000000104fa3cf0 __26-[XCTestCase performTest:]_block_invoke_2 + 48
	38  XCTest                              0x0000000104ffb3b8 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72
	39  XCTest                              0x0000000104ffb2c8 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112
	40  XCTest                              0x0000000104fa3c04 __26-[XCTestCase performTest:]_block_invoke.352 + 112
	41  XCTest                              0x000000010500ecf8 +[XCTContext runInContextForTestCase:block:] + 216
	42  XCTest                              0x0000000104fa33a0 -[XCTestCase performTest:] + 676
	43  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	44  XCTest                              0x0000000104f9db68 __27-[XCTestSuite performTest:]_block_invoke + 284
	45  XCTest                              0x0000000104f9d3e0 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
	46  XCTest                              0x0000000104f9d6c4 -[XCTestSuite performTest:] + 344
	47  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	48  XCTest                              0x0000000104f9db68 __27-[XCTestSuite performTest:]_block_invoke + 284
	49  XCTest                              0x0000000104f9d3e0 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
	50  XCTest                              0x0000000104f9d6c4 -[XCTestSuite performTest:] + 344
	51  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	52  XCTest                              0x0000000104f9db68 __27-[XCTestSuite performTest:]_block_invoke + 284
	53  XCTest                              0x0000000104f9d3e0 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
	54  XCTest                              0x0000000104f9d6c4 -[XCTestSuite performTest:] + 344
	55  XCTest                              0x0000000104fe78f0 -[XCTest runTest] + 64
	56  XCTest                              0x0000000105021208 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 180
	57  XCTest                              0x0000000105021314 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 116
	58  XCTest                              0x0000000104fb756c -[XCTestObservationCenter _observeTestExecutionForBlock:] + 520
	59  XCTest                              0x0000000105020fbc -[XCTTestRunSession runTestsAndReturnError:] + 624
	60  XCTest                              0x0000000104f81378 -[XCTestDriver runTestsAndReturnError:] + 444
	61  XCTest                              0x000000010500b080 _XCTestMain + 2404
	62  WebDriverAgentRunner-Runner         0x0000000104c678e8 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
	63  WebDriverAgentRunner-Runner         0x0000000104c677f0 _XCTRunnerRunTests + 0
	64  CoreFoundation                      0x00000001af86d07c 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 712828
	65  CoreFoundation                      0x00000001af86c800 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 710656
	66  CoreFoundation                      0x00000001af867800 97285ACB-7B21-393A-ABF6-03F1DBB5D2A2 + 690176
	67  CoreFoundation                      0x00000001af867098 CFRunLoopRunSpecific + 480
	68  GraphicsServices                    0x00000001b99d1534 GSEventRunModal + 108
	69  UIKitCore                           0x00000001b39877ac UIApplicationMain + 1940
	70  WebDriverAgentRunner-Runner         0x0000000104c67ab4 main + 192
	71  libdyld.dylib                       0x00000001af6e6f30 0DC9A4BA-C3E8-3487-99DB-1B5C86597AF5 + 3888
)
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'MacBook-Air-di-F.local', ip: 'fe80:0:0:0:1cad:f6ca:5ae0:7188%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.1', java.version: '1.8.0_181'
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {appWaitActivity: *, automationName: XCUITest, browserName: , bundleId: com.ca.app, databaseEnabled: false, deviceId: 7768822F-8671-490A-8EE9-F64..., deviceName: C’s iPhone, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 1800, platform: MAC, platformName: iOS, platformVersion: 13.1.2, realDeviceLogger: /Applications/Katalon Studi..., takesScreenshot: true, udid: 00008020-00140D5A3686002E, waitForAppScript: true;, wdaLocalPort: 54799, webStorageEnabled: false}
Session ID: edb9dfde-4a91-4ccf-a605-943f313540ce
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
	at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
	at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:46)
	at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
	at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
	at io.appium.java_client.HasSessionDetails.getSessionDetails(HasSessionDetails.java:39)
	at io.appium.java_client.HasSessionDetails.getSessionDetail(HasSessionDetails.java:56)
	at io.appium.java_client.HasSessionDetails.getPlatformName(HasSessionDetails.java:65)
	at io.appium.java_client.internal.JsonToMobileElementConverter.<init>(JsonToMobileElementConverter.java:49)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:89)
	at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:85)
	at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:495)
	at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:479)
	at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:339)
	at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startExistingApp(MobileInspectorController.java:138)
	at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12$1.call(MobileLocalAppComposite.java:482)
	at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.startThreadAndWait(ProgressMonitorDialogWithThread.java:36)
	at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:48)
	... 2 more

OS: Catalina 10.15.1

Katalon: 7.0.5

Appium: 1.12.1

solved with appium update at 1.15

Out of curiosity, what version of Xcode are you using?

– Chris

Xcode 11.2

This issue is still occurring to me but with Appium version 1.16.0 and xcode 11.3.

After running xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=B7F6DFC0-7594-4939-86A4-591950202436’ test

I try to record or spy on an .ipa file on a simulator and I receive the following:

java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: -[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x6000003fd8c0

(
0 CoreFoundation 0x00007fff23c7127e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff513fbb20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23c91fd4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00007fff23c75c4c forwarding + 1436
4 CoreFoundation 0x00007fff23c77f78 CF_forwarding_prep_0 + 120
5 WebDriverAgentLib 0x0000000103cd2654 -[XCUIElement(FBUtilities) fb_lastSnapshot] + 68
6 WebDriverAgentLib 0x0000000103cc9cf1 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 769
7 WebDriverAgentLib 0x0000000103cc9f38 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 152
8 CoreFoundation 0x00007fff23c75796 forwarding + 230
9 CoreFoundation 0x00007fff23c78078 forwarding_prep_1
+ 120
10 WebDriverAgentLib 0x0000000103cf0480 +[FBElementCommands handleGetWindowSize:] + 176
11 WebDriverAgentLib 0x0000000103cbbd86 -[FBRoute_TargetAction mountRequest:intoResponse:] + 182
12 WebDriverAgentLib 0x0000000103ca92fb __37-[FBWebServer registerRouteHandlers:]_block_invoke + 555
13 RoutingHTTPServer 0x0000000103e0cba3 -[RoutingHTTPServer handleRoute:withRequest:response:] + 136
14 RoutingHTTPServer 0x0000000103e0d4b6 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 47
15 libdispatch.dylib 0x00007fff5223f7b9 _dispatch_client_callout + 8
16 libdispatch.dylib 0x00007fff5224c861 _dispatch_async_and_wait_invoke + 109
17 libdispatch.dylib 0x00007fff5223f7b9 _dispatch_client_callout + 8
18 libdispatch.dylib 0x00007fff5224bc9b _dispatch_main_queue_callback_4CF + 1212
19 CoreFoundation 0x00007fff23bd4049 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
20 CoreFoundation 0x00007fff23bceca9 _CFRunLoopRun + 2329
21 CoreFoundation 0x00007fff23bce066 CFRunLoopRunSpecific + 438
22 Foundation 0x00007fff2576b86f -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 211
23 WebDriverAgentLib 0x0000000103ca7c28 -[FBWebServer startServing] + 360
24 WebDriverAgentRunner 0x0000000103c93faa -[UITestingUITests testRunner] + 106
25 CoreFoundation 0x00007fff23c7820c invoking
+ 140
26 CoreFoundation 0x00007fff23c753af -[NSInvocation invoke] + 319
27 XCTest 0x0000000101ad3821 __24-[XCTestCase invokeTest]_block_invoke.208 + 78
28 XCTest 0x0000000101b2d9b9 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
29 XCTest 0x0000000101b2d8d7 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
30 XCTest 0x0000000101ad330a __24-[XCTestCase invokeTest]_block_invoke + 1153
31 XCTest 0x0000000101b352c4 -[XCUITestContext performInScope:] + 117
32 XCTest 0x0000000101ad2dc6 -[XCTestCase testContextPerformInScope:] + 183
33 XCTest 0x0000000101ad2e7c -[XCTestCase invokeTest] + 137
34 XCTest 0x0000000101ad4bed __26-[XCTestCase performTest:]_block_invoke_2 + 43
35 XCTest 0x0000000101b2d9b9 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
36 XCTest 0x0000000101b2d8d7 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
37 XCTest 0x0000000101ad4b04 __26-[XCTestCase performTest:]_block_invoke.334 + 88
38 XCTest 0x0000000101b41302 +[XCTContext runInContextForTestCase:block:] + 219
39 XCTest 0x0000000101ad4273 -[XCTestCase performTest:] + 668
40 XCTest 0x0000000101b19807 -[XCTest runTest] + 57
41 XCTest 0x0000000101ace84a __27-[XCTestSuite performTest:]_block_invoke + 365
42 XCTest 0x0000000101acdf74 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
43 XCTest 0x0000000101ace271 -[XCTestSuite performTest:] + 355
44 XCTest 0x0000000101b19807 -[XCTest runTest] + 57
45 XCTest 0x0000000101ace84a __27-[XCTestSuite performTest:]_block_invoke + 365
46 XCTest 0x0000000101acdf74 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
47 XCTest 0x0000000101ace271 -[XCTestSuite performTest:] + 355
48 XCTest 0x0000000101b19807 -[XCTest runTest] + 57
49 XCTest 0x0000000101ace84a __27-[XCTestSuite performTest:]_block_invoke + 365
50 XCTest 0x0000000101acdf74 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
51 XCTest 0x0000000101ace271 -[XCTestSuite performTest:] + 355
52 XCTest 0x0000000101b19807 -[XCTest runTest] + 57
53 XCTest 0x0000000101b5028e __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 171
54 XCTest 0x0000000101b50391 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 118
55 XCTest 0x0000000101ae8593 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 588
56 XCTest 0x0000000101b5004d -[XCTTestRunSession runTestsAndReturnError:] + 623
57 XCTest 0x0000000101ab1dd7 -[XCTestDriver runTestsAndReturnError:] + 456
58 XCTest 0x0000000101b3d554 _XCTestMain + 2484
59 WebDriverAgentRunner-Runner 0x0000000101804edd -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
60 WebDriverAgentRunner-Runner 0x0000000101804ddb _XCTRunnerRunTests + 0
61 CoreFoundation 0x00007fff23bd429c CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12
62 CoreFoundation 0x00007fff23bd3a08 __CFRunLoopDoBlocks + 312
63 CoreFoundation 0x00007fff23bce894 __CFRunLoopRun + 1284
64 CoreFoundation 0x00007fff23bce066 CFRunLoopRunSpecific + 438
65 GraphicsServices 0x00007fff384c0bb0 GSEventRunModal + 65
66 UIKitCore 0x00007fff48092d4d UIApplicationMain + 1621
67 WebDriverAgentRunner-Runner 0x0000000101805098 main + 183
68 libdyld.dylib 0x00007fff5227ec25 start + 1
69 ??? 0x0000000000000005 0x0 + 5
)
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘AQUAMAN.lan’, ip: ‘fdfc:ccba:7ff0:0:eec2:1ff8:0:8cf%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14.6’, java.version: ‘1.8.0_181’
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {app: /Users/sebastienmory/Downlo…, automationName: XCUITest, browserName: , databaseEnabled: false, deviceName: iPhone 8, fullReset: false, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 1800, noReset: true, platform: MAC, platformName: iOS, platformVersion: 13.3, realDeviceLogger: /Applications/Katalon Studi…, takesScreenshot: true, udid: B7F6DFC0-7594-4939-86A4-591…, waitForAppScript: true;, wdaLocalPort: 52892, webStorageEnabled: false}
Session ID: 712bd8d8-8e7d-444a-b660-566ac4e4bf3f
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:49)
at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12.run(MobileLocalAppComposite.java:474)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: -[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x6000003fd8c0

(
0 CoreFoundation 0x00007fff23c7127e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff513fbb20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23c91fd4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00007fff23c75c4c forwarding + 1436
4 CoreFoundation 0x00007fff23c77f78 CF_forwarding_prep_0 + 120
5 WebDriverAgentLib 0x0000000103cd2654 -[XCUIElement(FBUtilities) fb_lastSnapshot] + 68
6 WebDriverAgentLib 0x0000000103cc9cf1 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 769
7 WebDriverAgentLib 0x0000000103cc9f38 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 152
8 CoreFoundation 0x00007fff23c75796 forwarding + 230
9 CoreFoundation 0x00007fff23c78078 forwarding_prep_1
+ 120
10 WebDriverAgentLib 0x0000000103cf0480 +[FBElementCommands handleGetWindowSize:] + 176
11 WebDriverAgentLib 0x0000000103cbbd86 -[FBRoute_TargetAction mountRequest:intoResponse:] + 182
12 WebDriverAgentLib 0x0000000103ca92fb __37-[FBWebServer registerRouteHandlers:]_block_invoke + 555
13 RoutingHTTPServer 0x0000000103e0cba3 -[RoutingHTTPServer handleRoute:withRequest:response:] + 136
14 RoutingHTTPServer 0x0000000103e0d4b6 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 47
15 libdispatch.dylib 0x00007fff5223f7b9 _dispatch_client_callout + 8
16 libdispatch.dylib 0x00007fff5224c861 _dispatch_async_and_wait_invoke + 109
17 libdispatch.dylib 0x00007fff5223f7b9 _dispatch_client_callout + 8
18 libdispatch.dylib 0x00007fff5224bc9b _dispatch_main_queue_callback_4CF + 1212
19 CoreFoundation 0x00007fff23bd4049 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
20 CoreFoundation 0x00007fff23bceca9 _CFRunLoopRun + 2329
21 CoreFoundation 0x00007fff23bce066 CFRunLoopRunSpecific + 438
22 Foundation 0x00007fff2576b86f -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 211
23 WebDriverAgentLib 0x0000000103ca7c28 -[FBWebServer startServing] + 360
24 WebDriverAgentRunner 0x0000000103c93faa -[UITestingUITests testRunner] + 106
25 CoreFoundation 0x00007fff23c7820c invoking
+ 140
26 CoreFoundation 0x00007fff23c753af -[NSInvocation invoke] + 319
27 XCTest 0x0000000101ad3821 __24-[XCTestCase invokeTest]_block_invoke.208 + 78
28 XCTest 0x0000000101b2d9b9 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
29 XCTest 0x0000000101b2d8d7 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
30 XCTest 0x0000000101ad330a __24-[XCTestCase invokeTest]_block_invoke + 1153
31 XCTest 0x0000000101b352c4 -[XCUITestContext performInScope:] + 117
32 XCTest 0x0000000101ad2dc6 -[XCTestCase testContextPerformInScope:] + 183
33 XCTest 0x0000000101ad2e7c -[XCTestCase invokeTest] + 137
34 XCTest 0x0000000101ad4bed __26-[XCTestCase performTest:]_block_invoke_2 + 43
35 XCTest 0x0000000101b2d9b9 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
36 XCTest 0x0000000101b2d8d7 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
37 XCTest 0x0000000101ad4b04 __26-[XCTestCase performTest:]_block_invoke.334 + 88
38 XCTest 0x0000000101b41302 +[XCTContext runInContextForTestCase:block:] + 219
39 XCTest 0x0000000101ad4273 -[XCTestCase performTest:] + 668
40 XCTest 0x0000000101b19807 -[XCTest runTest] + 57
41 XCTest 0x0000000101ace84a __27-[XCTestSuite performTest:]_block_invoke + 365
42 XCTest 0x0000000101acdf74 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
43 XCTest 0x0000000101ace271 -[XCTestSuite performTest:] + 355
44 XCTest 0x0000000101b19807 -[XCTest runTest] + 57
45 XCTest 0x0000000101ace84a __27-[XCTestSuite performTest:]_block_invoke + 365
46 XCTest 0x0000000101acdf74 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
47 XCTest 0x0000000101ace271 -[XCTestSuite performTest:] + 355
48 XCTest 0x0000000101b19807 -[XCTest runTest] + 57
49 XCTest 0x0000000101ace84a __27-[XCTestSuite performTest:]_block_invoke + 365
50 XCTest 0x0000000101acdf74 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
51 XCTest 0x0000000101ace271 -[XCTestSuite performTest:] + 355
52 XCTest 0x0000000101b19807 -[XCTest runTest] + 57
53 XCTest 0x0000000101b5028e __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 171
54 XCTest 0x0000000101b50391 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 118
55 XCTest 0x0000000101ae8593 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 588
56 XCTest 0x0000000101b5004d -[XCTTestRunSession runTestsAndReturnError:] + 623
57 XCTest 0x0000000101ab1dd7 -[XCTestDriver runTestsAndReturnError:] + 456
58 XCTest 0x0000000101b3d554 _XCTestMain + 2484
59 WebDriverAgentRunner-Runner 0x0000000101804edd -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
60 WebDriverAgentRunner-Runner 0x0000000101804ddb _XCTRunnerRunTests + 0
61 CoreFoundation 0x00007fff23bd429c CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12
62 CoreFoundation 0x00007fff23bd3a08 __CFRunLoopDoBlocks + 312
63 CoreFoundation 0x00007fff23bce894 __CFRunLoopRun + 1284
64 CoreFoundation 0x00007fff23bce066 CFRunLoopRunSpecific + 438
65 GraphicsServices 0x00007fff384c0bb0 GSEventRunModal + 65
66 UIKitCore 0x00007fff48092d4d UIApplicationMain + 1621
67 WebDriverAgentRunner-Runner 0x0000000101805098 main + 183
68 libdyld.dylib 0x00007fff5227ec25 start + 1
69 ??? 0x0000000000000005 0x0 + 5
)
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘AQUAMAN.lan’, ip: ‘fdfc:ccba:7ff0:0:eec2:1ff8:0:8cf%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14.6’, java.version: ‘1.8.0_181’
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {app: /Users/sebastienmory/Downlo…, automationName: XCUITest, browserName: , databaseEnabled: false, deviceName: iPhone 8, fullReset: false, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 1800, noReset: true, platform: MAC, platformName: iOS, platformVersion: 13.3, realDeviceLogger: /Applications/Katalon Studi…, takesScreenshot: true, udid: B7F6DFC0-7594-4939-86A4-591…, waitForAppScript: true;, wdaLocalPort: 52892, webStorageEnabled: false}
Session ID: 712bd8d8-8e7d-444a-b660-566ac4e4bf3f
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:46)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at io.appium.java_client.HasSessionDetails.getSessionDetails(HasSessionDetails.java:39)
at io.appium.java_client.HasSessionDetails.getSessionDetail(HasSessionDetails.java:56)
at io.appium.java_client.HasSessionDetails.getPlatformName(HasSessionDetails.java:65)
at io.appium.java_client.internal.JsonToMobileElementConverter.(JsonToMobileElementConverter.java:49)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:89)
at io.appium.java_client.ios.IOSDriver.(IOSDriver.java:85)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:495)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:479)
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:458)
at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startMobileApp(MobileInspectorController.java:191)
at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12$1.call(MobileLocalAppComposite.java:479)
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.startThreadAndWait(ProgressMonitorDialogWithThread.java:36)
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:48)

@smory,

Can you try with Appium 1.15.1 to see if that helps?

—Chris

I ave facing some serious issues from the katalon and my application gets crashed after opening the katalon. I get some server error whenever I try to open it. I try to contact the apple application support but there is also the same error. So does anyone knows how can I resolve this issue or any suggestion for resolving this issue?

I ended up finding a fix for this by changing which webdriveragent folder I was user, instead going through all setup steps in the following folder:

/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent.

Works perfectly fine for me now.