Search code examples
sqliteswift3xcode8-beta6

Sqlite3 strange behaviour


I cannot import sqlite3 at all! Even though I created bridging header, imported libraries nothing works in swift. But when I tried in Objective-C, it worked just perfectly!

There is also another issue... The simulator also throws an error on the physical device. The database connection is established, I can retrieve data, but there is no way I can submit data to the datase;

ERROR:

No such table 'username'

Hope someone could help me out!


Solution

  • Reconnect the database and try to recreate the bridging header. Maybe it is a connection error or something. As soon as you haven't provided any code...