gpt4 book ai didi

ios - xamarin 表单中的钥匙串(keychain)配置

转载 作者:行者123 更新时间:2023-11-29 00:13:55 25 4
gpt4 key购买 nike

我正在使用 xamarin 表单我正在尝试使用 xamarin.Auth 在数据库中保存一些信息...当我在 android 中执行此操作时,一切都正常...但在 ios 中我收到此错误...

> Xamarin.Auth.AccountStoreException: SaveAsync error = error = Could not save account to KeyChain: -34018
Add Empty Entitlements.plist
File /+ New file /+ iOS /+ Entitlements.plist
SecKeyChain.Add returned : -34018
1. Add Keychain Access Groups to the Entitlements file.
2. Turn on the Keychain Sharing switch in the Capabilities section in the app.

我在后面的 pcl 代码中使用这些行:

        account.Properties.Add("teste2", "1");
account.Properties.Add("teste1", "usereee");
AccountStore.Create().Save(account, "clastech_montana");

enter image description here

这就是我所做的一切......我搜索了很多,但我不知道如何打开钥匙串(keychain),或者我所做的一切是否正确......如果可以的话,请帮助我!

enter image description here

没有地方可以启用

最佳答案

在您的 iOS 项目中,打开 Entitlements.plist,然后选中“启用钥匙串(keychain)”

关于ios - xamarin 表单中的钥匙串(keychain)配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45721848/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com