Closed tauri-bot closed 10 months ago
diff --git a/src/platform_impl/macos/app_delegate.rs b/src/platform_impl/macos/app_delegate.rs
index 8cb6c009..6beea942 100644
--- a/src/platform_impl/macos/app_delegate.rs
+++ b/src/platform_impl/macos/app_delegate.rs
@@ -8,7 +8,7 @@ use cocoa::base::id;
use cocoa::foundation::NSString;
use objc::{
declare::ClassDecl,
- runtime::{Class, Object, Sel},
+ runtime::{Class, Object, Sel, BOOL},
};
use std::{
cell::{RefCell, RefMut},
@@ -54,6 +54,10 @@ lazy_static! {
sel!(application:openURLs:),
application_open_urls as extern "C" fn(&Object, Sel, id, id),
);
+ decl.add_method(
+ sel!(applicationSupportsSecureRestorableState:),
+ application_supports_secure_restorable_state as extern "C" fn(&Object, Sel, id) -> BOOL,
+ );
decl.add_ivar::<*mut c_void>(AUX_DELEGATE_STATE_NAME);
AppDelegateClass(decl.register())
@@ -120,3 +124,9 @@ extern "C" fn application_open_urls(_: &Object, _: Sel, _: id, urls: id) -> () {
AppState::open_urls(urls);
trace!("Completed `application:openURLs:`");
}
+
+extern "C" fn application_supports_secure_restorable_state(_: &Object, _: Sel, _: id) -> BOOL {
+ trace!("Triggered `applicationSupportsSecureRestorableState`");
+ trace!("Completed `applicationSupportsSecureRestorableState`");
+ objc::runtime::YES
+}
I dont have github signing set up so can't make a pull request at the moment, but does that fix it for you?
Describe the bug
Since MacOS 14 (Sonoma) we're now receiving these error when running Tauri apps via CLI:
(Even when the MacOS binary has been properly signed and notarized by Apple)
T
Reproduction
No response
Expected behavior
No response
Platform and versions
Stack trace
No response
Additional context
No response