From c06ce321eed35927a0af3424ce4c3e6bd693fdb2 Mon Sep 17 00:00:00 2001 From: Nicklas Bystedt Date: Wed, 3 Apr 2024 09:01:06 +0200 Subject: [PATCH] Fixed link error during export. ld: file cannot be mmap()ed, errno=22 path=godot-gdextension-test/dylibs/bin/libgdexample.ios.template_debug.universal.framework/libgdexample.ios.template_debug.universal in 'godot-gdextension-test/dylibs/bin/libgdexample.ios.template_debug.universal.framework/libgdexample.ios.template_debug.universal' clang: error: linker command failed with exit code 1 (use -v to see invocation) --- platform/ios/export/export_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/ios/export/export_plugin.cpp b/platform/ios/export/export_plugin.cpp index 82b4f6f90487..68f86039d32a 100644 --- a/platform/ios/export/export_plugin.cpp +++ b/platform/ios/export/export_plugin.cpp @@ -1196,7 +1196,7 @@ Error EditorExportPlatformIOS::_copy_asset(const Ref &p_pres asset_path = asset_path.path_join(framework_name); destination_dir = p_out_dir.path_join(asset_path); - destination = destination_dir.path_join(file_name); + destination = destination_dir; // Convert to framework and copy. Error err = _convert_to_framework(p_asset, destination, p_preset->get("application/bundle_identifier"));