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:
- Extend menu - > Project -> New Target -> Static Library -> Goal Name: SQLite
- Skip the SQLite amalgamation source in the project, you can now select the target, select SQLite
- Xcode Menu -> Project -> Active Target Edit -> Tab General -> Direct Dependency -> Add SQLite
- Tab General -> Linked La Brerijh -> Add your SQLite
Comments
Post a Comment