Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can I explicitly set the bundle identifier used when using qmake to build a macOS application?
Forum Updated to NodeBB v4.3 + New Features

How can I explicitly set the bundle identifier used when using qmake to build a macOS application?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 308 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Guy GizmoG Offline
    Guy GizmoG Offline
    Guy Gizmo
    wrote on last edited by
    #1

    When building a macOS application, the Info.plist file that qmake generates has an entry for CFBundleIdentifier that is set to a combination of QMAKE_TARGET_BUNDLE_PREFIX and TARGET.

    However, I want to explicitly set the CFBundleIdentifier to a different value that's not based off of TARGET. That is, I want the name of the application bundle it generates and the final part of the bundle identifier to be two different things.

    For example, the app would be named something like Foo.app, with an executable named Foo, and its CFBundleIdentifier would be com.mycompany.bar.

    Short of supplying my own Info.plist file (which I'd rather not do), is there any way to do that? I can't find any qmake variables that allow this.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      One thing you can try is to have your own implementation of the default_post.prf in the Mac mkspecs subfolder however that might be a bit overkill.

      I currently don't know if you can provide a custom Info.plist template as used by default.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved