Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1736

Duplicate symbols with Qt on iOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 2.0.1
    • Libraries: Qt
    • None
    • iOS/tvOS/watchOS

    Description

      From related issue

      I still get another duplicate symbol error:

      ERROR: duplicate symbol 'qInitResources_qmake_QtQuick_Controls()' in:
      /Users/lbuckel/Qt/6.4.2/ios/qml/QtQuick/Controls/objects-Debug/QuickControls2_resources_1/.rcc/qrc_qmake_QtQuick_Controls.cpp.o 

      This time it only lists one .o file. Inspecting the command line shows that it appears multiple times. I think the issue happens because the app depends on a static library which also has a QtQuick controls dependency.
      I tried filtering out the duplicate entry but don't know where to do it. At first I modified the rule in qml.qbs to also filter based on the cpp.staticLibraries property but it looks like it does not contain the file at this point? Not sure where it comes from. Any ideas?

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              arch Ivan Komissarov
              arch Ivan Komissarov
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes