WebDriverAgentRunner: WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner (Underlying error: Cannot launch simulated executable:

[Xcode]

[Xcode] ** TEST EXECUTE FAILED **

[Xcode]

[Xcode]

[Xcode] Testing started on ‘iPhone X’

[Xcode]

[WebDriverAgent] xcodebuild exited with code ‘65’ and signal ‘null’

[BaseDriver] Event ‘wdaStartFailed’ logged at 1608053794805 (23:06:34 GMT+0530 (India Standard Time))

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

[XCUITest] xcodebuild error message:

[XCUITest]

[XCUITest] 2020-12-15 23:06:30.375 xcodebuild[92167:10003350] Error Domain=IDEFoundationErrorDomain Code=1 “Cannot launch simulated executable: no file found at /Users/dmuniraju/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app” UserInfo={NSLocalizedDescription=Cannot launch simulated executable: no file found at /Users/dmuniraju/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app}

[XCUITest] Test session results, code coverage, and logs:

[XCUITest] /Users/dmuniraju/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2020.12.15_23-06-01-+0530.xcresult

[XCUITest] Testing failed:

[XCUITest] WebDriverAgentRunner:

[XCUITest] WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Cannot launch simulated executable: no file found at /Users/dmuniraju/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app))

[XCUITest] ** TEST EXECUTE FAILED **

[XCUITest] Testing started on ‘iPhone X’

[XCUITest] Quitting and uninstalling WebDriverAgent

[WebDriverAgent] Shutting down sub-processes

[iOSSim] Building bundle path map

[iOSSim] The simulator has ‘0’ bundles which have ‘WebDriverAgentRunner-Runner’ as their ‘CFBundleName’:

[WebDriverAgent] No WDAs on the device.

[XCUITest] {}

[DevCon Factory] Releasing connections for B394F194-D72F-45C6-84C0-06BF5A648609 device on any port number

[DevCon Factory] Found cached connections to release: [“B394F194-D72F-45C6-84C0-06BF5A648609:8100”]

[DevCon Factory] Cached connections count: 0

[XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.

[IOSSimulatorLog] Stopping iOS log capture

[BaseDriver] Event ‘newSessionStarted’ logged at 1608053794822 (23:06:34 GMT+0530 (India Standard Time))

[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

[MJSONWP] xcodebuild error message:

[MJSONWP]

[MJSONWP] 2020-12-15 23:06:30.375 xcodebuild[92167:10003350] Error Domain=IDEFoundationErrorDomain Code=1 “Cannot launch simulated executable: no file found at /Users/dmuniraju/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app” UserInfo={NSLocalizedDescription=Cannot launch simulated executable: no file found at /Users/dmuniraju/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app}

[MJSONWP] Test session results, code coverage, and logs:

[MJSONWP] /Users/dmuniraju/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2020.12.15_23-06-01-+0530.xcresult

[MJSONWP] Testing failed:

[MJSONWP] WebDriverAgentRunner:

[MJSONWP] WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Cannot launch simulated executable: no file found at /Users/dmuniraju/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app))

[MJSONWP] ** TEST EXECUTE FAILED **

[MJSONWP] Testing started on ‘iPhone X’

[MJSONWP] at quitAndUninstall (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:528:15)

[MJSONWP] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:558:11

[MJSONWP] at wrapped (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:35:13)

[MJSONWP] at retry (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:18:13)

[MJSONWP] at retryInterval (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:45:10)

[MJSONWP] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:538:7

[MJSONWP] Destroying socket connection

[HTTP] <-- POST /wd/hub/session 500 162421 ms - 1495

[HTTP]

[HTTP] --> DELETE /wd/hub/session

[HTTP] {}

[HTTP] No route found. Setting content type to ‘text/plain’

[HTTP] <-- DELETE /wd/hub/session 404 8 ms - 57

[HTTP]

Appium Version : App Version: 1.17.1-1

Electron: 7.2.4

Node.js: 12.8.1

Xcode Version: 11.6

Getting this error very often, Once I reinstalled the appium it’s working but when I make changes to new scripts and execute getting this issue.