qmlplugindump for QML plugin on iOS platform
-
wrote on 2 Jul 2016, 21:37 last edited by shav 7 Mar 2016, 16:40
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!
-
wrote on 3 Jul 2016, 16:39 last edited by
Hi everyone!
I can find any ways to generate qmltypes file for static library on iOS platform. So I've create this file by myself. I think my problem is solved.
-
wrote on 12 Jul 2016, 15:22 last edited by
How exactly did you solve your problem? Can you provide a smal working example which works for ios?
-
wrote on 12 Jul 2016, 16:10 last edited by
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.