diff --git a/plugins/secure-storage/src/lib.rs b/plugins/secure-storage/src/lib.rs index 50724a085..d8460ad75 100644 --- a/plugins/secure-storage/src/lib.rs +++ b/plugins/secure-storage/src/lib.rs @@ -40,11 +40,11 @@ pub fn init() -> TauriPlugin { set_default_store(android_native_keyring_store::AndroidStore::from_ndk_context()?); // TODO: (maybe) config to change used keychain. - #[cfg(all(target_os = "android", feature = "apple-keychain"))] + #[cfg(all(target_vendor = "apple", feature = "apple-keychain"))] set_default_store(apple_native_keyring_store::keychain::Store::new()?); // TODO: config. most notably icloud sync and biometrics - #[cfg(all(target_os = "android", feature = "apple-protected"))] + #[cfg(all(target_vendor = "apple", feature = "apple-protected"))] set_default_store(apple_native_keyring_store::protected::Store::new()?); #[cfg(windows)]