Sqlite.swift: SQLCipher 0.11.5 - not an error (code: 21)

Created on 16 May 2018  路  5Comments  路  Source: stephencelis/SQLite.swift

When I use the version 0.11.5 with Cocoapods I received the error not an error (code: 21)

pod 'SQLite.swift', '~> 0.11.5'
pod 'SQLite.swift/SQLCipher', '~> 0.11.5'

But If I use pod 'SQLite.swift/SQLCipher', :git => 'https://github.com/stephencelis/SQLite.swift.git' It works.

do {
            db = try Connection("database.db")
            try db!.key("password") // error with the version 0.11.5
            return db
        } catch {
            print(error)
        }

I would like to know why it happens.
To who have this problem using pod 'SQLite.swift/SQLCipher', :git => 'https://github.com/stephencelis/SQLite.swift.git'

Most helpful comment

I meat the same problem.
Also I used pod 'SQLite.swift/SQLCipher', :git => 'https://github.com/stephencelis/SQLite.swift.git', It not worked.

All 5 comments

I meat the same problem.
Also I used pod 'SQLite.swift/SQLCipher', :git => 'https://github.com/stephencelis/SQLite.swift.git', It not worked.

I am also getting the same error, even when I used pod 'SQLite.swift/SQLCipher', :git => 'https://github.com/stephencelis/SQLite.swift.git', the issue is not resolved, anyone of you have found any solution on this?

I am getting the same as you guys. Have you solved it? If yes please share your solution. Thank you so much!

Still happening in 2019

now It works if I use

target 'YourAppTargetName' do
pod 'SQLite.swift/SQLCipher', '~> 0.12.0'
end

Was this page helpful?
0 / 5 - 0 ratings