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

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

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

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

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/ 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:

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

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

objectSpyMobile.png

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

1 Like