Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-10228

The installation of CBLite using the SPM has changed slightly.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Minor
    • None
    • Mobile 3.0
    • None
    • 1

    Description

      https://docs.couchbase.com/couchbase-lite/current/swift/gs-install.html#lbl-install-tabs

       

      The method for installing dependencies has changed:

       

       

      dependencies: [
        .package(name: "CouchbaseLiteSwift",
          url: "insert Couchbase Lite URL"
          from: "3.0.1"), 
        ],

       

       

      The name parameter for .package has been deprecated.  To install the Couchbase Lite framework, change the declaration to this:

       

      dependencies: [
      .package(url: "insert Couchbase Lite URL", from: "3.0.1"),
      ],

       

      And then add the package name in the target identifier, like this:

       

       

      targets: [ .target(name: "ParentPackage",
      .target(
      name: "ParentPackage",
      dependencies: [.product(name: "CouchbaseLiteSwift", package: "couchbase-lite-swift-ee")]),
       ]
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ray.offiah Ray Offiah
            ray.offiah Ray Offiah
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty