Getting error after update to 1.6.0-beta1


I just encountered a problem after upgrade Xcode to version 8 that is I cannot open the simulator for test. And I tried to update Appium to 1.6.0-beta1 and set the automation_name as XCUITest. Here comes another error says:
Details: The desiredCapabilities object was not valid for the following reason(s): automationName XCUITest not part of Appium,Selendroid,WebDriverAgent. (WARNING: The server did not provide any stacktrace information)

Is there any solution for it?
Or any other steps I just missed?


@AnTing_Tsai: CAn you please share the desired capabilities ?

Here is the setting:

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, “XCUITest”);
capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, “”);
capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, “9.3”);
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, “iPhone 6”);


Try the capability this way : “capabilities.setCapability(“automationName”, “XCUITest”);”