Installation - Couchbase Lite on Objective-C
Description — Installing Couchbase Lite on Objective-C
Get Started
Create or open an existing Xcode project and install Couchbase Lite using one of the Install Methods methods shown.
Xcode 12.3 Work Around
If you have downloaded a The recommended solution is to use an
|
Install Methods
-
Frameworks
-
Carthage
-
CocoaPods
-
Download Couchbase Lite.
-
Drag CouchbaseLite.framework from your Finder to the Xcode navigator.
-
Click on Project > General > Embedded Binary and add CouchbaseLite.framework to this section.
-
Import the framework and start using it in your project.
#include <CouchbaseLite/CouchbaseLite.h> ...
-
In your Cartfile, add the following.
Couchbase Lite Community Editionbinary "https://packages.couchbase.com/releases/couchbase-lite-ios/carthage/CouchbaseLite-Community.json" ~> 2.8
Couchbase Lite Enterprise Editionbinary "https://packages.couchbase.com/releases/couchbase-lite-ios/carthage/CouchbaseLite-Enterprise.json" ~> 2.8
-
Run
carthage update --platform ios
. -
Drag CouchbaseLite.framework from Carthage/Build/ to the Xcode navigator.
-
Click on Project > General > Embedded Binary and add CouchbaseLite.framework to this section.
-
In your Podfile, add the following.
Couchbase Lite Community Editiontarget '<your target name>' do use_frameworks! pod 'CouchbaseLite', '~> 2.8' end
Couchbase Lite Enterprise Editiontarget '<your target name>' do use_frameworks! pod 'CouchbaseLite-Enterprise', '~> 2.8' end
-
Install the pods and open the .xcworkspace file generated by Cocoapods.
pod install