This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
5 / 5
Mar 2018

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

  • created

    Mar '18
  • last reply

    Mar '18
  • 4

    replies

  • 1.8k

    views

  • 3

    users

  • 1

    link

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.

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”);