我一直在使用 Xamarin.Auth ( https://components.xamarin.com/view/xamarin.auth/ ) 来存储我的凭据。
var accountStore = AccountStore.Create ();
foreach (var account in accountStore.FindAccountsForService("myAppName"))
accountStore.Delete (account, "myAppName");
AccountStore.Create().Save(acc, "myAppName");
升级到 iOS 10 后,存储凭据时出现此错误:
"Could not save account to KeyChain: -34018"
at Xamarin.Auth.KeyChainAccountStore.Save (Xamarin.Auth.Account account,System.String serviceId) [0x000b2] in <402cf9b3716845b3bdddef581cb33a3e>:0
安装最新版本1.2.3.1 问题似乎只在SIMULATOR上持续存在