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

PRODUCT_BUNDLE_IDENTIFIER is ignored in creation of Xcode project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.11.2
    • 5.11.1
    • Build tools: qmake
    • None
    • macOS 10.13.6; Xcode 9.4.1
    • iOS/tvOS/watchOS
    • 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

              buddenha Oswald Buddenhagen
              paulmasri Paul
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes