summaryrefslogtreecommitdiffstats
path: root/platform/iphone/export/export.cpp
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2021-05-25 10:26:54 +0200
committerPedro J. Estébanez <pedrojrulez@gmail.com>2021-05-25 10:26:54 +0200
commit1534b4e65e9ad63a52fb4ad21e67d9487326460c (patch)
tree354591afa2a739db23889e6d897f49a6c8be2541 /platform/iphone/export/export.cpp
parentaf03e9c83018b47cb82da67e5f8e277b29b82d66 (diff)
downloadredot-engine-1534b4e65e9ad63a52fb4ad21e67d9487326460c.tar.gz
Set schemes' build config to debug/release in iOS Xcode export
Diffstat (limited to 'platform/iphone/export/export.cpp')
-rw-r--r--platform/iphone/export/export.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp
index 36566dffbf..08ad77e940 100644
--- a/platform/iphone/export/export.cpp
+++ b/platform/iphone/export/export.cpp
@@ -448,6 +448,8 @@ void EditorExportPlatformIOS::_fix_config_file(const Ref<EditorExportPreset> &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";