Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't delete from KeyChainStore #20

Closed
fklingenberg opened this issue Nov 15, 2022 · 7 comments
Closed

Can't delete from KeyChainStore #20

fklingenberg opened this issue Nov 15, 2022 · 7 comments

Comments

@fklingenberg
Copy link

Whenever I want to delete a value from the MultiKeyChainStore I get the error:
KeyChainStore.KeyChainError-Error 0.

This is the code im using:

do {
    try keyChainStore.removeAll()
} catch {
    print(error.localizedDescription)
}
@omaralbeik
Copy link
Owner

Thanks for reporting, I added more logging in v0.4.1, @justTreme could you update and share more details here again

@fklingenberg
Copy link
Author

fklingenberg commented Nov 16, 2022

Sure. I updated to version 0.4.1 and the only thing I get printed to the console is:
keychain(-50)

With localizedDescription I get:
Keychain Error: OSStatus=-50.

@omaralbeik
Copy link
Owner

@justTreme could you please share the following info to help me investigate:

  • Device
  • iOS version
  • Does the device have a passcode?
  • How you initialized your store
  • Is the device locked when performing the removeAll()?

@fklingenberg
Copy link
Author

Hey sure.

Device: Tested on iPhone 14 Pro and 14 Pro Simulator. Both same result
iOS: Latest public release: 16.1.1
Passcode: tested with and without passcode
Store: App is not in store
The device is not locked. removeAll() get called when you press a button on the screen.

@fklingenberg
Copy link
Author

Can I support you with any more information?

@omaralbeik
Copy link
Owner

@justTreme I don't know why this is happening, will try to look at it in more details sometime next week.
For now, you can help me by cloning the repo and investigating the issue it if you're interested 😄

@fklingenberg
Copy link
Author

Unfortunately I could not find anything. Hopefully you can find the error.

@fklingenberg fklingenberg closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants