From 7c076fbd0b355bd844aa5c89d624570102181f3d Mon Sep 17 00:00:00 2001 From: Sergey Minakov Date: Mon, 18 Jan 2021 19:22:06 +0300 Subject: [PATCH] [iOS] Fix embedding of plugin libraries (cherry picked from commit 6d67827f4e254a5daccae5ec5851be9aaf494b19) --- platform/iphone/export/export.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp index 45afbc4bbb9..bc9162f301c 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -1232,8 +1232,9 @@ Error EditorExportPlatformIOS::_export_ios_plugins(const Ref // 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);