Appium session fails to start preventing driver initialization for IOS. I am using Xcode Simulator for iOS app

Dear Support team,

I am for trying to setup Appium for an assignment to automate an iOS app. I am using macOS. I have setup Xcode and able to run the iOS app in a simulator. Below are the system & tools details:

  1. macOS 13.3.1
  2. Xcode 14.3
  3. Xcode >> Project >> deployment target = 16.4
  4. Xcode >> Target >> Minimum deployment = 16.4
  5. Appium server installed with -g option on MacOS
  6. appium --version is 2.0.0-beta.71
  7. [email protected]
  8. Programming language - Java
  9. JDK version 17
  10. Build tool - Maven
  11. Test Framework - JUnit 4.13.2
    1. java-client v8.5.0
  12. Selenium-java v 4.9.1

Here are my project files.

  1. Sample test file snippet:
package com.example;

import com.example.service.AppiumDriverService;
import io.appium.java_client.ios.IOSDriver;
import io.appium.java_client.service.local.AppiumDriverLocalService;
import org.junit.*;

public class AppiumDriverServiceTest {
    private AppiumDriverService appiumDriverService;
    private IOSDriver iosDriver;

    private AppiumDriverLocalService appiumDriverLocalService;

    @Before
    public void setup(){
        appiumDriverService = AppiumDriverService.getAppiumDriverServiceInstance();
        appiumDriverLocalService = appiumDriverService.startAppiumService();
        iosDriver = appiumDriverService.initDriver();
    }

    @After
    public void teardown(){
        //Appium Service will continue to run in this case.
        appiumDriverService.quitDriver(iosDriver);
        appiumDriverService.stopAppiumService(appiumDriverLocalService);
    }
    @Test
    public void test(){
        System.out.println("test is good.");
    }
}

  1. Appium service class file
package com.example.service;

import io.appium.java_client.AppiumDriver;
import io.appium.java_client.ios.IOSDriver;
import io.appium.java_client.remote.MobileCapabilityType;
import io.appium.java_client.service.local.AppiumDriverLocalService;
import io.appium.java_client.service.local.AppiumServiceBuilder;
import io.appium.java_client.service.local.flags.GeneralServerFlag;
import jakarta.inject.Singleton;
import org.openqa.selenium.remote.DesiredCapabilities;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;

//import static jdk.internal.logger.LoggerFinderLoader.service;

@Singleton
public final class AppiumDriverService {

    private static AppiumDriverService appiumDriverService;

    private AppiumDriver appiumDriver;
    private AppiumDriverService(){

    }

    public static AppiumDriverService getAppiumDriverServiceInstance(){
        if(appiumDriverService == null) {
            appiumDriverService = new AppiumDriverService();
        }
        return appiumDriverService;
    }

    public IOSDriver initDriver(){
        String appiumServerPath = "/usr/local/bin/node_modules/appium";
        String appiumServerURLStr = "http://localhost:4723/wd/hub";

        DesiredCapabilities desiredCapabilities = setDesiredCapabilities();
        IOSDriver iosDriver = startDriver(appiumServerURLStr, desiredCapabilities);

        return iosDriver;
    }

    AppiumDriverLocalService appiumDriverLocalService;
    AppiumServiceBuilder appiumServiceBuilder;

    /**
     * Start Appium service first.
     * @param
     */
    public AppiumDriverLocalService startAppiumService(){
        appiumDriverLocalService =
                new AppiumServiceBuilder()
                .usingDriverExecutable(new File("/usr/local/bin/node"))
                .withAppiumJS(new File("/usr/local/lib/node_modules/appium/build/lib/main.js"))
                .withIPAddress("127.0.0.1")
                .withArgument(GeneralServerFlag.LOCAL_TIMEZONE)
                .usingPort(4723)
                .build();
        appiumDriverLocalService.clearOutPutStreams();
        appiumDriverLocalService.start();

        // Print the Appium server URL
        String appiumServerUrl = appiumDriverLocalService.getUrl().toString();
        System.out.println("Appium Server started: " + appiumServerUrl);
        return appiumDriverLocalService;
    }

    /**
     * Start the Driver.
     * @param serverUrlStr
     * @param desiredCapabilities
     * @return
     */
    private IOSDriver startDriver(String serverUrlStr, DesiredCapabilities desiredCapabilities){
        URL appiumServerURL = null;
        try {
            appiumServerURL = new URL(serverUrlStr);
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
        assert appiumServerURL != null;
        return new IOSDriver(appiumServerURL, desiredCapabilities);
    }

    /**
     * Stop the driver before stopping Appium Service.
     * @param iosDriver
     */
    public void quitDriver(IOSDriver iosDriver){
        if (iosDriver != null) {
            iosDriver.quit();
        }
    }

    /**
     * Stop Appium Service after quiting the driver.
     * @param appiumDriverLocalService
     */
    public void stopAppiumService(AppiumDriverLocalService appiumDriverLocalService){
        if (appiumDriverLocalService.isRunning()) {
            appiumDriverLocalService.stop();
        }
    }

    private DesiredCapabilities setDesiredCapabilities(){
        // Set the desired capabilities
        DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
        desiredCapabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
        desiredCapabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "16.4");
        desiredCapabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Xcode simulator");
        desiredCapabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
        // Set the path to the app file (.app or .ipa)
        desiredCapabilities.setCapability(MobileCapabilityType.APP, "<path-to-iOsApp.app>");

        return desiredCapabilities;
    }
}
  1. POM.XML file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.example</groupId>
  <artifactId>ios_test</artifactId>
  <version>0.1</version>
  <packaging>${packaging}</packaging>

  <parent>
    <groupId>io.micronaut</groupId>
    <artifactId>micronaut-parent</artifactId>
    <version>3.9.1</version>
  </parent>

  <properties>
    <packaging>jar</packaging>
    <jdk.version>17</jdk.version>
    <release.version>17</release.version>
    <micronaut.version>3.9.1</micronaut.version>
    <exec.mainClass>com.example.Ios_testCommand</exec.mainClass>
  </properties>

  <repositories>
    <repository>
      <id>central</id>
      <url>https://repo.maven.apache.org/maven2</url>
    </repository>
  </repositories>

  <dependencies>
    <dependency>
      <groupId>io.appium</groupId>
      <artifactId>java-client</artifactId>
      <version>8.5.0</version>
    </dependency>
    <dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-java</artifactId>
      <version>4.9.1</version>
    </dependency>
    <dependency>
      <groupId>io.micronaut</groupId>
      <artifactId>micronaut-http-client</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>info.picocli</groupId>
      <artifactId>picocli</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut</groupId>
      <artifactId>micronaut-jackson-databind</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut.picocli</groupId>
      <artifactId>micronaut-picocli</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>jakarta.annotation</groupId>
      <artifactId>jakarta.annotation-api</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut.test</groupId>
      <artifactId>micronaut-test-junit5</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.13.2</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>io.micronaut.build</groupId>
        <artifactId>micronaut-maven-plugin</artifactId>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <!-- Uncomment to enable incremental compilation -->
          <!-- <useIncrementalCompilation>false</useIncrementalCompilation> -->

          <annotationProcessorPaths combine.children="append">
            <path>
              <groupId>info.picocli</groupId>
              <artifactId>picocli-codegen</artifactId>
              <version>${picocli.version}</version>
            </path>
          </annotationProcessorPaths>
          <compilerArgs>
            <arg>-Amicronaut.processing.group=com.example</arg>
            <arg>-Amicronaut.processing.module=ios_test</arg>
          </compilerArgs>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>

I have been through a series of issues in the last couple of weeks to make a sample test work so I can learn the basics. But here feel I am stuck. I am new to mobile automation and am unsure how I can fix this one.

I have tried -

  1. upgrading the server version,
  2. Make sure the compatibility between Appium Server, java-client & selenium is correct, as explained in some of the other questions that were asked.
  3. Running the server on different ports, and
  4. tries various Capabilities

But I had no luck!

When I run my test, i get the following output:

Connected to the target VM, address: '127.0.0.1:54962', transport: 'socket'
Appium Server started: http://127.0.0.1:4723/

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 404. Message: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource 
Host info: host: 'dsa207548', ip: 'fe80:0:0:0:8b6:cd51:acf8:917e%en0'
Build info: version: '4.9.1', revision: 'eb2032df7f'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '13.3.1', java.version: '17.0.2'
Driver info: io.appium.java_client.ios.IOSDriver
Command: [null, newSession {capabilities=[{appium:app=<<path-to-iOsApp.app>>, appium:automationName=XCUITest, appium:deviceName=Xcode simulator, platformName=IOS, appium:platformVersion=16.4}], desiredCapabilities=Capabilities {app: <path-to-iOsApp.app>, automationName: XCUITest, deviceName: Xcode simulator, platformName: IOS, platformVersion: 16.4}}]
Capabilities {app: <path-to-iOsApp.app>, automationName: XCUITest, deviceName: Xcode simulator, platformName: IOS, platformVersion: 16.4}

	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:136)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:133)
	at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:102)
	at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:182)
	at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:250)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
	at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:274)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:157)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:89)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:101)
	at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:104)
	at com.example.service.AppiumDriverService.startDriver(AppiumDriverService.java:114)
	at com.example.service.AppiumDriverService.initDriver(AppiumDriverService.java:42)
	at com.example.AppiumDriverServiceTest.setup(AppiumDriverServiceTest.java:18)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
	at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)

When I was debugging the test, I observed that after appiumDriverLocalService.start(); the appium server status appears to be this -

{"status":9,"value":{"error":"unknown command","message":"The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource","stacktrace":""}}

And the value of -

appiumDriverLocalService.isRunning()

is

true.

    String appiumServerURLStr = "http://localhost:4723/wd/hub";

And then in the log:

Appium Server started: http://127.0.0.1:4723/

Does this look ok for you?

1 Like

Hi, thank you for looking at my query and helping.

I can update
String appiumServerURLStr = "http://localhost:4723/wd/hub"
to
http://127.0.0.1:4723/.

But I am not using this string for starting Appium server. It is used for IOS driver initialization. I am trying to go step by step, and my primary idea is to run the Appium server successfully.

I made a small change in the code while trying a few more ways. I am doing this now instead.

appiumDriverLocalService = AppiumDriverLocalService.buildDefaultService();
appiumDriverLocalService.start();

And this produces a little more info in the log:

Connected to the target VM, address: '127.0.0.1:62862', transport: 'socket'
[Appium] Welcome to Appium v2.0.0-beta.71
[Appium] Attempting to load driver xcuitest...
[debug] [Appium] Requiring driver at /Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver
[Appium] Attempting to load driver uiautomator2...
[debug] [Appium] Requiring driver at /Users/akshat.tambe/.appium/node_modules/appium-uiautomator2-driver
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[Appium] Available drivers:
[Appium]   - [email protected] (automationName 'XCUITest')
[Appium]   - [email protected] (automationName 'UiAutomator2')
[Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
[HTTP] --> GET /status
[HTTP] {}
[debug] [AppiumDriver@1956] Calling AppiumDriver.getStatus() with args: []
[debug] [AppiumDriver@1956] Responding to client with driver.getStatus() result: {"build":{"version":"2.0.0-beta.71"}}
[HTTP] <-- GET /status 200 6 ms - 47
[HTTP] 
Appium Server started: http://0.0.0.0:4723/
[debug] [HTTP] Request idempotency key: 3fb79466-6be1-4f45-a965-bccf30ed38b7
[HTTP] --> POST /session
[HTTP] {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"appium:app":"/Users/akshat.tambe/Downloads/UIKitCatalog.app","appium:automationName":"XCUITest","appium:deviceName":"Xcode simulator","appium:platformVersion":"16.4","platformName":"IOS"}}}
[debug] [AppiumDriver@1956] Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{}],"alwaysMatch":{"appium:app":"/Users/akshat.tambe/Downloads/UIKitCatalog.app","appium:automationName":"XCUITest","appium:deviceName":"Xcode simulator","appium:platformVersion":"16.4","platformName":"IOS"}}]
[debug] [AppiumDriver@1956] Event 'newSessionRequested' logged at 1684710785774 (01:13:05 GMT+0200 (Central European Summer Time))
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'IOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver
[debug] [Appium] Requiring driver at /Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver
[AppiumDriver@1956] Appium v2.0.0-beta.71 creating new XCUITestDriver (v4.29.2) session
[AppiumDriver@1956] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@1956] Appium's BaseDriver version is 9.3.10
[AppiumDriver@1956] XCUITestDriver's BaseDriver version is 9.3.10
[debug] [XCUITestDriver@12af] Creating session with W3C capabilities: {
[debug] [XCUITestDriver@12af]   "alwaysMatch": {
[debug] [XCUITestDriver@12af]     "platformName": "IOS",
[debug] [XCUITestDriver@12af]     "appium:app": "/Users/akshat.tambe/Downloads/UIKitCatalog.app",
[debug] [XCUITestDriver@12af]     "appium:automationName": "XCUITest",
[debug] [XCUITestDriver@12af]     "appium:deviceName": "Xcode simulator",
[debug] [XCUITestDriver@12af]     "appium:platformVersion": "16.4"
[debug] [XCUITestDriver@12af]   },
[debug] [XCUITestDriver@12af]   "firstMatch": [
[debug] [XCUITestDriver@12af]     {}
[debug] [XCUITestDriver@12af]   ]
[debug] [XCUITestDriver@12af] }
[XCUITestDriver@12af (bae0b750)] Session created with session id: bae0b750-9f99-4f09-88f5-3bb30321297c
[debug] [XCUITest] Current user: 'akshat.tambe'
[XCUITestDriver@12af (bae0b750)] iOS SDK Version set to '16.4'
[XCUITestDriver@12af (bae0b750)] Simulator udid not provided
[XCUITestDriver@12af (bae0b750)] Using desired caps to create a new simulator
[debug] [simctl] Creating simulator with name 'appiumTest-435AA0C3-A4D4-46ED-BB96-4CE00EC35B1D-Xcode simulator', device type id 'Xcode simulator' and runtime id 'com.apple.CoreSimulator.SimRuntime.iOS-16-4'
[debug] [simctl] Error running 'create': Invalid device type: Xcode simulator
[XCUITestDriver@12af (bae0b750)] {}
[DevCon Factory] Neither device UDID nor local port is set. Did not know how to release the connection
[debug] [AppiumDriver@1956] Event 'newSessionStarted' logged at 1684710786456 (01:13:06 GMT+0200 (Central European Summer Time))
[debug] [AppiumDriver@1956] Encountered internal error running command: Error: Could not create simulator with name 'appiumTest-435AA0C3-A4D4-46ED-BB96-4CE00EC35B1D-Xcode simulator', device type id 'Xcode simulator', with runtime ids 'com.apple.CoreSimulator.SimRuntime.iOS-16-4'
[debug] [AppiumDriver@1956]     at Simctl.createDevice (/Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver/node_modules/node-simctl/lib/subcommands/create.js:89:11)
[debug] [AppiumDriver@1956]     at createSim (/Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver/lib/simulator-management.js:41:16)
[debug] [AppiumDriver@1956]     at XCUITestDriver.createSim (/Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:1365:17)
[debug] [AppiumDriver@1956]     at XCUITestDriver.determineDevice (/Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:1315:20)
[debug] [AppiumDriver@1956]     at XCUITestDriver.start (/Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:482:40)
[debug] [AppiumDriver@1956]     at XCUITestDriver.createSession (/Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:398:7)
[debug] [AppiumDriver@1956]     at AppiumDriver.createSession (/usr/local/lib/node_modules/appium/lib/appium.js:346:35)
[HTTP] <-- POST /session 500 706 ms - 900
[HTTP] 
Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Could not create simulator with name 'appiumTest-435AA0C3-A4D4-46ED-BB96-4CE00EC35B1D-Xcode simulator', device type id 'Xcode simulator', with runtime ids 'com.apple.CoreSimulator.SimRuntime.iOS-16-4' 
Host info: host: 'dsa207548', ip: 'fe80:0:0:0:8b6:cd51:acf8:917e%en0'
Build info: version: '4.9.1', revision: 'eb2032df7f'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '13.3.1', java.version: '17.0.2'
Driver info: io.appium.java_client.ios.IOSDriver
Command: [null, newSession {capabilities=[{appium:app=/Users/akshat.tambe/Downloads/UIKitCatalog.app, appium:automationName=XCUITest, appium:deviceName=Xcode simulator, platformName=IOS, appium:platformVersion=16.4}], desiredCapabilities=Capabilities {app: /Users/akshat.tambe/Downloa..., automationName: XCUITest, deviceName: Xcode simulator, platformName: IOS, platformVersion: 16.4}}]
Capabilities {app: /Users/akshat.tambe/Downloa..., automationName: XCUITest, deviceName: Xcode simulator, platformName: IOS, platformVersion: 16.4}
[HTTP] --> GET /status
[HTTP] {}
[debug] [AppiumDriver@1956] Calling AppiumDriver.getStatus() with args: []
[debug] [AppiumDriver@1956] Responding to client with driver.getStatus() result: {"build":{"version":"2.0.0-beta.71"}}
[HTTP] <-- GET /status 200 1 ms - 47
[HTTP] 
false

java.lang.RuntimeException: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Could not create simulator with name 'appiumTest-435AA0C3-A4D4-46ED-BB96-4CE00EC35B1D-Xcode simulator', device type id 'Xcode simulator', with runtime ids 'com.apple.CoreSimulator.SimRuntime.iOS-16-4' 
Host info: host: 'dsa207548', ip: 'fe80:0:0:0:8b6:cd51:acf8:917e%en0'
Build info: version: '4.9.1', revision: 'eb2032df7f'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '13.3.1', java.version: '17.0.2'
Driver info: io.appium.java_client.ios.IOSDriver
Command: [null, newSession {capabilities=[{appium:app=/Users/akshat.tambe/Downloads/UIKitCatalog.app, appium:automationName=XCUITest, appium:deviceName=Xcode simulator, platformName=IOS, appium:platformVersion=16.4}], desiredCapabilities=Capabilities {app: /Users/akshat.tambe/Downloa..., automationName: XCUITest, deviceName: Xcode simulator, platformName: IOS, platformVersion: 16.4}}]
Capabilities {app: /Users/akshat.tambe/Downloa..., automationName: XCUITest, deviceName: Xcode simulator, platformName: IOS, platformVersion: 16.4}

	at com.example.service.AppiumDriverService.startDriver(AppiumDriverService.java:120)
	at com.example.service.AppiumDriverService.initDriver(AppiumDriverService.java:44)
	at com.example.AppiumDriverServiceTest.setup(AppiumDriverServiceTest.java:18)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
	at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Could not create simulator with name 'appiumTest-435AA0C3-A4D4-46ED-BB96-4CE00EC35B1D-Xcode simulator', device type id 'Xcode simulator', with runtime ids 'com.apple.CoreSimulator.SimRuntime.iOS-16-4' 
Host info: host: 'dsa207548', ip: 'fe80:0:0:0:8b6:cd51:acf8:917e%en0'
Build info: version: '4.9.1', revision: 'eb2032df7f'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '13.3.1', java.version: '17.0.2'
Driver info: io.appium.java_client.ios.IOSDriver
Command: [null, newSession {capabilities=[{appium:app=/Users/akshat.tambe/Downloads/UIKitCatalog.app, appium:automationName=XCUITest, appium:deviceName=Xcode simulator, platformName=IOS, appium:platformVersion=16.4}], desiredCapabilities=Capabilities {app: /Users/akshat.tambe/Downloa..., automationName: XCUITest, deviceName: Xcode simulator, platformName: IOS, platformVersion: 16.4}}]
Capabilities {app: /Users/akshat.tambe/Downloa..., automationName: XCUITest, deviceName: Xcode simulator, platformName: IOS, platformVersion: 16.4}
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:136)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:133)
	at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:102)
	at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:182)
	at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:250)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
	at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:274)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:157)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:89)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:101)
	at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:104)
	at com.example.service.AppiumDriverService.startDriver(AppiumDriverService.java:117)
	... 31 more

Disconnected from the target VM, address: '127.0.0.1:62862', transport: 'socket'

Process finished with exit code 255

Hi,

Another change that I made is. fixed the DEVICE_NAME:

MobileCapabilityType.DEVICE_NAME, "iPhone 12"

It now appear to run Appium server, create an IOS driver and my dummy test and then clean up. However I am not confident how it manages to work like this.

Here is the log from the latest run:

/Users/akshat.tambe/.sdkman/candidates/java/17.0.2-tem/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=63629:/Applications/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/junit/lib/junit5-rt.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/junit/lib/junit-rt.jar:/Users/akshat.tambe/Documents/myGitHub/volvo-cars-test/ios_test/target/test-classes:/Users/akshat.tambe/Documents/myGitHub/volvo-cars-test/ios_test/target/classes:/Users/akshat.tambe/.m2/repository/io/appium/java-client/8.5.0/java-client-8.5.0.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-api/4.9.1/selenium-api-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-remote-driver/4.9.1/selenium-remote-driver-4.9.1.jar:/Users/akshat.tambe/.m2/repository/com/beust/jcommander/1.82/jcommander-1.82.jar:/Users/akshat.tambe/.m2/repository/com/google/auto/service/auto-service-annotations/1.0.1/auto-service-annotations-1.0.1.jar:/Users/akshat.tambe/.m2/repository/com/google/auto/service/auto-service/1.0.1/auto-service-1.0.1.jar:/Users/akshat.tambe/.m2/repository/com/google/auto/auto-common/1.2/auto-common-1.2.jar:/Users/akshat.tambe/.m2/repository/com/google/guava/guava/31.1-jre/guava-31.1-jre.jar:/Users/akshat.tambe/.m2/repository/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar:/Users/akshat.tambe/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/Users/akshat.tambe/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/Users/akshat.tambe/.m2/repository/org/checkerframework/checker-qual/3.12.0/checker-qual-3.12.0.jar:/Users/akshat.tambe/.m2/repository/com/google/errorprone/error_prone_annotations/2.11.0/error_prone_annotations-2.11.0.jar:/Users/akshat.tambe/.m2/repository/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-buffer/4.1.91.Final/netty-buffer-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-codec-http/4.1.91.Final/netty-codec-http-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-common/4.1.91.Final/netty-common-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-transport-classes-epoll/4.1.91.Final/netty-transport-classes-epoll-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-transport-classes-kqueue/4.1.91.Final/netty-transport-classes-kqueue-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-transport-native-epoll/4.1.91.Final/netty-transport-native-epoll-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-transport-native-kqueue/4.1.91.Final/netty-transport-native-kqueue-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-transport-native-unix-common/4.1.91.Final/netty-transport-native-unix-common-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-transport/4.1.91.Final/netty-transport-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-resolver/4.1.91.Final/netty-resolver-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-api/1.19.0/opentelemetry-api-1.19.0.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-context/1.19.0/opentelemetry-context-1.19.0.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-exporter-logging/1.19.0/opentelemetry-exporter-logging-1.19.0.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-sdk-metrics/1.19.0/opentelemetry-sdk-metrics-1.19.0.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-sdk-logs/1.19.0-alpha/opentelemetry-sdk-logs-1.19.0-alpha.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-api-logs/1.19.0-alpha/opentelemetry-api-logs-1.19.0-alpha.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-sdk-common/1.19.0/opentelemetry-sdk-common-1.19.0.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-sdk-extension-autoconfigure-spi/1.19.0/opentelemetry-sdk-extension-autoconfigure-spi-1.19.0.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-sdk-extension-autoconfigure/1.19.0-alpha/opentelemetry-sdk-extension-autoconfigure-1.19.0-alpha.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-exporter-common/1.19.0/opentelemetry-exporter-common-1.19.0.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-sdk-trace/1.19.0/opentelemetry-sdk-trace-1.19.0.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-sdk/1.19.0/opentelemetry-sdk-1.19.0.jar:/Users/akshat.tambe/.m2/repository/io/opentelemetry/opentelemetry-semconv/1.19.0-alpha/opentelemetry-semconv-1.19.0-alpha.jar:/Users/akshat.tambe/.m2/repository/io/ous/jtoml/2.0.0/jtoml-2.0.0.jar:/Users/akshat.tambe/.m2/repository/net/bytebuddy/byte-buddy/1.14.4/byte-buddy-1.14.4.jar:/Users/akshat.tambe/.m2/repository/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar:/Users/akshat.tambe/.m2/repository/org/asynchttpclient/async-http-client/2.12.3/async-http-client-2.12.3.jar:/Users/akshat.tambe/.m2/repository/org/asynchttpclient/async-http-client-netty-utils/2.12.3/async-http-client-netty-utils-2.12.3.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-transport-native-epoll/4.1.91.Final/netty-transport-native-epoll-4.1.91.Final-linux-x86_64.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-transport-native-kqueue/4.1.91.Final/netty-transport-native-kqueue-4.1.91.Final-osx-x86_64.jar:/Users/akshat.tambe/.m2/repository/com/typesafe/netty/netty-reactive-streams/2.0.4/netty-reactive-streams-2.0.4.jar:/Users/akshat.tambe/.m2/repository/com/sun/activation/jakarta.activation/1.2.2/jakarta.activation-1.2.2.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-http/4.9.1/selenium-http-4.9.1.jar:/Users/akshat.tambe/.m2/repository/dev/failsafe/failsafe/3.3.1/failsafe-3.3.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-json/4.9.1/selenium-json-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-manager/4.9.1/selenium-manager-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-support/4.9.1/selenium-support-4.9.1.jar:/Users/akshat.tambe/.m2/repository/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar:/Users/akshat.tambe/.m2/repository/cglib/cglib/3.3.0/cglib-3.3.0.jar:/Users/akshat.tambe/.m2/repository/org/ow2/asm/asm/7.1/asm-7.1.jar:/Users/akshat.tambe/.m2/repository/commons-validator/commons-validator/1.7/commons-validator-1.7.jar:/Users/akshat.tambe/.m2/repository/commons-beanutils/commons-beanutils/1.9.4/commons-beanutils-1.9.4.jar:/Users/akshat.tambe/.m2/repository/commons-digester/commons-digester/2.1/commons-digester-2.1.jar:/Users/akshat.tambe/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/akshat.tambe/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/Users/akshat.tambe/.m2/repository/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar:/Users/akshat.tambe/.m2/repository/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar:/Users/akshat.tambe/.m2/repository/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-java/4.9.1/selenium-java-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-chrome-driver/4.9.1/selenium-chrome-driver-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-chromium-driver/4.9.1/selenium-chromium-driver-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-devtools-v111/4.9.1/selenium-devtools-v111-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-devtools-v112/4.9.1/selenium-devtools-v112-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-devtools-v113/4.9.1/selenium-devtools-v113-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-devtools-v85/4.9.1/selenium-devtools-v85-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-edge-driver/4.9.1/selenium-edge-driver-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-firefox-driver/4.9.1/selenium-firefox-driver-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-ie-driver/4.9.1/selenium-ie-driver-4.9.1.jar:/Users/akshat.tambe/.m2/repository/org/seleniumhq/selenium/selenium-safari-driver/4.9.1/selenium-safari-driver-4.9.1.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-http-client/3.9.1/micronaut-http-client-3.9.1.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-runtime/3.9.1/micronaut-runtime-3.9.1.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-http/3.9.1/micronaut-http-3.9.1.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-aop/3.9.1/micronaut-aop-3.9.1.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-context/3.9.1/micronaut-context-3.9.1.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-core-reactive/3.9.1/micronaut-core-reactive-3.9.1.jar:/Users/akshat.tambe/.m2/repository/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-http-client-core/3.9.1/micronaut-http-client-core-3.9.1.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-websocket/3.9.1/micronaut-websocket-3.9.1.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-http-netty/3.9.1/micronaut-http-netty-3.9.1.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-buffer-netty/3.9.1/micronaut-buffer-netty-3.9.1.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-codec-http2/4.1.91.Final/netty-codec-http2-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-handler/4.1.91.Final/netty-handler-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-handler-proxy/4.1.91.Final/netty-handler-proxy-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-codec/4.1.91.Final/netty-codec-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/netty/netty-codec-socks/4.1.91.Final/netty-codec-socks-4.1.91.Final.jar:/Users/akshat.tambe/.m2/repository/io/projectreactor/reactor-core/3.5.0/reactor-core-3.5.0.jar:/Users/akshat.tambe/.m2/repository/org/reactivestreams/reactive-streams/1.0.4/reactive-streams-1.0.4.jar:/Users/akshat.tambe/.m2/repository/info/picocli/picocli/4.6.3/picocli-4.6.3.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-jackson-databind/3.9.1/micronaut-jackson-databind-3.9.1.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-jackson-core/3.9.1/micronaut-jackson-core-3.9.1.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-json-core/3.9.1/micronaut-json-core-3.9.1.jar:/Users/akshat.tambe/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.14.2/jackson-core-2.14.2.jar:/Users/akshat.tambe/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.14.2/jackson-annotations-2.14.2.jar:/Users/akshat.tambe/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.14.2/jackson-databind-2.14.2.jar:/Users/akshat.tambe/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.14.2/jackson-datatype-jdk8-2.14.2.jar:/Users/akshat.tambe/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.14.2/jackson-datatype-jsr310-2.14.2.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/picocli/micronaut-picocli/4.3.0/micronaut-picocli-4.3.0.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-inject/3.9.1/micronaut-inject-3.9.1.jar:/Users/akshat.tambe/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar:/Users/akshat.tambe/.m2/repository/jakarta/inject/jakarta.inject-api/2.0.1/jakarta.inject-api-2.0.1.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/micronaut-core/3.9.1/micronaut-core-3.9.1.jar:/Users/akshat.tambe/.m2/repository/org/yaml/snakeyaml/2.0/snakeyaml-2.0.jar:/Users/akshat.tambe/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/akshat.tambe/.m2/repository/ch/qos/logback/logback-classic/1.2.11/logback-classic-1.2.11.jar:/Users/akshat.tambe/.m2/repository/ch/qos/logback/logback-core/1.2.11/logback-core-1.2.11.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/test/micronaut-test-junit5/3.9.2/micronaut-test-junit5-3.9.2.jar:/Users/akshat.tambe/.m2/repository/io/micronaut/test/micronaut-test-core/3.9.2/micronaut-test-core-3.9.2.jar:/Users/akshat.tambe/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.9.1/junit-jupiter-api-5.9.1.jar:/Users/akshat.tambe/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar:/Users/akshat.tambe/.m2/repository/org/junit/platform/junit-platform-commons/1.9.1/junit-platform-commons-1.9.1.jar:/Users/akshat.tambe/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar:/Users/akshat.tambe/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.9.1/junit-jupiter-engine-5.9.1.jar:/Users/akshat.tambe/.m2/repository/org/junit/platform/junit-platform-engine/1.9.1/junit-platform-engine-1.9.1.jar:/Users/akshat.tambe/.m2/repository/junit/junit/4.13.2/junit-4.13.2.jar:/Users/akshat.tambe/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 com.example.AppiumDriverServiceTest,test
[Appium] Welcome to Appium v2.0.0-beta.71
[Appium] Attempting to load driver xcuitest...
[debug] [Appium] Requiring driver at /Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver
[Appium] Attempting to load driver uiautomator2...
[debug] [Appium] Requiring driver at /Users/akshat.tambe/.appium/node_modules/appium-uiautomator2-driver
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[Appium] Available drivers:
[Appium]   - [email protected] (automationName 'XCUITest')
[Appium]   - [email protected] (automationName 'UiAutomator2')
[Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
[HTTP] --> GET /status
[HTTP] {}
[debug] [AppiumDriver@a8ef] Calling AppiumDriver.getStatus() with args: []
[debug] [AppiumDriver@a8ef] Responding to client with driver.getStatus() result: {"build":{"version":"2.0.0-beta.71"}}
[HTTP] <-- GET /status 200 6 ms - 47
[HTTP] 
Appium Server started: http://0.0.0.0:4723/
[debug] [HTTP] Request idempotency key: ee3207bf-7cfe-4507-a09e-1fc097647d27
[HTTP] --> POST /session
[HTTP] {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"appium:app":"/Users/akshat.tambe/Downloads/UIKitCatalog.app","appium:automationName":"XCUITest","appium:deviceName":"iPhone 12","appium:platformVersion":"16.4","platformName":"IOS"}}}
[debug] [AppiumDriver@a8ef] Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{}],"alwaysMatch":{"appium:app":"/Users/akshat.tambe/Downloads/UIKitCatalog.app","appium:automationName":"XCUITest","appium:deviceName":"iPhone 12","appium:platformVersion":"16.4","platformName":"IOS"}}]
[debug] [AppiumDriver@a8ef] Event 'newSessionRequested' logged at 1684712137302 (01:35:37 GMT+0200 (Central European Summer Time))
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'IOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver
[debug] [Appium] Requiring driver at /Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver
[AppiumDriver@a8ef] Appium v2.0.0-beta.71 creating new XCUITestDriver (v4.29.2) session
[AppiumDriver@a8ef] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@a8ef] Appium's BaseDriver version is 9.3.10
[AppiumDriver@a8ef] XCUITestDriver's BaseDriver version is 9.3.10
[debug] [XCUITestDriver@8004] Creating session with W3C capabilities: {
[debug] [XCUITestDriver@8004]   "alwaysMatch": {
[debug] [XCUITestDriver@8004]     "platformName": "IOS",
[debug] [XCUITestDriver@8004]     "appium:app": "/Users/akshat.tambe/Downloads/UIKitCatalog.app",
[debug] [XCUITestDriver@8004]     "appium:automationName": "XCUITest",
[debug] [XCUITestDriver@8004]     "appium:deviceName": "iPhone 12",
[debug] [XCUITestDriver@8004]     "appium:platformVersion": "16.4"
[debug] [XCUITestDriver@8004]   },
[debug] [XCUITestDriver@8004]   "firstMatch": [
[debug] [XCUITestDriver@8004]     {}
[debug] [XCUITestDriver@8004]   ]
[debug] [XCUITestDriver@8004] }
[XCUITestDriver@8004 (5e018676)] Session created with session id: 5e018676-82ab-429e-bd3a-ef119d3ec97c
[debug] [XCUITest] Current user: 'akshat.tambe'
[XCUITestDriver@8004 (5e018676)] iOS SDK Version set to '16.4'
[XCUITestDriver@8004 (5e018676)] Simulator udid not provided
[XCUITestDriver@8004 (5e018676)] Using desired caps to create a new simulator
[debug] [simctl] Creating simulator with name 'appiumTest-E37864AF-42F2-49BB-9FD6-3E7F20475818-iPhone 12', device type id 'iPhone 12' and runtime id 'com.apple.CoreSimulator.SimRuntime.iOS-16-4'
[iOSSim] Constructing iOS simulator for Xcode version 14.3 with udid '1A902A2B-0BD9-4359-A652-CCDC93159F60'
[XCUITestDriver@8004 (5e018676)] Created simulator with udid '1A902A2B-0BD9-4359-A652-CCDC93159F60'.
[XCUITestDriver@8004 (5e018676)] Determining device to run tests on: udid: '1A902A2B-0BD9-4359-A652-CCDC93159F60', real device: false
[debug] [XCUITestDriver@8004 (5e018676)] Event 'xcodeDetailsRetrieved' logged at 1684712138354 (01:35:38 GMT+0200 (Central European Summer Time))
[BaseDriver] Using local app '/Users/akshat.tambe/Downloads/UIKitCatalog.app'
[debug] [XCUITestDriver@8004 (5e018676)] Event 'appConfigured' logged at 1684712138356 (01:35:38 GMT+0200 (Central European Summer Time))
[debug] [XCUITest] Checking whether app '/Users/akshat.tambe/Downloads/UIKitCatalog.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [XCUITest] Getting bundle ID from app '/Users/akshat.tambe/Downloads/UIKitCatalog.app': 'com.example.apple-samplecode.UICatalog'
[debug] [XCUITestDriver@8004 (5e018676)] Event 'resetStarted' logged at 1684712138358 (01:35:38 GMT+0200 (Central European Summer Time))
[debug] [simctl] Error running 'terminate': An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405):
Unable to lookup in current state: Shutdown
[XCUITest] Reset: failed to terminate Simulator application with id "com.example.apple-samplecode.UICatalog"
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[debug] [XCUITestDriver@8004 (5e018676)] Event 'resetComplete' logged at 1684712138584 (01:35:38 GMT+0200 (Central European Summer Time))
[XCUITestDriver@8004 (5e018676)] Using WDA path: '/Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[XCUITestDriver@8004 (5e018676)] Using WDA agent: '/Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[XCUITest] Continuing without capturing device logs: iOS Simulator with udid '1A902A2B-0BD9-4359-A652-CCDC93159F60' is not running
[XCUITestDriver@8004 (5e018676)] Setting up simulator
[debug] [iOSSim] Setting preferences of 1A902A2B-0BD9-4359-A652-CCDC93159F60 Simulator to {"ConnectHardwareKeyboard":false}
[debug] [iOSSim] Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"StartLastDeviceOnLaunch":false,"DetachOnWindowClose":false,"AttachBootedOnStart":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false}
[debug] [iOSSim] Updated 1A902A2B-0BD9-4359-A652-CCDC93159F60 Simulator preferences at '/Users/akshat.tambe/Library/Preferences/com.apple.iphonesimulator.plist' with {"RotateWindowWhenSignaledByGuest":true,"StartLastDeviceOnLaunch":false,"DetachOnWindowClose":false,"AttachBootedOnStart":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false,"DevicePreferences":{"1A902A2B-0BD9-4359-A652-CCDC93159F60":{"ConnectHardwareKeyboard":false}}}
[debug] [iOSSim] Got Simulator UI client PID: 756
[debug] [XCUITestDriver@8004 (5e018676)] Parsed BUILD_DIR configuration value: '/Users/akshat.tambe/Library/Developer/Xcode/DerivedData/WebDriverAgent-cedkunfawvaauxagxubgoxcwigqz/Build/Products'
[debug] [XCUITestDriver@8004 (5e018676)] Got derived data root: '/Users/akshat.tambe/Library/Developer/Xcode/DerivedData/WebDriverAgent-cedkunfawvaauxagxubgoxcwigqz'
[iOSSim] Simulator with UDID 1A902A2B-0BD9-4359-A652-CCDC93159F60 booted in 32.847s
[debug] [XCUITestDriver@8004 (5e018676)] Event 'simStarted' logged at 1684712172284 (01:36:12 GMT+0200 (Central European Summer Time))
[debug] [IOSSimulatorLog] Starting log capture for iOS Simulator with udid '1A902A2B-0BD9-4359-A652-CCDC93159F60' using simctl
[debug] [XCUITestDriver@8004 (5e018676)] Event 'logCaptureStarted' logged at 1684712173571 (01:36:13 GMT+0200 (Central European Summer Time))
[debug] [XCUITest] Verifying application platform
[debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneSimulator"]
[debug] [simctl] Error running 'get_app_container': An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
The operation couldn’t be completed. No such file or directory
No such file or directory
[XCUITestDriver@8004 (5e018676)] App 'com.example.apple-samplecode.UICatalog' is not installed on the device yet
[debug] [XCUITest] Installing '/Users/akshat.tambe/Downloads/UIKitCatalog.app' on Simulator with UUID '1A902A2B-0BD9-4359-A652-CCDC93159F60'...
[debug] [XCUITest] The app has been installed successfully.
[debug] [XCUITestDriver@8004 (5e018676)] Event 'appInstalled' logged at 1684712178494 (01:36:18 GMT+0200 (Central European Summer Time))
[debug] [XCUITestDriver@8004 (5e018676)] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[DevCon Factory] Requesting connection for device 1A902A2B-0BD9-4359-A652-CCDC93159F60 on local port 8100
[debug] [DevCon Factory] Cached connections count: 0
[DevCon Factory] Successfully requested the connection for 1A902A2B-0BD9-4359-A652-CCDC93159F60:8100
[debug] [XCUITestDriver@8004 (5e018676)] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] WDA is not listening at 'http://127.0.0.1:8100/'
[debug] [XCUITestDriver@8004 (5e018676)] WDA is currently not running. There is nothing to cache
[debug] [XCUITestDriver@8004 (5e018676)] Trying to start WebDriverAgent 2 times with 10000ms interval
[debug] [XCUITestDriver@8004 (5e018676)] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [XCUITestDriver@8004 (5e018676)] Event 'wdaStartAttempted' logged at 1684712179211 (01:36:19 GMT+0200 (Central European Summer Time))
[XCUITestDriver@8004 (5e018676)] Launching WebDriverAgent on the device
[XCUITestDriver@8004 (5e018676)] WebDriverAgent does not need a cleanup. The sources are up to date (1684626360821 >= 1684626360821)
[debug] [WebDriverAgent] Killing running processes 'xcodebuild.*1A902A2B-0BD9-4359-A652-CCDC93159F60, 1A902A2B-0BD9-4359-A652-CCDC93159F60.*XCTRunner, xctest.*1A902A2B-0BD9-4359-A652-CCDC93159F60' for the device 1A902A2B-0BD9-4359-A652-CCDC93159F60...
[debug] [WebDriverAgent] 'pgrep -if 1A902A2B-0BD9-4359-A652-CCDC93159F60.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] 'pgrep -if xctest.*1A902A2B-0BD9-4359-A652-CCDC93159F60' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] 'pgrep -if xcodebuild.*1A902A2B-0BD9-4359-A652-CCDC93159F60' didn't detect any matching processes. Return code: 1
[debug] [XCUITestDriver@8004 (5e018676)] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/akshat.tambe/Library/Developer/Xcode/DerivedData/WebDriverAgent-cedkunfawvaauxagxubgoxcwigqz -destination id=1A902A2B-0BD9-4359-A652-CCDC93159F60 IPHONEOS_DEPLOYMENT_TARGET=16.4 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/akshat.tambe/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[debug] [XCUITestDriver@8004 (5e018676)] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability
[debug] [XCUITestDriver@8004 (5e018676)] Waiting up to 60000ms for WebDriverAgent to start
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[XCUITestDriver@8004 (5e018676)] connect ECONNREFUSED 127.0.0.1:8100
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [XCUITestDriver@8004 (5e018676)] Got response with status 200: {"value":{"message":"WebDriverAgent is ready to accept commands","state":"success","os":{"testmanagerdVersion":28,"name":"iOS","sdkVersion":"16.4","version":"16.4"},"ios":{"simulatorVersion":"16.4","ip":"192.168.0.32"},"ready":true,"build":{"upgradedAt":"1684626360821","time":"May 22 2023 01:28:36","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"}},"sessionId":null}
[debug] [XCUITestDriver@8004 (5e018676)] WebDriverAgent information:
[debug] [XCUITestDriver@8004 (5e018676)] {
[debug] [XCUITestDriver@8004 (5e018676)]   "message": "WebDriverAgent is ready to accept commands",
[debug] [XCUITestDriver@8004 (5e018676)]   "state": "success",
[debug] [XCUITestDriver@8004 (5e018676)]   "os": {
[debug] [XCUITestDriver@8004 (5e018676)]     "testmanagerdVersion": 28,
[debug] [XCUITestDriver@8004 (5e018676)]     "name": "iOS",
[debug] [XCUITestDriver@8004 (5e018676)]     "sdkVersion": "16.4",
[debug] [XCUITestDriver@8004 (5e018676)]     "version": "16.4"
[debug] [XCUITestDriver@8004 (5e018676)]   },
[debug] [XCUITestDriver@8004 (5e018676)]   "ios": {
[debug] [XCUITestDriver@8004 (5e018676)]     "simulatorVersion": "16.4",
[debug] [XCUITestDriver@8004 (5e018676)]     "ip": "192.168.0.32"
[debug] [XCUITestDriver@8004 (5e018676)]   },
[debug] [XCUITestDriver@8004 (5e018676)]   "ready": true,
[debug] [XCUITestDriver@8004 (5e018676)]   "build": {
[debug] [XCUITestDriver@8004 (5e018676)]     "upgradedAt": "1684626360821",
[debug] [XCUITestDriver@8004 (5e018676)]     "time": "May 22 2023 01:28:36",
[debug] [XCUITestDriver@8004 (5e018676)]     "productBundleIdentifier": "com.facebook.WebDriverAgentRunner"
[debug] [XCUITestDriver@8004 (5e018676)]   }
[debug] [XCUITestDriver@8004 (5e018676)] }
[debug] [XCUITestDriver@8004 (5e018676)] WebDriverAgent successfully started after 16397ms
[debug] [XCUITestDriver@8004 (5e018676)] Event 'wdaSessionAttempted' logged at 1684712195874 (01:36:35 GMT+0200 (Central European Summer Time))
[debug] [XCUITestDriver@8004 (5e018676)] Sending createSession command to WDA
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/session' to command name 'createSession'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.example.apple-samplecode.UICatalog","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"forceAppLaunch":true,"useNativeCachingStrategy":true,"forceSimulatorSoftwareKeyboardPresence":true}],"alwaysMatch":{}}}
[debug] [XCUITestDriver@8004 (5e018676)] Got response with status 200: {"value":{"sessionId":"AB1F8AAA-2A1D-4784-8BD6-3DD440823E44","capabilities":{"device":"iphone","browserName":"UIKitCatalog","sdkVersion":"16.4","CFBundleIdentifier":"com.example.apple-samplecode.UICatalog"}},"sessionId":"AB1F8AAA-2A1D-4784-8BD6-3DD440823E44"}
[XCUITestDriver@8004 (5e018676)] Determined the downstream protocol as 'W3C'
[debug] [XCUITestDriver@8004 (5e018676)] Event 'wdaSessionStarted' logged at 1684712198025 (01:36:38 GMT+0200 (Central European Summer Time))
[debug] [XCUITestDriver@8004 (5e018676)] Event 'wdaStarted' logged at 1684712198026 (01:36:38 GMT+0200 (Central European Summer Time))
[debug] [BaseDriver] The value of 'elementResponseAttributes' setting did not change. Skipping the update for it
[debug] [BaseDriver] The value of 'shouldUseCompactResponses' setting did not change. Skipping the update for it
[AppiumDriver@a8ef] New XCUITestDriver session created successfully, session 5e018676-82ab-429e-bd3a-ef119d3ec97c added to master session list
[debug] [AppiumDriver@a8ef] Event 'newSessionStarted' logged at 1684712198027 (01:36:38 GMT+0200 (Central European Summer Time))
[debug] [XCUITestDriver@8004 (5e018676)] Cached the protocol value 'W3C' for the new session 5e018676-82ab-429e-bd3a-ef119d3ec97c
[debug] [XCUITestDriver@8004 (5e018676)] Responding to client with driver.createSession() result: {"capabilities":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"platformName":"IOS","app":"/Users/akshat.tambe/Downloads/UIKitCatalog.app","automationName":"XCUITest","deviceName":"iPhone 12","platformVersion":"16.4","udid":"1A902A2B-0BD9-4359-A652-CCDC93159F60"}}
[HTTP] <-- POST /session 200 60727 ms - 475
[HTTP] 
test is good.
[HTTP] --> DELETE /session/5e018676-82ab-429e-bd3a-ef119d3ec97c
[HTTP] {}
[debug] [XCUITestDriver@8004 (5e018676)] Calling AppiumDriver.deleteSession() with args: ["5e018676-82ab-429e-bd3a-ef119d3ec97c"]
[debug] [AppiumDriver@a8ef] Event 'quitSessionRequested' logged at 1684712198102 (01:36:38 GMT+0200 (Central European Summer Time))
[AppiumDriver@a8ef] Removing session 5e018676-82ab-429e-bd3a-ef119d3ec97c from our master session list
[debug] [XCUITestDriver@8004 (5e018676)] Matched '/session/5e018676-82ab-429e-bd3a-ef119d3ec97c' to command name 'deleteSession'
[debug] [XCUITestDriver@8004 (5e018676)] Proxying [DELETE /session/5e018676-82ab-429e-bd3a-ef119d3ec97c] to [DELETE http://127.0.0.1:8100/session/AB1F8AAA-2A1D-4784-8BD6-3DD440823E44] with no body
[debug] [XCUITestDriver@8004 (5e018676)] Got response with status 200: {"value":null,"sessionId":null}
[DevCon Factory] Releasing connections for 1A902A2B-0BD9-4359-A652-CCDC93159F60 device on any port number
[DevCon Factory] Found cached connections to release: ["1A902A2B-0BD9-4359-A652-CCDC93159F60:8100"]
[debug] [DevCon Factory] Cached connections count: 0
[debug] [XCUITestDriver@8004 (5e018676)] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[debug] [XCUITestDriver@8004 (5e018676)] Deleting simulator created for this run (udid: '1A902A2B-0BD9-4359-A652-CCDC93159F60')
[debug] [WebDriverAgent] Killing running processes 'xcodebuild.*1A902A2B-0BD9-4359-A652-CCDC93159F60, 1A902A2B-0BD9-4359-A652-CCDC93159F60.*XCTRunner, xctest.*1A902A2B-0BD9-4359-A652-CCDC93159F60' for the device 1A902A2B-0BD9-4359-A652-CCDC93159F60...
[debug] [WebDriverAgent] 'pgrep -if 1A902A2B-0BD9-4359-A652-CCDC93159F60.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] 'pgrep -if xctest.*1A902A2B-0BD9-4359-A652-CCDC93159F60' didn't detect any matching processes. Return code: 1
[Xcode] xcodebuild exited with code '75' and signal 'null'
[debug] [AppiumDriver@a8ef] Event 'quitSessionFinished' logged at 1684712203761 (01:36:43 GMT+0200 (Central European Summer Time))
[debug] [AppiumDriver@a8ef] Received response: null
[debug] [AppiumDriver@a8ef] But deleting session, so not returning
[debug] [AppiumDriver@a8ef] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /session/5e018676-82ab-429e-bd3a-ef119d3ec97c 200 5661 ms - 14
[HTTP] 
[HTTP] --> GET /status
[HTTP] {}
[debug] [AppiumDriver@a8ef] Calling AppiumDriver.getStatus() with args: []
[debug] [AppiumDriver@a8ef] Responding to client with driver.getStatus() result: {"build":{"version":"2.0.0-beta.71"}}
[HTTP] <-- GET /status 200 1 ms - 47
[HTTP] 
false

Process finished with exit code 0

Next step is to create a few page objects and do a simple assert.

Thanks for the help. I have the Appium service now running, and I am able to initialize the ios driver.

The changes from the last two comments worked. I appreciate your help.

Kind Regards