Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crashing at AccountStore.Create ().Save (e.Account, ");

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.

like image 974
Ramakrishna Devarakonda Avatar asked Sep 29 '16 17:09

Ramakrishna Devarakonda


1 Answers

See if you have a file called Entitlements.plist if so click on it and check Enable Keychain

Capabilities

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

xam studio options

Thats all then it should be fine !

like image 132
Durai Amuthan.H Avatar answered Sep 29 '22 15:09

Durai Amuthan.H