Skip to content
sharpred edited this page Sep 13, 2012 · 5 revisions

As of August 2011, the couchbase_ti module links against the prebuilt Couchbase framework. Here's how to get started:

  1. Download the framework from http://www.couchbase.com/wiki/display/couchbase/iOS and unzip it.
  2. Copy the Couchbase.framework directory to ~/Library/Frameworks.
  3. Clone the couchbase_ti project using git clone [email protected]:pegli/couchbase_ti.git
  4. Cd to couchbase_ti/mobile/ios and ./build.py
  5. To execute the example app, run titanium run --platform=iphone

If you are going to modify the couchbase_ti module for your project, there are a couple of things to keep in mind:

  • The configuration files for the CouchDB database are under the Documents directory, so they are not overwritten each time you install the app. If you need to make changes to the config files between releases, you must write code to copy your new config file to the Documents dir.

  • Paths in the configuration file appear to be relative to the config file location itself. I'm working on confirming this.

Clone this wiki locally