Showing Recent Messages Cannot link directly with 'XCTAutomationSupport' because product being built is not an allowed client of it

I am getting the error when running WebDriverAgentRunner on Xcode 15.1 with OS Sonoma 14,3,1 M1 processor with appium 2.5.1e [Appium] - [email protected] (automationName ‘XCUITest’)

Making it impossible to have communication…

Error

ld: cannot link directly with ‘XCTAutomationSupport’ because product being built is not an allowed client of it
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 Like

Step by step made available.
Now I am getting the following error

=============

→. Failed to create session. An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1 “The request to open “br.com.XXXX.XXX.hml” failed.” UserInfo={BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000d387e0 {Error Domain=FBProcessExit Code=64 “The process failed to launch.” UserInfo={BSErrorCodeDescription=launch-failed, NSLocalizedFailureReason=The process failed to launch., NSUnderlyingError=0x600000d393e0 {Error Domain=RBSRequestErrorDomain Code=5 “Launch failed.” UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x600000d39440 {Error Domain=NSPOSIXErrorDomain Code=1 “Operation not permitted” UserInfo=0x600000515040 (not displayed)}}}}}, NSLocalizedDescription=The request to open “br.com.XXXX.XXX.hml” failed., FBSOpenApplicationRequestID=0xc5e6, NSLocalizedFailureReason=The request was denied by service delegate (SBMainWorkspace).}