The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SwiftCloudant with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cloudant/swift-cloudant.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/cloudant/swift-cloudant
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 3cd2bb2 Merge pull request #195 from vmatyusGitHub/patch-1
Cloned https://github.com/cloudant/swift-cloudant.git
Revision (git rev-parse @):
3cd2bb287f34d1e88393d41ec2f201b82f58610b
SUCCESS checkout https://github.com/cloudant/swift-cloudant.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/cloudant/swift-cloudant.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/25] Emitting module SwiftCloudant
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:102:34: error: cannot find type 'URLRequest' in scope
    func makeRequest() throws -> URLRequest {
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:48:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:67:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response: HTTPURLResponse) {
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:29:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response:HTTPURLResponse)
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:53:18: error: cannot find type 'URLRequest' in scope
    var request: URLRequest
                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:58:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:111:30: error: cannot find type 'URLRequest' in scope
    fileprivate let request: URLRequest
                             ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:112:37: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var inProgressTask: URLSessionDataTask
                                    ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:113:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:120:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var response: HTTPURLResponse? = nil
                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:124:49: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
    public var state: Foundation.URLSessionTask.State {
                      ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:40: error: cannot find type 'URLRequest' in scope
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:67: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                                                  ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:167:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal lazy var session: URLSession = { () -> URLSession in
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:168:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:27: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                          ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:39: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:197:20: error: cannot find type 'URLSessionDelegate' in scope
    init(delegate: URLSessionDelegate?, configuration: InterceptableSessionConfiguration) {
                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:217:37: error: cannot find type 'URLRequest' in scope
    internal func dataTask(request: URLRequest, delegate: InterceptableSessionDelegate) -> URLSessionTask {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:158: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                                                                  ~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:104: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:48: error: cannot find type 'URLSessionDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                               ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:68: error: cannot find type 'URLSessionTaskDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                   ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:92: error: cannot find type 'URLSessionDataDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                           ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:116: error: cannot find type 'URLSessionStreamDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
[4/28] Compiling SwiftCloudant CouchClient.swift
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:197:20: error: cannot find type 'URLSessionDelegate' in scope
    init(delegate: URLSessionDelegate?, configuration: InterceptableSessionConfiguration) {
                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/CouchClient.swift:101:44: error: argument passed to call that takes no arguments
        self.session = InterceptableSession(delegate: nil, configuration: sessionConfiguration)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Source/SwiftCloudant/CouchClient.swift:101:55: error: 'nil' requires a contextual type
        self.session = InterceptableSession(delegate: nil, configuration: sessionConfiguration)
                                                      ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:102:34: error: cannot find type 'URLRequest' in scope
    func makeRequest() throws -> URLRequest {
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:123:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:124:32: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
        request.cachePolicy = .useProtocolCachePolicy
                              ~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:48:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:67:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response: HTTPURLResponse) {
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:85:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                for (key, value) in response.allHeaderFields {
                                    ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:88:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                httpInfo = HTTPInfo(statusCode: response.statusCode, headers: headers)
                                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:217:37: error: cannot find type 'URLRequest' in scope
    internal func dataTask(request: URLRequest, delegate: InterceptableSessionDelegate) -> URLSessionTask {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:29:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response:HTTPURLResponse)
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:53:18: error: cannot find type 'URLRequest' in scope
    var request: URLRequest
                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:58:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:111:30: error: cannot find type 'URLRequest' in scope
    fileprivate let request: URLRequest
                             ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:112:37: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var inProgressTask: URLSessionDataTask
                                    ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:113:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:120:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var response: HTTPURLResponse? = nil
                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:124:49: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
    public var state: Foundation.URLSessionTask.State {
                      ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:40: error: cannot find type 'URLRequest' in scope
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:67: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                                                  ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:167:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal lazy var session: URLSession = { () -> URLSession in
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:168:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:27: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                          ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:39: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:158: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                                                                  ~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:104: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:48: error: cannot find type 'URLSessionDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                               ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:68: error: cannot find type 'URLSessionTaskDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                   ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:92: error: cannot find type 'URLSessionDataDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                           ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:116: error: cannot find type 'URLSessionStreamDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:148:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
        inProgressTask.resume()
        ~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:155:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
        inProgressTask.cancel()
        ~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:188:18: error: argument passed to call that takes no arguments
        self.init(delegate: nil, configuration: InterceptableSessionConfiguration(shouldBackOff: false))
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:188:29: error: 'nil' requires a contextual type
        self.init(delegate: nil, configuration: InterceptableSessionConfiguration(shouldBackOff: false))
                            ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:228:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let nsTask = self.session.dataTask(with: request)
                     ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:240:35: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let mTask = taskDict[task]
                                  ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:293:34: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let task = taskDict[dataTask]
                                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:34: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:70: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                                                     ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                                                         ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:316:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:322:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if response.statusCode == 429 && self.configuration.shouldBackOff && task.remainingBackOffRetries > 0 {
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:337:31: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
                self.taskDict.removeValue(forKey: task.inProgressTask)
                              ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:338:52: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
                task.inProgressTask = self.session.dataTask(with: task.request)
                                      ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:341:36: error: cannot infer contextual base in reference to member 'cancel'
                completionHandler(.cancel)
                                  ~^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:347:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            } else if  response.statusCode == 401 || response.statusCode == 403 {
                       ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:347:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            } else if  response.statusCode == 401 || response.statusCode == 403 {
                                                     ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:351:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:356:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:361:32: error: cannot infer contextual base in reference to member 'allow'
            completionHandler(.allow)
                              ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:378:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: components.url!)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:386:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = self.session.dataTask(with: request, completionHandler: { (data1, response, error) in
                   ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:398:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if response.statusCode / 100 == 2{
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:443:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
            self.session.finishTasksAndInvalidate()
            ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:168:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
[5/28] Compiling SwiftCloudant RequestBuilder.swift
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:197:20: error: cannot find type 'URLSessionDelegate' in scope
    init(delegate: URLSessionDelegate?, configuration: InterceptableSessionConfiguration) {
                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/CouchClient.swift:101:44: error: argument passed to call that takes no arguments
        self.session = InterceptableSession(delegate: nil, configuration: sessionConfiguration)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Source/SwiftCloudant/CouchClient.swift:101:55: error: 'nil' requires a contextual type
        self.session = InterceptableSession(delegate: nil, configuration: sessionConfiguration)
                                                      ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:102:34: error: cannot find type 'URLRequest' in scope
    func makeRequest() throws -> URLRequest {
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:123:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:124:32: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
        request.cachePolicy = .useProtocolCachePolicy
                              ~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:48:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:67:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response: HTTPURLResponse) {
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:85:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                for (key, value) in response.allHeaderFields {
                                    ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:88:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                httpInfo = HTTPInfo(statusCode: response.statusCode, headers: headers)
                                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:217:37: error: cannot find type 'URLRequest' in scope
    internal func dataTask(request: URLRequest, delegate: InterceptableSessionDelegate) -> URLSessionTask {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:29:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response:HTTPURLResponse)
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:53:18: error: cannot find type 'URLRequest' in scope
    var request: URLRequest
                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:58:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:111:30: error: cannot find type 'URLRequest' in scope
    fileprivate let request: URLRequest
                             ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:112:37: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var inProgressTask: URLSessionDataTask
                                    ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:113:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:120:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var response: HTTPURLResponse? = nil
                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:124:49: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
    public var state: Foundation.URLSessionTask.State {
                      ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:40: error: cannot find type 'URLRequest' in scope
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:67: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                                                  ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:167:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal lazy var session: URLSession = { () -> URLSession in
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:168:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:27: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                          ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:39: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:158: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                                                                  ~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:104: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:48: error: cannot find type 'URLSessionDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                               ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:68: error: cannot find type 'URLSessionTaskDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                   ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:92: error: cannot find type 'URLSessionDataDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                           ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:116: error: cannot find type 'URLSessionStreamDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:148:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
        inProgressTask.resume()
        ~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:155:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
        inProgressTask.cancel()
        ~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:188:18: error: argument passed to call that takes no arguments
        self.init(delegate: nil, configuration: InterceptableSessionConfiguration(shouldBackOff: false))
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:188:29: error: 'nil' requires a contextual type
        self.init(delegate: nil, configuration: InterceptableSessionConfiguration(shouldBackOff: false))
                            ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:228:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let nsTask = self.session.dataTask(with: request)
                     ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:240:35: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let mTask = taskDict[task]
                                  ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:293:34: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let task = taskDict[dataTask]
                                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:34: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:70: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                                                     ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                                                         ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:316:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:322:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if response.statusCode == 429 && self.configuration.shouldBackOff && task.remainingBackOffRetries > 0 {
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:337:31: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
                self.taskDict.removeValue(forKey: task.inProgressTask)
                              ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:338:52: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
                task.inProgressTask = self.session.dataTask(with: task.request)
                                      ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:341:36: error: cannot infer contextual base in reference to member 'cancel'
                completionHandler(.cancel)
                                  ~^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:347:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            } else if  response.statusCode == 401 || response.statusCode == 403 {
                       ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:347:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            } else if  response.statusCode == 401 || response.statusCode == 403 {
                                                     ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:351:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:356:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:361:32: error: cannot infer contextual base in reference to member 'allow'
            completionHandler(.allow)
                              ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:378:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: components.url!)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:386:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = self.session.dataTask(with: request, completionHandler: { (data1, response, error) in
                   ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:398:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if response.statusCode / 100 == 2{
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:443:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
            self.session.finishTasksAndInvalidate()
            ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:168:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
[6/28] Compiling SwiftCloudant RequestExecutor.swift
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:197:20: error: cannot find type 'URLSessionDelegate' in scope
    init(delegate: URLSessionDelegate?, configuration: InterceptableSessionConfiguration) {
                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/CouchClient.swift:101:44: error: argument passed to call that takes no arguments
        self.session = InterceptableSession(delegate: nil, configuration: sessionConfiguration)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Source/SwiftCloudant/CouchClient.swift:101:55: error: 'nil' requires a contextual type
        self.session = InterceptableSession(delegate: nil, configuration: sessionConfiguration)
                                                      ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:102:34: error: cannot find type 'URLRequest' in scope
    func makeRequest() throws -> URLRequest {
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:123:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:124:32: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
        request.cachePolicy = .useProtocolCachePolicy
                              ~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:48:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:67:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response: HTTPURLResponse) {
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:85:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                for (key, value) in response.allHeaderFields {
                                    ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:88:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                httpInfo = HTTPInfo(statusCode: response.statusCode, headers: headers)
                                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:217:37: error: cannot find type 'URLRequest' in scope
    internal func dataTask(request: URLRequest, delegate: InterceptableSessionDelegate) -> URLSessionTask {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:29:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response:HTTPURLResponse)
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:53:18: error: cannot find type 'URLRequest' in scope
    var request: URLRequest
                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:58:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:111:30: error: cannot find type 'URLRequest' in scope
    fileprivate let request: URLRequest
                             ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:112:37: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var inProgressTask: URLSessionDataTask
                                    ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:113:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:120:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var response: HTTPURLResponse? = nil
                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:124:49: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
    public var state: Foundation.URLSessionTask.State {
                      ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:40: error: cannot find type 'URLRequest' in scope
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:67: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                                                  ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:167:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal lazy var session: URLSession = { () -> URLSession in
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:168:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:27: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                          ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:39: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:158: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                                                                  ~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:104: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:48: error: cannot find type 'URLSessionDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                               ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:68: error: cannot find type 'URLSessionTaskDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                   ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:92: error: cannot find type 'URLSessionDataDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                           ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:116: error: cannot find type 'URLSessionStreamDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:148:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
        inProgressTask.resume()
        ~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:155:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
        inProgressTask.cancel()
        ~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:188:18: error: argument passed to call that takes no arguments
        self.init(delegate: nil, configuration: InterceptableSessionConfiguration(shouldBackOff: false))
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:188:29: error: 'nil' requires a contextual type
        self.init(delegate: nil, configuration: InterceptableSessionConfiguration(shouldBackOff: false))
                            ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:228:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let nsTask = self.session.dataTask(with: request)
                     ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:240:35: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let mTask = taskDict[task]
                                  ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:293:34: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let task = taskDict[dataTask]
                                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:34: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:70: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                                                     ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                                                         ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:316:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:322:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if response.statusCode == 429 && self.configuration.shouldBackOff && task.remainingBackOffRetries > 0 {
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:337:31: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
                self.taskDict.removeValue(forKey: task.inProgressTask)
                              ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:338:52: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
                task.inProgressTask = self.session.dataTask(with: task.request)
                                      ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:341:36: error: cannot infer contextual base in reference to member 'cancel'
                completionHandler(.cancel)
                                  ~^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:347:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            } else if  response.statusCode == 401 || response.statusCode == 403 {
                       ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:347:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            } else if  response.statusCode == 401 || response.statusCode == 403 {
                                                     ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:351:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:356:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:361:32: error: cannot infer contextual base in reference to member 'allow'
            completionHandler(.allow)
                              ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:378:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: components.url!)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:386:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = self.session.dataTask(with: request, completionHandler: { (data1, response, error) in
                   ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:398:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if response.statusCode / 100 == 2{
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:443:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
            self.session.finishTasksAndInvalidate()
            ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:168:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
[7/28] Compiling SwiftCloudant URLSession.swift
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:197:20: error: cannot find type 'URLSessionDelegate' in scope
    init(delegate: URLSessionDelegate?, configuration: InterceptableSessionConfiguration) {
                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/CouchClient.swift:101:44: error: argument passed to call that takes no arguments
        self.session = InterceptableSession(delegate: nil, configuration: sessionConfiguration)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Source/SwiftCloudant/CouchClient.swift:101:55: error: 'nil' requires a contextual type
        self.session = InterceptableSession(delegate: nil, configuration: sessionConfiguration)
                                                      ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:102:34: error: cannot find type 'URLRequest' in scope
    func makeRequest() throws -> URLRequest {
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:123:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:124:32: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
        request.cachePolicy = .useProtocolCachePolicy
                              ~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:48:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:67:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response: HTTPURLResponse) {
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:85:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                for (key, value) in response.allHeaderFields {
                                    ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:88:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                httpInfo = HTTPInfo(statusCode: response.statusCode, headers: headers)
                                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:217:37: error: cannot find type 'URLRequest' in scope
    internal func dataTask(request: URLRequest, delegate: InterceptableSessionDelegate) -> URLSessionTask {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:29:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response:HTTPURLResponse)
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:53:18: error: cannot find type 'URLRequest' in scope
    var request: URLRequest
                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:58:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:111:30: error: cannot find type 'URLRequest' in scope
    fileprivate let request: URLRequest
                             ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:112:37: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var inProgressTask: URLSessionDataTask
                                    ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:113:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:120:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var response: HTTPURLResponse? = nil
                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:124:49: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
    public var state: Foundation.URLSessionTask.State {
                      ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:40: error: cannot find type 'URLRequest' in scope
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:67: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                                                  ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:167:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal lazy var session: URLSession = { () -> URLSession in
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:168:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:27: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                          ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:39: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:158: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                                                                  ~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:104: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:48: error: cannot find type 'URLSessionDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                               ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:68: error: cannot find type 'URLSessionTaskDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                   ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:92: error: cannot find type 'URLSessionDataDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                           ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:116: error: cannot find type 'URLSessionStreamDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:148:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
        inProgressTask.resume()
        ~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:155:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
        inProgressTask.cancel()
        ~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:188:18: error: argument passed to call that takes no arguments
        self.init(delegate: nil, configuration: InterceptableSessionConfiguration(shouldBackOff: false))
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:188:29: error: 'nil' requires a contextual type
        self.init(delegate: nil, configuration: InterceptableSessionConfiguration(shouldBackOff: false))
                            ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:228:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let nsTask = self.session.dataTask(with: request)
                     ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:240:35: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let mTask = taskDict[task]
                                  ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:293:34: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let task = taskDict[dataTask]
                                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:34: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:70: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                                                     ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                                                         ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:316:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:322:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if response.statusCode == 429 && self.configuration.shouldBackOff && task.remainingBackOffRetries > 0 {
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:337:31: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
                self.taskDict.removeValue(forKey: task.inProgressTask)
                              ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:338:52: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
                task.inProgressTask = self.session.dataTask(with: task.request)
                                      ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:341:36: error: cannot infer contextual base in reference to member 'cancel'
                completionHandler(.cancel)
                                  ~^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:347:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            } else if  response.statusCode == 401 || response.statusCode == 403 {
                       ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:347:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            } else if  response.statusCode == 401 || response.statusCode == 403 {
                                                     ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:351:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:356:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:361:32: error: cannot infer contextual base in reference to member 'allow'
            completionHandler(.allow)
                              ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:378:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: components.url!)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:386:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = self.session.dataTask(with: request, completionHandler: { (data1, response, error) in
                   ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:398:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if response.statusCode / 100 == 2{
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:443:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
            self.session.finishTasksAndInvalidate()
            ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:168:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
[8/28] Compiling SwiftCloudant GetChangesOperation.swift
[9/28] Compiling SwiftCloudant BulkDocs.swift
[10/28] Compiling SwiftCloudant DeleteAttachmentOperation.swift
[11/28] Compiling SwiftCloudant DeleteDocumentOperation.swift
[12/28] Compiling SwiftCloudant GetDocumentOperation.swift
[13/28] Compiling SwiftCloudant PutAttachmentOperation.swift
[14/28] Compiling SwiftCloudant DeleteDatabaseOperation.swift
[15/28] Compiling SwiftCloudant GetAllDatabasesOperation.swift
[16/28] Compiling SwiftCloudant GetAllDocsOperation.swift
[17/28] Compiling SwiftCloudant OperationProtocols.swift
[18/28] Compiling SwiftCloudant CreateQueryIndexOperation.swift
[19/28] Compiling SwiftCloudant DeleteQueryIndexOperation.swift
[20/28] Compiling SwiftCloudant PutDocumentOperation.swift
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:197:20: error: cannot find type 'URLSessionDelegate' in scope
    init(delegate: URLSessionDelegate?, configuration: InterceptableSessionConfiguration) {
                   ^~~~~~~~~~~~~~~~~~
[21/28] Compiling SwiftCloudant ReadAttachmentOperation.swift
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:197:20: error: cannot find type 'URLSessionDelegate' in scope
    init(delegate: URLSessionDelegate?, configuration: InterceptableSessionConfiguration) {
                   ^~~~~~~~~~~~~~~~~~
[22/28] Compiling SwiftCloudant Operation.swift
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:197:20: error: cannot find type 'URLSessionDelegate' in scope
    init(delegate: URLSessionDelegate?, configuration: InterceptableSessionConfiguration) {
                   ^~~~~~~~~~~~~~~~~~
[23/28] Compiling SwiftCloudant QueryViewOperation.swift
/host/spi-builder-workspace/Source/SwiftCloudant/Operations/Views/ViewPaging.swift:503:9: warning: backward matching of the unlabeled trailing closure is deprecated; label the argument with 'completionHandler' to suppress this warning
        { (response, httpInfo, error) in
        ^
/host/spi-builder-workspace/Source/SwiftCloudant/Operations/Views/QueryViewOperation.swift:90:12: note: 'init(name:designDocumentID:databaseName:descending:startKey:startKeyDocumentID:endKey:endKeyDocumentID:inclusiveEnd:key:keys:limit:skip:includeDocs:conflicts:reduce:group:groupLevel:stale:includeLastUpdateSequenceNumber:rowHandler:completionHandler:)' declared here
    public init(name: String,
           ^
[24/28] Compiling SwiftCloudant ViewLikeOperation.swift
/host/spi-builder-workspace/Source/SwiftCloudant/Operations/Views/ViewPaging.swift:503:9: warning: backward matching of the unlabeled trailing closure is deprecated; label the argument with 'completionHandler' to suppress this warning
        { (response, httpInfo, error) in
        ^
/host/spi-builder-workspace/Source/SwiftCloudant/Operations/Views/QueryViewOperation.swift:90:12: note: 'init(name:designDocumentID:databaseName:descending:startKey:startKeyDocumentID:endKey:endKeyDocumentID:inclusiveEnd:key:keys:limit:skip:includeDocs:conflicts:reduce:group:groupLevel:stale:includeLastUpdateSequenceNumber:rowHandler:completionHandler:)' declared here
    public init(name: String,
           ^
[25/28] Compiling SwiftCloudant ViewPaging.swift
/host/spi-builder-workspace/Source/SwiftCloudant/Operations/Views/ViewPaging.swift:503:9: warning: backward matching of the unlabeled trailing closure is deprecated; label the argument with 'completionHandler' to suppress this warning
        { (response, httpInfo, error) in
        ^
/host/spi-builder-workspace/Source/SwiftCloudant/Operations/Views/QueryViewOperation.swift:90:12: note: 'init(name:designDocumentID:databaseName:descending:startKey:startKeyDocumentID:endKey:endKeyDocumentID:inclusiveEnd:key:keys:limit:skip:includeDocs:conflicts:reduce:group:groupLevel:stale:includeLastUpdateSequenceNumber:rowHandler:completionHandler:)' declared here
    public init(name: String,
           ^
[26/28] Compiling SwiftCloudant FindDocumentsOperation.swift
[27/28] Compiling SwiftCloudant CouchDatabaseOperation.swift
[28/28] Compiling SwiftCloudant CreateDatabaseOperation.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling SwiftCloudant Operation.swift
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:197:20: error: cannot find type 'URLSessionDelegate' in scope
    init(delegate: URLSessionDelegate?, configuration: InterceptableSessionConfiguration) {
                   ^~~~~~~~~~~~~~~~~~
[3/9] Compiling SwiftCloudant ReadAttachmentOperation.swift
[4/9] Compiling SwiftCloudant RequestBuilder.swift
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:102:34: error: cannot find type 'URLRequest' in scope
    func makeRequest() throws -> URLRequest {
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:123:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:124:32: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
        request.cachePolicy = .useProtocolCachePolicy
                              ~^~~~~~~~~~~~~~~~~~~~~~
[5/9] Compiling SwiftCloudant CouchClient.swift
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:197:20: error: cannot find type 'URLSessionDelegate' in scope
    init(delegate: URLSessionDelegate?, configuration: InterceptableSessionConfiguration) {
                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/CouchClient.swift:101:44: error: argument passed to call that takes no arguments
        self.session = InterceptableSession(delegate: nil, configuration: sessionConfiguration)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Source/SwiftCloudant/CouchClient.swift:101:55: error: 'nil' requires a contextual type
        self.session = InterceptableSession(delegate: nil, configuration: sessionConfiguration)
                                                      ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Emitting module SwiftCloudant
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:102:34: error: cannot find type 'URLRequest' in scope
    func makeRequest() throws -> URLRequest {
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:48:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:67:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response: HTTPURLResponse) {
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:29:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response:HTTPURLResponse)
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:53:18: error: cannot find type 'URLRequest' in scope
    var request: URLRequest
                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:58:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:111:30: error: cannot find type 'URLRequest' in scope
    fileprivate let request: URLRequest
                             ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:112:37: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var inProgressTask: URLSessionDataTask
                                    ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:113:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:120:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var response: HTTPURLResponse? = nil
                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:124:49: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
    public var state: Foundation.URLSessionTask.State {
                      ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:40: error: cannot find type 'URLRequest' in scope
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:67: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                                                  ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:167:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal lazy var session: URLSession = { () -> URLSession in
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:168:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:27: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                          ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:39: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:197:20: error: cannot find type 'URLSessionDelegate' in scope
    init(delegate: URLSessionDelegate?, configuration: InterceptableSessionConfiguration) {
                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:217:37: error: cannot find type 'URLRequest' in scope
    internal func dataTask(request: URLRequest, delegate: InterceptableSessionDelegate) -> URLSessionTask {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:158: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                                                                  ~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:104: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:48: error: cannot find type 'URLSessionDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                               ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:68: error: cannot find type 'URLSessionTaskDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                   ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:92: error: cannot find type 'URLSessionDataDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                           ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:116: error: cannot find type 'URLSessionStreamDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
[7/9] Compiling SwiftCloudant PutDocumentOperation.swift
[8/9] Compiling SwiftCloudant RequestExecutor.swift
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:48:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:67:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response: HTTPURLResponse) {
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:85:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                for (key, value) in response.allHeaderFields {
                                    ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestExecutor.swift:88:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                httpInfo = HTTPInfo(statusCode: response.statusCode, headers: headers)
                                                ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/RequestBuilder.swift:102:34: error: cannot find type 'URLRequest' in scope
    func makeRequest() throws -> URLRequest {
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:217:37: error: cannot find type 'URLRequest' in scope
    internal func dataTask(request: URLRequest, delegate: InterceptableSessionDelegate) -> URLSessionTask {
                                    ^~~~~~~~~~
[9/9] Compiling SwiftCloudant URLSession.swift
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:29:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func received(response:HTTPURLResponse)
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:53:18: error: cannot find type 'URLRequest' in scope
    var request: URLRequest
                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:58:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    let response: HTTPURLResponse?
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:111:30: error: cannot find type 'URLRequest' in scope
    fileprivate let request: URLRequest
                             ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:112:37: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var inProgressTask: URLSessionDataTask
                                    ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:113:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:120:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate var response: HTTPURLResponse? = nil
                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:124:49: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
    public var state: Foundation.URLSessionTask.State {
                      ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:40: error: cannot find type 'URLRequest' in scope
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:137:67: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(session: URLSession, request: URLRequest, inProgressTask:URLSessionDataTask, delegate: InterceptableSessionDelegate) {
                                                                  ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:167:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal lazy var session: URLSession = { () -> URLSession in
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:168:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:27: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                          ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:175:39: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var taskDict: [Foundation.URLSessionTask: URLSessionTask] = [:]
                                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:197:20: error: cannot find type 'URLSessionDelegate' in scope
    init(delegate: URLSessionDelegate?, configuration: InterceptableSessionConfiguration) {
                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:217:37: error: cannot find type 'URLRequest' in scope
    internal func dataTask(request: URLRequest, delegate: InterceptableSessionDelegate) -> URLSessionTask {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:239:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Error?) {
                                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:292:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:158: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                                                                  ~~~~~~~~~~ ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:63: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                              ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:312:104: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:48: error: cannot find type 'URLSessionDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                               ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:68: error: cannot find type 'URLSessionTaskDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                   ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:92: error: cannot find type 'URLSessionDataDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                           ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:162:116: error: cannot find type 'URLSessionStreamDelegate' in scope
internal class InterceptableSession: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate, URLSessionStreamDelegate {
                                                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:148:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
        inProgressTask.resume()
        ~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:155:24: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
        inProgressTask.cancel()
        ~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:188:18: error: argument passed to call that takes no arguments
        self.init(delegate: nil, configuration: InterceptableSessionConfiguration(shouldBackOff: false))
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:188:29: error: 'nil' requires a contextual type
        self.init(delegate: nil, configuration: InterceptableSessionConfiguration(shouldBackOff: false))
                            ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:228:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let nsTask = self.session.dataTask(with: request)
                     ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:240:35: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let mTask = taskDict[task]
                                  ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:293:34: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let task = taskDict[dataTask]
                                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:34: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:70: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                                                     ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:314:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let task = taskDict[dataTask], let response = response as? HTTPURLResponse
                                                                         ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:316:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:322:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if response.statusCode == 429 && self.configuration.shouldBackOff && task.remainingBackOffRetries > 0 {
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:337:31: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
                self.taskDict.removeValue(forKey: task.inProgressTask)
                              ^
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:338:52: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
                task.inProgressTask = self.session.dataTask(with: task.request)
                                      ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:341:36: error: cannot infer contextual base in reference to member 'cancel'
                completionHandler(.cancel)
                                  ~^~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:347:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            } else if  response.statusCode == 401 || response.statusCode == 403 {
                       ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:347:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            } else if  response.statusCode == 401 || response.statusCode == 403 {
                                                     ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:351:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:356:36: error: cannot infer contextual base in reference to member 'allow'
                completionHandler(.allow)
                                  ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:361:32: error: cannot infer contextual base in reference to member 'allow'
            completionHandler(.allow)
                              ~^~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:378:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: components.url!)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:386:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = self.session.dataTask(with: request, completionHandler: { (data1, response, error) in
                   ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:398:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if response.statusCode / 100 == 2{
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:443:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
            self.session.finishTasksAndInvalidate()
            ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/SwiftCloudant/HTTP/URLSession.swift:168:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux