Appium error, or iOS app error

Hi,

I’m automating a native iOS app. Things are working fine except on a certain view. When i try to find an element on this view through my test, or when i open the inspector when the view is displayed I get the error below in the logs and the app just quits.

Is this an error in the app itself?

info: --> GET /wd/hub/session/b6ca415f-3fc5-4b83-a651-6f6cb252132c/source {}

info: [debug] Pushing command to appium work queue: “au.mainApp().getTreeForXML()”
info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()

info: [IOS_SYSLOG_ROW ] Jan 13 15:47:33 Hugos-iPhone Trulia[2135] : *** Terminating app due to uncaught exception ‘NSRangeException’, reason: ‘-[__NSCFString substringWithRange:]: Range {79, 12} out of bounds; string length 5’

Looks like this error is in the app itself.

I don’t think select element through Appium ( by your test or inspector) would cause such kind of error.

Can you double check by running the app by Xcode with the same view first? I think you can reproduce the error this way

1 Like

Thanks for this - just had confirmation from developers too

Please check the Appium URL given in Execution Configuration(Create Run) page and make sure it starts with http and not https.

Please perform the following steps:
Uninstall WebDriverAgentRunner app on iOS device if already installed.
Reboot the iOS device and the Mac PC.
Try again.

Regards,
Rachel Gomez