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

Not work in Xcode 11 #62

Open
jaag12 opened this issue Sep 24, 2019 · 3 comments
Open

Not work in Xcode 11 #62

jaag12 opened this issue Sep 24, 2019 · 3 comments

Comments

@jaag12
Copy link

jaag12 commented Sep 24, 2019

An exception occurs when using the library. When used in Xcode 11. I have used it with Objetive C.

@granoff
Copy link
Owner

granoff commented Sep 24, 2019

Thanks for letting me know.

Can you show me an example in code?

Is this code you're running under iOS13?

@jaag12
Copy link
Author

jaag12 commented Sep 25, 2019

Running under IOS 12.4.1,

Code :

if (![[NSUserDefaults standardUserDefaults] stringForKey:@"Initialized"]) { [Lockbox setString:nil forKey:@"auth_token" accessibility:kSecAttrAccessibleAlways]; [[NSUserDefaults standardUserDefaults] setValue:@"YES" forKey:@"Initialized"]; [[NSUserDefaults standardUserDefaults] synchronize]; } NSString *authToken = [Lockbox stringForKey:@"auth_token"];

Some methods that are being used in the example are deprecated, try to update them and the same thing happens. It only happens when I compile in XCode 11, in XCode 10.3 it doesn't happen.

Thanks you.

@granoff
Copy link
Owner

granoff commented Nov 23, 2019

I cannot reproduce an exception with the above code building with Xcode 11.2.1. All the unit tests pass on multiple simulators under multiple iOS versions.

If you are still experiencing an issue, please share the exact error message you are seeing along with any other details that may be useful.

The deprecated methods should not be a problem to continue to use, but I would recommend moving to the newer "archive" methods, or switching to Strongbox.

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