Mac deployment: Using Qt from a framework - QFactoryLoader anyway looks for plugins in a (non-Qt) app bundle
I want to use Qt internally in the Mac framework (dynamic library). A separate non-Qt app uses this framework through the exposed C API.
macdeployqtseems correctly putting all the dependencies inside the framework bundle.
When I run the app (with QT_DEBUG_PLUGINS=1):
QFactoryLoader::QFactoryLoader() checking directory path "..../MyApp.app/Contents/MacOS/platforms" ...
This application failed to start because it could not find or load the Qt platform plugin "cocoa"
So basically QFactoryLoader looks for the "cocoa" plugin inside the non-Qt app bundle.
How to make it look inside the framework bundle which actually uses Qt?
There might be something to do with qt.conf.
Hope it helps