QML plugins path in iOS
Solved
Mobile and Embedded
-
How I can set a path to search for my custom plugin that have directory with right qml plugin declaration (plugins.qmltypes and qmldir) for iOS?
When I install my plugin in Qt directory (~/Qt/5.11.1/ios/qml) it works like a charm but I want to do not install and modify the path where Qt search for plugins when deploying iOS app on devices.
thanks in advance.
Juan.
-
Just look at my previous post on the subject
-
@Juan-Garcia
try to add the following to your .pro file:ios { MyPlugin_BUNDLE.files += $$files(path/to/my/plugin/*, true) MyPlugin_BUNDLE.path = qml/import/path QMAKE_BUNDLE_DATA += MyPlugin_BUNDLE }
-
Hi @dheerendra and @raven-worx ,
the issue was solved using this:
QML_IMPORT_PATH += /path/to/qml QMLPATHS += $$QML_IMPORT_PATH
This is a workaround for this: https://bugreports.qt.io/browse/QTBUG-58657
Thanks for your help.
-
Cool. You can move this issue to solved state.