Hi,
When i am trying to run my mobile app automation test on iOS device, I am getting error in appium log:
2022-04-12 12:40:14:687 - e[35m[WebDriverAgent]e[39m xcodebuild exited with code ‘65’ and signal ‘null’
2022-04-12 12:40:14:688 - [debug] e[35m[BaseDriver]e[39m Event ‘wdaStartFailed’ logged at 1649767214688 (15:40:14 GMT+0300 (Eastern European Summer Time))
2022-04-12 12:40:14:688 - [debug] e[35m[XCUITest]e[39m Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
2022-04-12 12:40:14:688 - [debug] e[35m[XCUITest]e[39m xcodebuild error message:
2022-04-12 12:40:14:688 - [debug] e[35m[XCUITest]e[39m . Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
2022-04-12 12:40:14:688 - e[35m[XCUITest]e[39m Quitting and uninstalling WebDriverAgent
2022-04-12 12:40:14:688 - e[35m[WebDriverAgent]e[39m Shutting down sub-processes
2022-04-12 12:40:14:853 - [debug] e[35m[WebDriverAgent]e[39m No WDAs on the device.
2022-04-12 12:40:14:854 - e[35m[XCUITest]e[39m {}
2022-04-12 12:40:14:854 - e[35m[DevCon Factory]e[39m Releasing connections for 00008030-001E65E90ADB802E device on any port number
2022-04-12 12:40:14:854 - e[35m[DevCon Factory]e[39m Found cached connections to release: [“00008030-001E65E90ADB802E:5335”]
2022-04-12 12:40:14:854 - e[35m[DevCon Factory]e[39m Releasing the listener for ‘00008030-001E65E90ADB802E:5335’
2022-04-12 12:40:14:854 - [debug] e[35m[[email protected]:5335]e[39m Closing the connection
2022-04-12 12:40:14:855 - [debug] e[35m[DevCon Factory]e[39m Cached connections count: 0
2022-04-12 12:40:14:855 - [debug] e[35m[XCUITest]e[39m Not clearing log files. Use clearSystemFiles
capability to turn on.
2022-04-12 12:40:14:855 - e[35m[[email protected]:5335]e[39m The connection has been closed
2022-04-12 12:40:14:856 - [debug] e[35m[BaseDriver]e[39m Event ‘newSessionStarted’ logged at 1649767214856 (15:40:14 GMT+0300 (Eastern European Summer Time))
2022-04-12 12:40:14:856 - [debug] e[35m[W3C]e[39m Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
2022-04-12 12:40:14:856 - [debug] e[35m[W3C]e[39m xcodebuild error message:
2022-04-12 12:40:14:856 - [debug] e[35m[W3C]e[39m . Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
2022-04-12 12:40:14:856 - [debug] e[35m[W3C]e[39m at quitAndUninstall (/opt/homebrew/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:585:15)
2022-04-12 12:40:14:856 - [debug] e[35m[W3C]e[39m at /opt/homebrew/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:620:11
2022-04-12 12:40:14:856 - [debug] e[35m[W3C]e[39m at wrapped (/opt/homebrew/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:60:13)
2022-04-12 12:40:14:856 - [debug] e[35m[W3C]e[39m at retry (/opt/homebrew/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:43:13)
2022-04-12 12:40:14:856 - [debug] e[35m[W3C]e[39m at retryInterval (/opt/homebrew/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:70:10)
2022-04-12 12:40:14:858 - [debug] e[35m[W3C]e[39m at /opt/homebrew/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:600:7
Can any one please let me know what it means and the solution to overcome.
When I run xcode build successfully.
system used: Mac M1
Xcode version : 13.3
appium version: 1.22.3
iOS version: 15.4