summaryrefslogtreecommitdiff
path: root/platform/iphone/export
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2018-11-23 07:01:29 +0900
committervolzhs <volzhs@gmail.com>2018-11-23 07:01:29 +0900
commit96b1a190a3452e730d99d9d7969e730592d35ba1 (patch)
tree5a635ced17bcdbe60ea3a3c4d86c721bf563aaca /platform/iphone/export
parentda31d63f765d8797f2eaf0272ed88e2b4d7e77bb (diff)
Show error if required fields are not filled when exporting iOS
Diffstat (limited to 'platform/iphone/export')
-rw-r--r--platform/iphone/export/export.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp
index 1fc497456c..7fb3afe9a9 100644
--- a/platform/iphone/export/export.cpp
+++ b/platform/iphone/export/export.cpp
@@ -982,11 +982,27 @@ bool EditorExportPlatformIOS::can_export(const Ref<EditorExportPreset> &p_preset
err += "Custom release package not found.\n";
}
+ String team_id = p_preset->get("application/app_store_team_id");
+ if (team_id.length() == 0) {
+ err += "App Store Team ID not specified - cannot configure the project.\n";
+ }
+
+ for (unsigned int i = 0; i < (sizeof(icon_infos) / sizeof(icon_infos[0])); ++i) {
+ IconInfo info = icon_infos[i];
+ String icon_path = p_preset->get(info.preset_key);
+ if (icon_path.length() == 0) {
+ if (info.is_required) {
+ err += "Required icon is not specified in the preset.\n";
+ }
+ break;
+ }
+ }
+
if (!err.empty())
r_error = err;
r_missing_templates = !valid;
- return valid;
+ return err.empty();
}
EditorExportPlatformIOS::EditorExportPlatformIOS() {