I am trying to use CouchDB in my Kitura server side Swift app. I have my Package.swift with all the dependencies as shown below:
let package = Package(
name: "hello-kitura",
dependencies:[
.Package(url:"https://github.com/IBM-Swift/Kitura.git",majorVersion:1),
.Package(url:"https://github.com/IBM-Swift/HeliumLogger.git",majorVersion:1),
.Package(url:"https://github.com/IBM-Swift/Kitura-StencilTemplateEngine.git",majorVersion:1),
.Package(url: "https://github.com/IBM-Swift/Swift-Kuery-PostgreSQL",majorVersion:0),
.Package(url: "https://github.com/IBM-Swift/Kitura-CouchDB.git",majorVersion:1)
]
)
From the command line I ran the following to download the dependencies:
swift build
In my main.swift I have the following code:
import CouchDB <-- No such module CouchDB
As you can see I get "No such module CouchDB". Any ideas!
UPDATE:
OS Version: OSX El Capitan 10.11.6 Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1) Apple Swift Package Manager - Swift 3.0.2 (swiftpm-11750)