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

Swift 4.2 to 5.0 upgrade #532

Open
kristohear opened this issue Nov 23, 2021 · 1 comment
Open

Swift 4.2 to 5.0 upgrade #532

kristohear opened this issue Nov 23, 2021 · 1 comment

Comments

@kristohear
Copy link

kristohear commented Nov 23, 2021

Hi,

We used KeychainAccess to store our encryption key in keychain. We encountered bug when upgrading our application Swift version from 4.2 to 5.0 the key dissapeared from keychain.

        let keychain = Keychain(service: serviceId)
        
        var key = Data(count: 64)
            _ = key.withUnsafeMutableBytes { bytes in
                SecRandomCopyBytes(kSecRandomDefault, 64, bytes)
            }
        try? keychain.set(key, key: keyId)
@DmitriyTerekhin
Copy link

The same!

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