Unable to create Safari browser session on real device iPhone 14 Pro Max (OS: 17.1.1)

macOs sonoma verson 14.3.1
Xcode Version 15.2 (15C500b)
Appium Server: 2.5.1
java-client: 8.6.0
selenium-java: 4.12.0

iOS Simulator:
Automation name: XCUITest
Browser Name: Safari
Observation: Working on Safari and interactions are happening.

iOS Real Device(iPhone 14 Pro Max (OS: 17.1.1)):
Automation name: Safari
Browser Name: Safari
Observation: Able to launch application but interactions are not happening.

iOS Real Device(iPhone 14 Pro Max (OS: 17.1.1)):
Automation name: XCUITest
Browser Name: Safari
Observation: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: ‘17.1.1’ does not exist in the list of simctl SDKs. Only the following Simulator SDK versions are available on your system: 17.2, 17.0

Below is the code:
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability(“w3c”, true);
caps.setCapability(“platformName”, “iOS”);
caps.setCapability(“appium:platformVersion”, “17.1.1”);
caps.setCapability(“appium:deviceName”, “iPhone 15 Pro Max”);
caps.setCapability(“appium:UDID” , “XXXXXXXX-2DB8-4042-BF7F-XXXXXXX”);
caps.setCapability(“appium:automationName” , “XCUITest”);
caps.setCapability(“browserName”, “Safari”);
URL url = new URL(“http://127.0.0.1:4723/”);
AppiumDriver driver = new IOSDriver(url, caps);

@mykola-mokhnach please advice me if I missing anything.

carefully read the server logs. It for sure contains some hints

1 Like