Skip to content

Developing in Xcode

Ryan Homer edited this page Jul 7, 2016 · 1 revision

Get the SQLite Source Code

Currently, it is recommended that you use SQLite version 3.10.2. It is a known issue that CEVFS currently does not work properly with SQLite version 3.13.0. Other versions haven't been tested yet. This will be resolved in a future release.

It's a little tricky obtaining previous releases of SQLite as you now have to get them directly from the source code repository which generates the Zip or Tarball on the fly.

  1. Go to the Downloads page.
  2. Select one of the geographically located sites (Dallas TX, Newark NJ, Fremont CA) from the Source Code Repositories section at the bottom of the page.
  3. Select the Tags tab at the top of the page.
  4. Select the SQLite version you're interested in.
  5. Select the Fossil SHA1 (10-char hex string) commit link.
  6. Finally, download the tarball or ZIP archive.

You should end up with a file named something similar to SQLite-fc49f556.tar.gz. It includes the SHA1 mentioned above.

Create the Split Amalgamation Files

$ tar xzf SQLite-fc49f556.tar.gz
$ mkdir bld && cd bld
$ ../SQLite-fc49f556/configure
$ make sqlite3-all.c

Now, copy all the sqlite3-n.c files and the sqlite3-all.c file into the sqlite directory of the CEVFS project.

Notes on Code Formatting

  • Format your C code following the format of the original SQLite source code as much as possible.
  • Use 2 spaces for indentation. No tabs, please!
  • Remove trailing white spaces. In Xcode you can do this automatically. See Settings -> Text Editing -> While editing: and select both:
  • Automatically trim trailing whitespace, and
  • Including whitespace-only lines
  • Squash your commits before submitting your Pull Request.
Clone this wiki locally