Answer the question
In order to leave comments, you need to log in
How to understand why Qt GUI program crashes after deployment on Mac OS?
I'm trying to make a deployment program.
Done macdeployqt
, checked all the links otool
, checked export DYLD_PRINT_LIBRARIES=1
everything as in the official documentation . All paths are correct. Even fed macdeployqtfix - did not help.
If you go inside Application.app with a terminal and run it from there, the program starts.
If you run Application.app from Finder, it crashes.
If you go inside Finder's .app and run it in the terminal from there, then
This application failed to start because it could not find or load the Qt platform plugin "cocoa".
QCoreApplication::setLibraryPaths
- without this, it starts loading from the Qt'a folder ... Answer the question
In order to leave comments, you need to log in
Let's try again.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question