I am able to run appium scripts using iOS simulator successfully on my machine locally. But its failing on the CircleCI. Here is the log from CircleCI. How to resolve this…please
CircleCI log:
mobileautomation@1.0.0 wdio:ios
wdio run ./wdio.conf.ios.ts
Execution of 1 workers started at 2024-07-24T15:21:56.783Z
2024-07-24T15:21:56.798Z INFO @wdio/cli:launcher: Run onPrepare hook
2024-07-24T15:21:56.802Z INFO @wdio/appium-service: Will spawn Appium process: appium --base-path / --address localhost --port 4723
2024-07-24T15:21:59.402Z INFO @wdio/appium-service: Appium started with ID: 7629
2024-07-24T15:21:59.408Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2024-07-24T15:21:59.409Z INFO @wdio/local-runner: Start worker 0-0 with arg: run,./wdio.conf.ios.ts
[0-0] 2024-07-24T15:22:00.204Z INFO @wdio/local-runner: Run worker command: run
[0-0] RUNNING in iOS - file:///features/login.feature
[0-0] 2024-07-24T15:22:01.063Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-0] 2024-07-24T15:22:01.063Z INFO @wdio/utils: Connecting to existing driver at http 127.0.0.1:4723/
[0-0] 2024-07-24T15:22:01.066Z INFO webdriver: [POST] http 127.0.0.1:4723/session
[0-0] 2024-07-24T15:22:01.066Z INFO webdriver: DATA {
[0-0] capabilities: {
[0-0] alwaysMatch: {
[0-0] platformName: ‘iOS’,
[0-0] ‘appium:deviceName’: ‘iPhone 14’,
[0-0] ‘appium:platformVersion’: ‘16.4’,
[0-0] ‘appium:automationName’: ‘XCUITest’,
[0-0] ‘appium:simulatorStartupTimeout’: 180000,
[0-0] ‘appium:app’: ‘./iosapp/infusionsoftmobile.app’,
[0-0] ‘appium:xcodeOrgId’: ‘95XC4U76A9’,
[0-0] ‘appium:xcodeSigningId’: ‘iPhone Developer’,
[0-0] ‘appium:appWaitDuration’: 120000,
[0-0] ‘appium:fullReset’: false,
[0-0] ‘appium:noReset’: true,
[0-0] acceptInsecureCerts: true
[0-0] },
[0-0] firstMatch: [ {} ]
[0-0] },
[0-0] desiredCapabilities: {
[0-0] platformName: ‘iOS’,
[0-0] ‘appium:deviceName’: ‘iPhone 14’,
[0-0] ‘appium:platformVersion’: ‘16.4’,
[0-0] ‘appium:automationName’: ‘XCUITest’,
[0-0] ‘appium:simulatorStartupTimeout’: 180000,
[0-0] ‘appium:app’: ‘./iosapp/infusionsoftmobile.app’,
[0-0] ‘appium:xcodeOrgId’: ‘95XC4U76A9’,
[0-0] ‘appium:xcodeSigningId’: ‘iPhone Developer’,
[0-0] ‘appium:appWaitDuration’: 120000,
[0-0] ‘appium:fullReset’: false,
[0-0] ‘appium:noReset’: true,
[0-0] acceptInsecureCerts: true
[0-0] }
[0-0] }
[0-0] 2024-07-24T15:24:01.178Z ERROR webdriver: Request failed with status undefined due to TimeoutError: Timeout awaiting ‘response’ for 120000ms when running “ http 127.0.0.1:4723/session” with method “POST” and args “{“capabilities”:{“alwaysMatch”:{“platformName”:“iOS”,“appium:deviceName”:“iPhone 14”,“appium:platformVersion”:“16.4”,“appium:automationName”:“XCUITest”,“appium:simulatorStartupTimeout”:180000,“appium:app”:”./iosapp/infusionsoftmobile.app",“appium:xcodeOrgId”:“95XC4U76A9”,“appium:xcodeSigningId”:“iPhone Developer”,“appium:appWaitDuration”:120000,“appium:fullReset”:false,“appium:noReset”:true,“acceptInsecureCerts”:true},“firstMatch”:[{}]},“desiredCapabilities”:{“platformName”:“iOS”,“appium:deviceName”:“iPhone 14”,“appium:platformVersion”:“16.4”,“appium:automationName”:“XCUITest”,“appium:simulatorStartupTimeout”:180000,“appium:app”:“./iosapp/infusionsoftmobile.app”,“appium:xcodeOrgId”:“95XC4U76A9”,“appium:xcodeSigningId”:“iPhone Developer”,“appium:appWaitDuration”:120000,“appium:fullReset”:false,“appium:noReset”:true,“acceptInsecureCerts”:true}}"
ERROR @wdio/runner: Error: Failed to create session.