Build Information
Failed to build Packet, reference main (d1e9f8
), with Swift 6.1 for Linux on 28 Apr 2025 17:09:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattmassicotte/Packet.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/mattmassicotte/Packet
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d1e9f82 Return the URLResponse for chunks(for:delegate:) (#4)
Cloned https://github.com/mattmassicotte/Packet.git
Revision (git rev-parse @):
d1e9f82edfce4b137591ba59c332a6a4ba972d88
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mattmassicotte/Packet.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/mattmassicotte/Packet.git
https://github.com/mattmassicotte/Packet.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Packet",
"name" : "Packet",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "Packet",
"targets" : [
"Packet"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PacketTests",
"module_type" : "SwiftTarget",
"name" : "PacketTests",
"path" : "Tests/PacketTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/PacketTests/Resources/ipsum100k.txt",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"PacketTests.swift",
"URLSessionTests.swift",
"URLTest.swift",
"Utils/AssertHelpers.swift",
"Utils/MockURLProtocol.swift",
"Utils/MockURLResponder.swift"
],
"target_dependencies" : [
"Packet"
],
"type" : "test"
},
{
"c99name" : "Packet",
"module_type" : "SwiftTarget",
"name" : "Packet",
"path" : "Sources/Packet",
"product_memberships" : [
"Packet"
],
"sources" : [
"AsyncByteSequence.swift",
"FileHandle+Chunks.swift",
"URL+Chunks.swift",
"URLSession+Chunks.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling Packet URLSession+Chunks.swift
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:4:80: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public typealias AsyncThrowingDataChunks = AsyncThrowingStream<Data, any Error>
4 | typealias ResponseContinuation = CheckedContinuation<(AsyncThrowingDataChunks, URLResponse), Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | extension URLSession {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:6:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
4 | typealias ResponseContinuation = CheckedContinuation<(AsyncThrowingDataChunks, URLResponse), Error>
5 |
6 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
7 | /// Retrieves the contents of a url and delivers the data asynchronously as `Data` chunks.
8 | /// - Parameter url: The URL to retrieve.
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:103:25: error: cannot find type 'URLSessionTaskDelegate' in scope
101 | var responseContinuation: ResponseContinuation?
102 |
103 | init(delegate: (any URLSessionTaskDelegate)?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
104 | self.delegate = delegate
105 | }
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:108:25: error: cannot find type 'URLSessionTaskDelegate' in scope
106 |
107 | init(withContinuation continuation: AsyncThrowingDataChunks.Continuation,
108 | delegate: (any URLSessionTaskDelegate)?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
109 | self.continuation = continuation
110 | self.delegate = delegate
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:116:25: error: cannot find type 'URLSessionTaskDelegate' in scope
114 | responseContinuation: ResponseContinuation,
115 | stream: AsyncThrowingDataChunks,
116 | delegate: (any URLSessionTaskDelegate)?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
117 | self.continuation = continuation
118 | self.responseContinuation = responseContinuation
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:98:24: error: cannot find type 'URLSessionTaskDelegate' in scope
96 | private final class DataChunksTaskDelegate: NSObject {
97 | var continuation: AsyncThrowingDataChunks.Continuation?
98 | let delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
99 |
100 | var stream: AsyncThrowingDataChunks?
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:124:35: error: cannot find type 'URLSessionDataDelegate' in scope
122 | }
123 |
124 | extension DataChunksTaskDelegate: URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
125 | public func urlSession(_ session: URLSession,
126 | dataTask: URLSessionDataTask,
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:128:69: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
126 | dataTask: URLSessionDataTask,
127 | didReceive response: URLResponse,
128 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
129 |
130 | if let stream,
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:125:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |
124 | extension DataChunksTaskDelegate: URLSessionDataDelegate {
125 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | dataTask: URLSessionDataTask,
127 | didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:126:38: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | extension DataChunksTaskDelegate: URLSessionDataDelegate {
125 | public func urlSession(_ session: URLSession,
126 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | didReceive response: URLResponse,
128 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:127:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | public func urlSession(_ session: URLSession,
126 | dataTask: URLSessionDataTask,
127 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
129 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:138:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | dataTask: URLSessionDataTask,
140 | didReceive data: Data) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:139:38: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | public func urlSession(_ session: URLSession,
139 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | didReceive data: Data) {
141 | continuation?.yield(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:144:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | }
143 |
144 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | task: URLSessionTask,
146 | didCompleteWithError error: Error?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:145:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 |
144 | public func urlSession(_ session: URLSession,
145 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | didCompleteWithError error: Error?) {
147 | if let error {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:158:48: error: cannot find type 'URLRequest' in scope
156 | task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse,
158 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
160 | if let delegate,
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:159:68: error: cannot find type 'URLRequest' in scope
157 | willPerformHTTPRedirection response: HTTPURLResponse,
158 | newRequest request: URLRequest,
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
160 | if let delegate,
161 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:willPerformHTTPRedirection:newRequest:))) {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:155:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | }
154 |
155 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:156:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |
155 | public func urlSession(_ session: URLSession,
156 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | willPerformHTTPRedirection response: HTTPURLResponse,
158 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:157:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | public func urlSession(_ session: URLSession,
156 | task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | newRequest request: URLRequest,
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:171:79: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
169 | task: URLSessionTask,
170 | didReceive challenge: URLAuthenticationChallenge,
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
172 | if let delegate,
173 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:didReceive:completionHandler:))) {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:168:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 | }
167 |
168 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | task: URLSessionTask,
170 | didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:169:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 | public func urlSession(_ session: URLSession,
169 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | didReceive challenge: URLAuthenticationChallenge,
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:170:50: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | public func urlSession(_ session: URLSession,
169 | task: URLSessionTask,
170 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
172 | if let delegate,
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:180:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
178 | }
179 |
180 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | taskIsWaitingForConnectivity task: URLSessionTask) {
182 | delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:181:63: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |
180 | public func urlSession(_ session: URLSession,
181 | taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 | delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
183 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:135:28: error: cannot infer contextual base in reference to member 'allow'
133 | self.responseContinuation = nil
134 | }
135 | completionHandler(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
136 | }
137 |
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:161:44: error: cannot find 'URLSessionTaskDelegate' in scope
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
160 | if let delegate,
161 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:willPerformHTTPRedirection:newRequest:))) {
| `- error: cannot find 'URLSessionTaskDelegate' in scope
162 | delegate.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler)
163 | } else {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:161:34: error: '#selector' can only be used with the Objective-C runtime
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
160 | if let delegate,
161 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:willPerformHTTPRedirection:newRequest:))) {
| `- error: '#selector' can only be used with the Objective-C runtime
162 | delegate.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler)
163 | } else {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:173:44: error: cannot find 'URLSessionTaskDelegate' in scope
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
172 | if let delegate,
173 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:didReceive:completionHandler:))) {
| `- error: cannot find 'URLSessionTaskDelegate' in scope
174 | delegate.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler)
175 | } else {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:173:34: error: '#selector' can only be used with the Objective-C runtime
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
172 | if let delegate,
173 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:didReceive:completionHandler:))) {
| `- error: '#selector' can only be used with the Objective-C runtime
174 | delegate.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler)
175 | } else {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:176:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
174 | delegate.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler)
175 | } else {
176 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
177 | }
178 | }
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:176:56: error: 'nil' requires a contextual type
174 | delegate.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler)
175 | } else {
176 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
177 | }
178 | }
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:32:39: error: cannot find type 'URLSessionTaskDelegate' in scope
30 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
31 | public func chunks(for url: URL,
32 | delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (AsyncThrowingDataChunks, URLResponse) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
33 | return try await chunks(for: URLRequest(url: url), delegate: delegate)
34 | }
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:63:37: error: cannot find type 'URLRequest' in scope
61 | /// ```
62 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
63 | public func chunks(for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
64 | delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (AsyncThrowingDataChunks, URLResponse) {
65 | try await withCheckedThrowingContinuation { responseContinuation in
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:64:39: error: cannot find type 'URLSessionTaskDelegate' in scope
62 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
63 | public func chunks(for request: URLRequest,
64 | delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (AsyncThrowingDataChunks, URLResponse) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
65 | try await withCheckedThrowingContinuation { responseContinuation in
66 | let chunksDelegate = DataChunksTaskDelegate(delegate: delegate)
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:80:32: error: cannot find type 'URLSessionTaskDelegate' in scope
78 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
79 | func chunks(for url: URL,
80 | delegate: (any URLSessionTaskDelegate)? = nil) -> AsyncThrowingDataChunks {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
81 | return chunks(for: URLRequest(url: url), delegate: delegate)
82 | }
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:85:30: error: cannot find type 'URLRequest' in scope
83 |
84 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
85 | func chunks(for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
86 | delegate: (any URLSessionTaskDelegate)? = nil) -> AsyncThrowingDataChunks {
87 | AsyncThrowingDataChunks { continuation in
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:86:32: error: cannot find type 'URLSessionTaskDelegate' in scope
84 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
85 | func chunks(for request: URLRequest,
86 | delegate: (any URLSessionTaskDelegate)? = nil) -> AsyncThrowingDataChunks {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
87 | AsyncThrowingDataChunks { continuation in
88 | let dataTask = dataTask(with: request)
[4/7] Compiling Packet FileHandle+Chunks.swift
[5/7] Compiling Packet URL+Chunks.swift
/host/spi-builder-workspace/Sources/Packet/URL+Chunks.swift:22:27: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
21 | public var resourceChunks: AsyncThrowingDataChunks {
22 | return URLSession.shared.chunks(for: self)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 | }
24 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/7] Compiling Packet AsyncByteSequence.swift
[7/7] Emitting module Packet
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:4:80: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public typealias AsyncThrowingDataChunks = AsyncThrowingStream<Data, any Error>
4 | typealias ResponseContinuation = CheckedContinuation<(AsyncThrowingDataChunks, URLResponse), Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | extension URLSession {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:6:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
4 | typealias ResponseContinuation = CheckedContinuation<(AsyncThrowingDataChunks, URLResponse), Error>
5 |
6 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
7 | /// Retrieves the contents of a url and delivers the data asynchronously as `Data` chunks.
8 | /// - Parameter url: The URL to retrieve.
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:103:25: error: cannot find type 'URLSessionTaskDelegate' in scope
101 | var responseContinuation: ResponseContinuation?
102 |
103 | init(delegate: (any URLSessionTaskDelegate)?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
104 | self.delegate = delegate
105 | }
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:108:25: error: cannot find type 'URLSessionTaskDelegate' in scope
106 |
107 | init(withContinuation continuation: AsyncThrowingDataChunks.Continuation,
108 | delegate: (any URLSessionTaskDelegate)?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
109 | self.continuation = continuation
110 | self.delegate = delegate
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:116:25: error: cannot find type 'URLSessionTaskDelegate' in scope
114 | responseContinuation: ResponseContinuation,
115 | stream: AsyncThrowingDataChunks,
116 | delegate: (any URLSessionTaskDelegate)?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
117 | self.continuation = continuation
118 | self.responseContinuation = responseContinuation
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:98:24: error: cannot find type 'URLSessionTaskDelegate' in scope
96 | private final class DataChunksTaskDelegate: NSObject {
97 | var continuation: AsyncThrowingDataChunks.Continuation?
98 | let delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
99 |
100 | var stream: AsyncThrowingDataChunks?
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:124:35: error: cannot find type 'URLSessionDataDelegate' in scope
122 | }
123 |
124 | extension DataChunksTaskDelegate: URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
125 | public func urlSession(_ session: URLSession,
126 | dataTask: URLSessionDataTask,
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:128:69: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
126 | dataTask: URLSessionDataTask,
127 | didReceive response: URLResponse,
128 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
129 |
130 | if let stream,
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:125:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |
124 | extension DataChunksTaskDelegate: URLSessionDataDelegate {
125 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | dataTask: URLSessionDataTask,
127 | didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:126:38: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | extension DataChunksTaskDelegate: URLSessionDataDelegate {
125 | public func urlSession(_ session: URLSession,
126 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | didReceive response: URLResponse,
128 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:127:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | public func urlSession(_ session: URLSession,
126 | dataTask: URLSessionDataTask,
127 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
129 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:138:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | dataTask: URLSessionDataTask,
140 | didReceive data: Data) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:139:38: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | public func urlSession(_ session: URLSession,
139 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | didReceive data: Data) {
141 | continuation?.yield(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:144:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | }
143 |
144 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | task: URLSessionTask,
146 | didCompleteWithError error: Error?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:145:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 |
144 | public func urlSession(_ session: URLSession,
145 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | didCompleteWithError error: Error?) {
147 | if let error {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:158:48: error: cannot find type 'URLRequest' in scope
156 | task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse,
158 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
160 | if let delegate,
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:159:68: error: cannot find type 'URLRequest' in scope
157 | willPerformHTTPRedirection response: HTTPURLResponse,
158 | newRequest request: URLRequest,
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
160 | if let delegate,
161 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:willPerformHTTPRedirection:newRequest:))) {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:155:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | }
154 |
155 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:156:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |
155 | public func urlSession(_ session: URLSession,
156 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | willPerformHTTPRedirection response: HTTPURLResponse,
158 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:157:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | public func urlSession(_ session: URLSession,
156 | task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | newRequest request: URLRequest,
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:171:79: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
169 | task: URLSessionTask,
170 | didReceive challenge: URLAuthenticationChallenge,
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
172 | if let delegate,
173 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:didReceive:completionHandler:))) {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:168:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 | }
167 |
168 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | task: URLSessionTask,
170 | didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:169:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 | public func urlSession(_ session: URLSession,
169 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | didReceive challenge: URLAuthenticationChallenge,
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:170:50: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | public func urlSession(_ session: URLSession,
169 | task: URLSessionTask,
170 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
172 | if let delegate,
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:180:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
178 | }
179 |
180 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | taskIsWaitingForConnectivity task: URLSessionTask) {
182 | delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:181:63: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |
180 | public func urlSession(_ session: URLSession,
181 | taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 | delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
183 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling Packet URLSession+Chunks.swift
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:4:80: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public typealias AsyncThrowingDataChunks = AsyncThrowingStream<Data, any Error>
4 | typealias ResponseContinuation = CheckedContinuation<(AsyncThrowingDataChunks, URLResponse), Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | extension URLSession {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:6:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
4 | typealias ResponseContinuation = CheckedContinuation<(AsyncThrowingDataChunks, URLResponse), Error>
5 |
6 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
7 | /// Retrieves the contents of a url and delivers the data asynchronously as `Data` chunks.
8 | /// - Parameter url: The URL to retrieve.
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:103:25: error: cannot find type 'URLSessionTaskDelegate' in scope
101 | var responseContinuation: ResponseContinuation?
102 |
103 | init(delegate: (any URLSessionTaskDelegate)?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
104 | self.delegate = delegate
105 | }
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:108:25: error: cannot find type 'URLSessionTaskDelegate' in scope
106 |
107 | init(withContinuation continuation: AsyncThrowingDataChunks.Continuation,
108 | delegate: (any URLSessionTaskDelegate)?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
109 | self.continuation = continuation
110 | self.delegate = delegate
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:116:25: error: cannot find type 'URLSessionTaskDelegate' in scope
114 | responseContinuation: ResponseContinuation,
115 | stream: AsyncThrowingDataChunks,
116 | delegate: (any URLSessionTaskDelegate)?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
117 | self.continuation = continuation
118 | self.responseContinuation = responseContinuation
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:98:24: error: cannot find type 'URLSessionTaskDelegate' in scope
96 | private final class DataChunksTaskDelegate: NSObject {
97 | var continuation: AsyncThrowingDataChunks.Continuation?
98 | let delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
99 |
100 | var stream: AsyncThrowingDataChunks?
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:124:35: error: cannot find type 'URLSessionDataDelegate' in scope
122 | }
123 |
124 | extension DataChunksTaskDelegate: URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
125 | public func urlSession(_ session: URLSession,
126 | dataTask: URLSessionDataTask,
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:128:69: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
126 | dataTask: URLSessionDataTask,
127 | didReceive response: URLResponse,
128 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
129 |
130 | if let stream,
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:125:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |
124 | extension DataChunksTaskDelegate: URLSessionDataDelegate {
125 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | dataTask: URLSessionDataTask,
127 | didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:126:38: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | extension DataChunksTaskDelegate: URLSessionDataDelegate {
125 | public func urlSession(_ session: URLSession,
126 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | didReceive response: URLResponse,
128 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:127:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | public func urlSession(_ session: URLSession,
126 | dataTask: URLSessionDataTask,
127 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
129 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:138:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | dataTask: URLSessionDataTask,
140 | didReceive data: Data) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:139:38: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | public func urlSession(_ session: URLSession,
139 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | didReceive data: Data) {
141 | continuation?.yield(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:144:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | }
143 |
144 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | task: URLSessionTask,
146 | didCompleteWithError error: Error?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:145:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 |
144 | public func urlSession(_ session: URLSession,
145 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | didCompleteWithError error: Error?) {
147 | if let error {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:158:48: error: cannot find type 'URLRequest' in scope
156 | task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse,
158 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
160 | if let delegate,
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:159:68: error: cannot find type 'URLRequest' in scope
157 | willPerformHTTPRedirection response: HTTPURLResponse,
158 | newRequest request: URLRequest,
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
160 | if let delegate,
161 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:willPerformHTTPRedirection:newRequest:))) {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:155:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | }
154 |
155 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:156:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |
155 | public func urlSession(_ session: URLSession,
156 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | willPerformHTTPRedirection response: HTTPURLResponse,
158 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:157:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | public func urlSession(_ session: URLSession,
156 | task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | newRequest request: URLRequest,
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:171:79: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
169 | task: URLSessionTask,
170 | didReceive challenge: URLAuthenticationChallenge,
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
172 | if let delegate,
173 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:didReceive:completionHandler:))) {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:168:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 | }
167 |
168 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | task: URLSessionTask,
170 | didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:169:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 | public func urlSession(_ session: URLSession,
169 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | didReceive challenge: URLAuthenticationChallenge,
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:170:50: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | public func urlSession(_ session: URLSession,
169 | task: URLSessionTask,
170 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
172 | if let delegate,
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:180:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
178 | }
179 |
180 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | taskIsWaitingForConnectivity task: URLSessionTask) {
182 | delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:181:63: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |
180 | public func urlSession(_ session: URLSession,
181 | taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 | delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
183 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:135:28: error: cannot infer contextual base in reference to member 'allow'
133 | self.responseContinuation = nil
134 | }
135 | completionHandler(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
136 | }
137 |
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:161:44: error: cannot find 'URLSessionTaskDelegate' in scope
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
160 | if let delegate,
161 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:willPerformHTTPRedirection:newRequest:))) {
| `- error: cannot find 'URLSessionTaskDelegate' in scope
162 | delegate.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler)
163 | } else {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:161:34: error: '#selector' can only be used with the Objective-C runtime
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
160 | if let delegate,
161 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:willPerformHTTPRedirection:newRequest:))) {
| `- error: '#selector' can only be used with the Objective-C runtime
162 | delegate.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler)
163 | } else {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:173:44: error: cannot find 'URLSessionTaskDelegate' in scope
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
172 | if let delegate,
173 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:didReceive:completionHandler:))) {
| `- error: cannot find 'URLSessionTaskDelegate' in scope
174 | delegate.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler)
175 | } else {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:173:34: error: '#selector' can only be used with the Objective-C runtime
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
172 | if let delegate,
173 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:didReceive:completionHandler:))) {
| `- error: '#selector' can only be used with the Objective-C runtime
174 | delegate.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler)
175 | } else {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:176:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
174 | delegate.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler)
175 | } else {
176 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
177 | }
178 | }
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:176:56: error: 'nil' requires a contextual type
174 | delegate.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler)
175 | } else {
176 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
177 | }
178 | }
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:32:39: error: cannot find type 'URLSessionTaskDelegate' in scope
30 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
31 | public func chunks(for url: URL,
32 | delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (AsyncThrowingDataChunks, URLResponse) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
33 | return try await chunks(for: URLRequest(url: url), delegate: delegate)
34 | }
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:63:37: error: cannot find type 'URLRequest' in scope
61 | /// ```
62 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
63 | public func chunks(for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
64 | delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (AsyncThrowingDataChunks, URLResponse) {
65 | try await withCheckedThrowingContinuation { responseContinuation in
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:64:39: error: cannot find type 'URLSessionTaskDelegate' in scope
62 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
63 | public func chunks(for request: URLRequest,
64 | delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (AsyncThrowingDataChunks, URLResponse) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
65 | try await withCheckedThrowingContinuation { responseContinuation in
66 | let chunksDelegate = DataChunksTaskDelegate(delegate: delegate)
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:80:32: error: cannot find type 'URLSessionTaskDelegate' in scope
78 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
79 | func chunks(for url: URL,
80 | delegate: (any URLSessionTaskDelegate)? = nil) -> AsyncThrowingDataChunks {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
81 | return chunks(for: URLRequest(url: url), delegate: delegate)
82 | }
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:85:30: error: cannot find type 'URLRequest' in scope
83 |
84 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
85 | func chunks(for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
86 | delegate: (any URLSessionTaskDelegate)? = nil) -> AsyncThrowingDataChunks {
87 | AsyncThrowingDataChunks { continuation in
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:86:32: error: cannot find type 'URLSessionTaskDelegate' in scope
84 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
85 | func chunks(for request: URLRequest,
86 | delegate: (any URLSessionTaskDelegate)? = nil) -> AsyncThrowingDataChunks {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
87 | AsyncThrowingDataChunks { continuation in
88 | let dataTask = dataTask(with: request)
[3/6] Compiling Packet URL+Chunks.swift
/host/spi-builder-workspace/Sources/Packet/URL+Chunks.swift:22:27: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
21 | public var resourceChunks: AsyncThrowingDataChunks {
22 | return URLSession.shared.chunks(for: self)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 | }
24 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling Packet FileHandle+Chunks.swift
[5/6] Compiling Packet AsyncByteSequence.swift
[6/6] Emitting module Packet
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:4:80: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public typealias AsyncThrowingDataChunks = AsyncThrowingStream<Data, any Error>
4 | typealias ResponseContinuation = CheckedContinuation<(AsyncThrowingDataChunks, URLResponse), Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | extension URLSession {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:6:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
4 | typealias ResponseContinuation = CheckedContinuation<(AsyncThrowingDataChunks, URLResponse), Error>
5 |
6 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
7 | /// Retrieves the contents of a url and delivers the data asynchronously as `Data` chunks.
8 | /// - Parameter url: The URL to retrieve.
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:103:25: error: cannot find type 'URLSessionTaskDelegate' in scope
101 | var responseContinuation: ResponseContinuation?
102 |
103 | init(delegate: (any URLSessionTaskDelegate)?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
104 | self.delegate = delegate
105 | }
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:108:25: error: cannot find type 'URLSessionTaskDelegate' in scope
106 |
107 | init(withContinuation continuation: AsyncThrowingDataChunks.Continuation,
108 | delegate: (any URLSessionTaskDelegate)?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
109 | self.continuation = continuation
110 | self.delegate = delegate
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:116:25: error: cannot find type 'URLSessionTaskDelegate' in scope
114 | responseContinuation: ResponseContinuation,
115 | stream: AsyncThrowingDataChunks,
116 | delegate: (any URLSessionTaskDelegate)?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
117 | self.continuation = continuation
118 | self.responseContinuation = responseContinuation
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:98:24: error: cannot find type 'URLSessionTaskDelegate' in scope
96 | private final class DataChunksTaskDelegate: NSObject {
97 | var continuation: AsyncThrowingDataChunks.Continuation?
98 | let delegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
99 |
100 | var stream: AsyncThrowingDataChunks?
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:124:35: error: cannot find type 'URLSessionDataDelegate' in scope
122 | }
123 |
124 | extension DataChunksTaskDelegate: URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
125 | public func urlSession(_ session: URLSession,
126 | dataTask: URLSessionDataTask,
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:128:69: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
126 | dataTask: URLSessionDataTask,
127 | didReceive response: URLResponse,
128 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
129 |
130 | if let stream,
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:125:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |
124 | extension DataChunksTaskDelegate: URLSessionDataDelegate {
125 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | dataTask: URLSessionDataTask,
127 | didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:126:38: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | extension DataChunksTaskDelegate: URLSessionDataDelegate {
125 | public func urlSession(_ session: URLSession,
126 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | didReceive response: URLResponse,
128 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:127:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | public func urlSession(_ session: URLSession,
126 | dataTask: URLSessionDataTask,
127 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
129 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:138:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | dataTask: URLSessionDataTask,
140 | didReceive data: Data) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:139:38: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | public func urlSession(_ session: URLSession,
139 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | didReceive data: Data) {
141 | continuation?.yield(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:144:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | }
143 |
144 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | task: URLSessionTask,
146 | didCompleteWithError error: Error?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:145:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 |
144 | public func urlSession(_ session: URLSession,
145 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | didCompleteWithError error: Error?) {
147 | if let error {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:158:48: error: cannot find type 'URLRequest' in scope
156 | task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse,
158 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
160 | if let delegate,
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:159:68: error: cannot find type 'URLRequest' in scope
157 | willPerformHTTPRedirection response: HTTPURLResponse,
158 | newRequest request: URLRequest,
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
160 | if let delegate,
161 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:willPerformHTTPRedirection:newRequest:))) {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:155:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | }
154 |
155 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:156:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |
155 | public func urlSession(_ session: URLSession,
156 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | willPerformHTTPRedirection response: HTTPURLResponse,
158 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:157:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | public func urlSession(_ session: URLSession,
156 | task: URLSessionTask,
157 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | newRequest request: URLRequest,
159 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:171:79: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
169 | task: URLSessionTask,
170 | didReceive challenge: URLAuthenticationChallenge,
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
172 | if let delegate,
173 | delegate.responds(to: #selector(URLSessionTaskDelegate.urlSession(_:task:didReceive:completionHandler:))) {
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:168:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 | }
167 |
168 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | task: URLSessionTask,
170 | didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:169:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 | public func urlSession(_ session: URLSession,
169 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | didReceive challenge: URLAuthenticationChallenge,
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:170:50: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | public func urlSession(_ session: URLSession,
169 | task: URLSessionTask,
170 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
172 | if let delegate,
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:180:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
178 | }
179 |
180 | public func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | taskIsWaitingForConnectivity task: URLSessionTask) {
182 | delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:181:63: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |
180 | public func urlSession(_ session: URLSession,
181 | taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 | delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
183 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
BUILD FAILURE 6.1 linux