It turns out that there were two independent problems:
I had a configuration error at first so spctl didn’t verify the application originally. I have fixed that.
For reference, my Info.plist file declared CFBundlePackageType as BNDL instead of APPL.
Now, launching the application works as long as the application is in /Applications but it does not work when it is in any other (accessible) location, e.g., /Library/Application Support/...
The question is now, is this change intended in macOS 12?
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: