qmlplugindump for QML plugin on iOS platform
Solved
QML and Qt Quick
-
Hi everyone!
I want to create QML plugin for iOS. How I can generate <plugin_name>.qmltypes file for my iOS QML plugin? For Desktop i'm using command like this:
<Qt_install_folder>/5.7/clang_64/bin/qmlplugindump <plugin_uri> 1.0 <Qt_install_folder>/5.7/clang_64/qml > ~/<plugin_name>.qmltypes
and all works fine. But if I trying something like this:
<Qt_install_folder>/5.7/clang_64/bin/qmlplugindump <plugin_uri> 1.0 <Qt_install_folder>/5.7/ios/qml > ~/<plugin_name>.qmltypes
I get error message like this:
This plugin does not support createPlatformOpenGLContext! QQmlComponent: Component is not ready file:///Volumes/HPDD/Applications/Qt/Qt5.x/5.7/ios/qml/loaddependencies.qml:2:1: module "QtQuick" plugin "qtquick2plugin" not found
What i do wrong?
Thanks for the help!
-
Hi,
For now I have a project on desktop and mobile. In my case I need to remove a few classes for iOS. I generated qmltypes for desktop version of my project using qmlplugindump and the edit the file in text editor (removed not needed classes). I know this is bad solution but for me it solved problem. For big projects this solution not useful.