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 !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With