Hi Please follow these steps
In xcode 8.13.3 using swift 3
Go to Build Phases tab
Go to Link Binary with Libraries sub tab.
(a) Click + button to add sqlite framework then search for sqlite then you can see libsqlite3.0.tbd and libsqlite3.tbd
(b) Then select only libsqlite3.tbd(Don't add both because the compiler can not find sqlite3 stuct when you declare in viewController)
Then Add Bridging-Header.h file (because sqlite is not written in swift)
Bridging name should be your Projectname-Bridging-Header.h file (Just for naming convention, not mandatory)
Write
#import <sqlite3.h>in your Bridging-Header fileGo to build settings tab
(a) Under the build settings tab search for Swift Compiler - General option and set
YESto Install Objective-C compatibility Header(b) Set your name and path for the header file in Objective-C Bridging Header option (Or you can simply drag the bridging header file)