LaunchServices Error -10669

I'm trying to run a MacOS application (which has worked in the past on older versions of Xcode and MacOS), and I get the error message:

Could not launch "MyProgramName"

LaunchServices has returned error -10669.

Can't find any documentation on this error code.

Sonoma 14.4.1 Xcode 15.4

LaunchServices Error -10669
 
 
Q