qmlplugindump for QML plugin on iOS platform



  • 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 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.



  • How exactly did you solve your problem? Can you provide a smal working example which works for ios?



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.