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

qmake preserves illegal characters in @BUNDLEIDENTIFIER@ string on macOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.9.2
    • Fix Version/s: 5.9.4
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Platform/s:
      macOS
    • Commits:
      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

            Assignee:
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Reporter:
            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