I just tried building a project in release mode. I’m on Mac OS and building for iOS.
Even with a newly created empty v-play games project I get this message:
WARNING: you are building a publishBuild, but your mainQmlFile entry point is not loaded from RESOURCES but with DEPLOYMENTFOLDERS. This would allow others to inspect your QML sources! To avoid that and to secure your source code, perform the following steps:
1.) Create a .qrc file similar to the ones from the Felgo demos and enable RESOURCES += resources.qrc in your .pro file.
2.) Remove the DEPLOYMENTFOLDERS += qmlFolder line from the .pro file.
3.) Set the main qml file to “qrc:/qml/Main.qml” in your main.cpp.
My main.cpp looks like this:
int main(int argc, char *argv)
QApplication app(argc, argv);
the relevant part of my .pro:
qmlFolder.source = qml
assetsFolder.source = assets
DEPLOYMENTFOLDERS += assetsFolder
RESOURCES += resources.qrc # uncomment for publishing
The resources.qrc is the one created by the application wizard and other than adding a licence key, the project is just an empty project. I still get the message and the app is over 250mb when deployed to and iPhone (around 130mb in debug mode).
Is there anything I’m missing? I’ve done this before with previous versions of v-play and it worked fine so I’m wondering if it could be something to do with the latest update.