Skip to main content
Added directions to add a bridging header file.
Source Link
David Berry
  • 41.3k
  • 12
  • 87
  • 96

Add it to your Bridging-Header.h file:

#import <sqlite3.h> 

This is the primary mechanism for importing any C-language libraries.

If you don't yet have a Bridging-Header.h file:

  1. Add a file Bridging-Header.h (or more typically (ProjectName)-Bridging-Header.h
  2. Go to the build settings tab for your project
  3. Find "Objective-C Bridging Header". The easiest way is to search for bridging.
  4. Enter the name and path for the file you created in step one. It's probably (ProjectName)/(ProjectName)-Bridging-Header.h

Add it to your Bridging-Header.h file:

#import <sqlite3.h> 

This is the primary mechanism for importing any C-language libraries.

Add it to your Bridging-Header.h file:

#import <sqlite3.h> 

This is the primary mechanism for importing any C-language libraries.

If you don't yet have a Bridging-Header.h file:

  1. Add a file Bridging-Header.h (or more typically (ProjectName)-Bridging-Header.h
  2. Go to the build settings tab for your project
  3. Find "Objective-C Bridging Header". The easiest way is to search for bridging.
  4. Enter the name and path for the file you created in step one. It's probably (ProjectName)/(ProjectName)-Bridging-Header.h
Source Link
David Berry
  • 41.3k
  • 12
  • 87
  • 96

Add it to your Bridging-Header.h file:

#import <sqlite3.h> 

This is the primary mechanism for importing any C-language libraries.