Open Zack-Xb opened 1 year ago
Hi!
At the moment, I don't have support for iOS. However, that's a good idea. I'll try to add support for iOS.
I was thinking of using objective c
to handle the local authentication framework and bind that directly to rust
using objc
crate
I was thinking of using
objective c
to handle the local authentication framework and bind that directly torust
usingobjc
crate
Did you end up solving the problem?
@doroved yes take a look at https://github.com/Zack-Xb/tid-rs
I am using this crate in the tauri mobile framework to authenticate the users when interacting with the ios keychain via security framework. The problem here I believe lies in the crate dependency
swift-rs
specifically in thelink
function inbuild.rs
. This is because the function is trying to buildswift-lib
from this crate with the swift-package-manager but the swift package manager recognises anything that isdarwin
asmacOS
and this cause the swift build to fail if when targeting the ios triple correctly and setting all other flags correctly.If anyone has any workaround to this issue, or another way to use the localauthentication framework from rust, leave a comment please. Thanks.