Build Information
Failed to build swift-hoods, reference main (247e12), with Swift 6.3 for Wasm on 21 Apr 2026 18:18:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dirtyhenry/swift-hoods.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/dirtyhenry/swift-hoods
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 247e123 Merge pull request #24 from dirtyhenry/bump-yams
Cloned https://github.com/dirtyhenry/swift-hoods.git
Revision (git rev-parse @):
247e1230d96b1db55906beee536a1c39d65c7b05
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/dirtyhenry/swift-hoods.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/dirtyhenry/swift-hoods.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/vapor/jwt-kit.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/dirtyhenry/swift-blocks
[1/3390] Fetching swift-blocks
[476/20836] Fetching swift-blocks, swift-argument-parser
[1625/32387] Fetching swift-blocks, swift-argument-parser, yams
[8648/41942] Fetching swift-blocks, swift-argument-parser, yams, jwt-kit
[28429/58007] Fetching swift-blocks, swift-argument-parser, yams, jwt-kit, swift-snapshot-testing
Fetched https://github.com/dirtyhenry/swift-blocks from cache (1.33s)
[37292/54617] Fetching swift-argument-parser, yams, jwt-kit, swift-snapshot-testing
Fetched https://github.com/apple/swift-argument-parser from cache (2.25s)
[31388/37171] Fetching yams, jwt-kit, swift-snapshot-testing
Fetching https://github.com/pointfreeco/swift-composable-architecture
Fetched https://github.com/vapor/jwt-kit.git from cache (2.31s)
[24082/27616] Fetching yams, swift-snapshot-testing
Fetched https://github.com/jpsim/Yams.git from cache (2.50s)
[12852/16065] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (3.31s)
[1/312947] Fetching swift-composable-architecture
Fetched https://github.com/pointfreeco/swift-composable-architecture from cache (19.45s)
Computing version for https://github.com/dirtyhenry/swift-blocks
Computed https://github.com/dirtyhenry/swift-blocks at 0.9.0 (22.22s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 6.2.1 (0.41s)
Computing version for https://github.com/vapor/jwt-kit.git
Computed https://github.com/vapor/jwt-kit.git at 5.4.0 (0.51s)
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-crypto.git
[1/7152] Fetching swift-certificates
[5509/24588] Fetching swift-certificates, swift-crypto
Fetching https://github.com/apple/swift-log.git
Fetched https://github.com/apple/swift-certificates.git from cache (2.83s)
Fetched https://github.com/apple/swift-crypto.git from cache (2.89s)
[1/6636] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.71s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.4.0 (6.25s)
Fetching https://github.com/apple/swift-asn1.git
[1/1803] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.32s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.19.0 (0.87s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (0.55s)
Computing version for https://github.com/pointfreeco/swift-composable-architecture
Computed https://github.com/pointfreeco/swift-composable-architecture at 1.25.5 (0.70s)
Fetching https://github.com/pointfreeco/swift-perception
Fetching https://github.com/pointfreeco/swift-navigation
Fetching https://github.com/pointfreeco/swift-sharing
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/swiftlang/swift-syntax
[1/1966] Fetching swift-perception
[1673/5577] Fetching swift-perception, swift-sharing
[5578/11300] Fetching swift-perception, swift-sharing, xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-identified-collections
Fetched https://github.com/pointfreeco/swift-perception from cache (0.40s)
[4184/9334] Fetching swift-sharing, xctest-dynamic-overlay
[4242/55711] Fetching swift-sharing, xctest-dynamic-overlay, swift-navigation
Fetching https://github.com/pointfreeco/swift-dependencies
[6721/130692] Fetching swift-sharing, xctest-dynamic-overlay, swift-navigation, swift-syntax
[24673/137474] Fetching swift-sharing, xctest-dynamic-overlay, swift-navigation, swift-syntax, swift-dependencies
[28920/139016] Fetching swift-sharing, xctest-dynamic-overlay, swift-navigation, swift-syntax, swift-dependencies, swift-identified-collections
Fetched https://github.com/pointfreeco/swift-identified-collections from cache (0.89s)
[46664/137474] Fetching swift-sharing, xctest-dynamic-overlay, swift-navigation, swift-syntax, swift-dependencies
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.38s)
[45115/131751] Fetching swift-sharing, swift-navigation, swift-syntax, swift-dependencies
Fetching https://github.com/pointfreeco/swift-concurrency-extras
[61634/137215] Fetching swift-sharing, swift-navigation, swift-syntax, swift-dependencies, swift-custom-dump
Fetched https://github.com/pointfreeco/swift-dependencies from cache (1.22s)
[59939/130433] Fetching swift-sharing, swift-navigation, swift-syntax, swift-custom-dump
Fetching https://github.com/pointfreeco/swift-clocks
[71200/131389] Fetching swift-sharing, swift-navigation, swift-syntax, swift-custom-dump, swift-concurrency-extras
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.62s)
[68940/125925] Fetching swift-sharing, swift-navigation, swift-syntax, swift-concurrency-extras
Fetching https://github.com/pointfreeco/combine-schedulers
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.56s)
[69485/126286] Fetching swift-sharing, swift-navigation, swift-syntax, swift-clocks
Fetching https://github.com/apple/swift-collections
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.52s)
Fetching https://github.com/pointfreeco/swift-case-paths
[76233/127575] Fetching swift-sharing, swift-navigation, swift-syntax, combine-schedulers
[82588/151158] Fetching swift-sharing, swift-navigation, swift-syntax, combine-schedulers, swift-collections
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.54s)
[82382/148552] Fetching swift-sharing, swift-navigation, swift-syntax, swift-collections
[84632/153168] Fetching swift-sharing, swift-navigation, swift-syntax, swift-collections, swift-case-paths
Fetched https://github.com/pointfreeco/swift-case-paths from cache (0.64s)
[95128/148552] Fetching swift-sharing, swift-navigation, swift-syntax, swift-collections
Fetched https://github.com/pointfreeco/swift-navigation from cache (3.45s)
[86533/102175] Fetching swift-sharing, swift-syntax, swift-collections
Fetched https://github.com/apple/swift-collections from cache (2.37s)
Fetched https://github.com/pointfreeco/swift-sharing from cache (7.71s)
Fetched https://github.com/swiftlang/swift-syntax from cache (7.77s)
Computing version for https://github.com/pointfreeco/swift-navigation
Computed https://github.com/pointfreeco/swift-navigation at 2.8.0 (8.38s)
Computing version for https://github.com/pointfreeco/swift-identified-collections
Computed https://github.com/pointfreeco/swift-identified-collections at 1.1.1 (0.51s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 1.0.6 (0.58s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 1.3.2 (0.50s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 1.2.0 (0.62s)
Fetching https://github.com/OpenCombine/OpenCombine.git
[1/8284] Fetching opencombine
Fetched https://github.com/OpenCombine/OpenCombine.git from cache (1.05s)
Computing version for https://github.com/OpenCombine/OpenCombine.git
Computed https://github.com/OpenCombine/OpenCombine.git at 0.14.0 (5.21s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.5.0 (0.42s)
Computing version for https://github.com/pointfreeco/swift-case-paths
Computed https://github.com/pointfreeco/swift-case-paths at 1.7.3 (0.54s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.77s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.9.0 (3.71s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.4.1 (2.98s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.2 (0.66s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 603.0.1 (1.36s)
Computing version for https://github.com/pointfreeco/swift-perception
Computed https://github.com/pointfreeco/swift-perception at 2.0.10 (0.52s)
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.43s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.43s)
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/swift-navigation
Working copy of https://github.com/pointfreeco/swift-navigation resolved at 2.8.0
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 6.2.1
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/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/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 1.0.6
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/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/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 603.0.1
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/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-perception
Working copy of https://github.com/pointfreeco/swift-perception resolved at 2.0.10
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/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-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.2
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/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/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.4.0
Creating working copy for https://github.com/dirtyhenry/swift-blocks
Working copy of https://github.com/dirtyhenry/swift-blocks resolved at 0.9.0
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/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/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 1.2.0
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
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/476] Write sources
[27/476] Copying PrivacyInfo.xcprivacy
[29/476] Write sources
[35/476] Write swift-version-24593BA9C3E375BF.txt
[35/476] Write sources
[41/476] Compiling UIKitNavigationShim shim.m
[42/476] Write sources
[45/476] Compiling _SwiftSyntaxCShims PlatformMutex.c
[47/490] Emitting module SwiftSyntax601
[48/490] Emitting module SwiftSyntax600
[49/490] Emitting module SwiftSyntax509
[50/507] Emitting module SwiftASN1
[51/509] Compiling SwiftASN1 TimeUtilities.swift
[52/509] Compiling SwiftASN1 UTCTime.swift
[53/509] Compiling SwiftASN1 ASN1Integer.swift
[54/509] Compiling SwiftASN1 ASN1Null.swift
[55/509] Emitting module _CertificateInternals
[56/509] Compiling _CertificateInternals _TinyArray.swift
[57/509] Compiling SwiftSyntax603 Empty.swift
[58/509] Emitting module SwiftSyntax603
[60/511] Compiling SwiftASN1 ASN1.swift
[61/511] Compiling SwiftASN1 BER.swift
[62/511] Compiling SwiftASN1 ASN1Any.swift
[64/511] Compiling SwiftASN1 ASN1BitString.swift
[65/511] Compiling SwiftASN1 ASN1Boolean.swift
[66/511] Compiling SwiftASN1 ASN1Identifier.swift
[67/511] Compiling SwiftSyntax600 Empty.swift
[68/512] Compiling SwiftSyntax601 Empty.swift
[69/512] Compiling SwiftSyntax509 Empty.swift
[70/513] Emitting module SwiftSyntax510
[71/513] Compiling SwiftSyntax510 Empty.swift
[76/548] Emitting module SwiftSyntax602
[77/548] Compiling SwiftSyntax602 Empty.swift
[78/549] Wrapping AST for SwiftSyntax601 for debugging
[79/549] Wrapping AST for SwiftSyntax603 for debugging
[81/549] Emitting module Sharing2
[82/549] Compiling Sharing2 Empty.swift
[83/552] Wrapping AST for SwiftSyntax600 for debugging
[83/552] Wrapping AST for SwiftSyntax510 for debugging
[85/552] Write sources
[88/552] Emitting module Sharing1
[88/552] Write sources
[93/559] Compiling Sharing1 Empty.swift
[93/560] Wrapping AST for SwiftSyntax509 for debugging
[94/560] Wrapping AST for SwiftSyntax602 for debugging
[95/560] Write sources
[109/664] Compiling SwiftSyntax SyntaxNodesAB.swift
[110/664] Compiling SwiftSyntax SyntaxNodeStructure.swift
[111/692] Compiling IssueReportingPackageSupport _Test.swift
[112/692] Emitting module IssueReportingPackageSupport
[113/694] Compiling Logging LogEvent.swift
[114/694] Compiling Logging LogHandler.swift
[116/694] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[117/694] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[118/696] Compiling InternalCollectionsUtilities _SortedCollection.swift
[119/696] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[120/716] Compiling ConcurrencyExtras Result.swift
[121/717] Compiling ConcurrencyExtras MainSerialExecutor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[122/717] 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>
[123/722] Compiling IssueReporting SwiftTesting.swift
[124/722] Compiling IssueReporting UncheckedSendable.swift
[125/722] Compiling IssueReporting Warn.swift
[126/722] Emitting module InternalCollectionsUtilities
[127/722] Compiling ConcurrencyExtras UncheckedSendable.swift
[128/722] Compiling IssueReporting FailureObserver.swift
[129/722] Compiling IssueReporting LockIsolated.swift
[130/722] Compiling IssueReporting Rethrows.swift
[131/722] Compiling IssueReporting IssueSeverity.swift
[132/722] Compiling IssueReporting ReportIssue.swift
[133/722] Compiling IssueReporting IssueReporter.swift
[134/722] Compiling IssueReporting ErrorReporting.swift
[135/722] Compiling IssueReporting AppHostWarning.swift
[136/722] Compiling IssueReporting Deprecations.swift
[137/722] Compiling SwiftSyntax EditorPlaceholder.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>
[138/722] Compiling SwiftSyntax ChildNameForKeyPath.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>
[139/722] Compiling SwiftSyntax Keyword.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>
[140/722] Compiling SwiftSyntax RenamedChildrenCompatibility.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>
[141/722] Compiling SwiftSyntax RenamedNodesCompatibility.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>
[142/723] Write sources
[144/723] Compiling Logging MetadataProvider.swift
[145/723] Emitting module Logging
[146/723] Compiling Logging Locks.swift
[146/723] Write sources
[148/723] Compiling writer.c
[150/723] Compiling IssueReporting XCTest.swift
[151/723] Compiling IssueReporting IsTesting.swift
[155/725] Compiling IssueReporting TestContext.swift
[156/725] Compiling IssueReporting Unimplemented.swift
[157/725] Compiling IssueReporting BreakpointReporter.swift
[158/725] Compiling IssueReporting DefaultReporter.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()
/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()
[171/725] Compiling IssueReporting WithExpectedIssue.swift
[172/725] Compiling IssueReporting WithIssueContext.swift
[175/725] Compiling IssueReporting FatalErrorReporter.swift
[176/725] Compiling ConcurrencyExtras LockIsolated.swift
/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)
[185/725] Compiling SwiftSyntax TokenSyntax.swift
[186/725] Compiling SwiftSyntax Trivia.swift
[187/725] Compiling SwiftSyntax Utils.swift
[188/725] Compiling SwiftSyntax AbsolutePosition.swift
[189/725] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[190/725] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
[191/725] 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
[192/725] 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
[193/725] 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
[194/725] 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
[195/725] 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
/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()
/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()
/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()
[199/725] Compiling SwiftSyntax TokenDiagnostic.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()
[200/725] Compiling SwiftSyntax TokenSequence.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/725] Compiling ConcurrencyExtras Task.swift
[204/725] Emitting module ConcurrencyExtras
[210/726] Compiling reader.c
[211/726] Compiling scanner.c
[213/726] Compiling Blocks TaskStateButton.swift
[214/726] Compiling Blocks WatchPairingUtil.swift
[215/726] Compiling Blocks FrontMatter.swift
[216/726] Compiling Blocks JSONFeed.swift
[217/726] Compiling Blocks OpenGraph.swift
[224/727] Compiling parser.c
[228/727] Emitting module IssueReporting
[228/727] Compiling emitter.c
BUILD FAILURE 6.3 wasm