Skip to content

Commit

Permalink
change URLs back to main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jchris committed May 11, 2011
1 parent 4fa9859 commit e2df1ca
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions doc/using_mobile_couchbase.md
Expand Up @@ -35,51 +35,51 @@ We are very open to patches,suggestions, and improvements. Please share what you

File > New Project...

<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/001.png" width="400"/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/001.png" width="400"/>

### Copy Couchbase dependencies into your project

* Drag the `Couchbase.h` file alongside the other files in the sidebar of your project

<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/002.png" width="400"/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/002.png" width="400"/>

* If you like, you may copy the files into the destination group's folder, or create references to the added files. We will add `Couchbase.h` to your target in a few steps, as we need to get in that window later anyway.

<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/003.png" width="400"/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/003.png" width="400"/>

* Drag the `libCouchbase-iphonesimulator.a` and `libTouchJSON-iphonesimulator.a` files to the `Frameworks` group in your project and add them to your target

<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/004.png" width=400/>
<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/005.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/004.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/005.png" width=400/>

* Optionally, drag the `libCouchbase-iphoneos.a` and `libTouchJSON-iphoneos.a` files to the `Frameworks` group in your project and add them to your target (only if doing on device development)

<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/006.png" width=400/>
<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/007.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/006.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/007.png" width=400/>

* Drag the `Couchbase.bundle` to the `Supporting Files` group and add it to your target, this ensures that all Mobile Couchbase runtime files are embedded into your application

<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/008.png" width=400/>
<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/009.png" width=400/>
<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/010.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/008.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/009.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/010.png" width=400/>

* Click on the project and select your active target, navigate to the Build Phases tab, expand the Link Binary with Libaries section

<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/011.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/011.png" width=400/>

* Click the `+` button at the bottom of this section

<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/012.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/012.png" width=400/>

* Add `libstdc++.dylib` from the list of Apple supplied iOS libraries.

* Make `Couchbase.h` linked into your app. To do this, in the Build Phases tab, click the (+) button to "Add Build Phase" and select "Add Copy Headers". Then in the Copy Header phase, add the `Couchbase.h` file to the Project headers.

<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/013.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/013.png" width=400/>

* Make your App Delegate conform to the `CouchbaseDelegate` protocol by adding `#import "Couchbase.h"` to your app delegate's header file in the Xcode sidebar.

<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/014.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/014.png" width=400/>

* Implement the required `couchbaseDidStart` delegate callback method.

Expand All @@ -91,10 +91,10 @@ Do this by adding some code to your app delegate's `.m` file:

* Start Mobile Couchbase in your `application:didFinishLaunchingWithOptions:` by adding `[Couchbase startCouchbase:self];`

<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/015.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/015.png" width=400/>

* Press `⌘ R` or choose `Build and Run` form the `Build` menu and watch Mobile Couchbase start up in the Console `⇧ ⌘ R`.

<img src="https://github.com/mschoch/iOS-Couchbase/raw/master/doc/resources/016.png" width=400/>
<img src="https://github.com/couchbaselabs/iOS-Couchbase/raw/master/doc/resources/016.png" width=400/>

Thank you for trying Mobile Couchbase. Let us know what you're doing with it by emailing `mobile@couchbase.com` -- nothing makes us happier than seeing Couch solve real problems.

0 comments on commit e2df1ca

Please sign in to comment.