Katalon Studio 22: How to do Mobile (iOS) Testing via 10 Steps


This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/videos/ios_mobile_testing.html

i follow all instruction until the step 9, but when i goto katalon and try to spy the object i got this, please help

Hi @ana.sosmed,

What is your XCode version and required version of the .ipa file?

Thanks.

Hi there,

When I run the command to build WebDriveAgent, it throws this message
AssertMacros: amdErr = AMDeviceStartSession(tmpDevice)

is there anyone can help, I can run my test and spy, and this happen only in iOS.
Show message:
Unable to start application
Reason:
An unknown server-side error occurred while processing the command. Original

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

(
0 CoreFoundation 0x000000010894a6fb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x0000000107eeeac5 objc_exception_throw + 48
2 CoreFoundation 0x0000000108968ab4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x000000010894f443 forwarding + 1443
4 CoreFoundation 0x0000000108951238 _CF_forwarding_prep_0 + 120
5 WebDriverAgentLib 0x000000012007e521 -[XCUIElement(FBUtilities) fb_snapshotWithAttributes] + 97
6 WebDriverAgentLib 0x000000012006205c -[XCUIElement(FBIsVisible) fb_isVisible] + 44
7 WebDriverAgentLib 0x00000001200a32c5 +[FBScreen statusBarSizeForApplication:] + 149
8 WebDriverAgentLib 0x000000012008229a +[FBCustomCommands handleGetScreen:] + 154
9 WebDriverAgentLib 0x00000001200678d6 -[FBRoute_TargetAction mountRequest:intoResponse:] + 182
10 WebDriverAgentLib 0x0000000120054c6b __37-[FBWebServer registerRouteHandlers:]_block_invoke + 555
11 RoutingHTTPServer 0x00000001201b7ba3 -[RoutingHTTPServer handleRoute:withRequest:response:] + 136
12 RoutingHTTPServer 0x00000001201b84b6 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 47
13 libdispatch.dylib 0x000000010d2d3d02 _dispatch_client_callout + 8
14 libdispatch.dylib 0x000000010d2e06e8 _dispatch_async_and_wait_invoke + 109
15 libdispatch.dylib 0x000000010d2d3d02 _dispatch_client_callout + 8
16 libdispatch.dylib 0x000000010d2dfa50 _dispatch_main_queue_callback_4CF + 1276
17 CoreFoundation 0x00000001088b18a9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
18 CoreFoundation 0x00000001088abf56 _CFRunLoopRun + 2310
19 CoreFoundation 0x00000001088ab302 CFRunLoopRunSpecific + 626
20 Foundation 0x00000001079b9044 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
21 WebDriverAgentLib 0x0000000120053590 -[FBWebServer startServing] + 368
22 WebDriverAgentRunner 0x000000012003ffca -[UITestingUITests testRunner] + 106
23 CoreFoundation 0x00000001089514cc invoking
+ 140
24 CoreFoundation 0x000000010894ea45 -[NSInvocation invoke] + 325
25 XCTest 0x000000010778b121 __24-[XCTestCase invokeTest]_block_invoke.208 + 78
26 XCTest 0x00000001077e51e2 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
27 XCTest 0x00000001077e5100 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
28 XCTest 0x000000010778ac0a __24-[XCTestCase invokeTest]_block_invoke + 1153
29 XCTest 0x00000001077ec424 -[XCUITestContext performInScope:] + 117
30 XCTest 0x000000010778a6c6 -[XCTestCase testContextPerformInScope:] + 183
31 XCTest 0x000000010778a77c -[XCTestCase invokeTest] + 137
32 XCTest 0x000000010778c4ed __26-[XCTestCase performTest:]_block_invoke_2 + 43
33 XCTest 0x00000001077e51e2 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
34 XCTest 0x00000001077e5100 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
35 XCTest 0x000000010778c404 __26-[XCTestCase performTest:]_block_invoke.334 + 88
36 XCTest 0x00000001077f8492 +[XCTContext runInContextForTestCase:block:] + 219
37 XCTest 0x000000010778bb73 -[XCTestCase performTest:] + 668
38 XCTest 0x00000001077d1077 -[XCTest runTest] + 57
39 XCTest 0x000000010778614a __27-[XCTestSuite performTest:]_block_invoke + 365
40 XCTest 0x0000000107785874 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
41 XCTest 0x0000000107785b71 -[XCTestSuite performTest:] + 355
42 XCTest 0x00000001077d1077 -[XCTest runTest] + 57
43 XCTest 0x000000010778614a __27-[XCTestSuite performTest:]_block_invoke + 365
44 XCTest 0x0000000107785874 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
45 XCTest 0x0000000107785b71 -[XCTestSuite performTest:] + 355
46 XCTest 0x00000001077d1077 -[XCTest runTest] + 57
47 XCTest 0x000000010778614a __27-[XCTestSuite performTest:]_block_invoke + 365
48 XCTest 0x0000000107785874 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
49 XCTest 0x0000000107785b71 -[XCTestSuite performTest:] + 355
50 XCTest 0x00000001077d1077 -[XCTest runTest] + 57
51 XCTest 0x000000010780743e __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 171
52 XCTest 0x0000000107807541 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 118
53 XCTest 0x000000010779fe83 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 588
54 XCTest 0x00000001078071fd -[XCTTestRunSession runTestsAndReturnError:] + 623
55 XCTest 0x00000001077696d7 -[XCTestDriver runTestsAndReturnError:] + 456
56 XCTest 0x00000001077f46e4 _XCTestMain + 2484
57 WebDriverAgentRunner-Runner 0x0000000107499edd -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
58 WebDriverAgentRunner-Runner 0x0000000107499ddb _XCTRunnerRunTests + 0
59 CoreFoundation 0x00000001088b1aec CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12
60 CoreFoundation 0x00000001088b12b0 __CFRunLoopDoBlocks + 336
61 CoreFoundation 0x00000001088abb34 __CFRunLoopRun + 1252
62 CoreFoundation 0x00000001088ab302 CFRunLoopRunSpecific + 626
63 GraphicsServices 0x0000000110ef62fe GSEventRunModal + 65
64 UIKitCore 0x0000000109884ba2 UIApplicationMain + 140
65 WebDriverAgentRunner-Runner 0x000000010749a098 main + 183
66 libdyld.dylib 0x000000010d341541 start + 1
67 ??? 0x0000000000000005 0x0 + 5
)
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘minis-Mac-mini.local’, ip: ‘192.168.0.49’, 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/mini/Downloads/Produ…, automationName: XCUITest, browserName: , databaseEnabled: false, deviceId: 95338BD4-80DA-4EB2-9D4A-8D8…, deviceName: iPhone 5s, fullReset: false, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 1800, noReset: true, platform: MAC, platformName: iOS, platformVersion: 12.2, realDeviceLogger: /Applications/Katalon Studi…, takesScreenshot: true, udid: E9FFE828-0D87-40AE-AAF0-A66…, waitForAppScript: true;, wdaLocalPort: 52267, webStorageEnabled: false}
Session ID: c3f0fa3d-76fe-4119-8371-92e51dacdd14
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: -[XCUIElement resolve]: unrecognized selector sent to instance 0x60000067ff80

(
0 CoreFoundation 0x000000010894a6fb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x0000000107eeeac5 objc_exception_throw + 48
2 CoreFoundation 0x0000000108968ab4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x000000010894f443 forwarding + 1443
4 CoreFoundation 0x0000000108951238 _CF_forwarding_prep_0 + 120
5 WebDriverAgentLib 0x000000012007e521 -[XCUIElement(FBUtilities) fb_snapshotWithAttributes] + 97
6 WebDriverAgentLib 0x000000012006205c -[XCUIElement(FBIsVisible) fb_isVisible] + 44
7 WebDriverAgentLib 0x00000001200a32c5 +[FBScreen statusBarSizeForApplication:] + 149
8 WebDriverAgentLib 0x000000012008229a +[FBCustomCommands handleGetScreen:] + 154
9 WebDriverAgentLib 0x00000001200678d6 -[FBRoute_TargetAction mountRequest:intoResponse:] + 182
10 WebDriverAgentLib 0x0000000120054c6b __37-[FBWebServer registerRouteHandlers:]_block_invoke + 555
11 RoutingHTTPServer 0x00000001201b7ba3 -[RoutingHTTPServer handleRoute:withRequest:response:] + 136
12 RoutingHTTPServer 0x00000001201b84b6 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 47
13 libdispatch.dylib 0x000000010d2d3d02 _dispatch_client_callout + 8
14 libdispatch.dylib 0x000000010d2e06e8 _dispatch_async_and_wait_invoke + 109
15 libdispatch.dylib 0x000000010d2d3d02 _dispatch_client_callout + 8
16 libdispatch.dylib 0x000000010d2dfa50 _dispatch_main_queue_callback_4CF + 1276
17 CoreFoundation 0x00000001088b18a9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
18 CoreFoundation 0x00000001088abf56 _CFRunLoopRun + 2310
19 CoreFoundation 0x00000001088ab302 CFRunLoopRunSpecific + 626
20 Foundation 0x00000001079b9044 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
21 WebDriverAgentLib 0x0000000120053590 -[FBWebServer startServing] + 368
22 WebDriverAgentRunner 0x000000012003ffca -[UITestingUITests testRunner] + 106
23 CoreFoundation 0x00000001089514cc invoking
+ 140
24 CoreFoundation 0x000000010894ea45 -[NSInvocation invoke] + 325
25 XCTest 0x000000010778b121 __24-[XCTestCase invokeTest]_block_invoke.208 + 78
26 XCTest 0x00000001077e51e2 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
27 XCTest 0x00000001077e5100 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
28 XCTest 0x000000010778ac0a __24-[XCTestCase invokeTest]_block_invoke + 1153
29 XCTest 0x00000001077ec424 -[XCUITestContext performInScope:] + 117
30 XCTest 0x000000010778a6c6 -[XCTestCase testContextPerformInScope:] + 183
31 XCTest 0x000000010778a77c -[XCTestCase invokeTest] + 137
32 XCTest 0x000000010778c4ed __26-[XCTestCase performTest:]_block_invoke_2 + 43
33 XCTest 0x00000001077e51e2 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
34 XCTest 0x00000001077e5100 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
35 XCTest 0x000000010778c404 __26-[XCTestCase performTest:]_block_invoke.334 + 88
36 XCTest 0x00000001077f8492 +[XCTContext runInContextForTestCase:block:] + 219
37 XCTest 0x000000010778bb73 -[XCTestCase performTest:] + 668
38 XCTest 0x00000001077d1077 -[XCTest runTest] + 57
39 XCTest 0x000000010778614a __27-[XCTestSuite performTest:]_block_invoke + 365
40 XCTest 0x0000000107785874 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
41 XCTest 0x0000000107785b71 -[XCTestSuite performTest:] + 355
42 XCTest 0x00000001077d1077 -[XCTest runTest] + 57
43 XCTest 0x000000010778614a __27-[XCTestSuite performTest:]_block_invoke + 365
44 XCTest 0x0000000107785874 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
45 XCTest 0x0000000107785b71 -[XCTestSuite performTest:] + 355
46 XCTest 0x00000001077d1077 -[XCTest runTest] + 57
47 XCTest 0x000000010778614a __27-[XCTestSuite performTest:]_block_invoke + 365
48 XCTest 0x0000000107785874 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
49 XCTest 0x0000000107785b71 -[XCTestSuite performTest:] + 355
50 XCTest 0x00000001077d1077 -[XCTest runTest] + 57
51 XCTest 0x000000010780743e __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 171
52 XCTest 0x0000000107807541 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 118
53 XCTest 0x000000010779fe83 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 588
54 XCTest 0x00000001078071fd -[XCTTestRunSession runTestsAndReturnError:] + 623
55 XCTest 0x00000001077696d7 -[XCTestDriver runTestsAndReturnError:] + 456
56 XCTest 0x00000001077f46e4 _XCTestMain + 2484
57 WebDriverAgentRunner-Runner 0x0000000107499edd -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
58 WebDriverAgentRunner-Runner 0x0000000107499ddb _XCTRunnerRunTests + 0
59 CoreFoundation 0x00000001088b1aec CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12
60 CoreFoundation 0x00000001088b12b0 __CFRunLoopDoBlocks + 336
61 CoreFoundation 0x00000001088abb34 __CFRunLoopRun + 1252
62 CoreFoundation 0x00000001088ab302 CFRunLoopRunSpecific + 626
63 GraphicsServices 0x0000000110ef62fe GSEventRunModal + 65
64 UIKitCore 0x0000000109884ba2 UIApplicationMain + 140
65 WebDriverAgentRunner-Runner 0x000000010749a098 main + 183
66 libdyld.dylib 0x000000010d341541 start + 1
67 ??? 0x0000000000000005 0x0 + 5
)
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘minis-Mac-mini.local’, ip: ‘192.168.0.49’, 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/mini/Downloads/Produ…, automationName: XCUITest, browserName: , databaseEnabled: false, deviceId: 95338BD4-80DA-4EB2-9D4A-8D8…, deviceName: iPhone 5s, fullReset: false, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 1800, noReset: true, platform: MAC, platformName: iOS, platformVersion: 12.2, realDeviceLogger: /Applications/Katalon Studi…, takesScreenshot: true, udid: E9FFE828-0D87-40AE-AAF0-A66…, waitForAppScript: true;, wdaLocalPort: 52267, webStorageEnabled: false}
Session ID: c3f0fa3d-76fe-4119-8371-92e51dacdd14
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:460)
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)
… 2 more`

Depending on what version of appium you are using, WebDriverAgent might have been moved to /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent. Replace this directory in the commands below if you don’t have an /appium-xcuitest-driver/WebDriverAgent folder.

Step 7: Initialize WebDriverAgent Projectbrew install carthage
cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
mkdir -p Resources/WebDriverAgent.bundle
sh ./Scripts/bootstrap.sh -d

1 Like

Looks like you must upgrade your version of Xcode from 0.3 to 7.3 or higher. I am running 10.1 as of this post. Hope this helps.

2 Likes

Thanks it works

1 Like

I also follow all instruction until the step 9. When I goto katalon and try to spy the object I got this error. Please help.
image

Hello,

All other steps were followed as instructed. Currently using:
Katalon 7.2.1
Appium 1.16.0
Xcode 11.3

When I try to use the simulator for spying, recording, or running any form of test I get 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 0x600000cb35a0

(
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 0x000000010c995654 -[XCUIElement(FBUtilities) fb_lastSnapshot] + 68
6 WebDriverAgentLib 0x000000010c98ccf1 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 769
7 WebDriverAgentLib 0x000000010c98cf38 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 152
8 CoreFoundation 0x00007fff23c75796 forwarding + 230
9 CoreFoundation 0x00007fff23c78078 forwarding_prep_1
+ 120
10 WebDriverAgentLib 0x000000010c9b3480 +[FBElementCommands handleGetWindowSize:] + 176
11 WebDriverAgentLib 0x000000010c97ed86 -[FBRoute_TargetAction mountRequest:intoResponse:] + 182
12 WebDriverAgentLib 0x000000010c96c2fb __37-[FBWebServer registerRouteHandlers:]_block_invoke + 555
13 RoutingHTTPServer 0x000000010cacfba3 -[RoutingHTTPServer handleRoute:withRequest:response:] + 136
14 RoutingHTTPServer 0x000000010cad04b6 __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 0x000000010c96ac28 -[FBWebServer startServing] + 360
24 WebDriverAgentRunner 0x000000010c956faa -[UITestingUITests testRunner] + 106
25 CoreFoundation 0x00007fff23c7820c invoking
+ 140
26 CoreFoundation 0x00007fff23c753af -[NSInvocation invoke] + 319
27 XCTest 0x000000010aa24821 __24-[XCTestCase invokeTest]_block_invoke.208 + 78
28 XCTest 0x000000010aa7e9b9 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
29 XCTest 0x000000010aa7e8d7 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
30 XCTest 0x000000010aa2430a __24-[XCTestCase invokeTest]_block_invoke + 1153
31 XCTest 0x000000010aa862c4 -[XCUITestContext performInScope:] + 117
32 XCTest 0x000000010aa23dc6 -[XCTestCase testContextPerformInScope:] + 183
33 XCTest 0x000000010aa23e7c -[XCTestCase invokeTest] + 137
34 XCTest 0x000000010aa25bed __26-[XCTestCase performTest:]_block_invoke_2 + 43
35 XCTest 0x000000010aa7e9b9 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
36 XCTest 0x000000010aa7e8d7 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
37 XCTest 0x000000010aa25b04 __26-[XCTestCase performTest:]_block_invoke.334 + 88
38 XCTest 0x000000010aa92302 +[XCTContext runInContextForTestCase:block:] + 219
39 XCTest 0x000000010aa25273 -[XCTestCase performTest:] + 668
40 XCTest 0x000000010aa6a807 -[XCTest runTest] + 57
41 XCTest 0x000000010aa1f84a __27-[XCTestSuite performTest:]_block_invoke + 365
42 XCTest 0x000000010aa1ef74 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
43 XCTest 0x000000010aa1f271 -[XCTestSuite performTest:] + 355
44 XCTest 0x000000010aa6a807 -[XCTest runTest] + 57
45 XCTest 0x000000010aa1f84a __27-[XCTestSuite performTest:]_block_invoke + 365
46 XCTest 0x000000010aa1ef74 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
47 XCTest 0x000000010aa1f271 -[XCTestSuite performTest:] + 355
48 XCTest 0x000000010aa6a807 -[XCTest runTest] + 57
49 XCTest 0x000000010aa1f84a __27-[XCTestSuite performTest:]_block_invoke + 365
50 XCTest 0x000000010aa1ef74 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
51 XCTest 0x000000010aa1f271 -[XCTestSuite performTest:] + 355
52 XCTest 0x000000010aa6a807 -[XCTest runTest] + 57
53 XCTest 0x000000010aaa128e __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 171
54 XCTest 0x000000010aaa1391 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 118
55 XCTest 0x000000010aa39593 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 588
56 XCTest 0x000000010aaa104d -[XCTTestRunSession runTestsAndReturnError:] + 623
57 XCTest 0x000000010aa02dd7 -[XCTestDriver runTestsAndReturnError:] + 456
58 XCTest 0x000000010aa8e554 _XCTestMain + 2484
59 WebDriverAgentRunner-Runner 0x000000010a755edd -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
60 WebDriverAgentRunner-Runner 0x000000010a755ddb _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 0x000000010a756098 main + 183
68 libdyld.dylib 0x00007fff5227ec25 start + 1
69 ??? 0x0000000000000005 0x0 + 5
)
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘AQUAMAN-2.local’, ip: ‘fe80:0:0:0:848:4bdc:6330:a77f%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: 56390, webStorageEnabled: false}
Session ID: 30a36d0f-3b0b-40fd-9073-bb58f4cfe94e
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 0x600000cb35a0

(
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 0x000000010c995654 -[XCUIElement(FBUtilities) fb_lastSnapshot] + 68
6 WebDriverAgentLib 0x000000010c98ccf1 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 769
7 WebDriverAgentLib 0x000000010c98cf38 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 152
8 CoreFoundation 0x00007fff23c75796 forwarding + 230
9 CoreFoundation 0x00007fff23c78078 forwarding_prep_1
+ 120
10 WebDriverAgentLib 0x000000010c9b3480 +[FBElementCommands handleGetWindowSize:] + 176
11 WebDriverAgentLib 0x000000010c97ed86 -[FBRoute_TargetAction mountRequest:intoResponse:] + 182
12 WebDriverAgentLib 0x000000010c96c2fb __37-[FBWebServer registerRouteHandlers:]_block_invoke + 555
13 RoutingHTTPServer 0x000000010cacfba3 -[RoutingHTTPServer handleRoute:withRequest:response:] + 136
14 RoutingHTTPServer 0x000000010cad04b6 __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 0x000000010c96ac28 -[FBWebServer startServing] + 360
24 WebDriverAgentRunner 0x000000010c956faa -[UITestingUITests testRunner] + 106
25 CoreFoundation 0x00007fff23c7820c invoking
+ 140
26 CoreFoundation 0x00007fff23c753af -[NSInvocation invoke] + 319
27 XCTest 0x000000010aa24821 __24-[XCTestCase invokeTest]_block_invoke.208 + 78
28 XCTest 0x000000010aa7e9b9 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
29 XCTest 0x000000010aa7e8d7 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
30 XCTest 0x000000010aa2430a __24-[XCTestCase invokeTest]_block_invoke + 1153
31 XCTest 0x000000010aa862c4 -[XCUITestContext performInScope:] + 117
32 XCTest 0x000000010aa23dc6 -[XCTestCase testContextPerformInScope:] + 183
33 XCTest 0x000000010aa23e7c -[XCTestCase invokeTest] + 137
34 XCTest 0x000000010aa25bed __26-[XCTestCase performTest:]_block_invoke_2 + 43
35 XCTest 0x000000010aa7e9b9 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 57
36 XCTest 0x000000010aa7e8d7 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 96
37 XCTest 0x000000010aa25b04 __26-[XCTestCase performTest:]_block_invoke.334 + 88
38 XCTest 0x000000010aa92302 +[XCTContext runInContextForTestCase:block:] + 219
39 XCTest 0x000000010aa25273 -[XCTestCase performTest:] + 668
40 XCTest 0x000000010aa6a807 -[XCTest runTest] + 57
41 XCTest 0x000000010aa1f84a __27-[XCTestSuite performTest:]_block_invoke + 365
42 XCTest 0x000000010aa1ef74 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
43 XCTest 0x000000010aa1f271 -[XCTestSuite performTest:] + 355
44 XCTest 0x000000010aa6a807 -[XCTest runTest] + 57
45 XCTest 0x000000010aa1f84a __27-[XCTestSuite performTest:]_block_invoke + 365
46 XCTest 0x000000010aa1ef74 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
47 XCTest 0x000000010aa1f271 -[XCTestSuite performTest:] + 355
48 XCTest 0x000000010aa6a807 -[XCTest runTest] + 57
49 XCTest 0x000000010aa1f84a __27-[XCTestSuite performTest:]_block_invoke + 365
50 XCTest 0x000000010aa1ef74 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 54
51 XCTest 0x000000010aa1f271 -[XCTestSuite performTest:] + 355
52 XCTest 0x000000010aa6a807 -[XCTest runTest] + 57
53 XCTest 0x000000010aaa128e __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 171
54 XCTest 0x000000010aaa1391 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 118
55 XCTest 0x000000010aa39593 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 588
56 XCTest 0x000000010aaa104d -[XCTTestRunSession runTestsAndReturnError:] + 623
57 XCTest 0x000000010aa02dd7 -[XCTestDriver runTestsAndReturnError:] + 456
58 XCTest 0x000000010aa8e554 _XCTestMain + 2484
59 WebDriverAgentRunner-Runner 0x000000010a755edd -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
60 WebDriverAgentRunner-Runner 0x000000010a755ddb _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 0x000000010a756098 main + 183
68 libdyld.dylib 0x00007fff5227ec25 start + 1
69 ??? 0x0000000000000005 0x0 + 5
)
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘AQUAMAN-2.local’, ip: ‘fe80:0:0:0:848:4bdc:6330:a77f%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: 56390, webStorageEnabled: false}
Session ID: 30a36d0f-3b0b-40fd-9073-bb58f4cfe94e
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)

Hi everyone is it possible run iOS automation in Windows 10 ? I dont have mac :frowning:

Getting this error on Step 8: Open webDriverAgent.xcodeproj in Xcode (24:10 of the video) when attempting to build. Any suggestion to resolve? Did I do something incorrect earlier in the steps? Thanks!

'CocoaAsyncSocket/GCDAsyncSocket.h' file not found

@Jass: I am getting error while running the bootstrap command “sh ./Scripts/bootstrap.sh -d”
Error says: Build failed.


Not able to proceed further due to this issue. Can you help me out ASAP?

Please also let me know if Katalon has any Customer Support chatbox/emailid?

is this guide for MacBook setup only.
posibble to setup it at windows 10 machine?

Hi @Gan_Jyi_Yng

Please follow this manual for setting up Mobile testing on Windows machines.

Jass

iOS physical device not recognized on Katalon 7.8.1 version on Mac OS 10.15.7?

I’m getting this error while trying to spy for iOS. This happens when using either an ipa or .app file

I got the same issue with my machine.
below is my configuration…

macOS: BigSur v11.4
Xcode Version: 12.5.1
iOS Version: 14.5
Katalon studion Version: 8.0.5
Appium version: 1.21.0

Can you please help me with this issue in the above configuration?

Thank you.