Does the app make it to the first line of code? Does your app write any files or read any files? You can add a line for the Console at the first line of code. Is anything else visible in the Console?
Just had a message to say ‘its open now’, without answering any of my own ‘tell me x,y,z’ questions.
For the questions above,
fresh install, universal build, no Applescript, clearly makes it to the first line of code (but I’ll look into that as a future debugging tool, thanks!)
I had last year a similar problem. After much tests I found that macOS thought that my application has a virus. Although it was notarized. Finally I was able to solve it with changing the optimization level.
I increased it. But maybe decreasing also helps. I believe the compiler creates a bytes in sequence that the virus scanner detects a virus. With changing the optimization another sequence will be created.
I have been experiencing the same issue ever since I moved to Tahoe (26.2). I have been putting off releasing an updated version of my app tailored for Tahoe. However, I have found that if I re-codesign and re-notarise the app (I use App Wrapper), I can open it again. This is obviously not a long-term solution. I looked at the logs, but found no information relating to the app launch. I really do not know what is happening.