How to run appium for real iOS Devices


#1

Hi i am facing some issues when try to run on the real device like it couldnt find the webdriver agent for the device…Anything needed to rectify this.
DesiredCapabilities dc = new DesiredCapabilities();
dc.setCapability(MobileCapabilityType.PLATFORM_NAME, “iOS”);
dc.setCapability(MobileCapabilityType.PLATFORM_VERSION, “11.2”);
dc.setCapability(MobileCapabilityType.DEVICE_NAME, “iPhone 6s”);
dc.setCapability(“udid”, “ef63f6ac3eed8be6e33d65596a562674538fa431”);
dc.setCapability(“automationName”,“XCUITest”);
dc.setCapability(“showXCodeLog”,“true”);
dc.setCapability(“showIOSLog”,“true”);
dc.setCapability(“xcodeSigningId”,“iPhone Developer”);

  dc.setCapability("useNewWDA","true");
 // dc.setCapability(MobileCapabilityType.UDID, "ef63f6ac3eed8be6e33d65596a562674538fa431");
  //com.finnair.linemaintenance.mechanic.dev
  dc.setCapability("app","com.fiir.linemaintenance.mechanic.dev");
  //dc.setCapability(MobileCapabilityType.APP,"/Users/sivaranjani/Documents/FieldEngineer.app" );
  driver = new IOSDriver<MobileElement>(new URL("http://127.0.0.1:4723/wd/hub"), dc);
  System.out.println("SetUp has done");
wait = new WebDriverWait(driver,50);

#2

Follow instructions mentioned in below links

  1. https://github.com/appium/appium/blob/master/docs/en/drivers/ios-xcuitest-real-devices.md

  2. https://github.com/appium/appium/blob/master/docs/en/drivers/ios-xcuitest.md


#3

Thanks for the information.Really helped a lot