Build Information
Failed to build EXIFKit, reference main (6c18e3), with Swift 6.3 for Wasm on 30 Oct 2026 09:58:30 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let cancel = state.withLock { state in
80 | guard data.count <= count - state.bytes.count else {
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/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:94:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | }
93 |
94 | func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 | state.withLock { state in
96 | defer {
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/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:94:44: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | }
93 |
94 | func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 | state.withLock { state in
96 | defer {
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/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:20:17: error: stored property 'state' of 'Sendable'-conforming class 'HTTPRangeRequest' contains non-Sendable type 'HTTPRangeRequest.State'
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
18 | }
19 |
20 | private let state = HTTPLockedState(State())
| `- error: stored property 'state' of 'Sendable'-conforming class 'HTTPRangeRequest' contains non-Sendable type 'HTTPRangeRequest.State'
21 | private let offset: UInt64
22 | private let count: Int
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:54:29: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
52 | delegate.state.withLock { state in
53 | state.cancelled = true
54 | state.task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
55 | }
56 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:67:19: error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
65 | response, offset: offset, count: count, size: expectedSize, validator: validator
66 | )
67 | state.withLock { state in
| `- error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
68 | state.response = response
69 | state.responseSize = length
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:71:32: error: cannot infer contextual base in reference to member 'allow'
69 | state.responseSize = length
70 | }
71 | completionHandler(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
72 | } catch {
73 | state.withLock { $0.failure = error }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:73:19: error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
71 | completionHandler(.allow)
72 | } catch {
73 | state.withLock { $0.failure = error }
| `- error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
74 | completionHandler(.cancel)
75 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:74:32: error: cannot infer contextual base in reference to member 'cancel'
72 | } catch {
73 | state.withLock { $0.failure = error }
74 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
75 | }
76 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:79:28: error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
77 |
78 | func urlSession(_: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
79 | let cancel = state.withLock { state in
| `- error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
80 | guard data.count <= count - state.bytes.count else {
81 | if let response = state.response {
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:90:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
88 | }
89 | if cancel {
90 | dataTask.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
91 | }
92 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:109:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
107 | )
108 | } else if let response = state.response {
109 | let validator = (response as? HTTPURLResponse).flatMap(HTTPValidator.init)
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
110 | state.continuation?.resume(
111 | returning: HTTPRangeResponse(
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:95:15: error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
93 |
94 | func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: (any Error)?) {
95 | state.withLock { state in
| `- error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
96 | defer {
97 | state.continuation = nil
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:109:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | )
108 | } else if let response = state.response {
109 | let validator = (response as? HTTPURLResponse).flatMap(HTTPValidator.init)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | state.continuation?.resume(
111 | returning: HTTPRangeResponse(
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
[12/37] Compiling EXIFKit HTTPRangeRequest.swift
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:164:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 | }
163 |
164 | private func accept(_ response: HTTPURLResponse) async throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
165 | guard (200 ..< 300).contains(response.statusCode) else {
166 | throw invalidHTTPResponse(response, "HTTP write returned \(response.statusCode)")
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/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:182:79: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 | }
181 |
182 | private func upload(method: String, range: Range<UInt64>) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 | try Task.checkCancellation()
184 | let bodyURL: URL
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/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:266:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
264 | let header: String
265 | let value: String
266 | init?(_ response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
267 | if let etag = response.value(forHTTPHeaderField: "ETag"), !etag.hasPrefix("W/") {
268 | header = "ETag"
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/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:283:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 | let size: UInt64
282 | let validator: HTTPValidator?
283 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 | }
285 |
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/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:283:9: error: stored property 'response' of 'Sendable'-conforming struct 'HTTPRangeResponse' has non-Sendable type 'AnyObject'
281 | let size: UInt64
282 | let validator: HTTPValidator?
283 | let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming struct 'HTTPRangeResponse' has non-Sendable type 'AnyObject'
284 | }
285 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:286:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 | }
285 |
286 | func invalidHTTPResponse(_ response: URLResponse, _ detail: String) -> URLError {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
287 | var info: [String: Any] = [NSLocalizedDescriptionKey: detail, "HTTPURLResponse": response]
288 | if let url = response.url {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:294:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
292 | }
293 |
294 | func validateHTTPRange(_ response: URLResponse, offset: UInt64, count: Int, size: UInt64?, validator: HTTPValidator?) throws -> UInt64 {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
295 | guard let http = response as? HTTPURLResponse else { throw invalidHTTPResponse(response, "Expected HTTP response") }
296 | if http.statusCode == 416, size == nil, http.value(forHTTPHeaderField: "Content-Range") == "bytes */0" {
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/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:320:94: error: cannot find type 'URLRequest' in scope
318 | }
319 |
320 | func httpRangeURLRequest(url: URL, offset: UInt64, count: Int, validator: HTTPValidator?) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
321 | var request = URLRequest(url: url)
322 | request.setValue("bytes=\(offset)-\(offset + UInt64(count) - 1)", forHTTPHeaderField: "Range")
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:36:76: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | resourceExists = true
35 | } catch let error as URLError
36 | where (error.userInfo["HTTPURLResponse"] as? HTTPURLResponse)?.statusCode == 404
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | {
38 | length = 0
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:149:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
147 | for range in ranges {
148 | let response = try await upload(method: "PATCH", range: range)
149 | if [405, 415, 501].contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
150 | usePUT = true
151 | break
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:165:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |
164 | private func accept(_ response: HTTPURLResponse) async throws {
165 | guard (200 ..< 300).contains(response.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 | throw invalidHTTPResponse(response, "HTTP write returned \(response.statusCode)")
167 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:166:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
164 | private func accept(_ response: HTTPURLResponse) async throws {
165 | guard (200 ..< 300).contains(response.statusCode) else {
166 | throw invalidHTTPResponse(response, "HTTP write returned \(response.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
167 | }
168 | resourceExists = true
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:210:23: error: cannot find 'URLRequest' in scope
208 | try await body.close()
209 | }
210 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
211 | request.httpMethod = method
212 | request.setValue("application/octet-stream", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:10:33: error: cannot find type 'URLRequest' in scope
8 | /// Errors produced by URLSession pass through unchanged.
9 | enum HTTPFileUpload {
10 | static func send(_ request: URLRequest, fromFile url: URL, session: HTTPSession) async throws -> HTTPURLResponse {
| `- error: cannot find type 'URLRequest' in scope
11 | try await HTTPUploadRequest.send(request, fromFile: url, session: session)
12 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:267:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
265 | let value: String
266 | init?(_ response: HTTPURLResponse) {
267 | if let etag = response.value(forHTTPHeaderField: "ETag"), !etag.hasPrefix("W/") {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
268 | header = "ETag"
269 | value = etag
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:270:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
268 | header = "ETag"
269 | value = etag
270 | } else if let date = response.value(forHTTPHeaderField: "Last-Modified") {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
271 | header = "Last-Modified"
272 | value = date
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:288:27: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
286 | func invalidHTTPResponse(_ response: URLResponse, _ detail: String) -> URLError {
287 | var info: [String: Any] = [NSLocalizedDescriptionKey: detail, "HTTPURLResponse": response]
288 | if let url = response.url {
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
289 | info[NSURLErrorFailingURLErrorKey] = url
290 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:295:31: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
293 |
294 | func validateHTTPRange(_ response: URLResponse, offset: UInt64, count: Int, size: UInt64?, validator: HTTPValidator?) throws -> UInt64 {
295 | guard let http = response as? HTTPURLResponse else { throw invalidHTTPResponse(response, "Expected HTTP response") }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
296 | if http.statusCode == 416, size == nil, http.value(forHTTPHeaderField: "Content-Range") == "bytes */0" {
297 | return 0
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:295:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
293 |
294 | func validateHTTPRange(_ response: URLResponse, offset: UInt64, count: Int, size: UInt64?, validator: HTTPValidator?) throws -> UInt64 {
295 | guard let http = response as? HTTPURLResponse else { throw invalidHTTPResponse(response, "Expected HTTP response") }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
296 | if http.statusCode == 416, size == nil, http.value(forHTTPHeaderField: "Content-Range") == "bytes */0" {
297 | return 0
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/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:296:13: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
294 | func validateHTTPRange(_ response: URLResponse, offset: UInt64, count: Int, size: UInt64?, validator: HTTPValidator?) throws -> UInt64 {
295 | guard let http = response as? HTTPURLResponse else { throw invalidHTTPResponse(response, "Expected HTTP response") }
296 | if http.statusCode == 416, size == nil, http.value(forHTTPHeaderField: "Content-Range") == "bytes */0" {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
297 | return 0
298 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:296:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
294 | func validateHTTPRange(_ response: URLResponse, offset: UInt64, count: Int, size: UInt64?, validator: HTTPValidator?) throws -> UInt64 {
295 | guard let http = response as? HTTPURLResponse else { throw invalidHTTPResponse(response, "Expected HTTP response") }
296 | if http.statusCode == 416, size == nil, http.value(forHTTPHeaderField: "Content-Range") == "bytes */0" {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
297 | return 0
298 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:299:16: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
297 | return 0
298 | }
299 | guard http.statusCode == 206 else { throw invalidHTTPResponse(http, "Expected HTTP 206, received \(http.statusCode)") }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
300 | guard http.value(forHTTPHeaderField: "Content-Encoding").map({ $0 == "identity" }) ?? true else {
301 | throw invalidHTTPResponse(http, "Encoded byte range")
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:299:109: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
297 | return 0
298 | }
299 | guard http.statusCode == 206 else { throw invalidHTTPResponse(http, "Expected HTTP 206, received \(http.statusCode)") }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
300 | guard http.value(forHTTPHeaderField: "Content-Encoding").map({ $0 == "identity" }) ?? true else {
301 | throw invalidHTTPResponse(http, "Encoded byte range")
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:300:16: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
298 | }
299 | guard http.statusCode == 206 else { throw invalidHTTPResponse(http, "Expected HTTP 206, received \(http.statusCode)") }
300 | guard http.value(forHTTPHeaderField: "Content-Encoding").map({ $0 == "identity" }) ?? true else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
301 | throw invalidHTTPResponse(http, "Encoded byte range")
302 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:303:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
301 | throw invalidHTTPResponse(http, "Encoded byte range")
302 | }
303 | let field = http.value(forHTTPHeaderField: "Content-Range") ?? ""
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
304 | let fields = field.split(separator: " ")
305 | let bounds = fields.last?.split(separator: "/") ?? []
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:314:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
312 | throw invalidHTTPResponse(http, "Resource size changed")
313 | }
314 | if let validator, http.value(forHTTPHeaderField: validator.header) != validator.value {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
315 | throw invalidHTTPResponse(http, "Resource validator changed")
316 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileHandle.swift:321:19: error: cannot find 'URLRequest' in scope
319 |
320 | func httpRangeURLRequest(url: URL, offset: UInt64, count: Int, validator: HTTPValidator?) -> URLRequest {
321 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
322 | request.setValue("bytes=\(offset)-\(offset + UInt64(count) - 1)", forHTTPHeaderField: "Range")
323 | request.setValue("identity", forHTTPHeaderField: "Accept-Encoding")
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:10:102: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// Errors produced by URLSession pass through unchanged.
9 | enum HTTPFileUpload {
10 | static func send(_ request: URLRequest, fromFile url: URL, session: HTTPSession) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | try await HTTPUploadRequest.send(request, fromFile: url, session: session)
12 | }
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/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:22:25: error: type 'HTTPUploadRequest.State' does not conform to the 'Sendable' protocol
14 |
15 | private final class HTTPUploadRequest: HTTPTaskHandler {
16 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
17 | var continuation: CheckedContinuation<HTTPURLResponse, any Error>?
18 | var task: URLSessionUploadTask?
:
20 | }
21 |
22 | private let state = HTTPLockedState(State())
| `- error: type 'HTTPUploadRequest.State' does not conform to the 'Sendable' protocol
23 |
24 | static func send(_ request: URLRequest, fromFile file: URL, session: HTTPSession) async throws -> HTTPURLResponse {
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:22:25: error: type 'HTTPUploadRequest.State' does not conform to the 'Sendable' protocol
14 |
15 | private final class HTTPUploadRequest: HTTPTaskHandler {
16 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
17 | var continuation: CheckedContinuation<HTTPURLResponse, any Error>?
18 | var task: URLSessionUploadTask?
:
20 | }
21 |
22 | private let state = HTTPLockedState(State())
| `- error: type 'HTTPUploadRequest.State' does not conform to the 'Sendable' protocol
23 |
24 | static func send(_ request: URLRequest, fromFile file: URL, session: HTTPSession) async throws -> HTTPURLResponse {
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:17:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | private final class HTTPUploadRequest: HTTPTaskHandler {
16 | private struct State {
17 | var continuation: CheckedContinuation<HTTPURLResponse, any Error>?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | var task: URLSessionUploadTask?
19 | var cancelled = false
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/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:18:19: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private struct State {
17 | var continuation: CheckedContinuation<HTTPURLResponse, any Error>?
18 | var task: URLSessionUploadTask?
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | var cancelled = false
20 | }
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
| `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:22:17: error: type 'HTTPUploadRequest.State' does not conform to the 'Sendable' protocol
14 |
15 | private final class HTTPUploadRequest: HTTPTaskHandler {
16 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
17 | var continuation: CheckedContinuation<HTTPURLResponse, any Error>?
18 | var task: URLSessionUploadTask?
:
20 | }
21 |
22 | private let state = HTTPLockedState(State())
| `- error: type 'HTTPUploadRequest.State' does not conform to the 'Sendable' protocol
23 |
24 | static func send(_ request: URLRequest, fromFile file: URL, session: HTTPSession) async throws -> HTTPURLResponse {
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | private let state = HTTPLockedState(State())
23 |
24 | static func send(_ request: URLRequest, fromFile file: URL, session: HTTPSession) async throws -> HTTPURLResponse {
| `- error: cannot find type 'URLRequest' in scope
25 | let delegate = HTTPUploadRequest()
26 | return try await withTaskCancellationHandler {
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:24:103: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | private let state = HTTPLockedState(State())
23 |
24 | static func send(_ request: URLRequest, fromFile file: URL, session: HTTPSession) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let delegate = HTTPUploadRequest()
26 | return try await withTaskCancellationHandler {
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/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:49:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
47 | func urlSession(
48 | _: URLSession, dataTask _: URLSessionDataTask, didReceive response: URLResponse,
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
50 | ) {
51 | state.withLock { state in
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:48:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _: URLSession, dataTask _: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:48:36: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _: URLSession, dataTask _: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:48:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _: URLSession, dataTask _: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:63:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |
62 | /// The response is cancelled at headers; its body is never retained.
63 | func urlSession(_: URLSession, dataTask _: URLSessionDataTask, didReceive _: Data) {}
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 |
65 | func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: (any 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/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:63:48: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |
62 | /// The response is cancelled at headers; its body is never retained.
63 | func urlSession(_: URLSession, dataTask _: URLSessionDataTask, didReceive _: Data) {}
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 |
65 | func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: (any Error)?) {
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/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:65:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | func urlSession(_: URLSession, dataTask _: URLSessionDataTask, didReceive _: Data) {}
64 |
65 | func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | state.withLock { state in
67 | defer {
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/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:65:44: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | func urlSession(_: URLSession, dataTask _: URLSessionDataTask, didReceive _: Data) {}
64 |
65 | func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | state.withLock { state in
67 | defer {
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/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:22:17: error: stored property 'state' of 'Sendable'-conforming class 'HTTPUploadRequest' contains non-Sendable type 'HTTPUploadRequest.State'
14 |
15 | private final class HTTPUploadRequest: HTTPTaskHandler {
16 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
17 | var continuation: CheckedContinuation<HTTPURLResponse, any Error>?
18 | var task: URLSessionUploadTask?
:
20 | }
21 |
22 | private let state = HTTPLockedState(State())
| `- error: stored property 'state' of 'Sendable'-conforming class 'HTTPUploadRequest' contains non-Sendable type 'HTTPUploadRequest.State'
23 |
24 | static func send(_ request: URLRequest, fromFile file: URL, session: HTTPSession) async throws -> HTTPURLResponse {
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:29:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:28:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
26 | return try await withTaskCancellationHandler {
27 | try await withCheckedThrowingContinuation { continuation in
28 | let task = session.session.uploadTask(with: request, fromFile: file)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
29 | session.router.register(delegate, for: task)
30 | delegate.state.withLock { state in
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:42:29: error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
40 | delegate.state.withLock { state in
41 | state.cancelled = true
42 | state.task?.cancel()
| `- error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
43 | }
44 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:52:36: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
50 | ) {
51 | state.withLock { state in
52 | if let http = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
53 | state.continuation?.resume(returning: http)
54 | } else {
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:51:15: error: type 'HTTPUploadRequest.State' does not conform to the 'Sendable' protocol
14 |
15 | private final class HTTPUploadRequest: HTTPTaskHandler {
16 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
17 | var continuation: CheckedContinuation<HTTPURLResponse, any Error>?
18 | var task: URLSessionUploadTask?
:
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
51 | state.withLock { state in
| `- error: type 'HTTPUploadRequest.State' does not conform to the 'Sendable' protocol
52 | if let http = response as? HTTPURLResponse {
53 | state.continuation?.resume(returning: http)
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:52:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | ) {
51 | state.withLock { state in
52 | if let http = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | state.continuation?.resume(returning: http)
54 | } else {
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/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:59:28: error: cannot infer contextual base in reference to member 'cancel'
57 | state.continuation = nil
58 | }
59 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
60 | }
61 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPFileUpload.swift:66:15: error: type 'HTTPUploadRequest.State' does not conform to the 'Sendable' protocol
14 |
15 | private final class HTTPUploadRequest: HTTPTaskHandler {
16 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
17 | var continuation: CheckedContinuation<HTTPURLResponse, any Error>?
18 | var task: URLSessionUploadTask?
:
64 |
65 | func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: (any Error)?) {
66 | state.withLock { state in
| `- error: type 'HTTPUploadRequest.State' does not conform to the 'Sendable' protocol
67 | defer {
68 | state.continuation = nil
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:13:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
13 | var response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | var responseSize: UInt64 = 0
15 | var failure: (any Error)?
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/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:16:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | var responseSize: UInt64 = 0
15 | var failure: (any Error)?
16 | var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | var cancelled = false
18 | }
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/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:20:25: error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
18 | }
19 |
20 | private let state = HTTPLockedState(State())
| `- error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
21 | private let offset: UInt64
22 | private let count: Int
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:20:25: error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
18 | }
19 |
20 | private let state = HTTPLockedState(State())
| `- error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
21 | private let offset: UInt64
22 | private let count: Int
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:20:17: error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
18 | }
19 |
20 | private let state = HTTPLockedState(State())
| `- error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
21 | private let offset: UInt64
22 | private let count: Int
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:61:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 | func urlSession(
60 | _: URLSession, dataTask _: URLSessionDataTask, didReceive response: URLResponse,
61 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | ) {
63 | do {
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:60:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | func urlSession(
60 | _: URLSession, dataTask _: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
62 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:60:36: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | func urlSession(
60 | _: URLSession, dataTask _: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
62 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:60:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | func urlSession(
60 | _: URLSession, dataTask _: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
62 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:78:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | }
77 |
78 | func urlSession(_: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let cancel = state.withLock { state in
80 | guard data.count <= count - state.bytes.count else {
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/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:78:46: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | }
77 |
78 | func urlSession(_: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let cancel = state.withLock { state in
80 | guard data.count <= count - state.bytes.count else {
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/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:94:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | }
93 |
94 | func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 | state.withLock { state in
96 | defer {
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/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:94:44: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | }
93 |
94 | func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 | state.withLock { state in
96 | defer {
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/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:20:17: error: stored property 'state' of 'Sendable'-conforming class 'HTTPRangeRequest' contains non-Sendable type 'HTTPRangeRequest.State'
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
18 | }
19 |
20 | private let state = HTTPLockedState(State())
| `- error: stored property 'state' of 'Sendable'-conforming class 'HTTPRangeRequest' contains non-Sendable type 'HTTPRangeRequest.State'
21 | private let offset: UInt64
22 | private let count: Int
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:54:29: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
52 | delegate.state.withLock { state in
53 | state.cancelled = true
54 | state.task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
55 | }
56 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:67:19: error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
65 | response, offset: offset, count: count, size: expectedSize, validator: validator
66 | )
67 | state.withLock { state in
| `- error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
68 | state.response = response
69 | state.responseSize = length
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:71:32: error: cannot infer contextual base in reference to member 'allow'
69 | state.responseSize = length
70 | }
71 | completionHandler(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
72 | } catch {
73 | state.withLock { $0.failure = error }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:73:19: error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
71 | completionHandler(.allow)
72 | } catch {
73 | state.withLock { $0.failure = error }
| `- error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
74 | completionHandler(.cancel)
75 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:74:32: error: cannot infer contextual base in reference to member 'cancel'
72 | } catch {
73 | state.withLock { $0.failure = error }
74 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
75 | }
76 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:79:28: error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
77 |
78 | func urlSession(_: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
79 | let cancel = state.withLock { state in
| `- error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
80 | guard data.count <= count - state.bytes.count else {
81 | if let response = state.response {
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:90:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
88 | }
89 | if cancel {
90 | dataTask.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
91 | }
92 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:109:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
107 | )
108 | } else if let response = state.response {
109 | let validator = (response as? HTTPURLResponse).flatMap(HTTPValidator.init)
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
110 | state.continuation?.resume(
111 | returning: HTTPRangeResponse(
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:95:15: error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
8 | /// The handle's session routes this task's callbacks here.
9 | final class HTTPRangeRequest: HTTPTaskHandler {
10 | private struct State {
| `- note: consider making struct 'State' conform to the 'Sendable' protocol
11 | var continuation: CheckedContinuation<HTTPRangeResponse, any Error>?
12 | var bytes = Data()
:
93 |
94 | func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: (any Error)?) {
95 | state.withLock { state in
| `- error: type 'HTTPRangeRequest.State' does not conform to the 'Sendable' protocol
96 | defer {
97 | state.continuation = nil
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPRangeRequest.swift:109:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | )
108 | } else if let response = state.response {
109 | let validator = (response as? HTTPURLResponse).flatMap(HTTPValidator.init)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | state.continuation?.resume(
111 | returning: HTTPRangeResponse(
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
[13/37] Compiling EXIFKit HTTPSession.swift
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:9:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// One URLSession per handle, so its requests reuse open connections instead of repeating TCP and TLS setup.
8 | final class HTTPSession: Sendable {
9 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Session callbacks are routed to the delegate registered for each task.
11 | let router = HTTPTaskRouter()
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:9:9: error: stored property 'session' of 'Sendable'-conforming class 'HTTPSession' has non-Sendable type 'AnyObject'
7 | /// One URLSession per handle, so its requests reuse open connections instead of repeating TCP and TLS setup.
8 | final class HTTPSession: Sendable {
9 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'HTTPSession' has non-Sendable type 'AnyObject'
10 | /// Session callbacks are routed to the delegate registered for each task.
11 | let router = HTTPTaskRouter()
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:29:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:31:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
33 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:31:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
33 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:32:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:32:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:35:39: error: cannot find type 'URLSessionDataDelegate' in scope
33 | }
34 |
35 | final class HTTPTaskRouter: NSObject, URLSessionDataDelegate, Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
36 | private let handlers = HTTPLockedState<[Int: any HTTPTaskHandler]>([:])
37 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:39:61: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |
38 | /// Register before resuming the task so no callback is missed.
39 | func register(_ handler: any HTTPTaskHandler, for task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | handlers.withLock { $0[task.taskIdentifier] = handler }
41 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:43:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | }
42 |
43 | private func handler(_ task: URLSessionTask) -> (any HTTPTaskHandler)? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | handlers.withLock { $0[task.taskIdentifier] }
45 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:49:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:55:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | handler(dataTask)?.urlSession(session, dataTask: dataTask, didReceive: data)
57 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:55:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | handler(dataTask)?.urlSession(session, dataTask: dataTask, didReceive: data)
57 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:59:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
61 | handler?.urlSession(session, task: task, didCompleteWithError: 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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:59:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
61 | handler?.urlSession(session, task: task, didCompleteWithError: 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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init() {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.urlCache = nil
16 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:16:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
14 | let config = URLSessionConfiguration.ephemeral
15 | config.urlCache = nil
16 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
17 | // Handle operations are serialized. Queue the next range on the existing HTTP/1.1
18 | // connection even if URLSession is still finishing the previous task's callback.
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:20:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | // connection even if URLSession is still finishing the previous task's callback.
19 | config.httpMaximumConnectionsPerHost = 1
20 | session = URLSession(configuration: config, delegate: router, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:20:86: error: 'nil' requires a contextual type
18 | // connection even if URLSession is still finishing the previous task's callback.
19 | config.httpMaximumConnectionsPerHost = 1
20 | session = URLSession(configuration: config, delegate: router, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
21 | }
22 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:23:22: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
21 | }
22 |
23 | deinit { session.invalidateAndCancel() }
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
24 | }
25 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:40:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
38 | /// Register before resuming the task so no callback is missed.
39 | func register(_ handler: any HTTPTaskHandler, for task: URLSessionTask) {
40 | handlers.withLock { $0[task.taskIdentifier] = handler }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
41 | }
42 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:44:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
42 |
43 | private func handler(_ task: URLSessionTask) -> (any HTTPTaskHandler)? {
44 | handlers.withLock { $0[task.taskIdentifier] }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
45 | }
46 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:51:80: error: cannot infer contextual base in reference to member 'cancel'
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
| `- error: cannot infer contextual base in reference to member 'cancel'
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
53 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:52:98: error: extra argument 'completionHandler' in call
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
| `- error: extra argument 'completionHandler' in call
53 | }
54 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:52:69: error: 'URLResponse' (aka 'AnyObject') is not convertible to 'Data'
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
| |- error: 'URLResponse' (aka 'AnyObject') is not convertible to 'Data'
| `- note: did you mean to use 'as!' to force downcast?
53 | }
54 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:60:71: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
61 | handler?.urlSession(session, task: task, didCompleteWithError: error)
62 | }
[14/37] Compiling EXIFKit InMemoryFileHandle.swift
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:9:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// One URLSession per handle, so its requests reuse open connections instead of repeating TCP and TLS setup.
8 | final class HTTPSession: Sendable {
9 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Session callbacks are routed to the delegate registered for each task.
11 | let router = HTTPTaskRouter()
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:9:9: error: stored property 'session' of 'Sendable'-conforming class 'HTTPSession' has non-Sendable type 'AnyObject'
7 | /// One URLSession per handle, so its requests reuse open connections instead of repeating TCP and TLS setup.
8 | final class HTTPSession: Sendable {
9 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'HTTPSession' has non-Sendable type 'AnyObject'
10 | /// Session callbacks are routed to the delegate registered for each task.
11 | let router = HTTPTaskRouter()
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:29:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:31:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
33 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:31:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
33 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:32:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:32:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:35:39: error: cannot find type 'URLSessionDataDelegate' in scope
33 | }
34 |
35 | final class HTTPTaskRouter: NSObject, URLSessionDataDelegate, Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
36 | private let handlers = HTTPLockedState<[Int: any HTTPTaskHandler]>([:])
37 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:39:61: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |
38 | /// Register before resuming the task so no callback is missed.
39 | func register(_ handler: any HTTPTaskHandler, for task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | handlers.withLock { $0[task.taskIdentifier] = handler }
41 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:43:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | }
42 |
43 | private func handler(_ task: URLSessionTask) -> (any HTTPTaskHandler)? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | handlers.withLock { $0[task.taskIdentifier] }
45 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:49:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:55:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | handler(dataTask)?.urlSession(session, dataTask: dataTask, didReceive: data)
57 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:55:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | handler(dataTask)?.urlSession(session, dataTask: dataTask, didReceive: data)
57 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:59:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
61 | handler?.urlSession(session, task: task, didCompleteWithError: 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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:59:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
61 | handler?.urlSession(session, task: task, didCompleteWithError: 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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init() {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.urlCache = nil
16 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:16:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
14 | let config = URLSessionConfiguration.ephemeral
15 | config.urlCache = nil
16 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
17 | // Handle operations are serialized. Queue the next range on the existing HTTP/1.1
18 | // connection even if URLSession is still finishing the previous task's callback.
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:20:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | // connection even if URLSession is still finishing the previous task's callback.
19 | config.httpMaximumConnectionsPerHost = 1
20 | session = URLSession(configuration: config, delegate: router, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:20:86: error: 'nil' requires a contextual type
18 | // connection even if URLSession is still finishing the previous task's callback.
19 | config.httpMaximumConnectionsPerHost = 1
20 | session = URLSession(configuration: config, delegate: router, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
21 | }
22 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:23:22: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
21 | }
22 |
23 | deinit { session.invalidateAndCancel() }
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
24 | }
25 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:40:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
38 | /// Register before resuming the task so no callback is missed.
39 | func register(_ handler: any HTTPTaskHandler, for task: URLSessionTask) {
40 | handlers.withLock { $0[task.taskIdentifier] = handler }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
41 | }
42 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:44:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
42 |
43 | private func handler(_ task: URLSessionTask) -> (any HTTPTaskHandler)? {
44 | handlers.withLock { $0[task.taskIdentifier] }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
45 | }
46 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:51:80: error: cannot infer contextual base in reference to member 'cancel'
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
| `- error: cannot infer contextual base in reference to member 'cancel'
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
53 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:52:98: error: extra argument 'completionHandler' in call
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
| `- error: extra argument 'completionHandler' in call
53 | }
54 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:52:69: error: 'URLResponse' (aka 'AnyObject') is not convertible to 'Data'
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
| |- error: 'URLResponse' (aka 'AnyObject') is not convertible to 'Data'
| `- note: did you mean to use 'as!' to force downcast?
53 | }
54 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:60:71: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
61 | handler?.urlSession(session, task: task, didCompleteWithError: error)
62 | }
[15/37] Compiling EXIFKit LocalFileHandle.swift
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:9:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// One URLSession per handle, so its requests reuse open connections instead of repeating TCP and TLS setup.
8 | final class HTTPSession: Sendable {
9 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Session callbacks are routed to the delegate registered for each task.
11 | let router = HTTPTaskRouter()
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:9:9: error: stored property 'session' of 'Sendable'-conforming class 'HTTPSession' has non-Sendable type 'AnyObject'
7 | /// One URLSession per handle, so its requests reuse open connections instead of repeating TCP and TLS setup.
8 | final class HTTPSession: Sendable {
9 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'HTTPSession' has non-Sendable type 'AnyObject'
10 | /// Session callbacks are routed to the delegate registered for each task.
11 | let router = HTTPTaskRouter()
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:29:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:31:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
33 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:31:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
33 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:32:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:32:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:35:39: error: cannot find type 'URLSessionDataDelegate' in scope
33 | }
34 |
35 | final class HTTPTaskRouter: NSObject, URLSessionDataDelegate, Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
36 | private let handlers = HTTPLockedState<[Int: any HTTPTaskHandler]>([:])
37 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:39:61: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |
38 | /// Register before resuming the task so no callback is missed.
39 | func register(_ handler: any HTTPTaskHandler, for task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | handlers.withLock { $0[task.taskIdentifier] = handler }
41 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:43:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | }
42 |
43 | private func handler(_ task: URLSessionTask) -> (any HTTPTaskHandler)? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | handlers.withLock { $0[task.taskIdentifier] }
45 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:49:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:55:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | handler(dataTask)?.urlSession(session, dataTask: dataTask, didReceive: data)
57 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:55:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | handler(dataTask)?.urlSession(session, dataTask: dataTask, didReceive: data)
57 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:59:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
61 | handler?.urlSession(session, task: task, didCompleteWithError: 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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:59:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
61 | handler?.urlSession(session, task: task, didCompleteWithError: 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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init() {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.urlCache = nil
16 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:16:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
14 | let config = URLSessionConfiguration.ephemeral
15 | config.urlCache = nil
16 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
17 | // Handle operations are serialized. Queue the next range on the existing HTTP/1.1
18 | // connection even if URLSession is still finishing the previous task's callback.
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:20:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | // connection even if URLSession is still finishing the previous task's callback.
19 | config.httpMaximumConnectionsPerHost = 1
20 | session = URLSession(configuration: config, delegate: router, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:20:86: error: 'nil' requires a contextual type
18 | // connection even if URLSession is still finishing the previous task's callback.
19 | config.httpMaximumConnectionsPerHost = 1
20 | session = URLSession(configuration: config, delegate: router, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
21 | }
22 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:23:22: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
21 | }
22 |
23 | deinit { session.invalidateAndCancel() }
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
24 | }
25 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:40:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
38 | /// Register before resuming the task so no callback is missed.
39 | func register(_ handler: any HTTPTaskHandler, for task: URLSessionTask) {
40 | handlers.withLock { $0[task.taskIdentifier] = handler }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
41 | }
42 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:44:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
42 |
43 | private func handler(_ task: URLSessionTask) -> (any HTTPTaskHandler)? {
44 | handlers.withLock { $0[task.taskIdentifier] }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
45 | }
46 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:51:80: error: cannot infer contextual base in reference to member 'cancel'
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
| `- error: cannot infer contextual base in reference to member 'cancel'
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
53 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:52:98: error: extra argument 'completionHandler' in call
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
| `- error: extra argument 'completionHandler' in call
53 | }
54 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:52:69: error: 'URLResponse' (aka 'AnyObject') is not convertible to 'Data'
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
| |- error: 'URLResponse' (aka 'AnyObject') is not convertible to 'Data'
| `- note: did you mean to use 'as!' to force downcast?
53 | }
54 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:60:71: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
61 | handler?.urlSession(session, task: task, didCompleteWithError: error)
62 | }
[16/37] Compiling EXIFKit HEIF.swift
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:9:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// One URLSession per handle, so its requests reuse open connections instead of repeating TCP and TLS setup.
8 | final class HTTPSession: Sendable {
9 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Session callbacks are routed to the delegate registered for each task.
11 | let router = HTTPTaskRouter()
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:9:9: error: stored property 'session' of 'Sendable'-conforming class 'HTTPSession' has non-Sendable type 'AnyObject'
7 | /// One URLSession per handle, so its requests reuse open connections instead of repeating TCP and TLS setup.
8 | final class HTTPSession: Sendable {
9 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'HTTPSession' has non-Sendable type 'AnyObject'
10 | /// Session callbacks are routed to the delegate registered for each task.
11 | let router = HTTPTaskRouter()
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:29:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:31:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
33 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:31:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
33 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:32:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:32:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:35:39: error: cannot find type 'URLSessionDataDelegate' in scope
33 | }
34 |
35 | final class HTTPTaskRouter: NSObject, URLSessionDataDelegate, Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
36 | private let handlers = HTTPLockedState<[Int: any HTTPTaskHandler]>([:])
37 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:39:61: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |
38 | /// Register before resuming the task so no callback is missed.
39 | func register(_ handler: any HTTPTaskHandler, for task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | handlers.withLock { $0[task.taskIdentifier] = handler }
41 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:43:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | }
42 |
43 | private func handler(_ task: URLSessionTask) -> (any HTTPTaskHandler)? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | handlers.withLock { $0[task.taskIdentifier] }
45 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:49:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:55:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | handler(dataTask)?.urlSession(session, dataTask: dataTask, didReceive: data)
57 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:55:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | handler(dataTask)?.urlSession(session, dataTask: dataTask, didReceive: data)
57 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:59:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
61 | handler?.urlSession(session, task: task, didCompleteWithError: 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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:59:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
61 | handler?.urlSession(session, task: task, didCompleteWithError: 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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init() {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.urlCache = nil
16 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:16:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
14 | let config = URLSessionConfiguration.ephemeral
15 | config.urlCache = nil
16 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
17 | // Handle operations are serialized. Queue the next range on the existing HTTP/1.1
18 | // connection even if URLSession is still finishing the previous task's callback.
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:20:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | // connection even if URLSession is still finishing the previous task's callback.
19 | config.httpMaximumConnectionsPerHost = 1
20 | session = URLSession(configuration: config, delegate: router, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:20:86: error: 'nil' requires a contextual type
18 | // connection even if URLSession is still finishing the previous task's callback.
19 | config.httpMaximumConnectionsPerHost = 1
20 | session = URLSession(configuration: config, delegate: router, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
21 | }
22 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:23:22: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
21 | }
22 |
23 | deinit { session.invalidateAndCancel() }
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
24 | }
25 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:40:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
38 | /// Register before resuming the task so no callback is missed.
39 | func register(_ handler: any HTTPTaskHandler, for task: URLSessionTask) {
40 | handlers.withLock { $0[task.taskIdentifier] = handler }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
41 | }
42 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:44:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
42 |
43 | private func handler(_ task: URLSessionTask) -> (any HTTPTaskHandler)? {
44 | handlers.withLock { $0[task.taskIdentifier] }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
45 | }
46 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:51:80: error: cannot infer contextual base in reference to member 'cancel'
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
| `- error: cannot infer contextual base in reference to member 'cancel'
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
53 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:52:98: error: extra argument 'completionHandler' in call
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
| `- error: extra argument 'completionHandler' in call
53 | }
54 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:52:69: error: 'URLResponse' (aka 'AnyObject') is not convertible to 'Data'
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
| |- error: 'URLResponse' (aka 'AnyObject') is not convertible to 'Data'
| `- note: did you mean to use 'as!' to force downcast?
53 | }
54 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:60:71: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
61 | handler?.urlSession(session, task: task, didCompleteWithError: error)
62 | }
[17/37] Compiling EXIFKit ISOBMFF.swift
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:9:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// One URLSession per handle, so its requests reuse open connections instead of repeating TCP and TLS setup.
8 | final class HTTPSession: Sendable {
9 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Session callbacks are routed to the delegate registered for each task.
11 | let router = HTTPTaskRouter()
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:9:9: error: stored property 'session' of 'Sendable'-conforming class 'HTTPSession' has non-Sendable type 'AnyObject'
7 | /// One URLSession per handle, so its requests reuse open connections instead of repeating TCP and TLS setup.
8 | final class HTTPSession: Sendable {
9 | let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'HTTPSession' has non-Sendable type 'AnyObject'
10 | /// Session callbacks are routed to the delegate registered for each task.
11 | let router = HTTPTaskRouter()
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:29:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:28:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | protocol HTTPTaskHandler: Sendable {
27 | func urlSession(
28 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:31:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
33 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:31:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
33 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:32:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:32:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | )
31 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
32 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:35:39: error: cannot find type 'URLSessionDataDelegate' in scope
33 | }
34 |
35 | final class HTTPTaskRouter: NSObject, URLSessionDataDelegate, Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
36 | private let handlers = HTTPLockedState<[Int: any HTTPTaskHandler]>([:])
37 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:39:61: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |
38 | /// Register before resuming the task so no callback is missed.
39 | func register(_ handler: any HTTPTaskHandler, for task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | handlers.withLock { $0[task.taskIdentifier] = handler }
41 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:43:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | }
42 |
43 | private func handler(_ task: URLSessionTask) -> (any HTTPTaskHandler)? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | handlers.withLock { $0[task.taskIdentifier] }
45 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:49:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:48:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | func urlSession(
48 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:55:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | handler(dataTask)?.urlSession(session, dataTask: dataTask, didReceive: data)
57 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:55:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | handler(dataTask)?.urlSession(session, dataTask: dataTask, didReceive: data)
57 | }
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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:59:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
61 | handler?.urlSession(session, task: task, didCompleteWithError: 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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:59:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
61 | handler?.urlSession(session, task: task, didCompleteWithError: 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/EXIFKit/FileHandles/HTTP/HTTPSession.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init() {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.urlCache = nil
16 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:16:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
14 | let config = URLSessionConfiguration.ephemeral
15 | config.urlCache = nil
16 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
17 | // Handle operations are serialized. Queue the next range on the existing HTTP/1.1
18 | // connection even if URLSession is still finishing the previous task's callback.
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:20:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | // connection even if URLSession is still finishing the previous task's callback.
19 | config.httpMaximumConnectionsPerHost = 1
20 | session = URLSession(configuration: config, delegate: router, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:20:86: error: 'nil' requires a contextual type
18 | // connection even if URLSession is still finishing the previous task's callback.
19 | config.httpMaximumConnectionsPerHost = 1
20 | session = URLSession(configuration: config, delegate: router, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
21 | }
22 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:23:22: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
21 | }
22 |
23 | deinit { session.invalidateAndCancel() }
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
24 | }
25 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:40:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
38 | /// Register before resuming the task so no callback is missed.
39 | func register(_ handler: any HTTPTaskHandler, for task: URLSessionTask) {
40 | handlers.withLock { $0[task.taskIdentifier] = handler }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
41 | }
42 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:44:37: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
42 |
43 | private func handler(_ task: URLSessionTask) -> (any HTTPTaskHandler)? {
44 | handlers.withLock { $0[task.taskIdentifier] }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
45 | }
46 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:51:80: error: cannot infer contextual base in reference to member 'cancel'
49 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
| `- error: cannot infer contextual base in reference to member 'cancel'
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
53 | }
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:52:98: error: extra argument 'completionHandler' in call
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
| `- error: extra argument 'completionHandler' in call
53 | }
54 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:52:69: error: 'URLResponse' (aka 'AnyObject') is not convertible to 'Data'
50 | ) {
51 | guard let handler = handler(dataTask) else { return completionHandler(.cancel) }
52 | handler.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
| |- error: 'URLResponse' (aka 'AnyObject') is not convertible to 'Data'
| `- note: did you mean to use 'as!' to force downcast?
53 | }
54 |
/host/spi-builder-workspace/Sources/EXIFKit/FileHandles/HTTP/HTTPSession.swift:60:71: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
58 |
59 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
60 | let handler = handlers.withLock { $0.removeValue(forKey: task.taskIdentifier) }
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
61 | handler?.urlSession(session, task: task, didCompleteWithError: error)
62 | }
[18/37] Compiling EXIFKit MetadataReader.swift
[19/37] Compiling EXIFKit ByteReader.swift
[20/37] Compiling EXIFKit ContainerIndex.swift
[21/37] Compiling EXIFKit Types.swift
[22/37] Compiling EXIFKit TIFFFile.swift
[23/37] Compiling EXIFKit TIFFStructure+Convenience.swift
[24/37] Compiling EXIFKit TIFFStructure+CoreLocation.swift
[25/37] Compiling EXIFKit Tags.swift
[26/37] Compiling EXIFKit ImageColorSpace.swift
[27/37] Compiling EXIFKit ImageOrientation.swift
[28/37] Compiling EXIFKit LensMake.swift
[29/37] Compiling EXIFKit TIFF.swift
[30/37] Compiling EXIFKit Thumbnail.swift
[31/37] Compiling EXIFKit WebP.swift
[32/37] Compiling EXIFKit FileEditing.swift
[33/37] Compiling EXIFKit MetadataEditing.swift
[34/37] Compiling EXIFKit JXL.swift
[35/37] Compiling EXIFKit JPEG.swift
[36/37] Compiling EXIFKit PNG.swift
[37/37] Compiling EXIFKit CR3.swift
BUILD FAILURE 6.3 wasm