Program won't start on macOS when using the .app
-
wrote on 29 Sept 2021, 06:40 last edited by
How do you run the program from the terminal? Do run the executable inside Contents/MacOS? Or do you type
open MyApp.app
?If it is about not signing your app like @artwaw suggested, there is a difference to opening the app by just clicking on it (which will then not work) and doing a right click and selecting Open from the context menu.
-
How do you run the program from the terminal? Do run the executable inside Contents/MacOS? Or do you type
open MyApp.app
?If it is about not signing your app like @artwaw suggested, there is a difference to opening the app by just clicking on it (which will then not work) and doing a right click and selecting Open from the context menu.
wrote on 29 Sept 2021, 13:55 last edited by@SimonSchroeder
I run the executable in Contents/MacOS, when I use open MyApp.app it just ends without any message.I've also tried to sign the app but that doesn't help.
-
wrote on 29 Sept 2021, 14:02 last edited by
Out of curiosity, are you able to create fresh, new, simple program (can be just main window, empty), compile it, macdeployqt-it and run without any issues? Just to check if it is something particular to your main project that fails or the problem is in the environment itself?
-
wrote on 29 Sept 2021, 15:47 last edited by JoeCFD
use dtruss to run your app to see what is missing. QtCreator has its own env settings. If your app can not be started, that means some env settings are missing. dtruss may be able to tell what.
-
wrote on 29 Sept 2021, 16:02 last edited by
-
wrote on 29 Sept 2021, 16:39 last edited by
@PatrickKox if a lib or plugin is missing, you may be able to see it. Pipe the output into a file.
and you can do the same thing by running the build with qtcreator which runs well. Then you can compare both output and may be able to find some hints.
21/26