capabilities.setSDKVersion(ClassicCommands.getDefaultSDK());
} else {
String version = capabilities.getSDKVersion();
if (!new IOSVersion(version).isGreaterOrEqualTo("5.0")) {
throw new SessionNotCreatedException(
version + " is too old. Only support SDK 5.0 and above.");
}
if (capabilities.isSimulator()) {
if (!server.getHostInfo().getInstalledSDKs().contains(version)) {
throw new SessionNotCreatedException(
"Cannot start on version " + version + ".Installed: "
+ server.getHostInfo().getInstalledSDKs());
}
}
}