"Not authorized to send Apple events to Finder"

Hi,

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 Finder"" occurs when we are trying to open the app directly.

Could someone please help me understand what might be causing this issue and how to resolve it?

"Not authorized to send Apple events to Finder"
 
 
Q