Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Could not find qml file after deployment on iOS Simulator
QtWS25 Last Chance

Could not find qml file after deployment on iOS Simulator

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • niqtN Offline
    niqtN Offline
    niqt
    wrote on last edited by
    #1

    Hi,
    With Qt 5.2 and iphonesimulator, whether i create a project with only QtQuick 2.0 i have no problem, but if i use QtQuick.Controls 1.0 i have file:///Users/MyUser/Library/Application Support/iPhone Simulator/7.0.3/Applications/355738E3-753D-4C5A-9F4A-DF18196F0D7A/Resources/qml/untitled6/main.qml:-1 File not found.
    I have tryed with qrc or with
    APP_QML_FILES.files = ../untitled6/qml/untitled6/main.qml
    APP_QML_FILES.path = Contents/Resources
    QMAKE_BUNDLE_DATA += APP_QML_FILES

    in .pro file, but nothing.

    What’s happen?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      ahmad88me
      wrote on last edited by
      #2

      Try to test it on a real device, I faced problems with the simulator

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jraichouni
        wrote on last edited by
        #3

        APP_QML_FILES.path=Contents/Resources may work on spec=macx-clang but not on spec=macx-ios-clang as that directory won't exist on iOS.

        Refer to a working example project using qrc.
        You can find it "here":http://qt-project.org/forums/viewthread/34102/#156739

        Use that example by removing
        @
        QTPLUGIN += qsqlite
        @

        from the .pro file

        and removing
        @
        #if defined(Q_OS_IOS)
        #include <QtPlugin>
        Q_IMPORT_PLUGIN(qsqlite)
        #include <QSqlDatabase>
        #endif
        @
        from main.cpp

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved