Forums

OverviewFelgo 2 Support (Qt 5) › Release Build Issue

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16449

    Alec

    Hi,

    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);
        VPApplication vplay;
        QQmlApplicationEngine engine;
        vplay.initialize(&engine);
        vplay.setMainQmlFileName(QStringLiteral("qrc:/qml/Main.qml"));
        engine.load(QUrl(vplay.mainQmlFileName()));
        return app.exec();
    }

     

    config.json:

     

    {

        "title": "Untitled1",
        "identifier": "com.alb.Untitled1",
        "orientation": "landscape",
        "versioncode": 1,
        "versionname": "1.0",
        "stage": "publish"
    }

     

    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.

     

    Regards,

     

    alb

     

     

    #16461

    Günther
    Felgo Team

    Hi Isak,

    Thanks for bringing this to our attention! If you correctly removed DEPLOYMENTFOLDERS and switched to resources, your sources are protected with the QRC system – the message is wrongly displayed in this case.

    We will fix this for one of the next updates!

    Best,
    Günther

    #16462

    Alec

    Hi, thanks for getting back to me.

    What about that app size? I don’t remember an empty v-play project being 250mb (release mode) before. Is that to be expected? The showcase app in the app store is just over 50mb i think.

    #16464

    Günther
    Felgo Team

    Hi!

    The app size of the built binary you see in your file system does not match the actual size after uploading it to the stores.

    The package for example contains multiple versions for different device architectures, but only the required parts are shipped by Apple in the Stores then after uploading.

    Best,
    Günther

    #16469

    Alec

    Great, thanks for your help.

Viewing 5 posts - 1 through 5 (of 5 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support