File appFile = ZipUtils.extractAppFromURL(appURL);
if (appFile.getName().endsWith(".app")) {
capabilities.setCapability(IOSCapabilities.SIMULATOR, true);
}
APPIOSApplication app = APPIOSApplication.createFrom(appFile);
AppleLanguage lang = AppleLanguage.valueOf(capabilities.getLanguage());
return app.createInstance(lang);
} catch (Exception ex) {
throw new SessionNotCreatedException("cannot create app from " + appURL + ": " + ex);
}