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

@Babu_Cervenkova
Here is the complete process to be followed

You will face this issue on MAC because WDA present inside Appium is not compatible with your XCode 14.2. When you install Appium, it is equipped with latest WDA at the time of released version for example appium 1.22.3 will come with WebdriverAgent 3.17.0 You can check WDA repo for compatible XCode [WDA link]. After 12.4 they have stopped mentioning XCode compatibility. Here are the steps to be followed to replace older WDA to latest WDA

  1. For XCode 14.2 Download latest WDA from here https://github.com/appium/WebDriverAgent/releases?page=1
  2. Download Source code.(zip) from above link on you mac machine
  3. unzip file
  4. Copy all the files and folders present inside unzipped folder
  5. You have to update all these contents into WebdriverAgent present inside Appium Server folder
  6. In Mac, Go to Applications
  7. Right click on Appium Server GUI > Contents > Resources > App > node_modules > appium > node_modules > Appium-webdriver agent
  8. Paste all the contents you have downloaded inside WebDriverAgent folder
  9. Check for WebDriverAgent.XCodeProj
  10. Open WebDriverAgent.XCodeProj in XCode
  11. If project is not open click on folder icon present on top right corner
  12. Click on WebDriverAgent
  13. In centre panel > TARGETS Select WebDriverAgentRunner
  14. Click on Signing and Capabilities
  15. Click on “Team” Drop down to sign in your app
  16. You can select existing certificate or new certificate where you have to apple certificate
  17. Find WebDriverAgent project on top.
  18. select WebDriverAgentRunner from drop down
  19. Select targeted device from drop down on which you want to execute test cases
  20. Click on “Product” menu
  21. Click on “Test”
  22. It will install WebDriverAgent on you targeted device
  23. Now you can try to launch new session from appium inspector
2 Likes