Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

Just getting started with Appium/Appium Inspector, when I was trying to launch the iOS simulator through Appium-Inspector, I got the below error message:

[W3C] xcodebuild error message:
[W3C] at quitAndUninstall (/Applications/Appium Server
[W3C] at /Applications/Appium Server
[W3C] at wrapped (/Applications/Appium Server
[W3C] at retry (/Applications/Appium Server
[W3C] at retryInterval (/Applications/Appium Server
[W3C] at /Applications/Appium Server
[HTTP] <-- POST /wd/hub/session 500 31924 ms - 829

Can someone help with this issue please?

What version of Appium?
What version of Xcode?

Hello there,
I was using Appium 1.x via Appium Desktop/Server GUI
And for Xcode I was using version 14.0.1

Ok, I don’t think Appium 1.X is going to work with Xcode 14. Could you try Appium 2?

Just tried with Appium 2 and it worked!!!

Thank you so much.

1 Like