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

Change in deployment structure of Qt 6.8 for iOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 2.5.0
    • 2.4.2
    • Libraries: Qt
    • None
    • iOS/tvOS/watchOS
    • e44a761b3 (2.5)

    Description

      When trying to build on iOS using Qt 6.8 you get lots of warnings like these:

      WARNING: Could not open prl file '/Users/.../Qt/6.8.0/ios/lib/libQt63DAnimation_debug.prl' for module 'Qt3DAnimation' (Error: Unable to open file '/Users/.../Qt/6.8.0/ios/lib/libQt63DAnimation_debug.prl': No such file or directory), and failed to deduce the library file path.  This module will likely not be usable by qbs.
      WARNING: Could not open prl file '/Users/.../Qt/6.8.0/ios/lib/libQt63DAnimation.prl' for module 'Qt3DAnimation' (Error: Unable to open file '/Users/.../Qt/6.8.0/ios/lib/libQt63DAnimation.prl': No such file or directory), and failed to deduce the library file path.  This module will likely not be usable by qbs.
      WARNING: Could not open prl file '/Users/.../Qt/6.8.0/ios/lib/libQt63DCore_debug.prl' for module 'Qt3DCore' (Error: Unable to open file '/Users/.../Qt/6.8.0/ios/lib/libQt63DCore_debug.prl': No such file or directory), and failed to deduce the library file path.  This module will likely not be usable by qbs.
      WARNING: Could not open prl file '/Users/.../Qt/6.8.0/ios/lib/libQt63DCore.prl' for module 'Qt3DCore' (Error: Unable to open file '/Users/.../Qt/6.8.0/ios/lib/libQt63DCore.prl': No such file or directory), and failed to deduce the library file path.  This module will likely not be usable by qbs.
      

      And ultimately the build fails with

      ERROR: ld: framework 'Qt6Core' not found
      

      This happens because starting with this Qt version some of the Qt libraries are now inside of framework bundles. Presumably because of the new PrivacyInfo plist requirement (QBS-1812).

      The .prl files are also located inside of the bundles but qbs is not aware of that and just expects plain static libraries with the prl directly next to them.

      Attachments

        For Gerrit Dashboard: QBS-1816
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            lbuckel Leon Buckel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes