A newer version of this documentation is available.

View Latest

Install Couchbase Lite on Swift

    January 5, 2025
    + 12

    Description — Installing Couchbase Lite on Swift

    Get Started

    To get started coding Couchbase Lite for Swift apps, just create or open an existing Xcode project and install the required Couchbase Lite version, for example 3.1.10, using one of the Install Methods methods shown.

    Couchbase Lite is distributed as an XCFramework, to support this:

    • The minimum required CocoaPods version is 1.9

    • The minimum required Carthage version is 38.0

    Install Methods

    1. Download the binaries from here — Extend with Mobile.

    2. Unpack the download

    3. Drag CouchbaseLiteSwift.xcframework from your Finder to the Xcode navigator.

    4. Click on Project  General  Embedded Binary and add CouchbaseLiteSwift.xcframework to this section.

    5. Import the XCFramework

      swift
      import CouchbaseLiteSwift ...
    6. Start using Couchbase Lite on Swift in your project.