Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.0 Beta3
-
-
efbf8f4894b07bc039e4c32f78a00983bcd0945f (qt/qtdeclarative/dev) f9925dba66a839614fdf1f3e735265f03258f526 (qt/qtdeclarative/5.15)
Description
Hi, I really love the new way to register qml elements in Qt 5.15, but for my testing, I encontered an issue on iOS (and on iOS only) when creating a custom static plugin.
The error is the following:
QQmlApplicationEngine failed to load component qrc:/main.qml:4:1: static plugin for module "MyModule.Uri" with name "MyModulePlugin" cannot be loaded: Cannot protect module MyModule.Uri 1 as it was never registered
I created the plugin as it recommended by the documentation using CONFIG+=qmltypes static and adding QML_IMPORT_NAME=MyModule.Uri
As I said, it perfeclty work with a shared plugin, as tested on macOS, windows and linux, but on iOS with static plugin it does not work.
Attachments
For Gerrit Dashboard: QTBUG-83402 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
306447,2 | doc: Explain how to work around the linker removing registrations | 5.15 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
306620,4 | doc: Explain how to work around the linker removing registrations | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |