xcode - Compiling custom SQLite for an iPhone app -


I'm trying to compile the source in my iPhone app (to provide full-text search functionality Is not available in the iPhone-bundled version of binary.

When I add sqlite3.c and sqlite3.h to a normal Carbon C app template, it's just fine (about an unused With a warning in the variable), but when I compile it in my iPhone project Try sector'd let me get several errors related to missing function declarations. I am able to solve these problems with ctype.h clearly, but this is a bit weird.

However, it still fails to connect with the following error:

  "_sqlite3_version", referenced from: _sqlite3_version $ non_lazy_ptr in sqlite3.0 symbols ( S) not found Storage 2: LD returned 1 exit status  

I think there is something in the iPhone app's build settings, but I can not understand it. any idea?

Try it with this step:

  1. Extend menu - > Project -> New Target -> Static Library -> Goal Name: SQLite
  2. Skip the SQLite amalgamation source in the project, you can now select the target, select SQLite
  3. Xcode Menu -> Project -> Active Target Edit -> Tab General -> Direct Dependency -> Add SQLite
  4. Tab General -> Linked La Brerijh -> Add your SQLite

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -