Build Information
Failed to build swift-blocks, reference 0.9.0 (cf03a8), with Swift 6.3 for Wasm on 18 Apr 2026 04:55:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dirtyhenry/swift-blocks.git
Reference: 0.9.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/dirtyhenry/swift-blocks
* tag 0.9.0 -> FETCH_HEAD
HEAD is now at cf03a8d Merge pull request #129 from dirtyhenry/release-0.9.0
Cloned https://github.com/dirtyhenry/swift-blocks.git
Revision (git rev-parse @):
cf03a8d75b895b2f1b05da44810ffbb85041af54
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/dirtyhenry/swift-blocks.git at 0.9.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/dirtyhenry/swift-blocks.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/42] Emitting module Blocks
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:30:25: error: cannot find type 'URLRequest' in scope
28 |
29 | /// The request for this endpoint
30 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:33:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// This is used to (try to) parse a response into an `A`.
33 | var parse: @Sendable (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Transforms the result
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:68:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | headers: [URLRequestHeaderItem] = [],
67 | query: [URLQueryItem] = [],
68 | parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | ) {
70 | var requestUrl: URL
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.parse = parse
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:103:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.parse = parse
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
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/Blocks/Transport/MockTransport.swift:12:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | let response: HTTPURLResponse?
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | self.data = data
14 | 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/Blocks/Transport/MockTransport.swift:18:21: error: cannot find type 'URLRequest' in scope
16 |
17 | public func send(
18 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:19:21: error: cannot find type 'URLSessionTaskDelegate' in scope
17 | public func send(
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:20:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let actualResponse: HTTPURLResponse
22 |
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/Blocks/Transport/MockTransport.swift:10:9: error: stored property 'response' of 'Sendable'-conforming class 'MockTransport' contains non-Sendable type 'AnyObject'
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming class 'MockTransport' contains non-Sendable type 'AnyObject'
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:45:21: error: cannot find type 'URLRequest' in scope
43 | /// - Throws: An error if the request fails after retry attempts.
44 | public func send(
45 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | public func send(
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | ) async throws -> (Data, HTTPURLResponse) {
48 | var nbAttempts = 0
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:47:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | var nbAttempts = 0
49 | var errors: [Error] = []
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/Blocks/Transport/StatusCodeCheckingTransport.swift:75:21: error: cannot find type 'URLRequest' in scope
73 | /// - Throws: A `WrongStatusCodeError` if the actual status code does not match the expected range.
74 | public func send(
75 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:76:19: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | public func send(
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ) async throws -> (Data, HTTPURLResponse) {
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
/host/spi-builder-workspace/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:77:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
79 |
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/Blocks/Transport/StatusCodeCheckingTransport.swift:105:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |
107 | /// The response body data associated with the error.
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/Blocks/Transport/StatusCodeCheckingTransport.swift:115:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// - response: The HTTP URL response associated with the error.
114 | /// - responseBody: The response body data associated with the error.
115 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | self.statusCode = statusCode
117 | 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/Blocks/Transport/StatusCodeCheckingTransport.swift:105:16: warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' contains non-Sendable type 'AnyObject'
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' contains non-Sendable type 'AnyObject'
106 |
107 | /// The response body data associated with the error.
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:13:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/Blocks/Transport/Transport.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | @available(iOS 15.0.0, *)
24 | @available(macOS 12.0, *)
25 | extension URLSession: Transport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | public func send(
27 | urlRequest: URLRequest,
/host/spi-builder-workspace/Sources/Blocks/Transport/URLRequestHeaderItem.swift:44:18: error: cannot find type 'URLRequest' in scope
42 |
43 | /// Extension for URLRequest to set custom header fields easily.
44 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
45 | /// Sets a custom HTTP header field using the provided URLRequestHeaderItem.
46 | ///
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[4/47] Compiling Blocks TaskStateButton.swift
[5/47] Compiling Blocks WatchPairingUtil.swift
[6/47] Compiling Blocks FrontMatter.swift
[7/47] Compiling Blocks JSONFeed.swift
[8/47] Compiling Blocks OpenGraph.swift
[9/47] Compiling Blocks BlocksError.swift
/host/spi-builder-workspace/Sources/Blocks/CLIUtils/CLIUtils.swift:19:36: error: cannot find 'getpass' in scope
17 | public static func readLine(prompt: String, secure: Bool) -> String? {
18 | if secure {
19 | return String(cString: getpass(prompt))
| `- error: cannot find 'getpass' in scope
20 | } else {
21 | print(prompt)
[10/47] Compiling Blocks CLIUtils.swift
/host/spi-builder-workspace/Sources/Blocks/CLIUtils/CLIUtils.swift:19:36: error: cannot find 'getpass' in scope
17 | public static func readLine(prompt: String, secure: Bool) -> String? {
18 | if secure {
19 | return String(cString: getpass(prompt))
| `- error: cannot find 'getpass' in scope
20 | } else {
21 | print(prompt)
[11/47] Compiling Blocks ICalendar.swift
/host/spi-builder-workspace/Sources/Blocks/CLIUtils/CLIUtils.swift:19:36: error: cannot find 'getpass' in scope
17 | public static func readLine(prompt: String, secure: Bool) -> String? {
18 | if secure {
19 | return String(cString: getpass(prompt))
| `- error: cannot find 'getpass' in scope
20 | } else {
21 | print(prompt)
[12/47] Compiling Blocks CopyUtils.swift
/host/spi-builder-workspace/Sources/Blocks/CLIUtils/CLIUtils.swift:19:36: error: cannot find 'getpass' in scope
17 | public static func readLine(prompt: String, secure: Bool) -> String? {
18 | if secure {
19 | return String(cString: getpass(prompt))
| `- error: cannot find 'getpass' in scope
20 | } else {
21 | print(prompt)
[13/47] Compiling Blocks DataFormatter.swift
/host/spi-builder-workspace/Sources/Blocks/CLIUtils/CLIUtils.swift:19:36: error: cannot find 'getpass' in scope
17 | public static func readLine(prompt: String, secure: Bool) -> String? {
18 | if secure {
19 | return String(cString: getpass(prompt))
| `- error: cannot find 'getpass' in scope
20 | } else {
21 | print(prompt)
[14/47] Compiling Blocks Bundle.swift
/host/spi-builder-workspace/Sources/Blocks/CLIUtils/CLIUtils.swift:19:36: error: cannot find 'getpass' in scope
17 | public static func readLine(prompt: String, secure: Bool) -> String? {
18 | if secure {
19 | return String(cString: getpass(prompt))
| `- error: cannot find 'getpass' in scope
20 | } else {
21 | print(prompt)
[15/47] Compiling Blocks SimpleMessageError.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:30:25: error: cannot find type 'URLRequest' in scope
28 |
29 | /// The request for this endpoint
30 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:33:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// This is used to (try to) parse a response into an `A`.
33 | var parse: @Sendable (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Transforms the result
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:68:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | headers: [URLRequestHeaderItem] = [],
67 | query: [URLQueryItem] = [],
68 | parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | ) {
70 | var requestUrl: URL
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.parse = parse
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:103:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.parse = parse
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:37:20: error: extraneous argument label 'request:' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: extraneous argument label 'request:' in call
38 | parse(value, response).map(f)
39 | })
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:37:37: error: missing argument for parameter 'url' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: missing argument for parameter 'url' in call
38 | parse(value, response).map(f)
39 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:44:20: error: extraneous argument label 'request:' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: extraneous argument label 'request:' in call
45 | parse(data, response).flatMap(transform)
46 | })
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:44:37: error: missing argument for parameter 'url' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: missing argument for parameter 'url' in call
45 | parse(data, response).flatMap(transform)
46 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:79:19: error: cannot find 'URLRequest' in scope
77 | requestUrl = comps.url!
78 | }
79 | request = URLRequest(url: requestUrl)
| `- error: cannot find 'URLRequest' in scope
80 | if let a = accept {
81 | request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:191:13: warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
189 | ) {
190 | self.init(method, url: url, accept: accept, body: nil, headers: headers, query: query) { data, _ in
191 | Result {
| `- warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
192 | guard let dat = data else { throw NoDataError() }
193 | return try decoder.decode(A.self, from: dat)
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:221:13: warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
219 | let b = body.map { try! encoder.encode($0) }
220 | self.init(method, url: url, accept: accept, contentType: .json, body: b, headers: headers, query: query) { data, _ in
221 | Result {
| `- warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
222 | guard let dat = data else { throw NoDataError() }
223 | return try decoder.decode(A.self, from: dat)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:245:91: error: 'nil' requires a contextual type
243 | @discardableResult
244 | func load<A>(_ endpoint: Endpoint<A>) async throws -> A {
245 | let (data, httpResponse) = try await send(urlRequest: endpoint.request, delegate: nil)
| `- error: 'nil' requires a contextual type
246 | let result = endpoint.parse(data, httpResponse)
247 | return try result.get()
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[16/47] Compiling Blocks Sitemap.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:30:25: error: cannot find type 'URLRequest' in scope
28 |
29 | /// The request for this endpoint
30 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:33:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// This is used to (try to) parse a response into an `A`.
33 | var parse: @Sendable (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Transforms the result
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:68:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | headers: [URLRequestHeaderItem] = [],
67 | query: [URLQueryItem] = [],
68 | parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | ) {
70 | var requestUrl: URL
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.parse = parse
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:103:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.parse = parse
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:37:20: error: extraneous argument label 'request:' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: extraneous argument label 'request:' in call
38 | parse(value, response).map(f)
39 | })
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:37:37: error: missing argument for parameter 'url' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: missing argument for parameter 'url' in call
38 | parse(value, response).map(f)
39 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:44:20: error: extraneous argument label 'request:' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: extraneous argument label 'request:' in call
45 | parse(data, response).flatMap(transform)
46 | })
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:44:37: error: missing argument for parameter 'url' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: missing argument for parameter 'url' in call
45 | parse(data, response).flatMap(transform)
46 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:79:19: error: cannot find 'URLRequest' in scope
77 | requestUrl = comps.url!
78 | }
79 | request = URLRequest(url: requestUrl)
| `- error: cannot find 'URLRequest' in scope
80 | if let a = accept {
81 | request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:191:13: warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
189 | ) {
190 | self.init(method, url: url, accept: accept, body: nil, headers: headers, query: query) { data, _ in
191 | Result {
| `- warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
192 | guard let dat = data else { throw NoDataError() }
193 | return try decoder.decode(A.self, from: dat)
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:221:13: warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
219 | let b = body.map { try! encoder.encode($0) }
220 | self.init(method, url: url, accept: accept, contentType: .json, body: b, headers: headers, query: query) { data, _ in
221 | Result {
| `- warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
222 | guard let dat = data else { throw NoDataError() }
223 | return try decoder.decode(A.self, from: dat)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:245:91: error: 'nil' requires a contextual type
243 | @discardableResult
244 | func load<A>(_ endpoint: Endpoint<A>) async throws -> A {
245 | let (data, httpResponse) = try await send(urlRequest: endpoint.request, delegate: nil)
| `- error: 'nil' requires a contextual type
246 | let result = endpoint.parse(data, httpResponse)
247 | return try result.get()
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[17/47] Compiling Blocks Endpoint.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:30:25: error: cannot find type 'URLRequest' in scope
28 |
29 | /// The request for this endpoint
30 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:33:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// This is used to (try to) parse a response into an `A`.
33 | var parse: @Sendable (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Transforms the result
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:68:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | headers: [URLRequestHeaderItem] = [],
67 | query: [URLQueryItem] = [],
68 | parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | ) {
70 | var requestUrl: URL
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.parse = parse
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:103:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.parse = parse
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:37:20: error: extraneous argument label 'request:' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: extraneous argument label 'request:' in call
38 | parse(value, response).map(f)
39 | })
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:37:37: error: missing argument for parameter 'url' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: missing argument for parameter 'url' in call
38 | parse(value, response).map(f)
39 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:44:20: error: extraneous argument label 'request:' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: extraneous argument label 'request:' in call
45 | parse(data, response).flatMap(transform)
46 | })
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:44:37: error: missing argument for parameter 'url' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: missing argument for parameter 'url' in call
45 | parse(data, response).flatMap(transform)
46 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:79:19: error: cannot find 'URLRequest' in scope
77 | requestUrl = comps.url!
78 | }
79 | request = URLRequest(url: requestUrl)
| `- error: cannot find 'URLRequest' in scope
80 | if let a = accept {
81 | request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:191:13: warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
189 | ) {
190 | self.init(method, url: url, accept: accept, body: nil, headers: headers, query: query) { data, _ in
191 | Result {
| `- warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
192 | guard let dat = data else { throw NoDataError() }
193 | return try decoder.decode(A.self, from: dat)
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:221:13: warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
219 | let b = body.map { try! encoder.encode($0) }
220 | self.init(method, url: url, accept: accept, contentType: .json, body: b, headers: headers, query: query) { data, _ in
221 | Result {
| `- warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
222 | guard let dat = data else { throw NoDataError() }
223 | return try decoder.decode(A.self, from: dat)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:245:91: error: 'nil' requires a contextual type
243 | @discardableResult
244 | func load<A>(_ endpoint: Endpoint<A>) async throws -> A {
245 | let (data, httpResponse) = try await send(urlRequest: endpoint.request, delegate: nil)
| `- error: 'nil' requires a contextual type
246 | let result = endpoint.parse(data, httpResponse)
247 | return try result.get()
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[18/47] Compiling Blocks LoggingTransport.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:30:25: error: cannot find type 'URLRequest' in scope
28 |
29 | /// The request for this endpoint
30 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:33:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// This is used to (try to) parse a response into an `A`.
33 | var parse: @Sendable (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Transforms the result
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:68:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | headers: [URLRequestHeaderItem] = [],
67 | query: [URLQueryItem] = [],
68 | parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | ) {
70 | var requestUrl: URL
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.parse = parse
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:103:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.parse = parse
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:37:20: error: extraneous argument label 'request:' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: extraneous argument label 'request:' in call
38 | parse(value, response).map(f)
39 | })
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:37:37: error: missing argument for parameter 'url' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: missing argument for parameter 'url' in call
38 | parse(value, response).map(f)
39 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:44:20: error: extraneous argument label 'request:' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: extraneous argument label 'request:' in call
45 | parse(data, response).flatMap(transform)
46 | })
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:44:37: error: missing argument for parameter 'url' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: missing argument for parameter 'url' in call
45 | parse(data, response).flatMap(transform)
46 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:79:19: error: cannot find 'URLRequest' in scope
77 | requestUrl = comps.url!
78 | }
79 | request = URLRequest(url: requestUrl)
| `- error: cannot find 'URLRequest' in scope
80 | if let a = accept {
81 | request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:191:13: warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
189 | ) {
190 | self.init(method, url: url, accept: accept, body: nil, headers: headers, query: query) { data, _ in
191 | Result {
| `- warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
192 | guard let dat = data else { throw NoDataError() }
193 | return try decoder.decode(A.self, from: dat)
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:221:13: warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
219 | let b = body.map { try! encoder.encode($0) }
220 | self.init(method, url: url, accept: accept, contentType: .json, body: b, headers: headers, query: query) { data, _ in
221 | Result {
| `- warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
222 | guard let dat = data else { throw NoDataError() }
223 | return try decoder.decode(A.self, from: dat)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:245:91: error: 'nil' requires a contextual type
243 | @discardableResult
244 | func load<A>(_ endpoint: Endpoint<A>) async throws -> A {
245 | let (data, httpResponse) = try await send(urlRequest: endpoint.request, delegate: nil)
| `- error: 'nil' requires a contextual type
246 | let result = endpoint.parse(data, httpResponse)
247 | return try result.get()
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[19/47] Compiling Blocks MailtoComponents.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:30:25: error: cannot find type 'URLRequest' in scope
28 |
29 | /// The request for this endpoint
30 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:33:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// This is used to (try to) parse a response into an `A`.
33 | var parse: @Sendable (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Transforms the result
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:68:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | headers: [URLRequestHeaderItem] = [],
67 | query: [URLQueryItem] = [],
68 | parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | ) {
70 | var requestUrl: URL
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.parse = parse
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:103:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.parse = parse
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:37:20: error: extraneous argument label 'request:' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: extraneous argument label 'request:' in call
38 | parse(value, response).map(f)
39 | })
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:37:37: error: missing argument for parameter 'url' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: missing argument for parameter 'url' in call
38 | parse(value, response).map(f)
39 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:44:20: error: extraneous argument label 'request:' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: extraneous argument label 'request:' in call
45 | parse(data, response).flatMap(transform)
46 | })
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:44:37: error: missing argument for parameter 'url' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: missing argument for parameter 'url' in call
45 | parse(data, response).flatMap(transform)
46 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:79:19: error: cannot find 'URLRequest' in scope
77 | requestUrl = comps.url!
78 | }
79 | request = URLRequest(url: requestUrl)
| `- error: cannot find 'URLRequest' in scope
80 | if let a = accept {
81 | request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:191:13: warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
189 | ) {
190 | self.init(method, url: url, accept: accept, body: nil, headers: headers, query: query) { data, _ in
191 | Result {
| `- warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
192 | guard let dat = data else { throw NoDataError() }
193 | return try decoder.decode(A.self, from: dat)
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:221:13: warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
219 | let b = body.map { try! encoder.encode($0) }
220 | self.init(method, url: url, accept: accept, contentType: .json, body: b, headers: headers, query: query) { data, _ in
221 | Result {
| `- warning: capture of non-Sendable type 'A.Type' in an isolated closure [#SendableMetatypes]
222 | guard let dat = data else { throw NoDataError() }
223 | return try decoder.decode(A.self, from: dat)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/Endpoint.swift:245:91: error: 'nil' requires a contextual type
243 | @discardableResult
244 | func load<A>(_ endpoint: Endpoint<A>) async throws -> A {
245 | let (data, httpResponse) = try await send(urlRequest: endpoint.request, delegate: nil)
| `- error: 'nil' requires a contextual type
246 | let result = endpoint.parse(data, httpResponse)
247 | return try result.get()
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[20/47] Compiling Blocks Transport.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:13:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/Blocks/Transport/Transport.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | @available(iOS 15.0.0, *)
24 | @available(macOS 12.0, *)
25 | extension URLSession: Transport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | public func send(
27 | urlRequest: URLRequest,
/host/spi-builder-workspace/Sources/Blocks/Transport/URLRequestHeaderItem.swift:44:18: error: cannot find type 'URLRequest' in scope
42 |
43 | /// Extension for URLRequest to set custom header fields easily.
44 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
45 | /// Sets a custom HTTP header field using the provided URLRequestHeaderItem.
46 | ///
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:27:21: error: cannot find type 'URLRequest' in scope
25 | extension URLSession: Transport {
26 | public func send(
27 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | delegate: URLSessionTaskDelegate?
29 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:28:19: error: cannot find type 'URLSessionTaskDelegate' in scope
26 | public func send(
27 | urlRequest: URLRequest,
28 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
29 | ) async throws -> (Data, HTTPURLResponse) {
30 | let (data, response) = try await self.data(for: urlRequest, delegate: delegate)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[21/47] Compiling Blocks TransportError.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:13:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/Blocks/Transport/Transport.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | @available(iOS 15.0.0, *)
24 | @available(macOS 12.0, *)
25 | extension URLSession: Transport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | public func send(
27 | urlRequest: URLRequest,
/host/spi-builder-workspace/Sources/Blocks/Transport/URLRequestHeaderItem.swift:44:18: error: cannot find type 'URLRequest' in scope
42 |
43 | /// Extension for URLRequest to set custom header fields easily.
44 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
45 | /// Sets a custom HTTP header field using the provided URLRequestHeaderItem.
46 | ///
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:27:21: error: cannot find type 'URLRequest' in scope
25 | extension URLSession: Transport {
26 | public func send(
27 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | delegate: URLSessionTaskDelegate?
29 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:28:19: error: cannot find type 'URLSessionTaskDelegate' in scope
26 | public func send(
27 | urlRequest: URLRequest,
28 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
29 | ) async throws -> (Data, HTTPURLResponse) {
30 | let (data, response) = try await self.data(for: urlRequest, delegate: delegate)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[22/47] Compiling Blocks URLRequestHeaderItem.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:13:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/Blocks/Transport/Transport.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | @available(iOS 15.0.0, *)
24 | @available(macOS 12.0, *)
25 | extension URLSession: Transport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | public func send(
27 | urlRequest: URLRequest,
/host/spi-builder-workspace/Sources/Blocks/Transport/URLRequestHeaderItem.swift:44:18: error: cannot find type 'URLRequest' in scope
42 |
43 | /// Extension for URLRequest to set custom header fields easily.
44 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
45 | /// Sets a custom HTTP header field using the provided URLRequestHeaderItem.
46 | ///
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:27:21: error: cannot find type 'URLRequest' in scope
25 | extension URLSession: Transport {
26 | public func send(
27 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | delegate: URLSessionTaskDelegate?
29 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:28:19: error: cannot find type 'URLSessionTaskDelegate' in scope
26 | public func send(
27 | urlRequest: URLRequest,
28 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
29 | ) async throws -> (Data, HTTPURLResponse) {
30 | let (data, response) = try await self.data(for: urlRequest, delegate: delegate)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[23/47] Compiling Blocks LabeledTextField.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:13:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/Blocks/Transport/Transport.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | @available(iOS 15.0.0, *)
24 | @available(macOS 12.0, *)
25 | extension URLSession: Transport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | public func send(
27 | urlRequest: URLRequest,
/host/spi-builder-workspace/Sources/Blocks/Transport/URLRequestHeaderItem.swift:44:18: error: cannot find type 'URLRequest' in scope
42 |
43 | /// Extension for URLRequest to set custom header fields easily.
44 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
45 | /// Sets a custom HTTP header field using the provided URLRequestHeaderItem.
46 | ///
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:27:21: error: cannot find type 'URLRequest' in scope
25 | extension URLSession: Transport {
26 | public func send(
27 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | delegate: URLSessionTaskDelegate?
29 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:28:19: error: cannot find type 'URLSessionTaskDelegate' in scope
26 | public func send(
27 | urlRequest: URLRequest,
28 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
29 | ) async throws -> (Data, HTTPURLResponse) {
30 | let (data, response) = try await self.data(for: urlRequest, delegate: delegate)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[24/47] Compiling Blocks PlainDatePicker.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:13:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/Blocks/Transport/Transport.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | @available(iOS 15.0.0, *)
24 | @available(macOS 12.0, *)
25 | extension URLSession: Transport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | public func send(
27 | urlRequest: URLRequest,
/host/spi-builder-workspace/Sources/Blocks/Transport/URLRequestHeaderItem.swift:44:18: error: cannot find type 'URLRequest' in scope
42 |
43 | /// Extension for URLRequest to set custom header fields easily.
44 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
45 | /// Sets a custom HTTP header field using the provided URLRequestHeaderItem.
46 | ///
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:27:21: error: cannot find type 'URLRequest' in scope
25 | extension URLSession: Transport {
26 | public func send(
27 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | delegate: URLSessionTaskDelegate?
29 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:28:19: error: cannot find type 'URLSessionTaskDelegate' in scope
26 | public func send(
27 | urlRequest: URLRequest,
28 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
29 | ) async throws -> (Data, HTTPURLResponse) {
30 | let (data, response) = try await self.data(for: urlRequest, delegate: delegate)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[25/47] Compiling Blocks Calendar.swift
/host/spi-builder-workspace/Sources/Blocks/Extensions/StringProtocol.swift:38:35: error: cannot find 'applyingTransform' in scope
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot find 'applyingTransform' in scope
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
/host/spi-builder-workspace/Sources/Blocks/Extensions/StringProtocol.swift:38:54: error: cannot infer contextual base in reference to member 'toUnicodeName'
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot infer contextual base in reference to member 'toUnicodeName'
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
[26/47] Compiling Blocks Data.swift
/host/spi-builder-workspace/Sources/Blocks/Extensions/StringProtocol.swift:38:35: error: cannot find 'applyingTransform' in scope
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot find 'applyingTransform' in scope
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
/host/spi-builder-workspace/Sources/Blocks/Extensions/StringProtocol.swift:38:54: error: cannot infer contextual base in reference to member 'toUnicodeName'
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot infer contextual base in reference to member 'toUnicodeName'
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
[27/47] Compiling Blocks Font.swift
/host/spi-builder-workspace/Sources/Blocks/Extensions/StringProtocol.swift:38:35: error: cannot find 'applyingTransform' in scope
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot find 'applyingTransform' in scope
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
/host/spi-builder-workspace/Sources/Blocks/Extensions/StringProtocol.swift:38:54: error: cannot infer contextual base in reference to member 'toUnicodeName'
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot infer contextual base in reference to member 'toUnicodeName'
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
[28/47] Compiling Blocks JSONDecoder.swift
/host/spi-builder-workspace/Sources/Blocks/Extensions/StringProtocol.swift:38:35: error: cannot find 'applyingTransform' in scope
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot find 'applyingTransform' in scope
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
/host/spi-builder-workspace/Sources/Blocks/Extensions/StringProtocol.swift:38:54: error: cannot infer contextual base in reference to member 'toUnicodeName'
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot infer contextual base in reference to member 'toUnicodeName'
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
[29/47] Compiling Blocks JSONEncoder.swift
/host/spi-builder-workspace/Sources/Blocks/Extensions/StringProtocol.swift:38:35: error: cannot find 'applyingTransform' in scope
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot find 'applyingTransform' in scope
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
/host/spi-builder-workspace/Sources/Blocks/Extensions/StringProtocol.swift:38:54: error: cannot infer contextual base in reference to member 'toUnicodeName'
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot infer contextual base in reference to member 'toUnicodeName'
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
[30/47] Compiling Blocks StringProtocol.swift
/host/spi-builder-workspace/Sources/Blocks/Extensions/StringProtocol.swift:38:35: error: cannot find 'applyingTransform' in scope
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot find 'applyingTransform' in scope
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
/host/spi-builder-workspace/Sources/Blocks/Extensions/StringProtocol.swift:38:54: error: cannot infer contextual base in reference to member 'toUnicodeName'
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot infer contextual base in reference to member 'toUnicodeName'
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
[31/47] Compiling Blocks MockTransport.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
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/Blocks/Transport/MockTransport.swift:12:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | let response: HTTPURLResponse?
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | self.data = data
14 | 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/Blocks/Transport/MockTransport.swift:18:21: error: cannot find type 'URLRequest' in scope
16 |
17 | public func send(
18 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:19:21: error: cannot find type 'URLSessionTaskDelegate' in scope
17 | public func send(
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:20:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let actualResponse: HTTPURLResponse
22 |
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/Blocks/Transport/MockTransport.swift:10:9: error: stored property 'response' of 'Sendable'-conforming class 'MockTransport' contains non-Sendable type 'AnyObject'
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming class 'MockTransport' contains non-Sendable type 'AnyObject'
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:21:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | if let 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/Blocks/Transport/MockTransport.swift:27:38: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | } else {
26 | guard let fallbackURL = URL(string: "https://foo.tld/bar"),
27 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:30:36: error: 'nil' requires a contextual type
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
30 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
31 | headerFields: nil
32 | )
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:31:37: error: 'nil' requires a contextual type
29 | statusCode: 200,
30 | httpVersion: nil,
31 | headerFields: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | else {
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:45:21: error: cannot find type 'URLRequest' in scope
43 | /// - Throws: An error if the request fails after retry attempts.
44 | public func send(
45 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | public func send(
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | ) async throws -> (Data, HTTPURLResponse) {
48 | var nbAttempts = 0
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:47:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | var nbAttempts = 0
49 | var errors: [Error] = []
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/Blocks/Transport/StatusCodeCheckingTransport.swift:75:21: error: cannot find type 'URLRequest' in scope
73 | /// - Throws: A `WrongStatusCodeError` if the actual status code does not match the expected range.
74 | public func send(
75 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:76:19: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | public func send(
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ) async throws -> (Data, HTTPURLResponse) {
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
/host/spi-builder-workspace/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:77:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
79 |
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/Blocks/Transport/StatusCodeCheckingTransport.swift:105:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |
107 | /// The response body data associated with the error.
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/Blocks/Transport/StatusCodeCheckingTransport.swift:115:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// - response: The HTTP URL response associated with the error.
114 | /// - responseBody: The response body data associated with the error.
115 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | self.statusCode = statusCode
117 | 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/Blocks/Transport/StatusCodeCheckingTransport.swift:105:16: warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' contains non-Sendable type 'AnyObject'
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' contains non-Sendable type 'AnyObject'
106 |
107 | /// The response body data associated with the error.
[32/47] Compiling Blocks MultipartRequest.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
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/Blocks/Transport/MockTransport.swift:12:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | let response: HTTPURLResponse?
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | self.data = data
14 | 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/Blocks/Transport/MockTransport.swift:18:21: error: cannot find type 'URLRequest' in scope
16 |
17 | public func send(
18 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:19:21: error: cannot find type 'URLSessionTaskDelegate' in scope
17 | public func send(
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:20:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let actualResponse: HTTPURLResponse
22 |
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/Blocks/Transport/MockTransport.swift:10:9: error: stored property 'response' of 'Sendable'-conforming class 'MockTransport' contains non-Sendable type 'AnyObject'
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming class 'MockTransport' contains non-Sendable type 'AnyObject'
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:21:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | if let 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/Blocks/Transport/MockTransport.swift:27:38: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | } else {
26 | guard let fallbackURL = URL(string: "https://foo.tld/bar"),
27 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:30:36: error: 'nil' requires a contextual type
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
30 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
31 | headerFields: nil
32 | )
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:31:37: error: 'nil' requires a contextual type
29 | statusCode: 200,
30 | httpVersion: nil,
31 | headerFields: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | else {
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:45:21: error: cannot find type 'URLRequest' in scope
43 | /// - Throws: An error if the request fails after retry attempts.
44 | public func send(
45 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | public func send(
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | ) async throws -> (Data, HTTPURLResponse) {
48 | var nbAttempts = 0
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:47:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | var nbAttempts = 0
49 | var errors: [Error] = []
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/Blocks/Transport/StatusCodeCheckingTransport.swift:75:21: error: cannot find type 'URLRequest' in scope
73 | /// - Throws: A `WrongStatusCodeError` if the actual status code does not match the expected range.
74 | public func send(
75 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:76:19: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | public func send(
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ) async throws -> (Data, HTTPURLResponse) {
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
/host/spi-builder-workspace/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:77:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
79 |
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/Blocks/Transport/StatusCodeCheckingTransport.swift:105:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |
107 | /// The response body data associated with the error.
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/Blocks/Transport/StatusCodeCheckingTransport.swift:115:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// - response: The HTTP URL response associated with the error.
114 | /// - responseBody: The response body data associated with the error.
115 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | self.statusCode = statusCode
117 | 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/Blocks/Transport/StatusCodeCheckingTransport.swift:105:16: warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' contains non-Sendable type 'AnyObject'
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' contains non-Sendable type 'AnyObject'
106 |
107 | /// The response body data associated with the error.
[33/47] Compiling Blocks RetryTransport.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
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/Blocks/Transport/MockTransport.swift:12:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | let response: HTTPURLResponse?
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | self.data = data
14 | 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/Blocks/Transport/MockTransport.swift:18:21: error: cannot find type 'URLRequest' in scope
16 |
17 | public func send(
18 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:19:21: error: cannot find type 'URLSessionTaskDelegate' in scope
17 | public func send(
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:20:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let actualResponse: HTTPURLResponse
22 |
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/Blocks/Transport/MockTransport.swift:10:9: error: stored property 'response' of 'Sendable'-conforming class 'MockTransport' contains non-Sendable type 'AnyObject'
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming class 'MockTransport' contains non-Sendable type 'AnyObject'
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:21:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | if let 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/Blocks/Transport/MockTransport.swift:27:38: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | } else {
26 | guard let fallbackURL = URL(string: "https://foo.tld/bar"),
27 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:30:36: error: 'nil' requires a contextual type
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
30 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
31 | headerFields: nil
32 | )
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:31:37: error: 'nil' requires a contextual type
29 | statusCode: 200,
30 | httpVersion: nil,
31 | headerFields: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | else {
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:45:21: error: cannot find type 'URLRequest' in scope
43 | /// - Throws: An error if the request fails after retry attempts.
44 | public func send(
45 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | public func send(
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | ) async throws -> (Data, HTTPURLResponse) {
48 | var nbAttempts = 0
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:47:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | var nbAttempts = 0
49 | var errors: [Error] = []
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/Blocks/Transport/StatusCodeCheckingTransport.swift:75:21: error: cannot find type 'URLRequest' in scope
73 | /// - Throws: A `WrongStatusCodeError` if the actual status code does not match the expected range.
74 | public func send(
75 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:76:19: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | public func send(
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ) async throws -> (Data, HTTPURLResponse) {
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
/host/spi-builder-workspace/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:77:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
79 |
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/Blocks/Transport/StatusCodeCheckingTransport.swift:105:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |
107 | /// The response body data associated with the error.
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/Blocks/Transport/StatusCodeCheckingTransport.swift:115:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// - response: The HTTP URL response associated with the error.
114 | /// - responseBody: The response body data associated with the error.
115 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | self.statusCode = statusCode
117 | 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/Blocks/Transport/StatusCodeCheckingTransport.swift:105:16: warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' contains non-Sendable type 'AnyObject'
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' contains non-Sendable type 'AnyObject'
106 |
107 | /// The response body data associated with the error.
[34/47] Compiling Blocks StatusCodeCheckingTransport.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
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/Blocks/Transport/MockTransport.swift:12:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | let response: HTTPURLResponse?
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | self.data = data
14 | 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/Blocks/Transport/MockTransport.swift:18:21: error: cannot find type 'URLRequest' in scope
16 |
17 | public func send(
18 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:19:21: error: cannot find type 'URLSessionTaskDelegate' in scope
17 | public func send(
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:20:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let actualResponse: HTTPURLResponse
22 |
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/Blocks/Transport/MockTransport.swift:10:9: error: stored property 'response' of 'Sendable'-conforming class 'MockTransport' contains non-Sendable type 'AnyObject'
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming class 'MockTransport' contains non-Sendable type 'AnyObject'
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:21:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | if let 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/Blocks/Transport/MockTransport.swift:27:38: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | } else {
26 | guard let fallbackURL = URL(string: "https://foo.tld/bar"),
27 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:30:36: error: 'nil' requires a contextual type
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
30 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
31 | headerFields: nil
32 | )
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:31:37: error: 'nil' requires a contextual type
29 | statusCode: 200,
30 | httpVersion: nil,
31 | headerFields: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | else {
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:45:21: error: cannot find type 'URLRequest' in scope
43 | /// - Throws: An error if the request fails after retry attempts.
44 | public func send(
45 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | public func send(
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | ) async throws -> (Data, HTTPURLResponse) {
48 | var nbAttempts = 0
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:47:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | var nbAttempts = 0
49 | var errors: [Error] = []
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/Blocks/Transport/StatusCodeCheckingTransport.swift:75:21: error: cannot find type 'URLRequest' in scope
73 | /// - Throws: A `WrongStatusCodeError` if the actual status code does not match the expected range.
74 | public func send(
75 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:76:19: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | public func send(
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ) async throws -> (Data, HTTPURLResponse) {
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
/host/spi-builder-workspace/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:77:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
79 |
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/Blocks/Transport/StatusCodeCheckingTransport.swift:105:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |
107 | /// The response body data associated with the error.
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/Blocks/Transport/StatusCodeCheckingTransport.swift:115:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// - response: The HTTP URL response associated with the error.
114 | /// - responseBody: The response body data associated with the error.
115 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | self.statusCode = statusCode
117 | 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/Blocks/Transport/StatusCodeCheckingTransport.swift:105:16: warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' contains non-Sendable type 'AnyObject'
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' contains non-Sendable type 'AnyObject'
106 |
107 | /// The response body data associated with the error.
[35/47] Compiling Blocks TaskState.swift
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
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/Blocks/Transport/MockTransport.swift:12:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | let response: HTTPURLResponse?
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | self.data = data
14 | 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/Blocks/Transport/MockTransport.swift:18:21: error: cannot find type 'URLRequest' in scope
16 |
17 | public func send(
18 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:19:21: error: cannot find type 'URLSessionTaskDelegate' in scope
17 | public func send(
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:20:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let actualResponse: HTTPURLResponse
22 |
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/Blocks/Transport/MockTransport.swift:10:9: error: stored property 'response' of 'Sendable'-conforming class 'MockTransport' contains non-Sendable type 'AnyObject'
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming class 'MockTransport' contains non-Sendable type 'AnyObject'
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport: Sendable {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:21:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | if let 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/Blocks/Transport/MockTransport.swift:27:38: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | } else {
26 | guard let fallbackURL = URL(string: "https://foo.tld/bar"),
27 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:30:36: error: 'nil' requires a contextual type
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
30 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
31 | headerFields: nil
32 | )
/host/spi-builder-workspace/Sources/Blocks/Transport/MockTransport.swift:31:37: error: 'nil' requires a contextual type
29 | statusCode: 200,
30 | httpVersion: nil,
31 | headerFields: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | else {
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:45:21: error: cannot find type 'URLRequest' in scope
43 | /// - Throws: An error if the request fails after retry attempts.
44 | public func send(
45 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | public func send(
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | ) async throws -> (Data, HTTPURLResponse) {
48 | var nbAttempts = 0
/host/spi-builder-workspace/Sources/Blocks/Transport/RetryTransport.swift:47:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | var nbAttempts = 0
49 | var errors: [Error] = []
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/Blocks/Transport/StatusCodeCheckingTransport.swift:75:21: error: cannot find type 'URLRequest' in scope
73 | /// - Throws: A `WrongStatusCodeError` if the actual status code does not match the expected range.
74 | public func send(
75 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:76:19: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | public func send(
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ) async throws -> (Data, HTTPURLResponse) {
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
/host/spi-builder-workspace/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:77:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
79 |
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/Blocks/Transport/StatusCodeCheckingTransport.swift:105:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |
107 | /// The response body data associated with the error.
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/Blocks/Transport/StatusCodeCheckingTransport.swift:115:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// - response: The HTTP URL response associated with the error.
114 | /// - responseBody: The response body data associated with the error.
115 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | self.statusCode = statusCode
117 | 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/Blocks/Transport/StatusCodeCheckingTransport.swift:105:16: warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' contains non-Sendable type 'AnyObject'
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' contains non-Sendable type 'AnyObject'
106 |
107 | /// The response body data associated with the error.
[36/47] Compiling Blocks URLComponents.swift
[37/47] Compiling Blocks JSON.swift
[38/47] Compiling Blocks JavaScriptISO8601DateFormatter.swift
[39/47] Compiling Blocks Arithmetic.swift
[40/47] Compiling Blocks PackageDump.swift
[41/47] Compiling Blocks PrivateIPAddresses.swift
[42/47] Compiling Blocks Pasteboard.swift
[43/47] Compiling Blocks PlainDate.swift
[44/47] Compiling Blocks GenericPasswordKeychainItem.swift
[45/47] Compiling Blocks PKCE.swift
[46/47] Compiling Blocks SecurityError.swift
[47/47] Compiling Blocks SecurityUtils.swift
BUILD FAILURE 6.3 wasm