Xcode7.2 How to use the Sqlite3 database

Source: Internet
Author: User
Tags sqlite database

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.