couchbase lite ios
3.2.1
Couchbase Lite是一种嵌入式轻量级,面向文档的(NOSQL),同步数据库引擎。
Couchbase Lite实现位于Couchbase Lite Core的顶部,这也是数据库CRUD和查询功能的新的跨平台实现以及文档版本。
iOS 12.0+ | MacOS 12+
iOS 12.0+ | MacOS 12.0+
dependencies: [
.package(name: "CouchbaseLiteSwift",
url: "https://github.com/couchbase/couchbase-lite-ios.git",
from: "3.2.0"),
],
dependencies: [
.package(name: "CouchbaseLiteSwift",
url: "https://github.com/couchbase/couchbase-lite-swift-ee.git",
from: "3.2.0"),
],
有关如何设置的更多详细信息,请参见:Swift Package Manager
您可以使用Cocoapods安装CouchbaseLite ,以作为Objective-C API或CouchbaseLiteSwift将其添加到您的Podfile中:
target '<your target name>' do
use_frameworks!
pod 'CouchbaseLite'
end
target '<your target name>' do
use_frameworks!
pod 'CouchbaseLite-Enterprise'
end
target '<your target name>' do
use_frameworks!
pod 'CouchbaseLite-Swift'
end
target '<your target name>' do
use_frameworks!
pod 'CouchbaseLite-Swift-Enterprise'
end
您可以使用迦太基来安装CouchbaseLite ,通过将其添加到卡特菲勒中:
binary "https://packages.couchbase.com/releases/couchbase-lite-ios/carthage/CouchbaseLite-Community.json"
binary "https://packages.couchbase.com/releases/couchbase-lite-ios/carthage/CouchbaseLite-Enterprise.json"
运行
carthage update or build时,迦太基将同时建造Couchbaselite和Couchbaseliteswift框架。
$ git clone https://github.com/couchbase/couchbase-lite-ios.git
$ cd couchbase-lite-ios
$ git submodule update --init --recursive
如果尚未安装,请安装doxygen , brew install doxygen
运行./scripts/build_framework.sh构建一个平台框架,该框架可能是Objective-C或Swift框架。支持的平台包括iOS,TVOS和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
像所有Couchbase源代码一样,这是在Apache 2许可证下发布的。