Important: Please read the Qt Code of Conduct -

Multi-platform RESOURCE issue

  • I am using Qt Creator to work on a multi-platform project (Windows, Linux, iOS). Currently, I am building it for iOS Simulator. I have the following line in my main .pro file:

    RESOURCES += qml.qrc

    When I build the program for iOS, I see the following:

    xcodebuild[11058:265169] warning: The file reference for "<path>/qml.qrc" is a member of multiple groups ("Supporting Files" and "Resources"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.

    A quick Google search indicated that this is due to my including "qml.qrc" in the RESOURCES list. Removing it, however, introduces a new problem, this time a fatal one:

    qrc:/main.qml:-1 File not found

    Is there a better way to do this to satisfy all platforms or should I just accept the warning and move on?

  • Lifetime Qt Champion


    AFAIK, that warning won't affect your project. It seems that's something already signaled here

  • @SGaist Its not affecting my programs. I just don't like ignoring warnings, or having my compiler telling me I have a malformed project ;-)

    If there's no workaround, I'll live with it. Thanks!

  • I am getting this as well....I don't know if it is relevant but I am using an image as BorderImage and is not streched....I put a normal one, and I still see the old image used for ButtonImage.
    I am working on ios 9.3.1

Log in to reply