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

Creation of CFBundleDisplayName is faulty (CMake)

    XMLWordPrintable

Details

    • macOS

    Description

      In CMake

      set_target_properties(myTarget PROPERTIES
          MACOSX_BUNDLE TRUE
          MACOSX_BUNDLE_GUI_IDENTIFIER "com.mydomain.myapp"
          MACOSX_BUNDLE_BUNDLE_NAME "SuperApp"
      )
      

      without setting  MACOSX_BUNDLE_INFO_PLIST,

      the in-built file Qt6/ios/MacOSXBundleInfo.plist.in is used.

       

      This contains the lines

       

      <key>CFBundleDisplayName</key>
      <string>${QT_INTERNAL_DOLLAR_VAR}{PRODUCT_NAME}</string>
      

      which become

       

       

      <key>CFBundleDisplayName</key>
      <string>${PRODUCT_NAME}</string>

       

      in the final Info.plist.

       

      Shouldn't this be $(PRODUCT_NAME) instead of ${PRODUCT_NAME} or otherwise a piece of text?

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            paulmasri Paul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes