Answer the question
In order to leave comments, you need to log in
Insert, delete sqlite not working on device?
Hello, I'm asking for help.
On the simulator insert, delete queries work, on the phone they don't.
I connect to the database like this:
let path = Bundle.main.path(forResource: "base.sqlite", ofType: nil)!
let baseFile = URL(fileURLWithPath: path)
var db: OpaquePointer?
if sqlite3_open(baseFile.path, &db) != SQLITE_OK {
print("error opening database")
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question