Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Could not find qml file after deployment on iOS Simulator
niqt last edited by
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.
ahmad88me last edited by
Try to test it on a real device, I faced problems with the simulator
jraichouni last edited by
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