# Unable to use Mobile Object Spy for IOS App

**URL:** <https://forum.katalon.com/t/unable-to-use-mobile-object-spy-for-ios-app/43537>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [May 15, 2020, 4:05pm UTC](https://forum.katalon.com/t/unable-to-use-mobile-object-spy-for-ios-app/43537 "2020-05-15T16:05:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DummyAutomation](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@DummyAutomation](https://forum.katalon.com/u/DummyAutomation)\
**Post date:** [May 15, 2020, 4:05pm UTC](https://forum.katalon.com/t/unable-to-use-mobile-object-spy-for-ios-app/43537/1 "2020-05-15T16:05:48Z")

</div>

Hi there,

Im trying to testing IOS app. But i get an when using Mobile Object Spy

Note that the bundler id is the same in xcode project. I did follow the installation guide from [Katalon Doc Page](https://docs.katalon.com/katalon-studio/docs/mobile-on-macos.html#supported-environments-on-macos)

In Mobile Object Spy im using:

- Device Name: Simulator iphone 11 and a actual iphone 6

- Start with: Application ID

- Application Id: com.User.IntegrationApp

Here is the error Log:

```
 java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: App with bundle identifier 'com.User.IntegrationApp' unknown
    Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
    System info: host: 'User.home', ip: 'xxxxx', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.4', java.version: '1.8.0_181'
    Driver info: driver.version: IOSDriver
    remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: App with bundle identifier 'com.User.IntegrationApp' unknown
        at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9)
        at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:447:37)
        at <anonymous>
    Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
    System info: host: 'User.home', ip: 'xxxxx', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.4', java.version: '1.8.0_181'
    Driver info: driver.version: IOSDriver
    	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.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: App with bundle identifier 'com.User.IntegrationApp' unknown
    Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
    System info: host: 'User.home', ip: 'fxxxx', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.4', java.version: '1.8.0_181'
    Driver info: driver.version: IOSDriver
    remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: App with bundle identifier 'com.User.IntegrationApp' unknown
        at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9)
        at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:447:37)
        at <anonymous>
    Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
    System info: host: 'User.home', ip: 'xxxxx', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.4', java.version: '1.8.0_181'
    Driver info: driver.version: IOSDriver
    	at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)
    	at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
    	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:42)
    	at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
    	at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
    	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
    	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    	at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
    	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:84)
    	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
    Caused by: java.lang.reflect.InvocationTargetException
    	at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)
    	... 20 more
    Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: App with bundle identifier 'com.User.IntegrationApp' unknown
    Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
    System info: host: 'User.home', ip: 'xxxxxx', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.4', java.version: '1.8.0_181'
    Driver info: driver.version: IOSDriver
    remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: App with bundle identifier 'com.User.IntegrationApp' unknown
        at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9)
        at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:447:37)
        at <anonymous>
    	at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
    	at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
    	at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
    	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
    	... 21 more
```

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [May 21, 2020, 3:31am UTC](https://forum.katalon.com/t/unable-to-use-mobile-object-spy-for-ios-app/43537/2 "2020-05-21T03:31:02Z")

</div>

Please install this app to your device first: **com.User.IntegrationApp**

---

<div class="post-metadata">

**Author:** ![DummyAutomation](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@DummyAutomation](https://forum.katalon.com/u/DummyAutomation)\
**Post date:** [June 5, 2020, 9:30am UTC](https://forum.katalon.com/t/unable-to-use-mobile-object-spy-for-ios-app/43537/3 "2020-06-05T09:30:27Z")

</div>

Hi,  
I did install the app in the simulator and also in the physical device.

now im get this error

> [35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by appium: deviceId.[35m[BaseDriver]e[39m Session created with session id: 409b4e1b-a1b6-4110-a3af-3263cf757c72  
> e[35m[XCUITest]e[39m Determining device to run tests on: udid: ‘7139bafcb8e50f765b2f69f0ceddbe1e0d3a1daf’, real device: true  
> e[35m[XCUITest]e[39m Xcode version set to ‘11.4.1’  
> e[35m[XCUITest]e[39m iOS SDK Version set to ‘13.4’  
> e[35m[BaseDriver]e[39m Using local app ‘/Users/Dummy/Downloads/myApp.app’  
> e[35m[XCUITest]e[39m Setting up real device  
> e[35m[XCUITest]e[39m Using WDA path: ‘/usr/local/lib/node\_modules/appium/node\_modules/appium-xcuitest-driver/WebDriverAgent’  
> e[35m[XCUITest]e[39m Using WDA agent: ‘/usr/local/lib/node\_modules/appium/node\_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’  
> e[35m[WD Proxy]e[39m Got an unexpected response: {“code”:“ECONNREFUSED”,“errno”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:50416}  
> e[35m[XCUITest]e[39m Launching WebDriverAgent on the device  
> e[35m[WD Proxy]e[39m Got an unexpected response: {“code”:“ECONNRESET”,“errno”:“ECONNRESET”,“syscall”:“read”}  
> e[35m[WD Proxy]e[39m Got an unexpected response: {“code”:“ECONNRESET”,“errno”:“ECONNRESET”,“syscall”:“read”}  
> e[35m[WD Proxy]e[39m Got an unexpected response: {“code”:“ECONNRESET”,“errno”:“ECONNRESET”,“syscall”:“read”}  
> e[35m[WD Proxy]e[39m Got an unexpected response: {“code”:“ECONNRESET”,“errno”:“ECONNRESET”,“syscall”:“read”}

Thank you.

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [June 5, 2020, 9:43am UTC](https://forum.katalon.com/t/unable-to-use-mobile-object-spy-for-ios-app/43537/4 "2020-06-05T09:43:13Z")

</div>

@DummyAutomation

Just wait until the launching process complete.

---

<div class="post-metadata">

**Author:** ![DummyAutomation](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@DummyAutomation](https://forum.katalon.com/u/DummyAutomation)\
**Post date:** [June 5, 2020, 9:54am UTC](https://forum.katalon.com/t/unable-to-use-mobile-object-spy-for-ios-app/43537/5 "2020-06-05T09:54:06Z")

</div>

Is there a specific version of appium that i need to install or the last appium version is ok?

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [June 5, 2020, 12:26pm UTC](https://forum.katalon.com/t/unable-to-use-mobile-object-spy-for-ios-app/43537/6 "2020-06-05T12:26:24Z")

</div>

> [@DummyAutomation](#):
>
> 11.4.1

If you are using XCode 11.4.1, please use Appium v1.17.0 or later.

---

<div class="post-metadata">

**Author:** ![DummyAutomation](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@DummyAutomation](https://forum.katalon.com/u/DummyAutomation)\
**Post date:** [June 5, 2020, 4:05pm UTC](https://forum.katalon.com/t/unable-to-use-mobile-object-spy-for-ios-app/43537/7 "2020-06-05T16:05:23Z")

</div>

At this moment im using a simulator and the error is different.

ERROR:

> 020-06-05 16:51:51.974 ERROR c.k.k.core.keyword.internal.KeywordMain - ❌ Unable to start app at: ‘/Users/user/Downloads/IntegrationApp.app’ (Root cause: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Could not load a driver for automationName ‘XCUITest’ and platformName ‘ios’. Please verify your Appium installation  
> Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
> System info: host: ‘User.home’, ip: 'xxxxx, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.15.5’, java.version: ‘1.8.0\_181’  
> Driver info: driver.version: IOSDriver  
> remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not load a driver for automationName ‘XCUITest’ and platformName ‘ios’. Please verify your Appium installation  
> at getResponseForW3CError (/usr/local/lib/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/errors.js:804:9)  
> at asyncHandler (/usr/local/lib/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/protocol.js:392:37)  
> at   
> Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
> System info: host: ‘User.home’, ip: 'xxxx", os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.15.5’, java.version: ‘1.8.0\_181’  
> Driver info: driver.version: IOSDriver

---

<div class="post-metadata">

**Author:** ![DummyAutomation](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@DummyAutomation](https://forum.katalon.com/u/DummyAutomation)\
**Post date:** [June 18, 2020, 3:11pm UTC](https://forum.katalon.com/t/unable-to-use-mobile-object-spy-for-ios-app/43537/8 "2020-06-18T15:11:04Z")

</div>

Any solution for this issue?

---

<div class="post-metadata">

**Author:** ![perry.g](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/perry.g/32/16103_2.png) [@perry.g](https://forum.katalon.com/u/perry.g)\
**Post date:** [July 10, 2020, 12:39pm UTC](https://forum.katalon.com/t/unable-to-use-mobile-object-spy-for-ios-app/43537/9 "2020-07-10T12:39:29Z")

</div>

@duyluong  
I am also facing the same issue. After launching my application into spy console I am not able to locate any element. Only main screen is selected I can’t select other component in the screen.

Any help would be highly appreciated.
