if (config.getProperty("deviceType").equalsIgnoreCase("Real Device")) {
capabilitiesIos.setCapability("xcodeConfigFile", TestBaseUtility.getFilePath(config.getProperty("iOSxConfigPath"), config.getProperty("iOSxConfigFileName")).getAbsolutePath());
capabilitiesIos.setCapability("app", TestBaseUtility.getFilePath(config.getProperty("iOSAppIpaPath"), config.getProperty("iOSAppIpaName")).getAbsolutePath());
capabilitiesIos.setCapability("udid", config.getProperty("deviceUdId"));
capabilitiesIos.setCapability("agentPath","/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj");
capabilitiesIos.setCapability("bootstrapPath","/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent");
} else {
File appDir = new File(config.getProperty("iOSApplicationPath"));
File app = new File(appDir, config.getProperty("iOSAppName"));
capabilitiesIos.setCapability("app", app.getAbsolutePath());
}
capabilitiesIos.setCapability("platformName", config.getProperty("iOSPlatformName"));
capabilitiesIos.setCapability("deviceName", config.getProperty("deviceName"));
capabilitiesIos.setCapability("bundleid", config.getProperty("bundleID"));
capabilitiesIos.setCapability("automationName", config.getProperty("automationName"));
//capabilitiesIos.setCapability("clearSystemFiles", true);
capabilitiesIos.setCapability("realDeviceLogger", config.getProperty("realDeviceLogger"));
driver = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilitiesIos);