I have a doubt about the ios app configuration setup
@BeforeClass
public void configuration() throws MalformedURLException {
HashMap<String, String> environment = new HashMap<String, String>();
environment.put(“PATH”, “/usr/local/bin:” + System.getenv(“PATH”));
AppiumServiceBuilder builder = new AppiumServiceBuilder();
builder.withAppiumJS(new File("/usr/local/lib/node_modules/appium/build/lib/main.js"))
.usingDriverExecutable(new File("/usr/local/bin/node")).usingPort(4723).withEnvironment(environment)
.withArgument(GeneralServerFlag.LOCAL_TIMEZONE).withLogFile(new File("AppiumLog.txt"));
service = AppiumDriverLocalService.buildService(builder);
XCUITestOptions options=new XCUITestOptions();
options.setDeviceName("iPhone 15 Pro");
options.setApp("/Users/vk14/git/UserApplication/src/test/java/resources/user_app_staging.app");
options.setPlatformName("17.0");
options.setWdaLaunchTimeout(Duration.ofSeconds(30));
driver = new IOSDriver(new URL("http://127.0.0.1:4723"), options);
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(40));
}
Then I run the appium inspector, then one error message is showing
"Failed to create session. An unknown server-side error occurred while processing the command. Original error: Could not determine iOS SDK version: Command ‘xcrun --sdk iphonesimulator --show-sdk-version’ exited with code 1: xcrun: error: SDK “iphonesimulator” cannot be located xcrun: error: SDK “iphonesimulator” cannot be located xcrun: error: unable to lookup item ‘SDKVersion’ in SDK ‘iphonesimulator’ "