-
Notifications
You must be signed in to change notification settings - Fork 13
Developing in Xcode
Ryan Homer edited this page Jul 7, 2016
·
1 revision
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.
- Go to the Downloads page.
- 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.
- Select the Tags tab at the top of the page.
- Select the SQLite version you're interested in.
- Select the Fossil SHA1 (10-char hex string) commit link.
- 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.
$ 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.
- 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.