"Failed to prepare device for development." with Xcode 14.1 and iOS 16.1.1 device

Getting below error while building the Xcode (Version 14.1 (14B47b)) and real device used iPhone Xs (16.1.1)

ld: cannot link directly with dylib/framework, your binary is not an allowed client of /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework/XCTAutomationSupport for architecture arm64

Appium Version: 1.22.3

"Failed to prepare device for development." with Xcode 14.1 and iOS 16.1.1 device
 
 
Q