I want to test a native app on a real ios device. For now i have installed xcode 8.3, appium server 1.6.4. And i am using mac OS 10.12. i have included webdriver, java client jars on eclipse

public class appiumtest {
public static void main(String[] args) throws MalformedURLException {
WebDriver driver;
DesiredCapabilities capabilities= new DesiredCapabilities();
capabilities.setCapability(“deviceName”, “Nisha iphone”);
capabilities.setCapability(CapabilityType.BROWSER_NAME, “ios”);
capabilities.setCapability(CapabilityType.VERSION, “10.2”);
capabilities.setCapability(“platformName”, “ios”);
capabilities.setCapability(“udid”, “9ded1b716dd992f715f7b673ff6fd1ce7606860f”);
capabilities.setCapability(“appPackage”, “xxx”);
capabilities.setCapability(“appActivity”, “xxx”);
capabilities.setCapability(“appWaitActivity”, “xxx”);
driver=new RemoteWebDriver(new URL(“”), capabilities);
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
WebDriverWait wait = new WebDriverWait(driver, 50);


Thats my code. And i get this error :Exception in thread “main” org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{browserName=ios, platformName=ios, udid=9ded1b716dd992f715f7b673ff6fd1ce7606860f, deviceName=Nisha iphone, version=10.2}], required capabilities = Capabilities [{}] Build info: version: ‘unknown’, revision: ‘5234b32’, time: ‘2017-03-10 09:00:17 -0800’

Can i know the exact steps for setting up appium on mac for testing ios applications. I have been reading a lot of stuff in google, but none of them gave me a clear idea how to do the setup clearly for mac

I think the Sauce Labs bootcamp is pretty good:


It includes sample apps and tests that you can run. It’s a decent tutorial/reference.

have you looked at your errors, in your output whats unknown. maybe fixing that versionNumber and adding into your desired Capabilities will help. It literally says unknown right there…