SQLCipher not an error (code: 21)
jcortezstudio opened this issue · 0 comments
jcortezstudio commented
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