崩溃在AccountStore.Create().保存(e.Account,");

Ram*_*nda 7 xamarin.ios xamarin

在Xamarin.Forms示例ToDoAwsAuth中

https://developer.xamarin.com/guides/xamarin-forms/web-services/authentication/oauth/

成功登录后,在aOnAuthenticationCompleted事件中,应用程序在尝试保存到Xamarin.Auth时崩溃

AccountStore.Create ().Save (e.Account, "ToDoList");
Run Code Online (Sandbox Code Playgroud)

错误说不能对钥匙串说

期待着寻求帮助.

Dur*_*n.H 8

看看你是否有一个名为Entitlements.plist的文件,如果是这样,点击它并选中启用钥匙串

功能

要么

创建一个包含以下内容的新文件名Entitlements.plist,然后将其拖放到项目中

<?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>
Run Code Online (Sandbox Code Playgroud)
  • 右键单击您的项目

  • 选择选项

  • 选择iOS Bundle Signing

  • 选择Entitlements.plist

xam工作室选项

多数民众赞成都应该没事!


Ram*_*nda 1

看起来这是 Xamarin.Auth 中的一个错误

https://github.com/xamarin/Xamarin.Auth/issues/128