summaryrefslogtreecommitdiff
path: root/platform/iphone/export/export.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-18 18:16:24 +0100
committerGitHub <noreply@github.com>2021-01-18 18:16:24 +0100
commit7fc9d4c79b3b790ff75c32317c25410f58ed1f68 (patch)
treecc1c7926e215bfaad35ac787dcb51fc019702297 /platform/iphone/export/export.cpp
parenteba982b9a39eeaca7977381a93d1a672eca82a3f (diff)
parent6d67827f4e254a5daccae5ec5851be9aaf494b19 (diff)
Merge pull request #45289 from naithar/fix/plugin_embedding
[iOS] Fix embedding of plugin libraries
Diffstat (limited to 'platform/iphone/export/export.cpp')
-rw-r--r--platform/iphone/export/export.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp
index 9dc0825809..d0c0ef7a4b 100644
--- a/platform/iphone/export/export.cpp
+++ b/platform/iphone/export/export.cpp
@@ -1359,8 +1359,9 @@ Error EditorExportPlatformIOS::_export_ios_plugins(const Ref<EditorExportPreset>
// Export plugin binary.
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_main_binary, &plugin_binary_result_file, true, true, r_exported_assets);
+ // We shouldn't embed .xcframework that contains static libraries.
+ // Static libraries are not embedded anyway.
+ err = _copy_asset(dest_dir, plugin_main_binary, &plugin_binary_result_file, true, false, r_exported_assets);
ERR_FAIL_COND_V(err, err);