Unable to start WebDriverAgent session because of xcodebuild failure

While try to launch an iOS application from mac, I am getting the following error:

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 remote server. Original error: URI malformed

Please help to solve this issue.

Thanks in advance.

I cant say for sure without looking at your Appium logs but the “Original error: URI malformed” part of your error makes me think you might just have your URL to Appium not quite right… In your test code, are you trying to setup a new AppiumDriver with a URL different from “http://0.0.0.0:2735/wd/hub” ?

My url is http://127.0.0.1:4723/wd/hub

What happened when you tried to use http://0.0.0.0:4723/wd/hub to start a new driver?

I have tried.Still same issue