Build Information
Failed to build Nappa with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AlTavares/Nappa.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/AlTavares/Nappa
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at cbf6989 Merge branch 'develop'
Cloned https://github.com/AlTavares/Nappa.git
Revision (git rev-parse @):
cbf6989efa0c46d8fb2a44098b26071b69201787
SUCCESS checkout https://github.com/AlTavares/Nappa.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/AlTavares/Nappa.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling Nappa AnyEncodable.swift
[4/11] Compiling Nappa HTTPServiceErrors.swift
[5/11] Compiling Nappa ResultExtension.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/11] Compiling Nappa DispatchQueueExtension.swift
[7/11] Emitting module Nappa
/host/spi-builder-workspace/Sources/Nappa/Extensions/URLRequestExtension.swift:4:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:19:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: RequestTask {}
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:16:31: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
var state: URLSessionTask.State { get }
~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:22:24: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var cookieStorage: HTTPCookieStorage { get }
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:23:34: error: cannot find type 'URLRequest' in scope
func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:27:24: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var cookieStorage: HTTPCookieStorage {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:33:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:35:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:39:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(configuration: URLSessionConfiguration) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:43:41: error: cannot find type 'URLRequest' in scope
public func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:59:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:62:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:193:61: error: cannot find type 'URLRequest' in scope
private func buildRequest(forUrl url: String) -> Result<URLRequest, HTTPResponseError> {
^~~~~~~~~~
[8/11] Compiling Nappa URLRequestExtension.swift
/host/spi-builder-workspace/Sources/Nappa/Extensions/URLRequestExtension.swift:4:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
[9/11] Compiling Nappa HTTPResponse.swift
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:59:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:62:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:34:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if emptyDataStatusCodes.contains(response.statusCode) { return .success(Data()) }
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:18: error: extra arguments at positions #1, #3, #4 in call
self.init(request: response.request, response: response.response, data: response.data, error: response.error)
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: 'init(response:)' declared here
public convenience init<SomeResponse: Response>(response: SomeResponse) {
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'Response'
self.init(request: response.request, response: response.response, data: response.data, error: response.error)
^
as! Response
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: error: value of optional type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') must be unwrapped to a value of type 'HTTPURLResponse' (aka 'AnyObject')
self.init(request: response.request, response: response.response, data: response.data, error: response.error)
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: note: coalesce using '??' to provide a default when the optional value contains 'nil'
self.init(request: response.request, response: response.response, data: response.data, error: response.error)
^
?? <#default value#>
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
self.init(request: response.request, response: response.response, data: response.data, error: response.error)
^
!
[10/11] Compiling Nappa HTTPService.swift
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:23:34: error: cannot find type 'URLRequest' in scope
func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:16:31: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
var state: URLSessionTask.State { get }
~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:193:61: error: cannot find type 'URLRequest' in scope
private func buildRequest(forUrl url: String) -> Result<URLRequest, HTTPResponseError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:133:43: error: incorrect argument label in call (have 'error:', expected 'response:')
completionHandler(DataResponse(error: error as? HTTPResponseError))
^~~~~~
response
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:133:31: error: initializer 'init(response:)' requires that 'HTTPResponseError?' inherit from 'Response'
completionHandler(DataResponse(error: error as? HTTPResponseError))
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: where 'SomeResponse' = 'HTTPResponseError?'
public convenience init<SomeResponse: Response>(response: SomeResponse) {
^
[11/11] Compiling Nappa HTTPRequestAdapter.swift
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:19:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: RequestTask {}
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:16:31: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
var state: URLSessionTask.State { get }
~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:22:24: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var cookieStorage: HTTPCookieStorage { get }
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:23:34: error: cannot find type 'URLRequest' in scope
func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:27:24: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var cookieStorage: HTTPCookieStorage {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:33:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:35:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:39:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(configuration: URLSessionConfiguration) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:43:41: error: cannot find type 'URLRequest' in scope
public func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:28:34: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
return HTTPCookieStorage.shared
~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:36:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
return urlSession.configuration.httpCookieStorage ?? HTTPCookieStorage.shared
~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:36:80: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
return urlSession.configuration.httpCookieStorage ?? HTTPCookieStorage.shared
~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:40:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
urlSession = URLSession(configuration: configuration)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:44:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let dataTask = urlSession.dataTask(with: request) { data, response, error in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:47:54: error: extra arguments at positions #1, #3, #4 in call
return completionHandler(DataResponse(request: request, response: httpResponse, data: data, error: .requestError(error)))
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: 'init(response:)' declared here
public convenience init<SomeResponse: Response>(response: SomeResponse) {
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:47:42: error: initializer 'init(response:)' requires that 'HTTPURLResponse?' (aka 'Optional<AnyObject>') inherit from 'Response'
return completionHandler(DataResponse(request: request, response: httpResponse, data: data, error: .requestError(error)))
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: where 'SomeResponse' = 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
public convenience init<SomeResponse: Response>(response: SomeResponse) {
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:47:117: error: cannot infer contextual base in reference to member 'requestError'
return completionHandler(DataResponse(request: request, response: httpResponse, data: data, error: .requestError(error)))
~^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:57:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
return SimpleRequestAdapter(configuration: .default)
~^~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:61:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
return SimpleRequestAdapter(configuration: .ephemeral)
~^~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/6] Emitting module Nappa
/host/spi-builder-workspace/Sources/Nappa/Extensions/URLRequestExtension.swift:4:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:19:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: RequestTask {}
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:16:31: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
var state: URLSessionTask.State { get }
~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:22:24: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var cookieStorage: HTTPCookieStorage { get }
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:23:34: error: cannot find type 'URLRequest' in scope
func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:27:24: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var cookieStorage: HTTPCookieStorage {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:33:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:35:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:39:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(configuration: URLSessionConfiguration) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:43:41: error: cannot find type 'URLRequest' in scope
public func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:59:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:62:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:193:61: error: cannot find type 'URLRequest' in scope
private func buildRequest(forUrl url: String) -> Result<URLRequest, HTTPResponseError> {
^~~~~~~~~~
[3/6] Compiling Nappa HTTPService.swift
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:23:34: error: cannot find type 'URLRequest' in scope
func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:16:31: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
var state: URLSessionTask.State { get }
~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:193:61: error: cannot find type 'URLRequest' in scope
private func buildRequest(forUrl url: String) -> Result<URLRequest, HTTPResponseError> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:133:43: error: incorrect argument label in call (have 'error:', expected 'response:')
completionHandler(DataResponse(error: error as? HTTPResponseError))
^~~~~~
response
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:133:31: error: initializer 'init(response:)' requires that 'HTTPResponseError?' inherit from 'Response'
completionHandler(DataResponse(error: error as? HTTPResponseError))
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: where 'SomeResponse' = 'HTTPResponseError?'
public convenience init<SomeResponse: Response>(response: SomeResponse) {
^
[4/6] Compiling Nappa HTTPResponse.swift
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:59:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:62:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:34:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if emptyDataStatusCodes.contains(response.statusCode) { return .success(Data()) }
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:18: error: extra arguments at positions #1, #3, #4 in call
self.init(request: response.request, response: response.response, data: response.data, error: response.error)
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: 'init(response:)' declared here
public convenience init<SomeResponse: Response>(response: SomeResponse) {
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'Response'
self.init(request: response.request, response: response.response, data: response.data, error: response.error)
^
as! Response
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: error: value of optional type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') must be unwrapped to a value of type 'HTTPURLResponse' (aka 'AnyObject')
self.init(request: response.request, response: response.response, data: response.data, error: response.error)
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: note: coalesce using '??' to provide a default when the optional value contains 'nil'
self.init(request: response.request, response: response.response, data: response.data, error: response.error)
^
?? <#default value#>
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
self.init(request: response.request, response: response.response, data: response.data, error: response.error)
^
!
[5/6] Compiling Nappa URLRequestExtension.swift
/host/spi-builder-workspace/Sources/Nappa/Extensions/URLRequestExtension.swift:4:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
^~~~~~~~~~
[6/6] Compiling Nappa HTTPRequestAdapter.swift
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:19:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: RequestTask {}
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:16:31: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
var state: URLSessionTask.State { get }
~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:22:24: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var cookieStorage: HTTPCookieStorage { get }
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:23:34: error: cannot find type 'URLRequest' in scope
func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:27:24: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var cookieStorage: HTTPCookieStorage {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:33:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:35:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:39:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(configuration: URLSessionConfiguration) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:43:41: error: cannot find type 'URLRequest' in scope
public func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:28:34: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
return HTTPCookieStorage.shared
~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:36:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
return urlSession.configuration.httpCookieStorage ?? HTTPCookieStorage.shared
~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:36:80: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
return urlSession.configuration.httpCookieStorage ?? HTTPCookieStorage.shared
~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:40:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
urlSession = URLSession(configuration: configuration)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:44:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let dataTask = urlSession.dataTask(with: request) { data, response, error in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:47:54: error: extra arguments at positions #1, #3, #4 in call
return completionHandler(DataResponse(request: request, response: httpResponse, data: data, error: .requestError(error)))
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: 'init(response:)' declared here
public convenience init<SomeResponse: Response>(response: SomeResponse) {
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:47:42: error: initializer 'init(response:)' requires that 'HTTPURLResponse?' (aka 'Optional<AnyObject>') inherit from 'Response'
return completionHandler(DataResponse(request: request, response: httpResponse, data: data, error: .requestError(error)))
^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: where 'SomeResponse' = 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
public convenience init<SomeResponse: Response>(response: SomeResponse) {
^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:47:117: error: cannot infer contextual base in reference to member 'requestError'
return completionHandler(DataResponse(request: request, response: httpResponse, data: data, error: .requestError(error)))
~^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:57:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
return SimpleRequestAdapter(configuration: .default)
~^~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:61:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
return SimpleRequestAdapter(configuration: .ephemeral)
~^~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 1