Build Information
Failed to build Nappa with Swift 6.0 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.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: 6.0
Building package at path: $workDir
https://github.com/AlTavares/Nappa.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling Nappa ResultExtension.swift
/host/spi-builder-workspace/Sources/Nappa/Extensions/ResultExtension.swift:22:1: warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
20 | }
21 |
22 | extension Result: CustomDebugStringConvertible {
| |- warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
23 | public var debugDescription: String {
24 | switch self {
[4/11] Compiling Nappa HTTPServiceErrors.swift
[5/11] Compiling Nappa HTTPService.swift
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | public protocol HTTPRequestAdapter {
22 | var cookieStorage: HTTPCookieStorage { get }
23 | func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:16:31: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
14 | func suspend()
15 |
16 | var state: URLSessionTask.State { get }
| `- error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
17 | }
18 |
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:193:61: error: cannot find type 'URLRequest' in scope
191 | // MARK: Request
192 |
193 | private func buildRequest(forUrl url: String) -> Result<URLRequest, HTTPResponseError> {
| `- error: cannot find type 'URLRequest' in scope
194 | guard var urlComponents = URLComponents(string: url) else {
195 | return .failure(.invalidURL(url))
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
68 | public var error: HTTPResponseError?
69 |
70 | public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
| `- error: cannot find type 'URLRequest' in scope
71 | self.request = request
72 | self.response = response
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:133:43: error: incorrect argument label in call (have 'error:', expected 'response:')
131 | return adapter.performRequest(request: request, completionHandler: completionHandler)
132 | } catch {
133 | completionHandler(DataResponse(error: error as? HTTPResponseError))
| `- error: incorrect argument label in call (have 'error:', expected 'response:')
134 | return nil
135 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:133:31: error: initializer 'init(response:)' requires that 'HTTPResponseError?' inherit from 'Response'
131 | return adapter.performRequest(request: request, completionHandler: completionHandler)
132 | } catch {
133 | completionHandler(DataResponse(error: error as? HTTPResponseError))
| `- error: initializer 'init(response:)' requires that 'HTTPResponseError?' inherit from 'Response'
134 | return nil
135 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: where 'SomeResponse' = 'HTTPResponseError?'
75 | }
76 |
77 | public convenience init<SomeResponse: Response>(response: SomeResponse) {
| `- note: where 'SomeResponse' = 'HTTPResponseError?'
78 | self.init(request: response.request, response: response.response, data: response.data, error: response.error)
79 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:142:17: warning: capture of 'completionHandler' with non-sendable type '(DataResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | return response { dataResponse in
141 | queue.async {
142 | completionHandler(dataResponse)
| |- warning: capture of 'completionHandler' with non-sendable type '(DataResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
143 | }
144 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:142:35: warning: capture of 'dataResponse' with non-sendable type 'DataResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | return response { dataResponse in
141 | queue.async {
142 | completionHandler(dataResponse)
| `- warning: capture of 'dataResponse' with non-sendable type 'DataResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | }
144 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:82:14: note: class 'DataResponse' does not conform to the 'Sendable' protocol
80 | }
81 |
82 | public class DataResponse: Response, ResponseResult {
| `- note: class 'DataResponse' does not conform to the 'Sendable' protocol
83 | public lazy var result: Result<Data, HTTPResponseError> = decodeData()
84 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:162:17: warning: capture of 'completionHandler' with non-sendable type '(JSONResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
160 | }
161 | queue.async {
162 | completionHandler(jsonResponse)
| |- warning: capture of 'completionHandler' with non-sendable type '(JSONResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
163 | }
164 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:162:35: warning: capture of 'jsonResponse' with non-sendable type 'JSONResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
160 | }
161 | queue.async {
162 | completionHandler(jsonResponse)
| `- warning: capture of 'jsonResponse' with non-sendable type 'JSONResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
163 | }
164 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:86:14: note: class 'JSONResponse' does not conform to the 'Sendable' protocol
84 | }
85 |
86 | public class JSONResponse: Response, ResponseResult {
| `- note: class 'JSONResponse' does not conform to the 'Sendable' protocol
87 | public lazy var result: Result<Any, HTTPResponseError> = decodeResult(options: .allowFragments)
88 |
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:175:17: warning: capture of 'completionHandler' with non-sendable type '(ObjectResponse<Value>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | }
174 | queue.async {
175 | completionHandler(objectResponse)
| |- warning: capture of 'completionHandler' with non-sendable type '(ObjectResponse<Value>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
176 | }
177 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:175:35: warning: capture of 'objectResponse' with non-sendable type 'ObjectResponse<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | }
174 | queue.async {
175 | completionHandler(objectResponse)
| `- warning: capture of 'objectResponse' with non-sendable type 'ObjectResponse<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | }
177 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:127:14: note: generic class 'ObjectResponse' does not conform to the 'Sendable' protocol
125 | }
126 |
127 | public class ObjectResponse<Value: Decodable>: Response, ResponseResult {
| `- note: generic class 'ObjectResponse' does not conform to the 'Sendable' protocol
128 | public lazy var result: Result<Value, HTTPResponseError> = decodeResult(decoder: JSONDecoder())
129 |
[6/11] Compiling Nappa DispatchQueueExtension.swift
/host/spi-builder-workspace/Sources/Nappa/DispatchQueueExtension.swift:19:55: warning: passing non-sendable parameter 'closure' to function expecting a @Sendable closure
16 | static var background: DispatchQueue { return DispatchQueue.global(qos: .background) }
17 |
18 | func after(_ delay: TimeInterval, execute closure: @escaping () -> Void) {
| `- note: parameter 'closure' is implicitly non-sendable
19 | asyncAfter(deadline: .now() + delay, execute: closure)
| `- warning: passing non-sendable parameter 'closure' to function expecting a @Sendable closure
20 | }
21 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/11] Compiling Nappa AnyEncodable.swift
[8/11] Emitting module Nappa
/host/spi-builder-workspace/Sources/Nappa/Extensions/ResultExtension.swift:22:1: warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
20 | }
21 |
22 | extension Result: CustomDebugStringConvertible {
| |- warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomDebugStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
23 | public var debugDescription: String {
24 | switch self {
/host/spi-builder-workspace/Sources/Nappa/Extensions/URLRequestExtension.swift:4:18: error: cannot find type 'URLRequest' in scope
2 | import Foundation
3 |
4 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
5 | /**
6 | Returns a cURL command representation of this URL request.
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:16:31: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
14 | func suspend()
15 |
16 | var state: URLSessionTask.State { get }
| `- error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
17 | }
18 |
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:19:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
17 | }
18 |
19 | extension URLSessionDataTask: RequestTask {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
20 |
21 | public protocol HTTPRequestAdapter {
/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.
20 |
21 | public protocol HTTPRequestAdapter {
22 | var cookieStorage: HTTPCookieStorage { get }
| `- error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
24 | }
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookieStorage = AnyObject
| `- note: 'HTTPCookieStorage' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | public protocol HTTPRequestAdapter {
22 | var cookieStorage: HTTPCookieStorage { get }
23 | func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/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.
25 |
26 | public extension HTTPRequestAdapter {
27 | var cookieStorage: HTTPCookieStorage {
| `- error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | return HTTPCookieStorage.shared
29 | }
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookieStorage = AnyObject
| `- note: 'HTTPCookieStorage' has been explicitly marked unavailable here
/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.
31 |
32 | public struct SimpleRequestAdapter: HTTPRequestAdapter {
33 | var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | public var cookieStorage: HTTPCookieStorage {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/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.
33 | var urlSession: URLSession
34 |
35 | public var cookieStorage: HTTPCookieStorage {
| `- error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | return urlSession.configuration.httpCookieStorage ?? HTTPCookieStorage.shared
37 | }
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookieStorage = AnyObject
| `- note: 'HTTPCookieStorage' has been explicitly marked unavailable here
/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.
37 | }
38 |
39 | public init(configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | urlSession = URLSession(configuration: configuration)
41 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:43:41: error: cannot find type 'URLRequest' in scope
41 | }
42 |
43 | public func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask? {
| `- error: cannot find type 'URLRequest' in scope
44 | let dataTask = urlSession.dataTask(with: request) { data, response, error in
45 | let httpResponse = response as? HTTPURLResponse
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:59:25: error: cannot find type 'URLRequest' in scope
57 | public class Response {
58 | /// The URL request sent to the server.
59 | public var request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
60 |
61 | /// The server's response to the URL request.
/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.
60 |
61 | /// The server's response to the URL request.
62 | public var response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | /// The data returned by the server.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
68 | public var error: HTTPResponseError?
69 |
70 | public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
| `- error: cannot find type 'URLRequest' in scope
71 | self.request = request
72 | self.response = response
/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.
68 | public var error: HTTPResponseError?
69 |
70 | public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | self.request = request
72 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:193:61: error: cannot find type 'URLRequest' in scope
191 | // MARK: Request
192 |
193 | private func buildRequest(forUrl url: String) -> Result<URLRequest, HTTPResponseError> {
| `- error: cannot find type 'URLRequest' in scope
194 | guard var urlComponents = URLComponents(string: url) else {
195 | return .failure(.invalidURL(url))
[9/11] Compiling Nappa URLRequestExtension.swift
/host/spi-builder-workspace/Sources/Nappa/Extensions/URLRequestExtension.swift:4:18: error: cannot find type 'URLRequest' in scope
2 | import Foundation
3 |
4 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
5 | /**
6 | Returns a cURL command representation of this URL request.
[10/11] Compiling Nappa HTTPRequestAdapter.swift
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:16:31: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
14 | func suspend()
15 |
16 | var state: URLSessionTask.State { get }
| `- error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
17 | }
18 |
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:19:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
17 | }
18 |
19 | extension URLSessionDataTask: RequestTask {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
20 |
21 | public protocol HTTPRequestAdapter {
/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.
20 |
21 | public protocol HTTPRequestAdapter {
22 | var cookieStorage: HTTPCookieStorage { get }
| `- error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
24 | }
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookieStorage = AnyObject
| `- note: 'HTTPCookieStorage' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | public protocol HTTPRequestAdapter {
22 | var cookieStorage: HTTPCookieStorage { get }
23 | func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/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.
25 |
26 | public extension HTTPRequestAdapter {
27 | var cookieStorage: HTTPCookieStorage {
| `- error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | return HTTPCookieStorage.shared
29 | }
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookieStorage = AnyObject
| `- note: 'HTTPCookieStorage' has been explicitly marked unavailable here
/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.
31 |
32 | public struct SimpleRequestAdapter: HTTPRequestAdapter {
33 | var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | public var cookieStorage: HTTPCookieStorage {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/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.
33 | var urlSession: URLSession
34 |
35 | public var cookieStorage: HTTPCookieStorage {
| `- error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | return urlSession.configuration.httpCookieStorage ?? HTTPCookieStorage.shared
37 | }
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookieStorage = AnyObject
| `- note: 'HTTPCookieStorage' has been explicitly marked unavailable here
/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.
37 | }
38 |
39 | public init(configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | urlSession = URLSession(configuration: configuration)
41 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:43:41: error: cannot find type 'URLRequest' in scope
41 | }
42 |
43 | public func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask? {
| `- error: cannot find type 'URLRequest' in scope
44 | let dataTask = urlSession.dataTask(with: request) { data, response, error in
45 | let httpResponse = response as? HTTPURLResponse
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:28:34: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
26 | public extension HTTPRequestAdapter {
27 | var cookieStorage: HTTPCookieStorage {
28 | return HTTPCookieStorage.shared
| `- error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
29 | }
30 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:36:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
34 |
35 | public var cookieStorage: HTTPCookieStorage {
36 | return urlSession.configuration.httpCookieStorage ?? HTTPCookieStorage.shared
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
37 | }
38 |
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:36:80: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
34 |
35 | public var cookieStorage: HTTPCookieStorage {
36 | return urlSession.configuration.httpCookieStorage ?? HTTPCookieStorage.shared
| `- error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
37 | }
38 |
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:40:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 |
39 | public init(configuration: URLSessionConfiguration) {
40 | urlSession = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
41 | }
42 |
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
68 | public var error: HTTPResponseError?
69 |
70 | public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
| `- error: cannot find type 'URLRequest' in scope
71 | self.request = request
72 | self.response = response
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:44:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
42 |
43 | public func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask? {
44 | let dataTask = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
45 | let httpResponse = response as? HTTPURLResponse
46 | if let error = error {
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:47:54: error: extra arguments at positions #1, #3, #4 in call
45 | let httpResponse = response as? HTTPURLResponse
46 | if let error = error {
47 | return completionHandler(DataResponse(request: request, response: httpResponse, data: data, error: .requestError(error)))
| `- error: extra arguments at positions #1, #3, #4 in call
48 | }
49 | return completionHandler(DataResponse(request: request, response: httpResponse, data: data))
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: 'init(response:)' declared here
75 | }
76 |
77 | public convenience init<SomeResponse: Response>(response: SomeResponse) {
| `- note: 'init(response:)' declared here
78 | self.init(request: response.request, response: response.response, data: response.data, error: response.error)
79 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:47:42: error: initializer 'init(response:)' requires that 'HTTPURLResponse?' (aka 'Optional<AnyObject>') inherit from 'Response'
45 | let httpResponse = response as? HTTPURLResponse
46 | if let error = error {
47 | return completionHandler(DataResponse(request: request, response: httpResponse, data: data, error: .requestError(error)))
| `- error: initializer 'init(response:)' requires that 'HTTPURLResponse?' (aka 'Optional<AnyObject>') inherit from 'Response'
48 | }
49 | return completionHandler(DataResponse(request: request, response: httpResponse, data: data))
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: where 'SomeResponse' = 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
75 | }
76 |
77 | public convenience init<SomeResponse: Response>(response: SomeResponse) {
| `- note: where 'SomeResponse' = 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
78 | self.init(request: response.request, response: response.response, data: response.data, error: response.error)
79 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:47:117: error: cannot infer contextual base in reference to member 'requestError'
45 | let httpResponse = response as? HTTPURLResponse
46 | if let error = error {
47 | return completionHandler(DataResponse(request: request, response: httpResponse, data: data, error: .requestError(error)))
| `- error: cannot infer contextual base in reference to member 'requestError'
48 | }
49 | return completionHandler(DataResponse(request: request, response: httpResponse, data: data))
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:57:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 |
56 | public var DefaultRequestAdapter: HTTPRequestAdapter {
57 | return SimpleRequestAdapter(configuration: .default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 | }
59 |
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:61:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
59 |
60 | public var EphemeralRequestAdapter: HTTPRequestAdapter {
61 | return SimpleRequestAdapter(configuration: .ephemeral)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
62 | }
63 |
[11/11] Compiling Nappa HTTPResponse.swift
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:59:25: error: cannot find type 'URLRequest' in scope
57 | public class Response {
58 | /// The URL request sent to the server.
59 | public var request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
60 |
61 | /// The server's response to the URL request.
/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.
60 |
61 | /// The server's response to the URL request.
62 | public var response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | /// The data returned by the server.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
68 | public var error: HTTPResponseError?
69 |
70 | public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
| `- error: cannot find type 'URLRequest' in scope
71 | self.request = request
72 | self.response = response
/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.
68 | public var error: HTTPResponseError?
69 |
70 | public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | self.request = request
72 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:34:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 | }
33 |
34 | if emptyDataStatusCodes.contains(response.statusCode) { return .success(Data()) }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 |
36 | guard let validData = data else {
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:18: error: extra arguments at positions #1, #3, #4 in call
75 | }
76 |
77 | public convenience init<SomeResponse: Response>(response: SomeResponse) {
| `- note: 'init(response:)' declared here
78 | self.init(request: response.request, response: response.response, data: response.data, error: response.error)
| `- error: extra arguments at positions #1, #3, #4 in call
79 | }
80 | }
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'Response'
76 |
77 | public convenience init<SomeResponse: Response>(response: SomeResponse) {
78 | self.init(request: response.request, response: response.response, data: response.data, error: response.error)
| `- error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'Response'
79 | }
80 | }
/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')
76 |
77 | public convenience init<SomeResponse: Response>(response: SomeResponse) {
78 | self.init(request: response.request, response: response.response, data: response.data, error: response.error)
| |- error: value of optional type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') must be unwrapped to a value of type 'HTTPURLResponse' (aka 'AnyObject')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
79 | }
80 | }
BUILD FAILURE 6.0 linux