MacOS application does not launch when double clicked but does launch from terminal
One thing I’d try is to use a tool like Platypus to help assemble the application bundle.


https://www.sveinbjorn.org/platypus


It might be easier to narrow down what part of the console log errors are relevant if you can diff your hand crafted app bundle and compare it with the one the tool assembles for you.