Unable to build WebDriverAgentLib in XCode14

On building getting below error:

error build: Cannot link directly with dylib/framework, your binary is not an allowed client of /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework/XCTAutomationSupport for architecture x86_64

Since the first Xcode 14 beta was released, many people have had the same problem as you
You must upgrade appum to version 2.0.0beta, but you can only build WebDriverAgent on phone
It seems that currently katalon is not compatible with xcode 14 and appium 2 versions. So you can’t run Recorder