Priority: P2: Important
Affects Version/s: 5.9.6, 5.11.0, 5.11.1
Fix Version/s: None
Component/s: Build tools: qmake
Environment:Qt Creator 4.6.2
Qt 5.11.1 (or 5.9.6)
There is a defect in qmake for IOS for some relative paths to the RESOURCES files. I have
created a simple project to reproduce this. The project files look like this:
Notice there are 2 *.pro files. The are both a main *.pro for the project.
By opening top.pro versus ios.pro I am illustrating the defect.
Using Qt Creator and top.pro do the following:
1. Open the top.pro project
2. Configure it to build with Qt 5.11.1 for the IOS simulator.
3. Run qmake (Build > Run Qmake)
4. Stop and examine the build directory. You should see the following files:
Next do the same steps for the ios.pro file.
It produces a build directory in the top/platform directory.
The list of files is missing the top_qml_plugin_import.cpp file.
When the import statements in main.qml are processed during the qmake run,
it should generate this missing file. If the project is built using
ios.pro, the application will crash at runtime because the import modules
The significant difference between the 2 *.pro files is the relative
path to the qml.qrc file.