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

qmake preserves illegal characters in @BUNDLEIDENTIFIER@ string on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.4
    • 5.9.2
    • Build tools: qmake
    • None
    • macOS
    • fe72571da885499739f723e054e1ba5433fb36e8

    Description

      Steps:

      • Create qmake project on macOS
      • Set TARGET in .pro file to a string with spaces, like TARGET = "Test App"
      • Build project
      • Open Info.plist in resulting .app package

      Expected result: CFBundleIdentifier entry is "com.yourcompany.TestApp" (spaces removed)

      Actual result: CFBundleIdentifier is "com.yourcompany.Test App" (space remains)

      "The bundle ID string must be a uniform type identifier (UTI) that contains only alphanumeric (A-Z,a-z,0-9), hyphen (-), and period (.) characters" according to https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070

      This seems to happen both for provided and for generated .plist files.

      Attachments

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

        Activity

          People

            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            kbilous Kostiantyn Bilous
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes