Panda Pig • Patty original or translated works. Welcome reprint, Reprint please indicate the source.
If you feel that the writing is not good please more advice, if you feel good please support a lot of praise. Thank you! Hopy;)
Previous versions of Xcode were able to connect directly to the Sqlite3 library file, but although there were sqlite3.tbd files in Xcode7.2, the file could not be found when the connection was compiled.
If you want to use the SQLite database in Xcode7.2, we can manually add the Sqlite3 library file, as follows:
Select the build Phases column for the project target:
Click the + button and click Add Other in the pop-up window ... Button
Then press CMD+SHIFT+G, which will pop up a select Path window
After entering usr/lib into the System Library folder, select Libsqlite3.dylib Library
You can then use the Sqlite3 function in your project.
Xcode7.2 How to use the Sqlite3 database