Appium WDA error

please, help me to fix this error
[debug] [WebDriverAgent] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/mariampetrosyan/Library/Developer/Xcode/DerivedData/WebDriverAgent-fxmsedpwfaalxlbcwefbceeuodem -destination id=6383CD28-E683-4233-8A20-7EC450E5ECE6 IPHONEOS_DEPLOYMENT_TARGET=16.2 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO’ in directory ‘/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent’

[debug] [WebDriverAgent] Output from xcodebuild will only be logged if any errors are present there. To change this, use ‘showXcodeLog’ desired capability

[debug] [WebDriverAgent] Waiting up to 60000ms for WebDriverAgent to start

[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body

[WD Proxy] connect ECONNREFUSED 127.0.0.1:8100

[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body

[WD Proxy] connect ECONNREFUSED 127.0.0.1:8100

[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body

[WD Proxy] connect ECONNREFUSED 127.0.0.1:8100

[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body

[WD Proxy] connect ECONNREFUSED 127.0.0.1:8100

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

[debug] [BaseDriver] Event ‘wdaStartFailed’ logged at 1679374677423 (08:57:57 GMT+0400 (Armenia Standard Time))

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

[debug] [XCUITest] xcodebuild error message:

[debug] [XCUITest]

[XCUITest] Quitting and uninstalling WebDriverAgent

[WebDriverAgent] Shutting down sub-processes

[debug] [iOSSim] Building bundle path map

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

[debug] [WebDriverAgent] No WDAs on the device.

[XCUITest] {}

[DevCon Factory] Releasing connections for 6383CD28-E683-4233-8A20-7EC450E5ECE6 device on any port number

[DevCon Factory] Found cached connections to release: [“6383CD28-E683-4233-8A20-7EC450E5ECE6:8100”]

[debug] [DevCon Factory] Cached connections count: 0

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

[debug] [XCUITest] Deleting simulator created for this run (udid: ‘6383CD28-E683-4233-8A20-7EC450E5ECE6’)

[debug] [WebDriverAgent] Killing running processes ‘xcodebuild.*6383CD28-E683-4233-8A20-7EC450E5ECE6, 6383CD28-E683-4233-8A20-7EC450E5ECE6.*XCTRunner, xctest.*6383CD28-E683-4233-8A20-7EC450E5ECE6’ for the device 6383CD28-E683-4233-8A20-7EC450E5ECE6…

[debug] [WebDriverAgent] ‘pgrep -if 6383CD28-E683-4233-8A20-7EC450E5ECE6.*XCTRunner’ didn’t detect any matching processes. Return code: 1

[debug] [WebDriverAgent] ‘pgrep -if xcodebuild.*6383CD28-E683-4233-8A20-7EC450E5ECE6’ didn’t detect any matching processes. Return code: 1

[debug] [WebDriverAgent] ‘pgrep -if xctest.*6383CD28-E683-4233-8A20-7EC450E5ECE6’ didn’t detect any matching processes. Return code: 1

[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1679374680854 (08:58:00 GMT+0400 (Armenia Standard Time))

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

[debug] [W3C] xcodebuild error message:

[debug] [W3C]

[debug] [W3C] at quitAndUninstall (/opt/homebrew/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:585:15)

[debug] [W3C] at /opt/homebrew/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:620:11

[debug] [W3C] at wrapped (/opt/homebrew/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:60:13)

[debug] [W3C] at retry (/opt/homebrew/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:43:13)

[debug] [W3C] at retryInterval (/opt/homebrew/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:70:10)

[debug] [W3C] at /opt/homebrew/lib/node_modu

please help to fix it

https://discuss.appium.io/search?q=xcodebuild%20failed%20with%20code%2065