From 857fd831c1eb8ef5bd3633e1c14c0b5051aaa40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Tue, 25 May 2021 10:26:54 +0200 Subject: [PATCH] Set schemes' build config to debug/release in iOS Xcode export (cherry picked from commit 1534b4e65e9ad63a52fb4ad21e67d9487326460c) --- .../xcshareddata/xcschemes/godot_ios.xcscheme | 10 +++++----- platform/iphone/export/export.cpp | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/misc/dist/ios_xcode/godot_ios.xcodeproj/xcshareddata/xcschemes/godot_ios.xcscheme b/misc/dist/ios_xcode/godot_ios.xcodeproj/xcshareddata/xcschemes/godot_ios.xcscheme index b6beeb012fe..d61a53d5c2c 100644 --- a/misc/dist/ios_xcode/godot_ios.xcodeproj/xcshareddata/xcschemes/godot_ios.xcscheme +++ b/misc/dist/ios_xcode/godot_ios.xcodeproj/xcshareddata/xcschemes/godot_ios.xcscheme @@ -23,7 +23,7 @@ @@ -42,7 +42,7 @@ + buildConfiguration = "$default_build_config"> diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp index 923c2b15d9b..3172ddfdfca 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -444,6 +444,8 @@ void EditorExportPlatformIOS::_fix_config_file(const Ref &p_ strnew += lines[i].replace("$copyright", p_preset->get("application/copyright")) + "\n"; } else if (lines[i].find("$team_id") != -1) { strnew += lines[i].replace("$team_id", p_preset->get("application/app_store_team_id")) + "\n"; + } else if (lines[i].find("$default_build_config") != -1) { + strnew += lines[i].replace("$default_build_config", p_debug ? "Debug" : "Release") + "\n"; } else if (lines[i].find("$export_method") != -1) { int export_method = p_preset->get(p_debug ? "application/export_method_debug" : "application/export_method_release"); strnew += lines[i].replace("$export_method", export_method_string[export_method]) + "\n";