AccountStore.Create ().Save (e.Account, "); 崩溃 [英] Crashing at AccountStore.Create ().Save (e.Account, ");
问题描述
在 Xamarin.Forms 示例 ToDoAwsAuth 中
或
使用以下内容创建一个新文件名Entitlements.plist,然后将其拖放到您的项目中
<plist version="1.0"><字典><key>keychain-access-groups</key><阵列><string>你的bundle id</string></阵列></dict></plist>
右键点击您的项目
选择选项
选择 iOS 捆绑签名
选择Entitlements.plist
就是这样应该没问题!
In the Xamarin.Forms example ToDoAwsAuth at
https://developer.xamarin.com/guides/xamarin-forms/web-services/authentication/oauth/
After successful login, in aOnAuthenticationCompleted event, the application is crashing when trying to save to Xamarin.Auth at
AccountStore.Create ().Save (e.Account, "ToDoList");
The error says not able to say to keychain
Looking forward for help.
See if you have a file called Entitlements.plist if so click on it and check Enable Keychain
or
create a new file names Entitlements.plist with the following content then drag and drop it on your project
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keychain-access-groups</key>
<array>
<string>your bundle id</string>
</array>
</dict>
</plist>
Right click on your project
Choose Options
Choose iOS Bundle Signing
Choose Entitlements.plist
Thats all then it should be fine !
这篇关于AccountStore.Create ().Save (e.Account, "); 崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!