# Unable to start application on this device.: String index out of range: -6

**URL:** <https://forum.katalon.com/t/unable-to-start-application-on-this-device-string-index-out-of-range-6/13824>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [October 19, 2018, 1:24am UTC](https://forum.katalon.com/t/unable-to-start-application-on-this-device-string-index-out-of-range-6/13824 "2018-10-19T01:24:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramsen\_Constantine](https://avatars.discourse-cdn.com/v4/letter/r/49beb7/32.png) [@Ramsen\_Constantine](https://forum.katalon.com/u/Ramsen_Constantine)\
**Post date:** [October 19, 2018, 1:24am UTC](https://forum.katalon.com/t/unable-to-start-application-on-this-device-string-index-out-of-range-6/13824/1 "2018-10-19T01:24:30Z")

</div>

I’m attempting to use object spy in mobile, but I get the error “Unable to start application on this device.: String index out of range: -6”. What does this error mean? I have the following set in Execution for iOS.

[image (8).png](https://s3.amazonaws.com/katalon-forum/editor/qr/4k63w5f5f17v.png)

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [October 19, 2018, 3:55am UTC](https://forum.katalon.com/t/unable-to-start-application-on-this-device-string-index-out-of-range-6/13824/2 "2018-10-19T03:55:20Z")

</div>

Hi Ramsen,

Can you provide the version of Xcode and Appium you’re using? Katalon Studio 5.8.0 only supports up to Xcode 9.4.1 and Appium 1.8.1.

Thanks,

Chris

---

<div class="post-metadata">

**Author:** ![Ramsen\_Constantine](https://avatars.discourse-cdn.com/v4/letter/r/49beb7/32.png) [@Ramsen\_Constantine](https://forum.katalon.com/u/Ramsen_Constantine)\
**Post date:** [October 19, 2018, 6:22am UTC](https://forum.katalon.com/t/unable-to-start-application-on-this-device-string-index-out-of-range-6/13824/3 "2018-10-19T06:22:26Z")

</div>

I have Xcode 10, I don’t think I can downgrade. Will Katalon work with 10 anytime soon?

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [October 19, 2018, 6:53pm UTC](https://forum.katalon.com/t/unable-to-start-application-on-this-device-string-index-out-of-range-6/13824/4 "2018-10-19T18:53:22Z")

</div>

You can run two versions of Xcode on your machine at once. You can install an older version (9.4.1 is what I have) alongside Xcode 10. You can do this by going to [https://developer.apple.com/download/more/](https://developer.apple.com/download/more/ "Link: https://developer.apple.com/download/more/") and downloading the older one.

You’ll be asked to “Keep Both” when you install - do that. I named mine “Xcode\_9.4.app”. Then you’ll have to set the default version to the older version:

```auto
sudo xcode-select -s /Applications/Xcode_9.4.app/Contents/Developer

```

Enter your login/system password when prompted.

Now you can use Xcode 10 to develop, but still run Katalon Studio.

Hope this helps,

Chris

---

<div class="post-metadata">

**Author:** ![Ramsen\_Constantine](https://avatars.discourse-cdn.com/v4/letter/r/49beb7/32.png) [@Ramsen\_Constantine](https://forum.katalon.com/u/Ramsen_Constantine)\
**Post date:** [October 19, 2018, 9:45pm UTC](https://forum.katalon.com/t/unable-to-start-application-on-this-device-string-index-out-of-range-6/13824/5 "2018-10-19T21:45:07Z")

</div>

Thanks Chris, that worked, but now I have a new error. Unable to capture objects.

![](https://s3.amazonaws.com/katalon-forum/editor/s6/kspdzfjn3hx8.png "Image: https://s3.amazonaws.com/katalon-forum/editor/s6/kspdzfjn3hx8.png")

[objectSpyMobile.png](https://s3.amazonaws.com/katalon-forum/editor/s6/kspdzfjn3hx8.png)

---

<div class="post-metadata">

**Author:** ![Ramsen\_Constantine](https://avatars.discourse-cdn.com/v4/letter/r/49beb7/32.png) [@Ramsen\_Constantine](https://forum.katalon.com/u/Ramsen_Constantine)\
**Post date:** [October 19, 2018, 10:26pm UTC](https://forum.katalon.com/t/unable-to-start-application-on-this-device-string-index-out-of-range-6/13824/6 "2018-10-19T22:26:33Z")

</div>

My mistake I had to downgrade appium, all is well at the moment.
