From 8a360bc9a3a6e9eaf9380bd40cc8096cacfc1d9e Mon Sep 17 00:00:00 2001
From: bruvzg <7645683+bruvzg@users.noreply.github.com>
Date: Tue, 10 Jan 2023 08:56:45 +0200
Subject: [iOS] Move name and version information to the Xcode project.
---
misc/dist/ios_xcode/godot_ios.xcodeproj/project.pbxproj | 12 ++++++++++--
misc/dist/ios_xcode/godot_ios/godot_ios-Info.plist | 10 +++++-----
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/misc/dist/ios_xcode/godot_ios.xcodeproj/project.pbxproj b/misc/dist/ios_xcode/godot_ios.xcodeproj/project.pbxproj
index e717b501f4..16e58172b2 100644
--- a/misc/dist/ios_xcode/godot_ios.xcodeproj/project.pbxproj
+++ b/misc/dist/ios_xcode/godot_ios.xcodeproj/project.pbxproj
@@ -328,7 +328,11 @@
"$(PROJECT_DIR)/**",
);
PRODUCT_BUNDLE_IDENTIFIER = $bundle_identifier;
- PRODUCT_NAME = "$(TARGET_NAME)";
+ INFOPLIST_KEY_CFBundleDisplayName = "$name";
+ PRODUCT_NAME = "$binary";
+ EXECUTABLE_NAME = "$binary";
+ MARKETING_VERSION = $short_version;
+ CURRENT_PROJECT_VERSION = $version;
PROVISIONING_PROFILE = "$provisioning_profile_uuid_debug";
TARGETED_DEVICE_FAMILY = "$targeted_device_family";
VALID_ARCHS = "arm64 x86_64";
@@ -360,7 +364,11 @@
"$(PROJECT_DIR)/**",
);
PRODUCT_BUNDLE_IDENTIFIER = $bundle_identifier;
- PRODUCT_NAME = "$(TARGET_NAME)";
+ INFOPLIST_KEY_CFBundleDisplayName = "$name";
+ PRODUCT_NAME = "$binary";
+ EXECUTABLE_NAME = "$binary";
+ MARKETING_VERSION = $short_version;
+ CURRENT_PROJECT_VERSION = $version;
PROVISIONING_PROFILE = "$provisioning_profile_uuid_release";
TARGETED_DEVICE_FAMILY = "$targeted_device_family";
VALID_ARCHS = "arm64 x86_64";
diff --git a/misc/dist/ios_xcode/godot_ios/godot_ios-Info.plist b/misc/dist/ios_xcode/godot_ios/godot_ios-Info.plist
index b88dfae5b2..ee5f1d35ae 100644
--- a/misc/dist/ios_xcode/godot_ios/godot_ios-Info.plist
+++ b/misc/dist/ios_xcode/godot_ios/godot_ios-Info.plist
@@ -5,9 +5,9 @@
CFBundleDevelopmentRegion
en
CFBundleDisplayName
- $name
+ $(INFOPLIST_KEY_CFBundleDisplayName)
CFBundleExecutable
- $binary
+ $(EXECUTABLE_NAME)
CFBundleIcons
CFBundleIcons~ipad
@@ -17,15 +17,15 @@
CFBundleInfoDictionaryVersion
6.0
CFBundleName
- $name
+ $(PRODUCT_NAME)
CFBundlePackageType
APPL
CFBundleShortVersionString
- $short_version
+ $(MARKETING_VERSION)
CFBundleSignature
$signature
CFBundleVersion
- $version
+ $(CURRENT_PROJECT_VERSION)
ITSAppUsesNonExemptEncryption
LSRequiresIPhoneOS
--
cgit v1.2.3