5.11.1 iOS Bundle Identifier problems
-
As I started with Qt mobile iOS Apps I hardcoded the bundle identifier in
info.plist:<key>CFBundleIdentifier</key> <string>org.ekkescorner.c2g.qtws</string>
Later (don't remember the Qt version) the hard coded way doesn't work anymore.
with some help by @jakepetroules I had to change into this
info.plist:<key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
and added to my .pro:
ios { .... MY_BUNDLE_ID.name = PRODUCT_BUNDLE_IDENTIFIER MY_BUNDLE_ID.value = org.ekkescorner.c2g.qtws QMAKE_MAC_XCODE_SETTINGS += MY_BUNDLE_ID .... }
now with Qt 5.11.1 this is broken.
see discussions at QtMob and also QTBUG-70072anyone has found a solution / workaround ?
after each build manually changing the build settings in XCode isn't really cool ;-)
-
This has been confirmed as "likely" to be a bug in Qt 5.11.1 and there is a fix scheduled for Qt 5.11.2. There is also a workaround for Qt 5.11.1.
-
@paulmasri for me the bug still exists in 5.11.2 and 5.12 Beta1
but the workaround is working :) -
@ekkescorner after some discussions with Andy Shaw https://bugreports.qt.io/browse/QTBUG-70072
here's the recommended way to get the correct bundle identifier:QMAKE_TARGET_BUNDLE_PREFIX = org.ekkescorner QMAKE_BUNDLE = c2g.qtws
this will create the bundle identifier org.ekkescorner.c2g.qtws
no workaround needed anymore -
Just tried this and, unfortunately, it doesn't work. It has no effect on the generated bundle ID in my project. Qt Creator 4.8.1.
-
@Stokestack doing this in all my Qt 5.12.1 projects with QtC 4.8.1 without any problems
in my info.plist:<key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
-
@ekkescorner Thanks for the reply. Where are you adding those values? If these are build settings, where do the = come in?
-
@Stokestack copy your info.plist from generated Xcode project into to your project and tell QtC where it is
ios { QMAKE_INFO_PLIST = ios/Info.plist }
then change / add what you want
-
@ekkescorner Oh, OK, thanks.
I thought we could put this in the build settings:
QMAKE_TARGET_BUNDLE_PREFIX = org.ekkescorner
QMAKE_BUNDLE = c2g.qtws