WebDriverAgent can't open in xcode 13

when I run my appium test, I got this error:

[0-0] An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100

I got to
/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent

and open WebDriverAgent.xcodeproj in the Xcode 13, it hang there loading forever
I am using appium version 1.22.0
appium --version

1.22.0

Try first uninstall appium. Install. And complete ‘Appium for real ios device’ guide again.