What is the difference between libsqlite3.dylib and libsqlite3.0.dylib?

IosSqlite

Ios Problem Overview


I'm getting started with SQLite databases in an app I'm working on. I've not run into issues yet but one of the early steps from this tutorial is linking the SQLite3 framework. The tutorial calls for libsqlite3.0.dylib but I noticed another one libsqlite3.dylib. Is the latter just a symlink to the latest v3 library like the convention for package managers on UNIX or is there a difference?

Adam

Ios Solutions


Solution 1 - Ios

> Is the latter just a symlink to the latest v3 library like the convention for package managers on UNIX?

That’s it exactly.

Solution 2 - Ios

Actually libsqlite3.dylib itself is a link it points libsqlite3.0.dylib. In other words, in the project if you add libsqlite3.dylib and add libsqlite3.0.dylib to actually add the same file, there is no difference, then why you want to add libsqlite3.dylib?

The because libsqlite3.dylib always points to the latest sqlite3 dynamic library, that is if there is a new dynamic library (eg: libsqlite3.1.dylib) libsqlite3.dylib will point to this new dynamic (libsqlite3.1.dylib, ) rather than in libsqlite3.0.dylib! So recommend or to add libsqlite3.dylib!

Reference-: http://www.databaseskill.com/3734528/

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionearnshavianView Question on Stackoverflow
Solution 1 - IosJeff KelleyView Answer on Stackoverflow
Solution 2 - IosImranView Answer on Stackoverflow