A new session could not be created. Details: Appium's IosDriver does not support xcode version 9.2. Apple has deprecated UIAutomation. Use the "XCUITest" automationName capability instead

Hi Guys,

I am getting below error when I am starting Appium session,
A new session could not be created. Details: Appium’s IosDriver does not support xcode version 9.2. Apple has deprecated UIAutomation. Use the “XCUITest” automationName capability instead.

I am using below desired capabilities:
{
“platformName”: “ios”,
“deviceName”: “iPhone SE”,
“udid”: “8AF9361E-591A-4578-85E5-61789074BC5B”,
“app”: “/users/ankitjain/Library/Developer/Xcode/DerivedData/WebDriverAgent-aflmpkmxfxjeudgqmxrxkkjicbie/Build/Products/Debug-iphonesimulator/IntegrationApp”
}

Please help

Sorry, but the error says it all :slight_smile:

Also https://www.google.pt/search?q=A+new+session+could+not+be+created.+Details%3A+Appium’s+IosDriver+does+not+support+xcode+version+9.2.+Apple+has+deprecated+UIAutomation.+Use+the+“XCUITest”+automationName+capability+instead&oq=A+new+session+could+not+be+created.+Details%3A+Appium’s+IosDriver+does+not+support+xcode+version+9.2.+Apple+has+deprecated+UIAutomation.+Use+the+“XCUITest”+automationName+capability+instead

Hey @Ankit_Jain1

In Xcode 8, UIAutomation is deprecated and it supports XCUI Test. So if you have written the desired capability for automation name as UI Automation, change it to

desiredcapabilities.setCapability(“AutomationName” , “XCUITest”);
Also, Xcode 8+ works only with appium 1.6+. So upgrade your appium to the latest version.

1 Like

I am using Xcode 9.2, this is the version app store is providing now.
Appium version is 1.7
what shall I do now?

@Ankit_Jain1

Please add below desiredcapability in ur code

desiredcapabilities.setCapability(“AutomationName” , “XCUITest”);

1 Like