Build Information
Failed to build SimpleNetworking, reference 2.0.0 (4e87c1
), with Swift 6.2 (beta) for Linux on 18 Jun 2025 11:48:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gonzalezreal/SimpleNetworking.git
Reference: 2.0.0
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/gonzalezreal/SimpleNetworking
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at 4e87c1f Update README (#19)
Cloned https://github.com/gonzalezreal/SimpleNetworking.git
Revision (git rev-parse @):
4e87c1fe1310b83d3418ebcfe626c7f2512cc35a
SUCCESS checkout https://github.com/gonzalezreal/SimpleNetworking.git at 2.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/gonzalezreal/SimpleNetworking.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/apple/swift-log
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log from cache (0.69s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.3 (1.35s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.3
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Compiling Logging MetadataProvider.swift
[5/8] Compiling Logging LogHandler.swift
[6/8] Emitting module Logging
[7/8] Compiling Logging Locks.swift
[8/8] Compiling Logging Logging.swift
[10/24] Compiling SimpleNetworking ContentType.swift
[11/24] Compiling SimpleNetworking Data+LogDescription.swift
[12/24] Compiling SimpleNetworking HTTPURLResponse+Logging.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
24 | import Foundation
25 |
26 | internal extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
27 | func logDescription(content: String) -> String {
28 | var result = "[RESPONSE] \(statusCode) \(url!)"
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[13/24] Compiling SimpleNetworking HeaderField.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
24 | import Foundation
25 |
26 | internal extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
27 | func logDescription(content: String) -> String {
28 | var result = "[RESPONSE] \(statusCode) \(url!)"
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[14/24] Compiling SimpleNetworking Exports.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
24 | import Foundation
25 |
26 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
28 | internal var logDescription: String {
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:70:86: error: cannot find type 'URLRequest' in scope
68 |
69 | /// Returns a new URL request by adding the given query parameters to this request.
70 | public func addingParameters(_ parameters: [String: CustomStringConvertible]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
71 | guard !parameters.isEmpty else { return self }
72 |
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:88:68: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Returns a new URL request by adding the given headers to this request.
88 | public func addingHeaders(_ headers: [HeaderField: String]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
89 | guard !headers.isEmpty else { return self }
90 |
[15/24] Compiling SimpleNetworking URLRequest+APIRequest.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
24 | import Foundation
25 |
26 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
28 | internal var logDescription: String {
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:70:86: error: cannot find type 'URLRequest' in scope
68 |
69 | /// Returns a new URL request by adding the given query parameters to this request.
70 | public func addingParameters(_ parameters: [String: CustomStringConvertible]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
71 | guard !parameters.isEmpty else { return self }
72 |
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:88:68: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Returns a new URL request by adding the given headers to this request.
88 | public func addingHeaders(_ headers: [HeaderField: String]) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
89 | guard !headers.isEmpty else { return self }
90 |
[16/24] Compiling SimpleNetworking Dictionary+LogDescription.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | private struct Stub {
67 | let data: Data
68 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | }
70 |
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/SimpleNetworking/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | private static var stubs: [URLRequest: Stub] = [:]
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
181 | statusCode: Int,
182 | headers: [String: String]? = nil,
183 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
184 | ) {
185 | stubs[request] = Stub(
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
198 | }
199 |
200 | override public class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
201 | stubs.keys.contains(request)
202 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
202 | }
203 |
204 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
205 | request
206 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
202 | }
203 |
204 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
205 | request
206 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
206 | }
207 |
208 | override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
209 | false
210 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
206 | }
207 |
208 | override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
209 | false
210 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
210 | }
211 |
212 | override public func startLoading() {
| `- error: method does not override any method from its superclass
213 | guard let stub = HTTPStubProtocol.stubs[request] else {
214 | fatalError("Couldn't find stub for request \(request)")
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
220 | }
221 |
222 | override public func stopLoading() {}
| `- error: method does not override any method from its superclass
223 | }
224 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// )
64 | ///
65 | public final class HTTPStubProtocol: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | private struct Stub {
67 | let data: Data
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:18: error: cannot find 'URLRequest' in scope
93 | statusCode: statusCode,
94 | headers: headers,
95 | for: URLRequest(baseURL: baseURL, apiRequest: request)
| `- error: cannot find 'URLRequest' in scope
96 | )
97 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:91:9: error: generic parameter 'Error' could not be inferred
81 | /// - baseURL: The base URL for the API request.
82 | ///
83 | public static func stub<Output, Error>(
| `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
84 | _ output: Output,
85 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
89 | baseURL: URL
90 | ) throws where Output: Encodable {
91 | stub(
| `- error: generic parameter 'Error' could not be inferred
92 | try jsonEncoder.encode(output),
93 | statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:67: error: missing argument for parameter 'baseURL' in call
81 | /// - baseURL: The base URL for the API request.
82 | ///
83 | public static func stub<Output, Error>(
| `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
84 | _ output: Output,
85 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
93 | statusCode: statusCode,
94 | headers: headers,
95 | for: URLRequest(baseURL: baseURL, apiRequest: request)
| `- error: missing argument for parameter 'baseURL' in call
96 | )
97 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:18: error: cannot find 'URLRequest' in scope
119 | statusCode: statusCode,
120 | headers: headers,
121 | for: URLRequest(baseURL: baseURL, apiRequest: request)
| `- error: cannot find 'URLRequest' in scope
122 | )
123 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:117:9: error: generic parameter 'Error' could not be inferred
81 | /// - baseURL: The base URL for the API request.
82 | ///
83 | public static func stub<Output, Error>(
| `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
84 | _ output: Output,
85 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
115 | baseURL: URL
116 | ) throws where Error: Encodable {
117 | stub(
| `- error: generic parameter 'Error' could not be inferred
118 | try jsonEncoder.encode(error),
119 | statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:67: error: missing argument for parameter 'baseURL' in call
81 | /// - baseURL: The base URL for the API request.
82 | ///
83 | public static func stub<Output, Error>(
| `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
84 | _ output: Output,
85 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
119 | statusCode: statusCode,
120 | headers: headers,
121 | for: URLRequest(baseURL: baseURL, apiRequest: request)
| `- error: missing argument for parameter 'baseURL' in call
122 | )
123 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:18: error: cannot find 'URLRequest' in scope
143 | statusCode: statusCode,
144 | headers: headers,
145 | for: URLRequest(baseURL: baseURL, apiRequest: request)
| `- error: cannot find 'URLRequest' in scope
146 | )
147 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:141:16: error: no exact matches in call to static method 'stub'
81 | /// - baseURL: The base URL for the API request.
82 | ///
83 | public static func stub<Output, Error>(
| `- note: found this candidate
84 | _ output: Output,
85 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
107 | /// - baseURL: The base URL for the API request.
108 | ///
109 | public static func stub<Output, Error>(
| `- note: found this candidate
110 | _ error: Error,
111 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
139 | baseURL: URL
140 | ) {
141 | return stub(
| `- error: no exact matches in call to static method 'stub'
142 | text.data(using: .utf8)!,
143 | statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:167:18: error: cannot find 'URLRequest' in scope
165 | statusCode: statusCode,
166 | headers: headers,
167 | for: URLRequest(baseURL: baseURL, apiRequest: request)
| `- error: cannot find 'URLRequest' in scope
168 | )
169 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:163:16: error: no exact matches in call to static method 'stub'
81 | /// - baseURL: The base URL for the API request.
82 | ///
83 | public static func stub<Output, Error>(
| `- note: found this candidate
84 | _ output: Output,
85 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
107 | /// - baseURL: The base URL for the API request.
108 | ///
109 | public static func stub<Output, Error>(
| `- note: found this candidate
110 | _ error: Error,
111 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
161 | baseURL: URL
162 | ) {
163 | return stub(
| `- error: no exact matches in call to static method 'stub'
164 | Data(),
165 | statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:187:23: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
185 | stubs[request] = Stub(
186 | data: data,
187 | response: HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
188 | url: request.url!,
189 | statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:213:49: error: cannot find 'request' in scope
211 |
212 | override public func startLoading() {
213 | guard let stub = HTTPStubProtocol.stubs[request] else {
| `- error: cannot find 'request' in scope
214 | fatalError("Couldn't find stub for request \(request)")
215 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:214:58: error: cannot find 'request' in scope
212 | override public func startLoading() {
213 | guard let stub = HTTPStubProtocol.stubs[request] else {
214 | fatalError("Couldn't find stub for request \(request)")
| `- error: cannot find 'request' in scope
215 | }
216 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:9: error: cannot find 'client' in scope
215 | }
216 |
217 | client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
| `- error: cannot find 'client' in scope
218 | client!.urlProtocol(self, didLoad: stub.data)
219 | client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:83: error: cannot infer contextual base in reference to member 'notAllowed'
215 | }
216 |
217 | client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
| `- error: cannot infer contextual base in reference to member 'notAllowed'
218 | client!.urlProtocol(self, didLoad: stub.data)
219 | client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:218:9: error: cannot find 'client' in scope
216 |
217 | client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 | client!.urlProtocol(self, didLoad: stub.data)
| `- error: cannot find 'client' in scope
219 | client!.urlProtocolDidFinishLoading(self)
220 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:219:9: error: cannot find 'client' in scope
217 | client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 | client!.urlProtocol(self, didLoad: stub.data)
219 | client!.urlProtocolDidFinishLoading(self)
| `- error: cannot find 'client' in scope
220 | }
221 |
[17/24] Compiling SimpleNetworking HTTPStubProtocol.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | private struct Stub {
67 | let data: Data
68 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | }
70 |
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/SimpleNetworking/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | private static var stubs: [URLRequest: Stub] = [:]
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
181 | statusCode: Int,
182 | headers: [String: String]? = nil,
183 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
184 | ) {
185 | stubs[request] = Stub(
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
198 | }
199 |
200 | override public class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
201 | stubs.keys.contains(request)
202 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
202 | }
203 |
204 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
205 | request
206 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
202 | }
203 |
204 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
205 | request
206 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
206 | }
207 |
208 | override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
209 | false
210 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
206 | }
207 |
208 | override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
209 | false
210 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
210 | }
211 |
212 | override public func startLoading() {
| `- error: method does not override any method from its superclass
213 | guard let stub = HTTPStubProtocol.stubs[request] else {
214 | fatalError("Couldn't find stub for request \(request)")
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
220 | }
221 |
222 | override public func stopLoading() {}
| `- error: method does not override any method from its superclass
223 | }
224 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// )
64 | ///
65 | public final class HTTPStubProtocol: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | private struct Stub {
67 | let data: Data
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:18: error: cannot find 'URLRequest' in scope
93 | statusCode: statusCode,
94 | headers: headers,
95 | for: URLRequest(baseURL: baseURL, apiRequest: request)
| `- error: cannot find 'URLRequest' in scope
96 | )
97 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:91:9: error: generic parameter 'Error' could not be inferred
81 | /// - baseURL: The base URL for the API request.
82 | ///
83 | public static func stub<Output, Error>(
| `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
84 | _ output: Output,
85 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
89 | baseURL: URL
90 | ) throws where Output: Encodable {
91 | stub(
| `- error: generic parameter 'Error' could not be inferred
92 | try jsonEncoder.encode(output),
93 | statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:67: error: missing argument for parameter 'baseURL' in call
81 | /// - baseURL: The base URL for the API request.
82 | ///
83 | public static func stub<Output, Error>(
| `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
84 | _ output: Output,
85 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
93 | statusCode: statusCode,
94 | headers: headers,
95 | for: URLRequest(baseURL: baseURL, apiRequest: request)
| `- error: missing argument for parameter 'baseURL' in call
96 | )
97 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:18: error: cannot find 'URLRequest' in scope
119 | statusCode: statusCode,
120 | headers: headers,
121 | for: URLRequest(baseURL: baseURL, apiRequest: request)
| `- error: cannot find 'URLRequest' in scope
122 | )
123 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:117:9: error: generic parameter 'Error' could not be inferred
81 | /// - baseURL: The base URL for the API request.
82 | ///
83 | public static func stub<Output, Error>(
| `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
84 | _ output: Output,
85 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
115 | baseURL: URL
116 | ) throws where Error: Encodable {
117 | stub(
| `- error: generic parameter 'Error' could not be inferred
118 | try jsonEncoder.encode(error),
119 | statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:67: error: missing argument for parameter 'baseURL' in call
81 | /// - baseURL: The base URL for the API request.
82 | ///
83 | public static func stub<Output, Error>(
| `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
84 | _ output: Output,
85 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
119 | statusCode: statusCode,
120 | headers: headers,
121 | for: URLRequest(baseURL: baseURL, apiRequest: request)
| `- error: missing argument for parameter 'baseURL' in call
122 | )
123 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:18: error: cannot find 'URLRequest' in scope
143 | statusCode: statusCode,
144 | headers: headers,
145 | for: URLRequest(baseURL: baseURL, apiRequest: request)
| `- error: cannot find 'URLRequest' in scope
146 | )
147 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:141:16: error: no exact matches in call to static method 'stub'
81 | /// - baseURL: The base URL for the API request.
82 | ///
83 | public static func stub<Output, Error>(
| `- note: found this candidate
84 | _ output: Output,
85 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
107 | /// - baseURL: The base URL for the API request.
108 | ///
109 | public static func stub<Output, Error>(
| `- note: found this candidate
110 | _ error: Error,
111 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
139 | baseURL: URL
140 | ) {
141 | return stub(
| `- error: no exact matches in call to static method 'stub'
142 | text.data(using: .utf8)!,
143 | statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:167:18: error: cannot find 'URLRequest' in scope
165 | statusCode: statusCode,
166 | headers: headers,
167 | for: URLRequest(baseURL: baseURL, apiRequest: request)
| `- error: cannot find 'URLRequest' in scope
168 | )
169 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:163:16: error: no exact matches in call to static method 'stub'
81 | /// - baseURL: The base URL for the API request.
82 | ///
83 | public static func stub<Output, Error>(
| `- note: found this candidate
84 | _ output: Output,
85 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
107 | /// - baseURL: The base URL for the API request.
108 | ///
109 | public static func stub<Output, Error>(
| `- note: found this candidate
110 | _ error: Error,
111 | jsonEncoder: JSONEncoder = JSONEncoder(),
:
161 | baseURL: URL
162 | ) {
163 | return stub(
| `- error: no exact matches in call to static method 'stub'
164 | Data(),
165 | statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:187:23: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
185 | stubs[request] = Stub(
186 | data: data,
187 | response: HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
188 | url: request.url!,
189 | statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:213:49: error: cannot find 'request' in scope
211 |
212 | override public func startLoading() {
213 | guard let stub = HTTPStubProtocol.stubs[request] else {
| `- error: cannot find 'request' in scope
214 | fatalError("Couldn't find stub for request \(request)")
215 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:214:58: error: cannot find 'request' in scope
212 | override public func startLoading() {
213 | guard let stub = HTTPStubProtocol.stubs[request] else {
214 | fatalError("Couldn't find stub for request \(request)")
| `- error: cannot find 'request' in scope
215 | }
216 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:9: error: cannot find 'client' in scope
215 | }
216 |
217 | client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
| `- error: cannot find 'client' in scope
218 | client!.urlProtocol(self, didLoad: stub.data)
219 | client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:83: error: cannot infer contextual base in reference to member 'notAllowed'
215 | }
216 |
217 | client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
| `- error: cannot infer contextual base in reference to member 'notAllowed'
218 | client!.urlProtocol(self, didLoad: stub.data)
219 | client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:218:9: error: cannot find 'client' in scope
216 |
217 | client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 | client!.urlProtocol(self, didLoad: stub.data)
| `- error: cannot find 'client' in scope
219 | client!.urlProtocolDidFinishLoading(self)
220 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:219:9: error: cannot find 'client' in scope
217 | client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 | client!.urlProtocol(self, didLoad: stub.data)
219 | client!.urlProtocolDidFinishLoading(self)
| `- error: cannot find 'client' in scope
220 | }
221 |
[18/25] Compiling SimpleNetworking URLSession+Stubbed.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLSession+Stubbed.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
24 | import Foundation
25 |
26 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
27 | /// A URL session whose requests can be stubbed with `HTTPStubProtocol`.
28 | public static var stubbed: URLSession {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/25] Compiling SimpleNetworking APIClientError.swift
[20/25] Compiling SimpleNetworking APIError.swift
[21/25] Compiling SimpleNetworking APIClient.swift
[22/25] Compiling SimpleNetworking APIClientConfiguration.swift
[23/25] Compiling SimpleNetworking APIRequest+Convenience.swift
[24/25] Compiling SimpleNetworking APIRequest.swift
[25/25] Emitting module SimpleNetworking
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | private struct Stub {
67 | let data: Data
68 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | }
70 |
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/SimpleNetworking/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | private static var stubs: [URLRequest: Stub] = [:]
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
181 | statusCode: Int,
182 | headers: [String: String]? = nil,
183 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
184 | ) {
185 | stubs[request] = Stub(
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
198 | }
199 |
200 | override public class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
201 | stubs.keys.contains(request)
202 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
202 | }
203 |
204 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
205 | request
206 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
202 | }
203 |
204 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
205 | request
206 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
206 | }
207 |
208 | override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
209 | false
210 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
206 | }
207 |
208 | override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
209 | false
210 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
210 | }
211 |
212 | override public func startLoading() {
| `- error: method does not override any method from its superclass
213 | guard let stub = HTTPStubProtocol.stubs[request] else {
214 | fatalError("Couldn't find stub for request \(request)")
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
220 | }
221 |
222 | override public func stopLoading() {}
| `- error: method does not override any method from its superclass
223 | }
224 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// )
64 | ///
65 | public final class HTTPStubProtocol: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | private struct Stub {
67 | let data: Data
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
24 | import Foundation
25 |
26 | internal extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
27 | func logDescription(content: String) -> String {
28 | var result = "[RESPONSE] \(statusCode) \(url!)"
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
24 | import Foundation
25 |
26 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
28 | internal var logDescription: String {
/host/spi-builder-workspace/Sources/SimpleNetworking/URLSession+Stubbed.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
24 | import Foundation
25 |
26 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
27 | /// A URL session whose requests can be stubbed with `HTTPStubProtocol`.
28 | public static var stubbed: URLSession {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.2 linux