Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93832

QMAKE_INFO_PLIST not acted on during build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.15
    • Fix Version/s: None
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Environment:
      MacOS Catalina
    • Platform/s:
      macOS

      Description

      Recent versions of MacOS require usage descriptions in the Info.plist for access to restricted system resources (namely in the debugger) else they are crashed by the OS:

      [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.
      10:46:44: Debugging has finished

      Despite adding a platform spec for this variable:

      macx {
      QMAKE_INFO_PLIST = macos/Info.plist
      }
      

      The Info.plist file is not copied to build_directory/app_name.app/Contents, where it needs to be.
      Adding support for this to be copied when it is updated or when the application is built would be extremely convenient:

      • Qt version updates (5.15.1 -> 5.15.2, etc)
      • multiple build configurations

        Attachments

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

          Activity

            People

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            scorp1us Jason Hihn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes