Merge pull request #68931 from Sauermann/fix-unused-exitcode

Fix unused exitcode in macos export plugin
This commit is contained in:
Rémi Verschelde 2022-11-20 23:25:36 +01:00
commit a8be081b83
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -727,7 +727,7 @@ Error EditorExportPlatformMacOS::_code_sign(const Ref<EditorExportPreset> &p_pre
String str;
int exitcode = 0;
Error err = OS::get_singleton()->execute("codesign", args, &str, nullptr, true);
Error err = OS::get_singleton()->execute("codesign", args, &str, &exitcode, true);
if (err != OK) {
add_message(EXPORT_MESSAGE_WARNING, TTR("Code Signing"), TTR("Could not start codesign executable, make sure Xcode command line tools are installed."));
return err;