我正在使用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");


ios - Xamarin形式的钥匙串(keychain)配置-LMLPHP

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

ios - Xamarin形式的钥匙串(keychain)配置-LMLPHP

没有启用的地方

最佳答案

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

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

10-14 23:46