Failed to create a session. An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message:
Platform. : IOS
Device: iPhone 14 /Any Apple device
Appium Version. : 1.22.0 ( Tried with the latest version also )
Xcode Version: 14.2( tried with latest version also)
My local Device: Mac Book Pro (Mac OS: Ventura 13.2.1)
Thanks a lot, This link helped me to fix the issue.
In addition to the above, I followed the below steps.
Also for installing XCUITest I had to downgrade the npm version to 6 using the below command:
npm -g install npm@6
After installing XCUITest and UIAutomator2 driver, to start the Appium upgrade the npm to the latest version
Then in the appium inspector remove â/wd/hubâ from the Remote Path text field, keep the field blank and click on the âStart Sessionâ button to launch the app.