Browse Source

Merge pull request #47853 from naithar/fix/xcframework-time-4.0

[iOS] Fix for plugin modified time check
Rémi Verschelde 4 years ago
parent
commit
b4b7c97d38
1 changed files with 3 additions and 2 deletions
  1. 3 2
      platform/iphone/plugin/godot_plugin_config.h

+ 3 - 2
platform/iphone/plugin/godot_plugin_config.h

@@ -218,8 +218,9 @@ static inline uint64_t get_plugin_modification_time(const PluginConfigIOS &plugi
 	} else {
 	} else {
 		String file_path = plugin_config.binary.get_base_dir();
 		String file_path = plugin_config.binary.get_base_dir();
 		String file_name = plugin_config.binary.get_basename().get_file();
 		String file_name = plugin_config.binary.get_basename().get_file();
-		String release_file_name = file_path.plus_file(file_name + ".release.a");
-		String debug_file_name = file_path.plus_file(file_name + ".debug.a");
+		String plugin_extension = plugin_config.binary.get_extension();
+		String release_file_name = file_path.plus_file(file_name + ".release." + plugin_extension);
+		String debug_file_name = file_path.plus_file(file_name + ".debug." + plugin_extension);
 
 
 		last_updated = MAX(last_updated, FileAccess::get_modified_time(release_file_name));
 		last_updated = MAX(last_updated, FileAccess::get_modified_time(release_file_name));
 		last_updated = MAX(last_updated, FileAccess::get_modified_time(debug_file_name));
 		last_updated = MAX(last_updated, FileAccess::get_modified_time(debug_file_name));