/iOS-Couchbase-Xcode-templates

Xcode templates to make it easier to get started with Mobile Couchbase for iOS

Primary LanguageObjective-C

Xcode templates for Mobile Couchbase (iOS)

These templates allow you to quickly get started integrating CouchDB into your next iOS applicaiton.

Current Status

This is the second release of the template. It is intended as developer preview. Your Xcode MAY crash as a result of this template.

Getting Started

  • Quit Xcode (maybe not required, but I would to be safe)

  • mkdir -p ~/Library/Developer/Xcode/Templates/

  • cd ~/Library/Developer/Xcode/Templates/

  • git clone https://github.com/mschoch/iOS-Couchbase-Xcode-templates.git

  • Launch Xcode

  • Select File > New > New Project...

  • You should see a Couchbase Application group on the left hand side, then several Couchbase variants of the main Application templates, select the one you'd like to use (the subsequent screens assume you chose Couchbase Window-based Application)

  • Name your project

  • Tell Xcode where to store the files

  • Now you should see a project that looks like this

  • If you select iPhone 4.3 Simulator and press the Run button you should see

  • In the console, you should see

Known Issues

  • Linkage to libraries is a bit fragile, mainly do to lack of documentation around Xcode 4 project templates

Future Plans

  • Add proper support for linking to the libraries (need better documentation around Xcode 4 project template files, doesn't seem community has figured it all out yet, see THANKS below)
  • Integrate this with main Mobile Couchbase repo
  • Possibly create simple installer to streamline this further

Thanks

This work was only possible because of the information I was able to find at these sites:

And of course the Mobile Couchbase project https://github.com/couchbaselabs/iOS-Couchbase