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

qmake: Info.plist CFBundleVersion and CFBundleShortVersionString should be in x.y.z format

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4: Low P4: Low
    • None
    • 5.3.1
    • Build tools: qmake
    • None
    • Mac OS X

      The Apple documentation on Info.plist keys states that both CFBundleVersion and CFBundleShortVersionString should be version numbers in x.y.z format. qmake currently expands @SHORT_VERSION@ to x.y instead of x.y.z.

      As a result, Finder's Get Info only displays the major and minor version components but not the patch level.

      Please extend the @SHORT_VERSION@ expansion code in ProjectBuilderMakefileGenerator::writeMakeParts() like this:
      plist_in_text = plist_in_text.replace("@SHORT_VERSION@", project->first("VER_MAJ") + "." + project->first("VER_MIN") + "." + project->first("VER_PAT"));

      Documentation reference:
      https://developer.apple.com/Library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102364
      https://developer.apple.com/Library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-111349

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

            vestbo Tor Arne Vestbø
            stefanha Stefan Hajnoczi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes