summaryrefslogtreecommitdiff
path: root/platform/iphone/export
diff options
context:
space:
mode:
authorSergey Minakov <naithar@icloud.com>2021-01-17 14:11:13 +0300
committerSergey Minakov <naithar@icloud.com>2021-01-17 14:13:09 +0300
commit01d513f3ca3692af6edcdafd309f06f799df304d (patch)
treebfe0e42f9ddfaeacb7158da391dd5ccbfebf3354 /platform/iphone/export
parent49b5776e8bd62b4bfb6511cca770611b6a3062e4 (diff)
[iOS] Added support for '.xcframework' in plugins
Diffstat (limited to 'platform/iphone/export')
-rw-r--r--platform/iphone/export/export.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp
index a8561c79ab..9dc0825809 100644
--- a/platform/iphone/export/export.cpp
+++ b/platform/iphone/export/export.cpp
@@ -1357,16 +1357,10 @@ Error EditorExportPlatformIOS::_export_ios_plugins(const Ref<EditorExportPreset>
PluginConfigIOS plugin = enabled_plugins[i];
// Export plugin binary.
- if (!plugin.supports_targets) {
- err = _copy_asset(dest_dir, plugin.binary, nullptr, true, true, r_exported_assets);
- } else {
- String plugin_binary_dir = plugin.binary.get_base_dir();
- String plugin_name_prefix = plugin.binary.get_basename().get_file();
- String plugin_file = plugin_name_prefix + "." + (p_debug ? "debug" : "release") + ".a";
- String result_file_name = plugin.binary.get_file();
+ String plugin_main_binary = get_plugin_main_binary(plugin, p_debug);
+ String plugin_binary_result_file = plugin.binary.get_file();
- err = _copy_asset(dest_dir, plugin_binary_dir.plus_file(plugin_file), &result_file_name, true, true, r_exported_assets);
- }
+ err = _copy_asset(dest_dir, plugin_main_binary, &plugin_binary_result_file, true, true, r_exported_assets);
ERR_FAIL_COND_V(err, err);