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

Getting error when using SQLCipher #861

Closed
hansrajgavali opened this issue Nov 22, 2018 · 3 comments
Closed

Getting error when using SQLCipher #861

hansrajgavali opened this issue Nov 22, 2018 · 3 comments

Comments

@hansrajgavali
Copy link

hansrajgavali commented Nov 22, 2018

I added SQLCipher by following the steps given in the documentation, after adding this pod 'SQLite.swift/SQLCipher', '~> 0.11.5' , I followed the steps added key to db

let db = try Connection("path/to/db.sqlite3")
try db.key("secret")

and I compiled the project but I am getting error (error code:21)

[logging] misuse at line 213459 of [2b0954060f]

need guidance to solve the issue

@tungdx
Copy link

tungdx commented Dec 29, 2018

Hi @hansrajgavali Just wonder if you manage to solve this issue? I have been encountering the same issue.

@swlkr
Copy link

swlkr commented Jan 18, 2019

I had everything wrong in my Podfile.

I had both sqlite.swift and sqlite.swift/sqlcipher, I only needed sqlcipher.

I solved it by deleting the pods and the cache:

pod cache clean
rm -rf Pods
rm Podfile.lock

Then I used the master branch latest commit as of today in my podfile

platform :macos, '10.14'
use_frameworks!

target 'YourAppName' do
    pod 'SQLite.swift/SQLCipher', :git => 'https://github.com/stephencelis/SQLite.swift.git', :commit => 'ed8f603f856e9f1f4adb76b63b7234547257ec5a'
end

Ran pod install and db.key worked.

@altagir
Copy link

altagir commented Feb 4, 2019

you should NOT include the commit to indeed have the latest from git
just use :

pod 'SQLite.swift/SQLCipher', :git => 'https://github.com/stephencelis/SQLite.swift.git'

it does fix the problem temporary, but using dev version is not ideal

@jberkel jberkel closed this as completed Aug 24, 2021
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

5 participants