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

qmake QMAKE_BUNDLE not work for mac

    XMLWordPrintable

Details

    • macOS
    • b2e586cf1 (dev), 13c1005c1 (6.5)

    Description

      Steps
      ```qmake
      QMAKE_TARGET_BUNDLE_PREFIX = com.yoyodyne
      QMAKE_BUNDLE = xyzapp
      ```

      Using default mac info.plist template
      (eg Qt/6.4.2/macos/mkspecs/macx-clang/Info.plist.app)
      In this template, the CFBundleIdentifier value placeholder is ${PRODUCT_BUNDLE_IDENTIFIER}

      Expected
      According to qmake variable doc, PRODUCT_BUNDLE_IDENTIFIER should become
      "com.yoyodyne" + "." + "xyzapp" => com.yoyodyne.xyzapp

      Actual
      The result info.plist has
      ```
      <key>CFBundleIdentifier</key>
      <string>com.yoyodyne.MacBundleId</string>
      ```
      where `MacBundleId` is the qmake TARGET

      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
            twj T W
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes