1

I am trying to remove a service from my keychain in my Xamarin project doing the following:

public void DeleteAccounts()
{
    foreach (var service in Services)
    {
       var query = new SecRecord(SecKind.GenericPassword);
       query.Service = CreateAlias(service);

       var statusCode = SecKeyChain.Remove(query);
    }

}

But the SecStatusCode returned by the SecKeyChain.Remove(query) is the value -34018

This doesnt equate to any value in the SecStatusCode Definitions

enter image description here

So what does this value equate to in my enum? I can't begin to diagnose the problem knowing what the return code equates to

JKennedy
  • 18,150
  • 17
  • 114
  • 198
  • 2
    Issue with ios: more info here: https://developer.xamarin.com/releases/ios/xamarin.ios_10/xamarin.ios_10.0/#Upstream_Issues_in_Xcode – JKennedy Sep 15 '16 at 13:04
  • workaround here: [https://bugzilla.xamarin.com/show_bug.cgi?id=44361](https://bugzilla.xamarin.com/show_bug.cgi?id=44361) – JKennedy Sep 28 '16 at 10:24

0 Answers0