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