AccountStore.Create ().Save (e.Account, "); 崩溃 [英] Crashing at AccountStore.Create ().Save (e.Account, ");

查看:18
本文介绍了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, &quot;); 崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆