#MacOS Secure Coding Warning

19 messages · Page 1 of 1 (latest)

shy root
#

Receiving this warning when running a Tauri app in CLI mode on some Macs but not others only since the update to Tauri 1.5. Any ideas on why this is popping up and how to avoid it?

(mac binary has been properly signed and notorized)

WARNING: Secure coding is not enabled for restorable state!" from appearing for your application on macOS, you need to enable secure coding for the restorable state. This is achieved by implementing the applicationSupportsSecureRestorableState: method in your application's delegate and returning YES
slow pasture
#

nothing changed in tauri 1.5 (the underlying OS abstraction crates wry and tao are basically in a feature freeze) so i kinda doubt the tauri version has anything to do with that

#

but this is a new thing in macos 14 so maybe that's what makes it look like that

shy root
#

ah Sonoma ☠️

#

that makes sense why I can't replicate it all the time

#

I'm seeing some solutions in C and Swift, but nothing Rust related yet, might be more of a Rust issue

slow pasture
#

just googled it and it's absolutely insane, not setting that mode is basically a security vulnerability but its not enabled by default...

#

there is no rust solution. gotta use rust's objective-c bindings

shy root
#

fun 😅

#

Maybe I'll drop this one in the Rust Discord instead

slow pasture
#

wanna create an issue on our github for that? sounds like something we should set in tauri itself

shy root
#

Totally, will do 👍

slow pasture
#

ahhh, it's on the ApplicationDelegate... Not sure if that can be accessed outside of tao 🤔

shy root
#

hmm

#

I can make a Rust issue as well if that makes more sense, just let me know