Nominate our 2022 Qt Champions!

Compile existing Qt quick 2 application for IOS : build failed

  • Hi,

    I have an existing Quick2 application that I have build for Windows/Mac/Android with success.
    I try to compile an iOS version:
    1)- I have defined QT +=qml quick in pro file :
    I have the following Error when I do qmake :
    Project ERROR: Plugin dialogsprivateplugin is missing a classname entry, please add one to the qmldir file.
    it seems it's related to qt quick internal static plugin ...

    2)- I have comment Qt=qml quick and change in all source #include <QQuickView>
    by #include <QtQuick/QQuickView>
    I can start Qmake, compile but after that I have a link error (error 65) :
    ld: framework not found Cocoa
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Is there a way to compile a quick2 application for iOS ?

  • I compiled various iOS application using QtQuick 2 since october, and now I'm using the RC1 that works nicely with my QtQuick 2 applications.

    So, probably there is something that you use that it's not still supported on iOS, or should do not be included.
    Can you post details ??
    There are something weird in the errors you reported:
    first of all, I've never used Cocoa in iOS application (even when I developed natively with objective-C), and in fact, in my QtQuick2 project there is no Cocoa framework.
    Second, what is the dialogsprivateplugin ?? Also, in this case I cannot find it in my iOS projects.
    So, I suspect you are explicitly adding something that on iOS platform does not exists.

  • dialogsprivateplugin seems to be internal to qt quick (something related to Qt quick2 static plugin it uses internally ...)
    I also never used Cocoa so I don't understand why I have this trouble...
    I don't see any thing special in my apps related to odd special features ..

  • Without any details, it's impossible to understand where is your problem.
    I've never had any problems on developing QtQuick 2 applications for iOS.
    So, if you can post more details about your setup, I'll check if there is something strange for me, or different from my setup.

Log in to reply