diff --git a/platform/macos/export/export_plugin.cpp b/platform/macos/export/export_plugin.cpp index 2400666269..cc207d5c0a 100644 --- a/platform/macos/export/export_plugin.cpp +++ b/platform/macos/export/export_plugin.cpp @@ -1841,7 +1841,7 @@ Error EditorExportPlatformMacOS::export_project(const Ref &p if (appnames.is_empty()) { domain->set_locale_override(lang); - const String &name = domain->translate(project_name, String()); + String name = domain->translate(project_name, String()); if (name != project_name) { f->store_line("CFBundleDisplayName = \"" + name.xml_escape(true) + "\";"); }