# Mobile recorder IOS : String index out of range : -6

**URL:** <https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [March 6, 2020, 12:27pm UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773 "2020-03-06T12:27:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@Pierre](https://forum.katalon.com/u/Pierre)\
**Post date:** [March 6, 2020, 12:27pm UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773/1 "2020-03-06T12:27:42Z")

</div>

Hi

When I start the mobile recorder, I have an error : String index out of range : -6

```auto
java.util.concurrent.ExecutionException: java.lang.StringIndexOutOfBoundsException: String index out of range: -6

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: java.lang.StringIndexOutOfBoundsException: String index out of range: -6

at com.kms.katalon.core.appium.driver.AppiumDriverManager.getXCodeVersion(AppiumDriverManager.java:695)

at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.createCapabilities(MobileDriverFactory.java:216)

at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:340)

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

```

For your informations :

Katalon’s version : 7.2.1  
Appium : 1.15.1  
Xcode : 11.3.1

I don’t have the problem when I want to start the recorder with an \*.apk.

Thanks.

Regards,

Pierre

---

<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:** [March 9, 2020, 8:58am UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773/2 "2020-03-09T08:58:36Z")

</div>

@Pierre  
Can you let us know what iOS model you are using?

---

<div class="post-metadata">

**Author:** ![Pierre](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@Pierre](https://forum.katalon.com/u/Pierre)\
**Post date:** [March 9, 2020, 9:18am UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773/3 "2020-03-09T09:18:37Z")

</div>

Thank you for your response

I use an Iphone 8 with 13.3.1 iOS version

---

<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:** [March 9, 2020, 9:24am UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773/4 "2020-03-09T09:24:01Z")

</div>

Hi @Pierre,

Do you install XCode on your machine?

If yes, please run this command in terminal and share us the result:

```auto
xcodebuild -version | grep "Xcode.*"

```

---

<div class="post-metadata">

**Author:** ![Pierre](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@Pierre](https://forum.katalon.com/u/Pierre)\
**Post date:** [March 9, 2020, 10:14am UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773/5 "2020-03-09T10:14:25Z")

</div>

For sure.

Xcode 11.3.1

---

<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:** [March 10, 2020, 8:12am UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773/6 "2020-03-10T08:12:44Z")

</div>

@Pierre  
Can you share us this output of terminal command:

```auto
which xcodebuild

```

---

<div class="post-metadata">

**Author:** ![Pierre](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@Pierre](https://forum.katalon.com/u/Pierre)\
**Post date:** [March 10, 2020, 8:15am UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773/7 "2020-03-10T08:15:57Z")

</div>

/usr/bin/xcodebuild

---

<div class="post-metadata">

**Author:** ![Pierre](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@Pierre](https://forum.katalon.com/u/Pierre)\
**Post date:** [March 13, 2020, 11:50am UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773/8 "2020-03-13T11:50:48Z")

</div>

A new log message :

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: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65  
xcodebuild error message:  
2020-03-13 12:46:05.249 xcodebuild[740:10369] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/pierre/Library/Developer/Xcode/DerivedData/WebDriverAgent-flitpktgwdaaagfqxtjzlxpgelpy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fb4d4974de0 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}  
Test session results, code coverage, and logs:  
/Users/pierre/Library/Developer/Xcode/DerivedData/WebDriverAgent-flitpktgwdaaagfqxtjzlxpgelpy/Logs/Test/Test-WebDriverAgentRunner-2020.03.13\_12-46-05-+0100.xcresult  
Testing failed:  
Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the Signing & Capabilities editor.  
WebDriverAgentRunner:  
WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))  
\*\* TEST EXECUTE FAILED \*\*  
Testing started on ‘OpenIT test iPhone 1’. Make sure you follow the tutorial at [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md). Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.  
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’  
System info: host: ‘Pierres-MBP’, ip: ‘2a02:121f:415e:0:9c2f:b814:9d17:24c3%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.15.3’, 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: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65  
xcodebuild error message:  
2020-03-13 12:46:05.249 xcodebuild[740:10369] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/pierre/Library/Developer/Xcode/DerivedData/WebDriverAgent-flitpktgwdaaagfqxtjzlxpgelpy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fb4d4974de0 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}  
Test session results, code coverage, and logs:  
/Users/pierre/Library/Developer/Xcode/DerivedData/WebDriverAgent-flitpktgwdaaagfqxtjzlxpgelpy/Logs/Test/Test-WebDriverAgentRunner-2020.03.13\_12-46-05-+0100.xcresult  
Testing failed:  
Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the Signing & Capabilities editor.  
WebDriverAgentRunner:  
WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))  
\*\* TEST EXECUTE FAILED \*\*  
Testing started on ‘OpenIT test iPhone 1’. Make sure you follow the tutorial at [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md). Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.  
at getResponseForW3CError (/Users/pierre/.nvm/versions/node/v10.19.0/lib/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/errors.js:804:9)  
at asyncHandler (/Users/pierre/.nvm/versions/node/v10.19.0/lib/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/protocol.js:388:37)  
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’  
System info: host: ‘Pierres-MBP’, ip: ‘2a02:121f:415e:0:9c2f:b814:9d17:24c3%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.15.3’, 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: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65  
xcodebuild error message:  
2020-03-13 12:46:05.249 xcodebuild[740:10369] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/pierre/Library/Developer/Xcode/DerivedData/WebDriverAgent-flitpktgwdaaagfqxtjzlxpgelpy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fb4d4974de0 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}  
Test session results, code coverage, and logs:  
/Users/pierre/Library/Developer/Xcode/DerivedData/WebDriverAgent-flitpktgwdaaagfqxtjzlxpgelpy/Logs/Test/Test-WebDriverAgentRunner-2020.03.13\_12-46-05-+0100.xcresult  
Testing failed:  
Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the Signing & Capabilities editor.  
WebDriverAgentRunner:  
WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))  
\*\* TEST EXECUTE FAILED \*\*  
Testing started on ‘OpenIT test iPhone 1’. Make sure you follow the tutorial at [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md). Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Pierres-MBP’, ip: ‘2a02:121f:415e:0:9c2f:b814:9d17:24c3%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.15.3’, 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: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65  
xcodebuild error message:  
2020-03-13 12:46:05.249 xcodebuild[740:10369] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/pierre/Library/Developer/Xcode/DerivedData/WebDriverAgent-flitpktgwdaaagfqxtjzlxpgelpy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fb4d4974de0 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}

Test session results, code coverage, and logs:

/Users/pierre/Library/Developer/Xcode/DerivedData/WebDriverAgent-flitpktgwdaaagfqxtjzlxpgelpy/Logs/Test/Test-WebDriverAgentRunner-2020.03.13\_12-46-05-+0100.xcresult

Testing failed:

Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the Signing & Capabilities editor.

WebDriverAgentRunner:

WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))

\*\* TEST EXECUTE FAILED \*\*

Testing started on ‘OpenIT test iPhone 1’. Make sure you follow the tutorial at [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md). Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

at getResponseForW3CError (/Users/pierre/.nvm/versions/node/v10.19.0/lib/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/errors.js:804:9)

at asyncHandler (/Users/pierre/.nvm/versions/node/v10.19.0/lib/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/protocol.js:388:37)

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Pierres-MBP’, ip: ‘2a02:121f:415e:0:9c2f:b814:9d17:24c3%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.15.3’, 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.(RemoteWebDriver.java:131)

at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)

at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)

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)

… 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: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

xcodebuild error message:

2020-03-13 12:46:05.249 xcodebuild[740:10369] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/pierre/Library/Developer/Xcode/DerivedData/WebDriverAgent-flitpktgwdaaagfqxtjzlxpgelpy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fb4d4974de0 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}

Test session results, code coverage, and logs:

/Users/pierre/Library/Developer/Xcode/DerivedData/WebDriverAgent-flitpktgwdaaagfqxtjzlxpgelpy/Logs/Test/Test-WebDriverAgentRunner-2020.03.13\_12-46-05-+0100.xcresult

Testing failed:

Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the Signing & Capabilities editor.

WebDriverAgentRunner:

WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))

\*\* TEST EXECUTE FAILED \*\*

Testing started on ‘OpenIT test iPhone 1’. Make sure you follow the tutorial at [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md). Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Pierres-MBP’, ip: ‘2a02:121f:415e:0:9c2f:b814:9d17:24c3%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.15.3’, 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: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

xcodebuild error message:

2020-03-13 12:46:05.249 xcodebuild[740:10369] Error Domain=NSCocoaErrorDomain Code=260 “The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file.” UserInfo={NSFilePath=/Users/pierre/Library/Developer/Xcode/DerivedData/WebDriverAgent-flitpktgwdaaagfqxtjzlxpgelpy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app, NSUnderlyingError=0x7fb4d4974de0 {Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”}}

Test session results, code coverage, and logs:

/Users/pierre/Library/Developer/Xcode/DerivedData/WebDriverAgent-flitpktgwdaaagfqxtjzlxpgelpy/Logs/Test/Test-WebDriverAgentRunner-2020.03.13\_12-46-05-+0100.xcresult

Testing failed:

Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the Signing & Capabilities editor.

WebDriverAgentRunner:

WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying error: The operation couldn’t be completed. No such file or directory)))

\*\* TEST EXECUTE FAILED \*\*

Testing started on ‘OpenIT test iPhone 1’. Make sure you follow the tutorial at [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md). Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

at getResponseForW3CError (/Users/pierre/.nvm/versions/node/v10.19.0/lib/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/errors.js:804:9)

at asyncHandler (/Users/pierre/.nvm/versions/node/v10.19.0/lib/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/protocol.js:388:37)

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:** ![Pierre](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@Pierre](https://forum.katalon.com/u/Pierre)\
**Post date:** [March 23, 2020, 4:06pm UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773/9 "2020-03-23T16:06:26Z")

</div>

Nobody ? No solution ?

---

<div class="post-metadata">

**Author:** ![akahane](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/akahane/32/23870_2.png) [@akahane](https://forum.katalon.com/u/akahane)\
**Post date:** [February 26, 2021, 3:05pm UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773/10 "2021-02-26T15:05:25Z")

</div>

@duyluong  
Were you able to figure out what was going on here? I am having the same issue as @Pierre

---

<div class="post-metadata">

**Author:** ![dshandilya](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dshandilya/32/16104_2.png) [@dshandilya](https://forum.katalon.com/u/dshandilya)\
**Post date:** [May 4, 2021, 5:12pm UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773/11 "2021-05-04T17:12:38Z")

</div>

Hi,  
I followed all the steps from:  
[https://docs.katalon.com/katalon-studio/tutorials/mobile-ios-setup.html#set-up-ios-tests-on-windows-and-macos](https://docs.katalon.com/katalon-studio/tutorials/mobile-ios-setup.html#set-up-ios-tests-on-windows-and-macos)  
And

[https://docs.katalon.com/katalon-studio/tutorials/mobile-create-ios-test-case.html#create-new-project](https://docs.katalon.com/katalon-studio/tutorials/mobile-create-ios-test-case.html#create-new-project)

But when I click start to begin recording using a real device. I keep getting the error:

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/e/0/e0793f1dede29c7ae645abe64d3289f8bb1d857e.png)

Unable to start application  
Reason:  
String index out of range.

Please help as I’m trying to learn.

Thanks!

---

<div class="post-metadata">

**Author:** ![johanepic](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/johanepic/32/16104_2.png) [@johanepic](https://forum.katalon.com/u/johanepic)\
**Post date:** [November 1, 2021, 5:13am UTC](https://forum.katalon.com/t/mobile-recorder-ios-string-index-out-of-range-6/40773/12 "2021-11-01T05:13:39Z")

</div>

> [@Pierre](#):
>
> java.lang.StringIndexOutOfBoundsException: String index out of range

Since the string stores an array of characters, just like arrays the position of each character is represented by an index (starting from 0). If you try to access the character of a String at the index is either negative or greater than the size of the string, a StringIndexOutOfBoundsException is thrown. For some methods such as the [java substring](http://net-informations.com/java/string/substring.htm), charAt method, this exception also is thrown when the index is equal to the size of the string.

How to solve the StringIndexOutOfBoundsException

- Check the length of the string before using substring()
- Exception handling using try…catch.
