"Not authorized to send Apple events to Terminal

We are trying to open an application "xyz.app" It worked fine until 15.1.1 versions. But facing issues with 15.2 and 15.3

The application is working fine when we navigate to xyz.app/Contents/MacOS/ and run applet in this directory. But the error "Not authorized to send Apple events to Terminal" occurs when we are trying to open the app directly.

We have tried with all the available solutions like giving full disk access to terminal and application, adding my application to automation in privacy and security tabs in settings.

Any help would be appreciated.

Thanks!

Answered by DTS Engineer in 824977022

Your app might need an Apple Event Temporary Exception entitlement to enable sending Apple events to the terminal app. Please see the Apple Event Temporary Exception section on this page of the Entitlement Key Reference..

Your app might need an Apple Event Temporary Exception entitlement to enable sending Apple events to the terminal app. Please see the Apple Event Temporary Exception section on this page of the Entitlement Key Reference..

"Not authorized to send Apple events to Terminal
 
 
Q