Unable to start WebDriverAgent session because of xcodebuild failure

Hi Community,

I’m stuck with this error after alot of time spending on it. maybe someone already experienced this & can help please

Original Error
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100

Caps:
“platformName”: “iOS”,
“appium:deviceName”: “iPhone 13”,
“appium:automationName”: “XCUITest”,
“appium:app”: “*”,
“appium:platformVersion”: “16.2”

Env:
MacBook Pro 2016 intel processor
Appium server version: 2.0.0-beta.71 (driver xcuitest)
Xcode: 14.2 RC

on my other mac machine everything works fine but I’m trying to setup this mac to use as a self hosted runner. WebdriverAgent builds successfully with xcode

App gets installed but webdriverAgent is not getting installed. Attached are server logs.

worth to mention is if I run test for WebDriverAgent xcode proj, the wda gets installed on simulator & then if I try to connect through inspector it works fine but deleting the wda app gets the same result

Please any help would be appreciated

serverlogs.txt (110.7 KB)