Build Information
Failed to build swift-hoods, reference 0.3.0 (dc2383), with Swift 6.3 for Wasm on 21 Apr 2026 18:17:53 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
Fetching https://github.com/pointfreeco/swift-perception
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/swift-dependencies
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/pointfreeco/swift-sharing
[1/1966] Fetching swift-perception
[277/8748] Fetching swift-perception, swift-dependencies
[1871/12359] Fetching swift-perception, swift-dependencies, swift-sharing
[5962/17823] Fetching swift-perception, swift-dependencies, swift-sharing, swift-custom-dump
[13198/23546] Fetching swift-perception, swift-dependencies, swift-sharing, swift-custom-dump, xctest-dynamic-overlay
[21316/98527] Fetching swift-perception, swift-dependencies, swift-sharing, swift-custom-dump, xctest-dynamic-overlay, swift-syntax
Fetched https://github.com/pointfreeco/swift-sharing from cache (0.59s)
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.59s)
Fetched https://github.com/pointfreeco/swift-dependencies from cache (0.59s)
Fetching https://github.com/pointfreeco/swift-identified-collections
Fetching https://github.com/pointfreeco/swift-clocks
[7765/82670] Fetching swift-perception, xctest-dynamic-overlay, swift-syntax
Fetching https://github.com/pointfreeco/swift-concurrency-extras
[16688/83987] Fetching swift-perception, xctest-dynamic-overlay, swift-syntax, swift-clocks
[17662/84943] Fetching swift-perception, xctest-dynamic-overlay, swift-syntax, swift-clocks, swift-concurrency-extras
[17691/86485] Fetching swift-perception, xctest-dynamic-overlay, swift-syntax, swift-clocks, swift-concurrency-extras, swift-identified-collections
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.54s)
Fetching https://github.com/pointfreeco/swift-case-paths
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.56s)
Fetched https://github.com/pointfreeco/swift-identified-collections from cache (0.57s)
Fetching https://github.com/pointfreeco/combine-schedulers
Fetching https://github.com/apple/swift-collections
[20436/82670] Fetching swift-perception, xctest-dynamic-overlay, swift-syntax
[27935/87286] Fetching swift-perception, xctest-dynamic-overlay, swift-syntax, swift-case-paths
[30313/89892] Fetching swift-perception, xctest-dynamic-overlay, swift-syntax, swift-case-paths, combine-schedulers
[35168/113475] Fetching swift-perception, xctest-dynamic-overlay, swift-syntax, swift-case-paths, combine-schedulers, swift-collections
Fetched https://github.com/pointfreeco/swift-case-paths from cache (0.53s)
Fetching https://github.com/pointfreeco/swift-navigation
[41939/108859] Fetching swift-perception, xctest-dynamic-overlay, swift-syntax, combine-schedulers, swift-collections
[76807/155236] Fetching swift-perception, xctest-dynamic-overlay, swift-syntax, combine-schedulers, swift-collections, swift-navigation
Fetched https://github.com/pointfreeco/combine-schedulers from cache (1.84s)
Fetched https://github.com/apple/swift-collections from cache (1.92s)
Fetched https://github.com/pointfreeco/swift-navigation from cache (3.68s)
Fetched https://github.com/pointfreeco/swift-perception from cache (8.34s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (8.36s)
Fetched https://github.com/swiftlang/swift-syntax from cache (8.42s)
Computing version for https://github.com/pointfreeco/swift-navigation
Computed https://github.com/pointfreeco/swift-navigation at 2.8.0 (9.12s)
Computing version for https://github.com/pointfreeco/swift-identified-collections
Computed https://github.com/pointfreeco/swift-identified-collections at 1.1.1 (0.48s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 1.0.6 (0.47s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 1.3.2 (0.48s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 1.2.0 (0.53s)
Fetching https://github.com/OpenCombine/OpenCombine.git
[1/8284] Fetching opencombine
Fetched https://github.com/OpenCombine/OpenCombine.git from cache (0.69s)
Computing version for https://github.com/OpenCombine/OpenCombine.git
Computed https://github.com/OpenCombine/OpenCombine.git at 0.14.0 (2.20s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.5.0 (0.39s)
Computing version for https://github.com/pointfreeco/swift-case-paths
Computed https://github.com/pointfreeco/swift-case-paths at 1.7.3 (0.64s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.9.0 (0.46s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.4.1 (0.67s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 603.0.1 (0.80s)
Computing version for https://github.com/pointfreeco/swift-perception
Computed https://github.com/pointfreeco/swift-perception at 2.0.10 (0.43s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 1.12.0 (0.43s)
Computing version for https://github.com/pointfreeco/swift-sharing
Computed https://github.com/pointfreeco/swift-sharing at 2.8.0 (0.41s)
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.0
Creating working copy for https://github.com/OpenCombine/OpenCombine.git
Working copy of https://github.com/OpenCombine/OpenCombine.git resolved at 0.14.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
Creating working copy for https://github.com/pointfreeco/swift-case-paths
Working copy of https://github.com/pointfreeco/swift-case-paths resolved at 1.7.3
Creating working copy for https://github.com/pointfreeco/swift-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 1.12.0
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
Creating working copy for https://github.com/pointfreeco/swift-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 1.3.2
Creating working copy for https://github.com/pointfreeco/swift-identified-collections
Working copy of https://github.com/pointfreeco/swift-identified-collections resolved at 1.1.1
Creating working copy for https://github.com/pointfreeco/swift-perception
Working copy of https://github.com/pointfreeco/swift-perception resolved at 2.0.10
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 603.0.1
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.9.0
Creating working copy for https://github.com/dirtyhenry/swift-blocks
Working copy of https://github.com/dirtyhenry/swift-blocks resolved at main (27c6417)
Creating working copy for https://github.com/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 1.0.6
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.4.1
Creating working copy for https://github.com/pointfreeco/swift-composable-architecture
Working copy of https://github.com/pointfreeco/swift-composable-architecture resolved at 1.25.5
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.4.0
Creating working copy for https://github.com/vapor/jwt-kit.git
Working copy of https://github.com/vapor/jwt-kit.git resolved at 5.4.0
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.19.0
Creating working copy for https://github.com/pointfreeco/swift-sharing
Working copy of https://github.com/pointfreeco/swift-sharing resolved at 2.8.0
Creating working copy for https://github.com/pointfreeco/swift-navigation
Working copy of https://github.com/pointfreeco/swift-navigation resolved at 2.8.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.4.0
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/475] Write sources
[27/475] Copying PrivacyInfo.xcprivacy
[29/475] Write sources
[40/475] Compiling _SwiftSyntaxCShims PlatformMutex.c
[41/475] Write sources
[41/475] Write swift-version-24593BA9C3E375BF.txt
[42/475] Write sources
[47/475] Compiling UIKitNavigationShim shim.m
[48/475] Write sources
[53/506] Emitting module SwiftASN1
[54/508] Emitting module SwiftSyntax603
[55/508] Compiling SwiftSyntax603 Empty.swift
[56/509] Emitting module SwiftSyntax510
[57/509] Compiling SwiftSyntax510 Empty.swift
[60/510] Emitting module SwiftSyntax600
[61/510] Compiling SwiftSyntax600 Empty.swift
[62/511] Compiling SwiftSyntax602 Empty.swift
[63/511] Emitting module SwiftSyntax602
[66/516] Emitting module SwiftSyntax509
[67/516] Compiling SwiftSyntax509 Empty.swift
[68/517] Emitting module Sharing2
[70/521] Emitting module SwiftSyntax601
[71/521] Compiling SwiftSyntax601 Empty.swift
[72/537] Wrapping AST for SwiftSyntax603 for debugging
[74/569] Compiling Sharing2 Empty.swift
[75/569] Emitting module IssueReportingPackageSupport
[76/569] Compiling IssueReportingPackageSupport _Test.swift
[77/571] Emitting module Sharing1
[78/571] Compiling Sharing1 Empty.swift
[82/572] Compiling Blocks LabeledTextField.swift
[83/572] Compiling Blocks PlainDatePicker.swift
[84/572] Emitting module _CertificateInternals
[85/572] Compiling _CertificateInternals _TinyArray.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[87/583] Compiling Blocks URLComponents.swift
[88/583] Compiling Blocks JSON.swift
[89/583] Compiling Blocks Transport.swift
[90/583] Compiling Blocks TransportError.swift
[91/583] Compiling Blocks URLRequestHeaderItem.swift
[92/583] Compiling Blocks JavaScriptISO8601DateFormatter.swift
[93/583] Compiling Blocks TaskState.swift
[94/583] Emitting module Blocks
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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>
[95/595] Compiling SwiftSyntax SourceLength.swift
[96/595] Compiling SwiftSyntax SourceLocation.swift
[97/595] Compiling SwiftSyntax SourcePresence.swift
[97/602] Wrapping AST for SwiftSyntax600 for debugging
[98/622] Wrapping AST for SwiftSyntax602 for debugging
[99/629] Wrapping AST for SwiftSyntax601 for debugging
[100/642] Wrapping AST for SwiftSyntax509 for debugging
[100/642] Wrapping AST for SwiftSyntax510 for debugging
[102/642] Write sources
[116/661] Compiling Logging MetadataProvider.swift
[117/661] Emitting module Logging
[118/661] Compiling Logging Locks.swift
[118/662] Compiling writer.c
[120/677] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[121/677] Compiling InternalCollectionsUtilities Span+Extras.swift
[122/677] Compiling InternalCollectionsUtilities UInt+reversed.swift
[123/677] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[124/677] Compiling InternalCollectionsUtilities Integer rank.swift
[125/677] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[126/680] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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>
[127/680] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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>
[128/680] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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>
[129/680] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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>
[130/680] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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>
[131/680] Compiling IssueReporting DefaultReporter.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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>
[133/691] Compiling ConcurrencyExtras LockIsolated.swift
[134/691] Compiling ConcurrencyExtras Locking.swift
[135/691] Compiling ConcurrencyExtras UncheckedBox.swift
[136/691] Compiling ConcurrencyExtras MainSerialExecutor.swift
[137/692] Compiling SwiftSyntax SyntaxRewriter.swift
[138/692] Compiling SwiftSyntax SyntaxTraits.swift
[139/692] Compiling SwiftSyntax SyntaxVisitor.swift
[140/692] Compiling SwiftSyntax TokenKind.swift
[141/692] Compiling SwiftSyntax Tokens.swift
[142/692] Compiling SwiftSyntax TriviaPieces.swift
[142/692] Compiling reader.c
[144/692] Compiling ConcurrencyExtras ActorIsolated.swift
[145/692] Compiling ConcurrencyExtras AnyHashableSendable.swift
[146/692] Compiling ConcurrencyExtras AsyncStream.swift
[148/692] Compiling ConcurrencyExtras AsyncThrowingStream.swift
[148/694] Compiling parser.c
[156/696] Compiling ConcurrencyExtras Result.swift
[157/696] Compiling ConcurrencyExtras Task.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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()
[161/696] Compiling InternalCollectionsUtilities String+Padding.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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()
[162/696] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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()
[163/696] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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)
[170/696] Compiling InternalCollectionsUtilities _SortedCollection.swift
[171/696] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[172/696] Compiling ConcurrencyExtras UncheckedSendable.swift
[182/696] Compiling scanner.c
[186/696] Compiling api.c
[188/696] Emitting module ConcurrencyExtras
[192/696] Compiling IssueReporting WithExpectedIssue.swift
[193/696] Compiling IssueReporting WithIssueContext.swift
[194/696] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[195/696] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[196/696] Compiling SwiftSyntax SyntaxBaseNodes.swift
[200/696] Compiling SwiftSyntax SyntaxCollections.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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()
[201/696] Compiling SwiftSyntax SyntaxEnum.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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()
[202/696] Compiling SwiftSyntax SyntaxKind.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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()
[203/696] Compiling SwiftSyntax AbsolutePosition.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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()
[204/696] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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()
[205/696] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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()
[205/697] Compiling CXKCPShims shims.c
[207/697] Compiling SwiftSyntax Assert.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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
[208/697] Compiling SwiftSyntax BumpPtrAllocator.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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
[209/697] Compiling SwiftSyntax CommonAncestor.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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
[210/697] Compiling SwiftSyntax Convenience.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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
[211/697] Compiling SwiftSyntax CustomTraits.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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
[212/697] Compiling SwiftSyntax EditorPlaceholder.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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/.build/checkouts/swift-blocks/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
[213/697] Emitting module IssueReporting
[214/697] Compiling emitter.c
[215/697] Compiling SimpleFIPS202.c
[216/698] Compiling KeccakSponge.c
[218/698] Compiling Logging Logging.swift
[219/698] Compiling Logging LogHandler.swift
[220/698] Compiling Logging LogEvent.swift
[221/699] Emitting module InternalCollectionsUtilities
[221/702] Compiling KeccakHash.c
[225/713] Compiling Yams Representer.swift
[226/713] Compiling Yams Tag.swift
[228/718] Compiling Yams Parser.swift
[229/718] Compiling Yams RedundancyAliasingStrategy.swift
[229/718] Compiling fiat_p256_adx_sqr.S
[230/718] Compiling fiat_p256_adx_mul.S
[231/718] Compiling fiat_curve25519_adx_square.S
[233/718] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[234/718] Compiling SwiftSyntax RawSyntaxNodesC.swift
[235/718] Compiling SwiftSyntax RawSyntaxNodesD.swift
[236/718] Compiling SwiftSyntax SyntaxNodeStructure.swift
[237/718] Compiling SwiftSyntax SyntaxProtocol.swift
[237/718] Compiling fiat_curve25519_adx_mul.S
[238/718] Compiling md5-x86_64-linux.S
[238/718] Compiling KeccakP-1600-opt64.c
[238/718] Compiling CCryptoBoringSSLShims shims.c
BUILD FAILURE 6.3 wasm