https://github.com/couchbase/couchbase-lite-swift-ee
Hosting Swift Package for CouchbaseLiteSwift Enterprise Edition
https://github.com/couchbase/couchbase-lite-swift-ee
Last synced: 15 days ago
JSON representation
Hosting Swift Package for CouchbaseLiteSwift Enterprise Edition
- Host: GitHub
- URL: https://github.com/couchbase/couchbase-lite-swift-ee
- Owner: couchbase
- Created: 2020-10-06T23:52:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2026-05-22T17:03:38.000Z (about 1 month ago)
- Last Synced: 2026-05-22T20:48:18.195Z (about 1 month ago)
- Language: Swift
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CouchbaseLiteSwift-EE
Repository for hosting Swift package for Couchbase Lite Swift Enterprise Edition
## Case 1. Including Couchbase Lite to an existing swift package
Adding CouchbaseLiteSwift dependency to your Parent swift package.
1. Add the CouchbaseLiteSwift package as dependency:
```
dependencies: [
.package(name: "CouchbaseLiteSwift",
url: "https://github.com/couchbase/couchbase-lite-swift-ee.git",
from: "4.0.1"),
],
```
2. Add the dependent package product name, to the target:
```
targets: [
.target(name: "ParentPackage",
dependencies: ["CouchbaseLiteSwift"]),
]
```
3. Import CouchbaseLiteSwift, and use it:
```
import CouchbaseLiteSwift
class ParentPackageSomeClass {
func someFunction() {
let db = try! Database(name: "testdb")
print(">> opening the db: \(db.name)")
}
}
```
### Sample Manifest file
```
// swift-tools-version:5.8
import PackageDescription
let package = Package(
name: "ParentPackage",
products: [
.library(
name: "ParentPackage",
targets: ["ParentPackage"]),
],
dependencies: [
.package(name: "CouchbaseLiteSwift",
url: "https://github.com/couchbase/couchbase-lite-swift-ee.git",
from: "4.0.1"),
],
targets: [
.target(
name: "ParentPackage",
dependencies: ["CouchbaseLiteSwift"]),
.testTarget(
name: "ParentPackageTests",
dependencies: ["ParentPackage"]),
]
)
```
## Case 2. Including Couchbase Lite directly to your app project
Add CouchbaseLiteSwift to your HostApp
1. Project to which you are going to add the CouchbaseLiteSwift

2. Click on the add package dependency button, (Xcode Project File > Project Settings > Swift Packages > Add Package Dependency)

3. Enter the URL, `https://github.com/couchbase/couchbase-lite-swift-ee.git`

4. Specify the version

5. Finish

6. You will see the name, version and URL of the added CouchbaseLiteSwift Package

7. Import CouchbaseLiteSwift, and use it.