# couchbase-lite-ios **Repository Path**: make/couchbase-lite-ios ## Basic Information - **Project Name**: couchbase-lite-ios - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-05-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Couchbase Lite 2.0 **Couchbase Lite** is an embedded lightweight, document-oriented (NoSQL), syncable database engine. Couchbase Lite 2.0 has a completely new set of APIs. The implementation is on top of [Couchbase Lite Core](https://github.com/couchbase/couchbase-lite-core), which is also a new cross-platform implementation of database CRUD and query features, as well as document versioning. ## Requirements - iOS 9.0+ | macOS 10.11+ - Xcode 9.3 ## Installation ### CocoaPods You can use [CocoaPods](https://cocoapods.org/) to install `CouchbaseLite` for Objective-C API or `CouchbaseLiteSwift` for Swift API by adding it in your [Podfile](https://guides.cocoapods.org/using/the-podfile.html): #### Objective-C ##### Community Edition ``` target '' do use_frameworks! pod 'CouchbaseLite', '~> 2.0.0' end ``` ##### Enterprise Edition ``` target '' do use_frameworks! pod 'CouchbaseLite-Enterprise', '~> 2.0.0' end ``` #### Swift ##### Community Edition ``` target '' do use_frameworks! pod 'CouchbaseLite-Swift', '~> 2.0.0' end ``` ##### Enterprise Edition ``` target '' do use_frameworks! pod 'CouchbaseLite-Swift-Enterprise', '~> 2.0.0' end ``` ### Carthage You can use [Carthage](https://github.com/Carthage/Carthage) to install `CouchbaseLite` by adding it in your [Cartfile](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#cartfile): ##### Community Edition ``` binary "https://raw.githubusercontent.com/couchbase/couchbase-lite-ios/master/Release/Carthage/CouchbaseLite-Community.json" ~> 2.0.0 ``` ##### Enterprise Edition ``` binary "https://raw.githubusercontent.com/couchbase/couchbase-lite-ios/master/Release/Carthage/CouchbaseLite-Enterprise.json" ~> 2.0.0 ``` > When running `carthage update or build`, Carthage will build both CouchbaseLite and CouchbaseLiteSwift framework. ## How to build the framework files. 1. Clone the repo and update submodules ``` $ git clone https://github.com/couchbase/couchbase-lite-ios.git $ cd couchbase-lite-ios $ git submodule update --init --recursive ``` 2. Run ./Scripts/build_framework.sh to build a platform framework which could be either an Objective-C or a Swift framework. The supported platforms include iOS, tvOS, and macOS. ``` $ ./Scripts/build_framework.sh -s "CBL ObjC" -p iOS -o output // For building the ObjC framework for iOS $ ./Scripts/build_framework.sh -s "CBL Swift" -p iOS -o output // For building the Swift framework for iOS ``` ## Documentation - [Swift](https://developer.couchbase.com/documentation/mobile/2.0/couchbase-lite/swift.html) - [Objective-C](https://developer.couchbase.com/documentation/mobile/2.0/couchbase-lite/objc.html) ## Sample Apps - [Todo](https://github.com/couchbaselabs/mobile-training-todo/tree/feature/2.0) : Objective-C and Swift ## License Like all Couchbase source code, this is released under the Apache 2 [license](LICENSE).