Skip to main content
added 2 characters in body
Source Link

Hi Please follow these steps

In xcode 8.13.3 using swift 3

  1. Go to Build Phases tab

  2. 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)

  1. Then Add Bridging-Header.h file (because sqlite is not written in swift)

  2. Bridging name should be your Projectname-Bridging-Header.h file (Just for naming convention, not mandatory)

  3. Write #import <sqlite3.h> in your Bridging-Header file

  4. Go to build settings tab

    (a) Under the build settings tab search for Swift Compiler - General option and set YES to 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)

Hi Please follow these steps

In xcode 8.1 using swift 3

  1. Go to Build Phases tab

  2. 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)

  1. Then Add Bridging-Header.h file (because sqlite is not written in swift)

  2. Bridging name should be your Projectname-Bridging-Header.h file (Just for naming convention, not mandatory)

  3. Write #import <sqlite3.h> in your Bridging-Header file

  4. Go to build settings tab

    (a) Under the build settings tab search for Swift Compiler - General option and set YES to 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)

Hi Please follow these steps

In xcode 8.3.3 using swift 3

  1. Go to Build Phases tab

  2. 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)

  1. Then Add Bridging-Header.h file (because sqlite is not written in swift)

  2. Bridging name should be your Projectname-Bridging-Header.h file (Just for naming convention, not mandatory)

  3. Write #import <sqlite3.h> in your Bridging-Header file

  4. Go to build settings tab

    (a) Under the build settings tab search for Swift Compiler - General option and set YES to 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)

deleted 1 character in body
Source Link

Hi Please follow these steps

In xcode 8.1 using swift 3

  1. Go to Build Phases tab

  2. 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)

  1. Then Add Bridging-Header.h file (because sqlite is not written in swift)

  2. Bridging name should be your Projectname-Bridging-Header.h file (Just for naming convention, not mandatory)

  3. Write #import < sqlite3<sqlite3.h> in your Bridging-Header file

  4. Go to build settings tab

    (a) Under the build settings tab search for Swift Compiler - General option and set YES to 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)

Hi Please follow these steps

In xcode 8.1 using swift 3

  1. Go to Build Phases tab

  2. 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)

  1. Then Add Bridging-Header.h file (because sqlite is not written in swift)

  2. Bridging name should be your Projectname-Bridging-Header.h file (Just for naming convention, not mandatory)

  3. Write #import < sqlite3.h> in your Bridging-Header file

  4. Go to build settings tab

    (a) Under the build settings tab search for Swift Compiler - General option and set YES to 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)

Hi Please follow these steps

In xcode 8.1 using swift 3

  1. Go to Build Phases tab

  2. 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)

  1. Then Add Bridging-Header.h file (because sqlite is not written in swift)

  2. Bridging name should be your Projectname-Bridging-Header.h file (Just for naming convention, not mandatory)

  3. Write #import <sqlite3.h> in your Bridging-Header file

  4. Go to build settings tab

    (a) Under the build settings tab search for Swift Compiler - General option and set YES to 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)

Source Link

Hi Please follow these steps

In xcode 8.1 using swift 3

  1. Go to Build Phases tab

  2. 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)

  1. Then Add Bridging-Header.h file (because sqlite is not written in swift)

  2. Bridging name should be your Projectname-Bridging-Header.h file (Just for naming convention, not mandatory)

  3. Write #import < sqlite3.h> in your Bridging-Header file

  4. Go to build settings tab

    (a) Under the build settings tab search for Swift Compiler - General option and set YES to 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)