Appium2: Could not find a driver for automationName 'XCUITest'

appium --version

2.0.0-beta.57

When I run the automation client is webdriverio
I got this error
Request failed with status 500 due to unknown error: An unknown server-side error occurred while processing the command. Original error: Could not find a driver for automationName ‘XCUITest’ and platformName ‘iOS’. Have you installed a driver that supports those capabilities? Run ‘appium driver list --installed’ to see. (Lower-level error: Could not find installed driver to support given caps)

[0-4] 2023-03-23T00:36:05.588Z ERROR webdriver: unknown error: An unknown server-side error occurred while processing the command. Original error: Could not find a driver for automationName ‘XCUITest’ and platformName ‘iOS’. Have you installed a driver that supports those capabilities? Run ‘appium driver list --installed’ to see. (Lower-level error: Could not find installed driver to support given caps)

my desired cap in the wdio config is:

config.capabilities = [
{
// The defaults you need to have in your config
platformName: ‘iOS’,
maxInstances: 1,
// For W3C the appium capabilities need to have an extension prefix
// This is appium: for all Appium Capabilities which can be found here
// http://appium.io/docs/en/writing-running-appium/caps/
‘appium:deviceName’: ‘iPhone 14 Pro’,
‘appium:platformVersion’: ‘16.2’,
‘appium:orientation’: ‘PORTRAIT’,
‘appium:automationName’: ‘XCUITest’,
// The path to the app
‘appium:app’: join(process.cwd(), ‘./tests/apps/nativeIntegration.app’),
// Read the reset strategies very well, they differ per platform, see
// http://appium.io/docs/en/writing-running-appium/other/reset-strategies/
‘appium:noReset’: false,
‘appium:newCommandTimeout’: 500,
// ‘appium:unicodeKeyboard’: true,
// ‘appium:resetKeyboard’: true
},

cause →

String IOS_XCUI_TEST = "XCuiTest";

case sensitive :slight_smile:

@Aleksei actually I realised it’s due to missing ios driver
I installed it using this command
appium driver install xcuitest

I am using appium2

appium --version
2.0.0-beta.57