且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

sqlite3在我的Mac终端中使用fts3创建表,以及如何在iphone xcode项目中使用它?

更新时间:2023-01-12 19:35:26

您可能正在台式机上使用未启用FTS3编译的Sqlite版本.您需要在开发计算机上编译本地版本,才能创建FTS.

You are probably using a version of Sqlite on your desktop machine that is not compiled with FTS3 enabled. You need to compile a local version on your development machine to enable you to create the FTS.

Long Weekend网站上的说明还说明了在打开FTS3模块的情况下如何在桌面上构建sqlite的方法:

The instructions on the Long Weekend website also explain how to build sqlite on your desktop with the FTS3 module turned on :

http://longweekendmobile.com/2010/06/16/sqlite-full-text-search-for-iphone-ipadyour-own-sqlite-for-iphone-and-ipad/

我为iPhone创建FTS文件的工作流程如下:

My workflow for creating FTS files for iPhone is as follows:

  1. 在OS X开发人员计算机上安装带有FTS3的sqlite
  2. 通过sqlite的命令行界面执行FTS创建命令等
  3. 将现成的DB文件移动到我的Xcode项目中
  4. 使用静态链接的sqlite二进制文件在模拟器或设备上运行

就是这样. Long Weekend网站上的说明应按描述的那样工作,它们对我有用,这就是为什么我用 grin

That's it. The instructions on the Long Weekend website should work as described, they did for me, which is why I wrote em that way grin