rainbow icon indicating copy to clipboard operation
rainbow copied to clipboard

Swift build error

Open upkarlidder opened this issue 6 years ago • 1 comments

Hi,

I get the following error when I run "swift build".

/rainbow/Server/.build/checkouts/Kitura-Credentials.git-1137106172743287290/Sources/Credentials/TypeSafeCredentials.swift:48:38: error: use of undeclared type 'TypeSafeMiddleware'
public protocol TypeSafeCredentials: TypeSafeMiddleware, Codable {
                                     ^~~~~~~~~~~~~~~~~~
/rainbow/Server/.build/checkouts/Kitura-Credentials.git-1137106172743287290/Sources/Credentials/TypeSafeCredentials.swift:85:111: error: use of undeclared type 'RequestError'
    public static func handle(request: RouterRequest, response: RouterResponse, completion: @escaping (Self?, RequestError?) -> Void) {
                                                                                                              ^~~~~~~~~~~~
error: terminated(1): /usr/local/Cellar/swift/4.1/Swift-4.1.xctoolchain/usr/bin/swift-build-tool -f /Users/upkar/Documents/code-upkar/rainbow/Server/.build/debug.yaml main output:

Swift version

$ swift --version
Swift version 4.1 (swift-4.1-RELEASE)
Target: x86_64-apple-darwin17.4.0

I am new to swift to fix the code quickly. Thank you for your help !

upkarlidder avatar Jun 21 '18 19:06 upkarlidder