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

SQLCipher not an error (code: 21) #1275

Open
jcortezstudio opened this issue Aug 1, 2024 · 0 comments
Open

SQLCipher not an error (code: 21) #1275

jcortezstudio opened this issue Aug 1, 2024 · 0 comments

Comments

@jcortezstudio
Copy link

im implementing SQLCipher to encrypt my database but when setting the key I am getting the following error:

not an error (code: 21)

func setupDB() {
        do {
            let path = NSSearchPathForDirectoriesInDomains(
                .documentDirectory, .userDomainMask, true
            ).first!

            let db = try Connection("\(path)/db.sqlite3")
            try db.key("password")
        } catch {
            print(error)
        }
    }

Build Information

  • Include the SQLite.swift version, commit or branch experiencing the issue.
pod 'SQLite.swift', '~> 0.15.3'
pod 'SQLite.swift/SQLCipher', '~> 0.15.3'

  • Mention Xcode and OS X versions affected.
Xcode 15.4
iOS 17.4
  • How do do you integrate SQLite.swift in your project?
    • CocoaPods
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