The Swift Package Index logo.Swift Package Index

Build Information

Failed to build IBMWatsonRestKit with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/watson-developer-cloud/restkit.git
Reference: 3.0.3
Cloned https://github.com/watson-developer-cloud/restkit.git into spi-builder-workspace
SUCCESS checkout https://github.com/watson-developer-cloud/restkit.git at 3.0.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/8] Compiling RestKit RestResponse.swift
/host/spi-builder-workspace/Sources/RestKit/RestResponse.swift:47:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal init(response: HTTPURLResponse) {
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/RestResponse.swift:49:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
        for (key, value) in response.allHeaderFields {
                            ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/RestResponse.swift:55:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        self.init(statusCode: response.statusCode, headers: headers)
                              ~~~~~~~~ ^~~~~~~~~~
[2/8] Compiling RestKit RestRequest.swift
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:27:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:32: error: cannot find type 'URLRequest' in scope
    func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:74: error: cannot find type 'URLRequest' in scope
    func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
                                                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:29:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal var errorResponseDecoder: ((Data, HTTPURLResponse) -> RestError)
                                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        session: URLSession,
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:39:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        errorResponseDecoder: @escaping ((Data, HTTPURLResponse) -> RestError),
                                                ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:56:29: error: cannot find type 'URLRequest' in scope
    private var urlRequest: URLRequest? {
                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:87:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        completionHandler: @escaping (Data?, HTTPURLResponse?, RestError?) -> Void)
                                             ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:288:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        completionHandler: @escaping (HTTPURLResponse?, RestError?) -> Void)
                                      ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:66:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: urlWithQuery)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:105:37: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
            let task = self.session.dataTask(with: urlRequest) { (data, response, error) in
                       ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:110:39: error: cannot convert value of type '_' to expected argument type 'Data?'
                    completionHandler(data, nil, error)
                                      ^
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:127:62: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
                        let genericMessage = HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
                                             ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:306:37: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
            let task = self.session.downloadTask(with: urlRequest) { (location, response, error) in
                       ~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:316:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    let restError = RestError.http(statusCode: response.statusCode, message: "\(String(describing: error))", metadata: nil)
                                                               ~~~~~~~~ ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Emitting module RestKit
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:32: error: cannot find type 'URLRequest' in scope
    func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:74: error: cannot find type 'URLRequest' in scope
    func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
                                                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:52:39: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:52:81: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:82:39: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:82:81: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:143:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func errorResponseDecoder(data: Data, response: HTTPURLResponse) -> RestError {
                                                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:188:39: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:188:81: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:208:39: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:208:81: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:221:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: URLSessionConfiguration.default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:221:77: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
    private let session = URLSession(configuration: URLSessionConfiguration.default)
                                                    ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:233:62: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func errorResponseDecoder(data: Data, response: HTTPURLResponse) -> RestError {
                                                             ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:265:39: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:265:81: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:27:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:29:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal var errorResponseDecoder: ((Data, HTTPURLResponse) -> RestError)
                                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        session: URLSession,
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:39:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        errorResponseDecoder: @escaping ((Data, HTTPURLResponse) -> RestError),
                                                ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:56:29: error: cannot find type 'URLRequest' in scope
    private var urlRequest: URLRequest? {
                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:87:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        completionHandler: @escaping (Data?, HTTPURLResponse?, RestError?) -> Void)
                                             ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:288:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        completionHandler: @escaping (HTTPURLResponse?, RestError?) -> Void)
                                      ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/RestResponse.swift:47:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal init(response: HTTPURLResponse) {
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[4/8] Compiling RestKit Authentication.swift
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:32: error: cannot find type 'URLRequest' in scope
    func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:74: error: cannot find type 'URLRequest' in scope
    func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
                                                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:52:39: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:52:81: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:82:39: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:82:81: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:143:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func errorResponseDecoder(data: Data, response: HTTPURLResponse) -> RestError {
                                                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:188:39: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:188:81: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:208:39: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:208:81: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:221:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: URLSessionConfiguration.default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:221:77: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
    private let session = URLSession(configuration: URLSessionConfiguration.default)
                                                    ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:233:62: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func errorResponseDecoder(data: Data, response: HTTPURLResponse) -> RestError {
                                                             ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:265:39: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:265:81: error: cannot find type 'URLRequest' in scope
    public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
                                                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:53:36: error: 'nil' requires a contextual type
        completionHandler(request, nil)
                                   ^
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:113:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let session = URLSession(configuration: URLSessionConfiguration.default)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:113:73: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let session = URLSession(configuration: URLSessionConfiguration.default)
                                                ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:145:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        let code = response.statusCode
                   ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:189:36: error: 'nil' requires a contextual type
        completionHandler(request, nil)
                                   ^
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:211:36: error: 'nil' requires a contextual type
        completionHandler(request, nil)
                                   ^
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:243:48: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
                errorMessage = HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
                               ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:243:88: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                errorMessage = HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
                                                                              ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:247:44: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
            errorMessage = HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
                           ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:247:84: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            errorMessage = HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
                                                                          ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:250:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        return RestError.http(statusCode: response.statusCode, message: errorMessage, metadata: metadata)
                                          ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:308:40: error: cannot convert value of type '_' to expected argument type 'RestError?'
                completionHandler(nil, error)
                                       ^
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:331:40: error: cannot convert value of type '_' to expected argument type 'RestError?'
                completionHandler(nil, error)
                                       ^
[5/8] Compiling RestKit RestError.swift
[6/8] Compiling RestKit MultipartFormData.swift
[7/8] Compiling RestKit CodableExtensions.swift
[8/8] Compiling RestKit JSON.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2