Build Information
Failed to build openwhisk-swift-sdk with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-1":/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/dokun1/openwhisk-swift-sdk.git
Reference: 0.2.0
Cloned https://github.com/dokun1/openwhisk-swift-sdk.git into spi-builder-workspace
SUCCESS checkout https://github.com/dokun1/openwhisk-swift-sdk.git at 0.2.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/IBM-Swift/SwiftyRequest.git
Fetching https://github.com/IBM-Swift/LoggerAPI.git
Fetching https://github.com/IBM-Swift/CircuitBreaker.git
[1/1729] Fetching circuitbreaker
[607/3788] Fetching circuitbreaker, swiftyrequest
[934/4559] Fetching circuitbreaker, swiftyrequest, loggerapi
Fetched https://github.com/IBM-Swift/LoggerAPI.git (0.33s)
Fetched https://github.com/IBM-Swift/SwiftyRequest.git (0.35s)
Fetched https://github.com/IBM-Swift/CircuitBreaker.git (0.36s)
Computing version for https://github.com/IBM-Swift/SwiftyRequest.git
Computed https://github.com/IBM-Swift/SwiftyRequest.git at 1.1.3 (0.31s)
Computing version for https://github.com/IBM-Swift/CircuitBreaker.git
Computed https://github.com/IBM-Swift/CircuitBreaker.git at 5.1.0 (1.15s)
Computing version for https://github.com/IBM-Swift/LoggerAPI.git
Computed https://github.com/IBM-Swift/LoggerAPI.git at 1.9.200 (0.35s)
Fetching https://github.com/apple/swift-log.git
[1/3079] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (0.32s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.2 (0.30s)
Creating working copy for https://github.com/IBM-Swift/SwiftyRequest.git
Working copy of https://github.com/IBM-Swift/SwiftyRequest.git resolved at 1.1.3
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.2
Creating working copy for https://github.com/IBM-Swift/CircuitBreaker.git
Working copy of https://github.com/IBM-Swift/CircuitBreaker.git resolved at 5.1.0
Creating working copy for https://github.com/IBM-Swift/LoggerAPI.git
Working copy of https://github.com/IBM-Swift/LoggerAPI.git resolved at 1.9.200
warning: 'circuitbreaker': 'circuitbreaker' dependency on 'https://github.com/Kitura/LoggerAPI.git' conflicts with dependency on 'https://github.com/IBM-Swift/LoggerAPI.git' which has the same identity 'loggerapi'. this will be escalated to an error in future versions of SwiftPM.
Building for debugging...
[1/5] Emitting module Logging
[2/5] Compiling Logging MetadataProvider.swift
[3/5] Compiling Logging LogHandler.swift
[4/5] Compiling Logging Locks.swift
[5/5] Compiling Logging Logging.swift
[8/9] Emitting module LoggerAPI
[9/9] Compiling LoggerAPI Logger.swift
[12/21] Compiling CircuitBreaker Monitor.swift
[13/22] Compiling CircuitBreaker Invocation.swift
[14/22] Compiling CircuitBreaker Utils.swift
[15/22] Compiling CircuitBreaker Snapshot.swift
[16/22] Compiling CircuitBreaker MonitorCollection.swift
[17/22] Compiling CircuitBreaker Stats.swift
[18/22] Emitting module CircuitBreaker
[19/22] Compiling CircuitBreaker BreakerError.swift
[20/22] Compiling CircuitBreaker Bulkhead.swift
[21/22] Compiling CircuitBreaker CircuitBreaker.swift
[22/22] Compiling CircuitBreaker Collection.swift
[25/33] Compiling SwiftyRequest RestUtilities.swift
[26/34] Compiling SwiftyRequest RestToken.swift
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:716:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:40:26: error: cannot find type 'URLRequest' in scope
private var request: URLRequest
^~~~~~~~~~
[27/34] Compiling SwiftyRequest MultipartFormData.swift
[28/34] Compiling SwiftyRequest RestRequest.swift
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:29:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:40:26: error: cannot find type 'URLRequest' in scope
private var request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:43:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var circuitBreaker: CircuitBreaker<(Data?, HTTPURLResponse?, Error?) -> Void, String>?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:92:34: error: 'nil' requires a contextual type
request.setValue(nil, forHTTPHeaderField: "Authorization")
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:205:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func response(completionHandler: @escaping (Data?, HTTPURLResponse?, Error?) -> Void) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:277:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:355:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:410:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:488:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:553:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:595:77: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func download(to destination: URL, completionHandler: @escaping (HTTPURLResponse?, Error?) -> Void) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:616:66: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleInvocation(invocation: Invocation<(Data?, HTTPURLResponse?, Error?) -> Void, String>) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:716:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:719:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:793:24: error: cannot find type 'URLSessionDelegate' in scope
extension RestRequest: URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:796:142: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:796:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:796:73: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:30:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
var session = URLSession(configuration: URLSessionConfiguration.default)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:30:73: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
var session = URLSession(configuration: URLSessionConfiguration.default)
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:32:50: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let config = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:33:42: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:34:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
session = URLSession(configuration: config, delegate: self, delegateQueue: .main)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:34:89: error: cannot infer contextual base in reference to member 'main'
session = URLSession(configuration: config, delegate: self, delegateQueue: .main)
~^~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:105:105: error: 'nil' requires a contextual type
_ = request.allHTTPHeaderFields?.map { key, value in if !s.contains(key) { request.setValue(nil, forHTTPHeaderField: key) } }
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:184:24: error: cannot find 'URLRequest' in scope
self.request = URLRequest(url: urlObject)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:209:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = session.dataTask(with: request) { (data, response, error) in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:215:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let code = response.statusCode
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:240:32: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:240:32: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:240:73: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:240:84: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:251:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:251:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:285:32: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:285:32: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:285:73: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:285:84: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:296:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:296:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:362:32: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:362:32: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:362:73: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:362:84: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:373:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:373:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:418:32: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:418:32: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:418:73: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:418:84: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:429:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:429:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:495:32: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:495:32: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:495:73: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:495:84: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:506:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:506:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:560:32: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:560:32: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:560:73: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:560:84: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:571:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:571:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:596:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
let task = session.downloadTask(with: request) { (source, response, error) in
~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:617:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = session.dataTask(with: request) { (data, response, error) in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:624:22: error: cannot convert value of type '_' to expected argument type 'Data?'
callback(data, response as? HTTPURLResponse, error)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:797:32: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
let method = challenge.protectionSpace.authenticationMethod
~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:798:30: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
let host = challenge.protectionSpace.host
~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:801:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:801:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:808:15: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
case (NSURLAuthenticationMethodServerTrust, baseHost):
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:823:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:823:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:251:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:251:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:258:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:258:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:258:98: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:263:32: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:263:32: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:296:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:296:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:304:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:304:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:312:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:312:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:312:98: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:341:32: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:341:32: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:373:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:373:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:381:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:381:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:381:98: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:396:32: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:396:32: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:429:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:429:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:437:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:437:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:445:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:445:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:445:98: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:475:32: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:475:32: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:506:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:506:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:514:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:514:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:522:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:522:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:522:98: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:533:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:533:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:533:98: error: 'nil' requires a contextual type
let dataResponse = RestResponse(request: self.request, response: response, data: nil, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:528:33: error: type of expression is ambiguous without more context
let encoding = self.getCharacterEncoding(from: response?.allHeaderFields["Content-Type"] as? String)
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:540:32: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:540:32: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:571:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:571:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:578:36: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:578:36: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:585:32: error: generic parameter 'T' could not be inferred
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:713:28: note: 'T' declared as parameter to type 'RestResponse'
public struct RestResponse<T> {
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:585:32: note: explicitly specify the generic arguments to fix this issue
let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
^
<Any>
[29/34] Compiling SwiftyRequest StringExtensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[30/34] Compiling SwiftyRequest CodableExtensions.swift
[31/34] Compiling SwiftyRequest HTTPMethod.swift
[32/34] Compiling SwiftyRequest JSON.swift
[33/34] Compiling SwiftyRequest JSONWrapper.swift
[34/34] Emitting module SwiftyRequest
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:29:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:40:26: error: cannot find type 'URLRequest' in scope
private var request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:43:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var circuitBreaker: CircuitBreaker<(Data?, HTTPURLResponse?, Error?) -> Void, String>?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:92:34: error: 'nil' requires a contextual type
request.setValue(nil, forHTTPHeaderField: "Authorization")
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:205:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func response(completionHandler: @escaping (Data?, HTTPURLResponse?, Error?) -> Void) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:277:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:355:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:410:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:488:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:553:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:595:77: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func download(to destination: URL, completionHandler: @escaping (HTTPURLResponse?, Error?) -> Void) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:616:66: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleInvocation(invocation: Invocation<(Data?, HTTPURLResponse?, Error?) -> Void, String>) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:716:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:719:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:793:24: error: cannot find type 'URLSessionDelegate' in scope
extension RestRequest: URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:796:142: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:796:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:796:73: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2