How can I explicitly set the bundle identifier used when using qmake to build a macOS application?
-
When building a macOS application, the Info.plist file that qmake generates has an entry for
CFBundleIdentifier
that is set to a combination ofQMAKE_TARGET_BUNDLE_PREFIX
andTARGET
.However, I want to explicitly set the
CFBundleIdentifier
to a different value that's not based off ofTARGET
. 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 namedFoo
, and its CFBundleIdentifier would becom.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.
-
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.