From 3c2ffd7457688bd8ae9d5fca688843e2029504b2 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Tue, 17 Jul 2018 08:30:08 +0200 Subject: macOS: Use QMAKE_BUNDLE for the app part of the bundle identifier value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If QMAKE_BUNDLE is set then this should be used for the bundle identifier value instead of the product name. This ensures that when an application provisioning profile is used that it will correctly match against it. This also brings it in line with the documented behavior. Change-Id: I627d212f59d862e7a881941748db5ef98ab4f463 Reviewed-by: Eike Ziller Reviewed-by: Tor Arne Vestbø --- mkspecs/features/mac/default_post.prf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mkspecs') diff --git a/mkspecs/features/mac/default_post.prf b/mkspecs/features/mac/default_post.prf index 21d487f1f9..c6eb7c5a2c 100644 --- a/mkspecs/features/mac/default_post.prf +++ b/mkspecs/features/mac/default_post.prf @@ -215,5 +215,8 @@ xcode_product_bundle_identifier_setting.name = PRODUCT_BUNDLE_IDENTIFIER xcode_product_bundle_identifier_setting.value = $$QMAKE_TARGET_BUNDLE_PREFIX isEmpty(xcode_product_bundle_identifier_setting.value): \ xcode_product_bundle_identifier_setting.value = "com.yourcompany" -xcode_product_bundle_identifier_setting.value = "$${xcode_product_bundle_identifier_setting.value}.${PRODUCT_NAME:rfc1034identifier}" +xcode_product_bundle_target = $$QMAKE_BUNDLE +isEmpty(xcode_product_bundle_target): \ + xcode_product_bundle_target = ${PRODUCT_NAME:rfc1034identifier} +xcode_product_bundle_identifier_setting.value = "$${xcode_product_bundle_identifier_setting.value}.$${xcode_product_bundle_target}" QMAKE_MAC_XCODE_SETTINGS += xcode_product_bundle_identifier_setting -- cgit v1.2.3