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

PRODUCT_BUNDLE_IDENTIFIER is ignored in creation of Xcode project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.11.1
    • Fix Version/s: 5.11.2
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Environment:
      macOS 10.13.6; Xcode 9.4.1
    • Platform/s:
      iOS/tvOS/watchOS
    • Commits:
      3c2ffd7457688bd8ae9d5fca688843e2029504b2

      Description

      The following works on Qt 5.10.1 (and earlier versions) but not on Qt 5.11.1.

      .pro

          Q_PRODUCT_BUNDLE_IDENTIFIER.name = PRODUCT_BUNDLE_IDENTIFIER
          Q_PRODUCT_BUNDLE_IDENTIFIER.value = org.myorganisation.myapp
          QMAKE_MAC_XCODE_SETTINGS += Q_PRODUCT_BUNDLE_IDENTIFIER

      Info.plist

      <key>CFBundleIdentifier</key>
      <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
      

      In Qt 5.10.1, running Qmake creates a .xcodeproj bundle. Within this there is a file project.pbxproj. This contains multiple copies (for different build configs) of the following:

      PRODUCT_BUNDLE_IDENTIFIER = "org.myorganisation.myapp";
      

      In contrast, Qt 5.11.1 generates the following:

      PRODUCT_BUNDLE_IDENTIFIER = "com.yourcompany.${PRODUCT_NAME:rfc1034identifier}";
      

      which resolves in Xcode as:

      PRODUCT_BUNDLE_IDENTIFIER = "com.yourcompany.MyApp";
      

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                buddenha Oswald Buddenhagen
                Reporter:
                paulmasri Paul
              • Votes:
                1 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes