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
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