1

I followed the SQLite.Swift manual installation process exactly (https://github.com/stephencelis/SQLite.swift), but a red warning appears at "import SQLite".

OSX (10.11.6) XCode 7.3.1

Question

Do I need to create and include a header file?

Reference info

In SQLite.xcodeproj, libsqlite3.tbd is automatically linked instead of libsqlite3.dyslib.

Mad Physicist
  • 107,652
  • 25
  • 181
  • 264
Yuichiro
  • 11
  • 4

2 Answers2

0

After following the SQLite.Swift manual installation process, Select SQLite iOS from Product -> Scheme. Now select Build from Product menu.

After waiting for Build succeeded, it does not show error for "import SQLite".

Arundale Ramanathan
  • 1,781
  • 1
  • 18
  • 25
0

I noticed that in your project, the sqlite sub project is in your project folder. It needs to be its own separate folder.

When you drag and drop the sqlite sub project in, you need to make sure that all folders are collapsed, and put it at the bottom of all of the folders.

Xcoder
  • 1,433
  • 3
  • 17
  • 37