Could not load a driver for automationName 'XCUITest' and platformName 'ios'. Please verify your Appium installation

Getting the below error when i try to inspect ios in katalon studio . Successfully built integration app and WebDriverAgent on ios real device . Tried installing multiple appium versions , WDA versions .

Versions : 

APPIUM - 1.22.3
NODE - v16.9.1
XCODE - 15
KATALON STUDIO - 8.6.8
iOS - 16
Mac OS - Sonoma 14.2.1

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: Could not load a driver for automationName 'XCUITest' and platformName 'ios'. Please verify your Appium installation

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: host: 'pruthvis-MBP.localdomain', ip: '10.6.0.138', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '14.2.1', java.version: '1.8.0_362'

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:380:37)

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: host: 'pruthvis-MBP.localdomain', ip: '10.6.0.138', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '14.2.1', java.version: '1.8.0_362'

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:488)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

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: Could not load a driver for automationName 'XCUITest' and platformName 'ios'. Please verify your Appium installation

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: host: 'pruthvis-MBP.localdomain', ip: '10.6.0.138', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '14.2.1', java.version: '1.8.0_362'

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:380:37)

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: host: 'pruthvis-MBP.localdomain', ip: '10.6.0.138', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '14.2.1', java.version: '1.8.0_362'

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:508)

at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:492)

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

at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startExistingApp(MobileInspectorController.java:143)

at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12$1.call(MobileLocalAppComposite.java:500)

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: Could not load a driver for automationName 'XCUITest' and platformName 'ios'. Please verify your Appium installation

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: host: 'pruthvis-MBP.localdomain', ip: '10.6.0.138', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '14.2.1', java.version: '1.8.0_362'

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:380: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
1 Like

Hi,

This issue seems to be caused by Appium or driver installation. I found some references on this as following:

You can try those and let us know if it does not work.

1 Like

Hi @Elly_Tran

Thanks for your help .
Does KATALON STUDIO - 8.6.8 supports appium 2.x ? i saw few documents to migrate to appium 2 and requirements says as katalon stuido version - 9.0 .

As both the documents above states that their appium version is 2.x , is there any solution for Appium 1.2 ?

i have tried with node 14v , 16v and 18v so far .

HI,

Can you please upgrade Appium to v2.x? As I see in this guide, we got:

  • If your iOS version is below 16, then you can use Appium 1 and 2.
  • If your iOS version is 16 or higher, then you can only use Appium 2.

Hi @Elly_Tran

i have tried with Appium 2 as well , No luck .

Hi,

With Appium 2, do you still face the same issue or another error?

Hello , Same error .

Hi @Elly_Tran

Any update on this ? i am stuck since a month , could you please help me on this .

Hi,

Sorry for my late response. If you are an Enterprise user, I would like to recommend you create a ticket over here: https://katalon-inc.my.site.com/katalonhelpcenter/s/ for better support. Otherwise, I will ask my team and back to you soon