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

Qt/QMake includes the deprecated 'CFBundleGetInfoString' key into the Info.plist on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.12.2
    • None
    • macOS

    Description

      "CFBundleGetInfoString" is deprecated since Mac OS X 10.5. this key has been deprecated for more than 11 years now and certainly should not be included in binaries generated by an up-to-date development environment in 2019.

      while this is a key that should NOT be included in the Info.plist file, there are a number of keys that are current not included but SHOULD be included. most importantly:

      CFBundleVersion and CFBundleShortVersionString. all macOS apps should contain information about their version number. the CFBundleVersion is essential to let the system decide which version of an app is the newest one if multiple ones are installed. when launching an app that is present in multiple versions, the one with the highest CFBundleVersion is launched. if you omit this key, a random version is launched. the CFBundleShortVersionString key is essential to let the user know which version is installed. it is displayed in the Finder when selecting an app, in the Get Info panel and in QuickLook. Mac users expect all apps have proper version information viewable from the Finder. if this is missing, its immediately obvious this is not a real Mac app but just a cross platform hack. Qt should include these essential keys by default and make sure those are integrated well into GUI settings in QtCreator.

       

      other important keys that are missing from the Info.plist generated by Qt/Make but are present in all apps generated by Xcode are:

      CFBundleDevelopmentRegion

      CFBundleInfoDictionaryVersion

      CFBundleName

      CFBundleSupportedPlatforms

      NSHumanReadableCopyright

       

      have a look here for more info: https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

       

      Attachments

        Issue Links

          Activity

            People

              vestbo Tor Arne Vestbø
              dinkblam Julian Mayer
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: