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

Error Code=3 when forUserAccount has string with dots #184

Open
andregrillo opened this issue Nov 26, 2017 · 0 comments
Open

Error Code=3 when forUserAccount has string with dots #184

andregrillo opened this issue Nov 26, 2017 · 0 comments

Comments

@andregrillo
Copy link

andregrillo commented Nov 26, 2017

Hi guys,

I am experiencing what it seems to be some kind of bug.
I am using the latest version of Locksmith (4.0) on Xcode 8.0.
Every time I try to save in keychain with an user account that has dots (like an email address), Locksmith throws an error Code=3.
Seems to be a comestic error, cause I can retrieve the correct saved string from keychain later with no issues.
If I take out the dots from the user account the error simply disappears.

Tried also downgrading to Locksmith 3.1 (also in Xcode 8.0) and the error message still shows up the same way.

The code I am using is:

do {      

        //Saving data to Keychain

        try Locksmith.saveData(data: ["password": "123456"], forUserAccount: "usuario@teste.com.br")

        } catch let err as NSError{

            print(err.debugDescription)

        }

The error message:
Error Domain=Locksmith.LocksmithError Code=3 "(null)"

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

1 participant