Build Information
Failed to build IBMWatsonRestKit with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/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/watson-developer-cloud/restkit.git
Reference: 3.0.3
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/watson-developer-cloud/restkit
* tag 3.0.3 -> FETCH_HEAD
HEAD is now at c4fa7c1 Merge pull request #23 from watson-developer-cloud/develop
Cloned https://github.com/watson-developer-cloud/restkit.git
Revision (git rev-parse @):
c4fa7c1ff757e261c9acae463f3ecb71e7d8ae93
SUCCESS checkout https://github.com/watson-developer-cloud/restkit.git at 3.0.3
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/watson-developer-cloud/restkit.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/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
[3/10] Compiling RestKit MultipartFormData.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/10] Compiling RestKit CodableExtensions.swift
[5/10] Compiling RestKit JSON.swift
[6/10] 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
^
[7/10] 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)
^
[8/10] Compiling RestKit RestError.swift
[9/10] 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)
~~~~~~~~ ^~~~~~~~~~
[10/10] 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)
~~~~~~~~ ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] 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)
~~~~~~~~ ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] 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)
~~~~~~~~ ^~~~~~~~~~
[4/5] 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/5] 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
^
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 2