The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-xet, reference main (4395b0), with Swift 6.2 for Wasm on 28 Jun 2026 09:48:50 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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DePasqualeOrg/swift-xet.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/DePasqualeOrg/swift-xet
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4395b09 Align with xet-core (#5)
Cloned https://github.com/DePasqualeOrg/swift-xet.git
Revision (git rev-parse @):
4395b0900c1d45614d323b9ba1109cd46dc1c1d7
SUCCESS checkout https://github.com/DePasqualeOrg/swift-xet.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/DePasqualeOrg/swift-xet.git
Running build ...
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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:dc8dffc38f1d92eca7ee5312617822470123661393ed20672e77964f9dcaaffb
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Compiling Xet LZ4.swift
[4/8] Compiling Xet BG4.swift
[5/8] Emitting module Xet
/host/spi-builder-workspace/Sources/Xet/CAS.swift:12:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | /// that describes how to reassemble a file from its constituent chunks.
 11 | struct CASClient: Sendable {
 12 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private static let reconstructionVersionState = ReconstructionVersionState()
 14 |
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/Xet/CAS.swift:16:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     /// Creates a CAS client with the specified URL session.
 16 |     init(urlSession: URLSession = .shared) {
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |         self.urlSession = urlSession
 18 |     }
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/Xet/CAS.swift:16:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |
 15 |     /// Creates a CAS client with the specified URL session.
 16 |     init(urlSession: URLSession = .shared) {
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |         self.urlSession = urlSession
 18 |     }
/host/spi-builder-workspace/Sources/Xet/CAS.swift:16:36: error: value of type '_' expected to be instance of class or class-constrained type
 14 |
 15 |     /// Creates a CAS client with the specified URL session.
 16 |     init(urlSession: URLSession = .shared) {
    |                                    `- error: value of type '_' expected to be instance of class or class-constrained type
 17 |         self.urlSession = urlSession
 18 |     }
/host/spi-builder-workspace/Sources/Xet/CAS.swift:137:22: error: cannot find type 'URLRequest' in scope
135 |
136 |     private func reconstructionWithRetry(
137 |         for request: URLRequest,
    |                      `- error: cannot find type 'URLRequest' in scope
138 |         apiVersion: Int,
139 |         enableMultiRangeFetching: Bool,
/host/spi-builder-workspace/Sources/Xet/CAS.swift:12:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'CASClient' has non-Sendable type 'URLSession' (aka 'AnyObject')
 10 | /// that describes how to reassemble a file from its constituent chunks.
 11 | struct CASClient: Sendable {
 12 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'CASClient' has non-Sendable type 'URLSession' (aka 'AnyObject')
 13 |     private static let reconstructionVersionState = ReconstructionVersionState()
 14 |
/host/spi-builder-workspace/Sources/Xet/Xet.swift:112:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 110 |
 111 |     /// URL session for xorb data fetches, using the fetch delegate.
 112 |     private let urlSession: URLSession
     |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 113 |
 114 |     /// URL session for CAS reconstruction and token requests (no delegate).
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/Xet/Xet.swift:115:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 113 |
 114 |     /// URL session for CAS reconstruction and token requests (no delegate).
 115 |     private let controlSession: URLSession
     |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 116 |
 117 |     /// Downloader configuration settings.
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/Xet/Xet.swift:225:85: error: cannot find type 'URLRequest' in scope
 223 |     }
 224 |
 225 |     private static func applyHeaders(_ headers: [String: String], to request: inout URLRequest) {
     |                                                                                     `- error: cannot find type 'URLRequest' in scope
 226 |         for (key, value) in headers {
 227 |             request.setValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:786:18: error: cannot find type 'URLRequest' in scope
 784 |         termHash: String,
 785 |         fetchInfo: CASClient.ReconstructionResponse.FetchInfo,
 786 |         request: URLRequest,
     |                  `- error: cannot find type 'URLRequest' in scope
 787 |         requestGeneration: Int,
 788 |         expectedUnpackedLength: Int?,
/host/spi-builder-workspace/Sources/Xet/Xet.swift:911:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 909 |     private func decodeXorbResponse(
 910 |         _ responseData: Data,
 911 |         response: HTTPURLResponse,
     |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 912 |         fetchInfo: CASClient.ReconstructionResponse.FetchInfo,
 913 |         expectedUnpackedLength: Int?
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/Xet/Xet.swift:1111:22: error: cannot find type 'URLRequest' in scope
1109 |     private struct RefreshedFetchRequest: Sendable {
1110 |         let generation: Int
1111 |         let request: URLRequest
     |                      `- error: cannot find type 'URLRequest' in scope
1112 |     }
1113 |
/host/spi-builder-workspace/Sources/Xet/Xet.swift:112:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'XetDownloader' has non-Sendable type 'URLSession' (aka 'AnyObject')
 110 |
 111 |     /// URL session for xorb data fetches, using the fetch delegate.
 112 |     private let urlSession: URLSession
     |                 `- error: stored property 'urlSession' of 'Sendable'-conforming class 'XetDownloader' has non-Sendable type 'URLSession' (aka 'AnyObject')
 113 |
 114 |     /// URL session for CAS reconstruction and token requests (no delegate).
/host/spi-builder-workspace/Sources/Xet/Xet.swift:115:17: error: stored property 'controlSession' of 'Sendable'-conforming class 'XetDownloader' has non-Sendable type 'URLSession' (aka 'AnyObject')
 113 |
 114 |     /// URL session for CAS reconstruction and token requests (no delegate).
 115 |     private let controlSession: URLSession
     |                 `- error: stored property 'controlSession' of 'Sendable'-conforming class 'XetDownloader' has non-Sendable type 'URLSession' (aka 'AnyObject')
 116 |
 117 |     /// Downloader configuration settings.
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1301:46: error: cannot find type 'URLSessionDataDelegate' in scope
1299 | /// URLSession data delegate that accumulates received data per task
1300 | /// and reports download progress as bytes arrive.
1301 | private final class FetchDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
     |                                              `- error: cannot find type 'URLSessionDataDelegate' in scope
1302 |     private let lock = NSLock()
1303 |
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1306:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1304 |     private struct TaskState {
1305 |         var data: Data
1306 |         var continuation: CheckedContinuation<(Data, URLResponse), Error>
     |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1307 |         var progressHandler: (@Sendable (Int64, Int64) -> Void)?
1308 |         var response: URLResponse?
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/Xet/Xet.swift:1308:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1306 |         var continuation: CheckedContinuation<(Data, URLResponse), Error>
1307 |         var progressHandler: (@Sendable (Int64, Int64) -> Void)?
1308 |         var response: URLResponse?
     |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1309 |     }
1310 |
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/Xet/Xet.swift:1316:22: error: cannot find type 'URLRequest' in scope
1314 |     /// delegate receives `didReceive data:` callbacks for progress tracking.
1315 |     func data(
1316 |         for request: URLRequest,
     |                      `- error: cannot find type 'URLRequest' in scope
1317 |         session: URLSession,
1318 |         progressHandler: (@Sendable (Int64, Int64) -> Void)? = nil
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1317:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1315 |     func data(
1316 |         for request: URLRequest,
1317 |         session: URLSession,
     |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1318 |         progressHandler: (@Sendable (Int64, Int64) -> Void)? = nil
1319 |     ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1319:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1317 |         session: URLSession,
1318 |         progressHandler: (@Sendable (Int64, Int64) -> Void)? = nil
1319 |     ) async throws -> (Data, URLResponse) {
     |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1320 |         let taskHolder = TaskHolder()
1321 |         return try await withTaskCancellationHandler {
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/Xet/Xet.swift:1347:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1345 |     private final class TaskHolder: @unchecked Sendable {
1346 |         private let lock = NSLock()
1347 |         private var task: URLSessionDataTask?
     |                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1348 |
1349 |         func setTask(_ task: URLSessionDataTask) {
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/Xet/Xet.swift:1349:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1347 |         private var task: URLSessionDataTask?
1348 |
1349 |         func setTask(_ task: URLSessionDataTask) {
     |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1350 |             lock.lock()
1351 |             self.task = task
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/Xet/Xet.swift:1367:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1365 |         dataTask: URLSessionDataTask,
1366 |         didReceive response: URLResponse,
1367 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
     |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1368 |     ) {
1369 |         lock.withLock {
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1364:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1362 |
1363 |     func urlSession(
1364 |         _ session: URLSession,
     |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1365 |         dataTask: URLSessionDataTask,
1366 |         didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1365:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1363 |     func urlSession(
1364 |         _ session: URLSession,
1365 |         dataTask: URLSessionDataTask,
     |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1366 |         didReceive response: URLResponse,
1367 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1366:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1364 |         _ session: URLSession,
1365 |         dataTask: URLSessionDataTask,
1366 |         didReceive response: URLResponse,
     |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1367 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
1368 |     ) {
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/Xet/Xet.swift:1376:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1374 |
1375 |     func urlSession(
1376 |         _ session: URLSession,
     |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1377 |         dataTask: URLSessionDataTask,
1378 |         didReceive receivedData: Data
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1377:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1375 |     func urlSession(
1376 |         _ session: URLSession,
1377 |         dataTask: URLSessionDataTask,
     |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1378 |         didReceive receivedData: Data
1379 |     ) {
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/Xet/Xet.swift:1393:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1391 |
1392 |     func urlSession(
1393 |         _ session: URLSession,
     |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1394 |         task: URLSessionTask,
1395 |         didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1394:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1392 |     func urlSession(
1393 |         _ session: URLSession,
1394 |         task: URLSessionTask,
     |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1395 |         didCompleteWithError error: Error?
1396 |     ) {
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/Xet/Xet.swift:1522:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1520 |     actor TokenProvider {
1521 |         /// URL session used for token refresh requests.
1522 |         private let urlSession: URLSession
     |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1523 |
1524 |         /// Window before expiration to treat tokens as stale.
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/Xet/Xet.swift:1559:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1557 |         ///     Defaults to 60 seconds.
1558 |         init(
1559 |             urlSession: URLSession = .shared,
     |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1560 |             safetyWindow: TimeInterval = 60
1561 |         ) {
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/Xet/Xet.swift:1559:39: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
1557 |         ///     Defaults to 60 seconds.
1558 |         init(
1559 |             urlSession: URLSession = .shared,
     |                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
1560 |             safetyWindow: TimeInterval = 60
1561 |         ) {
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1559:39: error: value of type '_' expected to be instance of class or class-constrained type
1557 |         ///     Defaults to 60 seconds.
1558 |         init(
1559 |             urlSession: URLSession = .shared,
     |                                       `- error: value of type '_' expected to be instance of class or class-constrained type
1560 |             safetyWindow: TimeInterval = 60
1561 |         ) {
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1638:26: error: cannot find type 'URLRequest' in scope
1636 |
1637 |         private static func connectionInfoWithRetry(
1638 |             for request: URLRequest,
     |                          `- error: cannot find type 'URLRequest' in scope
1639 |             urlSession: URLSession,
1640 |             maxRetries: Int,
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1639:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1637 |         private static func connectionInfoWithRetry(
1638 |             for request: URLRequest,
1639 |             urlSession: URLSession,
     |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1640 |             maxRetries: Int,
1641 |             retryBaseDelay: TimeInterval,
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/Xet/Xet.swift:1708:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1706 |         }
1707 |
1708 |         private static func connectionInfo(from response: HTTPURLResponse) throws -> ConnectionInfo? {
     |                                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1709 |             guard
1710 |                 let casURLString = response.value(forHTTPHeaderField: "X-Xet-Cas-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
[6/8] Compiling Xet Xorb.swift
[7/8] Compiling Xet Xet.swift
/host/spi-builder-workspace/Sources/Xet/Xet.swift:112:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 110 |
 111 |     /// URL session for xorb data fetches, using the fetch delegate.
 112 |     private let urlSession: URLSession
     |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 113 |
 114 |     /// URL session for CAS reconstruction and token requests (no delegate).
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/Xet/Xet.swift:115:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 113 |
 114 |     /// URL session for CAS reconstruction and token requests (no delegate).
 115 |     private let controlSession: URLSession
     |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 116 |
 117 |     /// Downloader configuration settings.
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/Xet/Xet.swift:225:85: error: cannot find type 'URLRequest' in scope
 223 |     }
 224 |
 225 |     private static func applyHeaders(_ headers: [String: String], to request: inout URLRequest) {
     |                                                                                     `- error: cannot find type 'URLRequest' in scope
 226 |         for (key, value) in headers {
 227 |             request.setValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:786:18: error: cannot find type 'URLRequest' in scope
 784 |         termHash: String,
 785 |         fetchInfo: CASClient.ReconstructionResponse.FetchInfo,
 786 |         request: URLRequest,
     |                  `- error: cannot find type 'URLRequest' in scope
 787 |         requestGeneration: Int,
 788 |         expectedUnpackedLength: Int?,
/host/spi-builder-workspace/Sources/Xet/Xet.swift:911:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 909 |     private func decodeXorbResponse(
 910 |         _ responseData: Data,
 911 |         response: HTTPURLResponse,
     |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 912 |         fetchInfo: CASClient.ReconstructionResponse.FetchInfo,
 913 |         expectedUnpackedLength: Int?
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/Xet/Xet.swift:1111:22: error: cannot find type 'URLRequest' in scope
1109 |     private struct RefreshedFetchRequest: Sendable {
1110 |         let generation: Int
1111 |         let request: URLRequest
     |                      `- error: cannot find type 'URLRequest' in scope
1112 |     }
1113 |
/host/spi-builder-workspace/Sources/Xet/Xet.swift:112:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'XetDownloader' has non-Sendable type 'URLSession' (aka 'AnyObject')
 110 |
 111 |     /// URL session for xorb data fetches, using the fetch delegate.
 112 |     private let urlSession: URLSession
     |                 `- error: stored property 'urlSession' of 'Sendable'-conforming class 'XetDownloader' has non-Sendable type 'URLSession' (aka 'AnyObject')
 113 |
 114 |     /// URL session for CAS reconstruction and token requests (no delegate).
/host/spi-builder-workspace/Sources/Xet/Xet.swift:115:17: error: stored property 'controlSession' of 'Sendable'-conforming class 'XetDownloader' has non-Sendable type 'URLSession' (aka 'AnyObject')
 113 |
 114 |     /// URL session for CAS reconstruction and token requests (no delegate).
 115 |     private let controlSession: URLSession
     |                 `- error: stored property 'controlSession' of 'Sendable'-conforming class 'XetDownloader' has non-Sendable type 'URLSession' (aka 'AnyObject')
 116 |
 117 |     /// Downloader configuration settings.
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1301:46: error: cannot find type 'URLSessionDataDelegate' in scope
1299 | /// URLSession data delegate that accumulates received data per task
1300 | /// and reports download progress as bytes arrive.
1301 | private final class FetchDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
     |                                              `- error: cannot find type 'URLSessionDataDelegate' in scope
1302 |     private let lock = NSLock()
1303 |
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1306:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1304 |     private struct TaskState {
1305 |         var data: Data
1306 |         var continuation: CheckedContinuation<(Data, URLResponse), Error>
     |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1307 |         var progressHandler: (@Sendable (Int64, Int64) -> Void)?
1308 |         var response: URLResponse?
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/Xet/Xet.swift:1308:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1306 |         var continuation: CheckedContinuation<(Data, URLResponse), Error>
1307 |         var progressHandler: (@Sendable (Int64, Int64) -> Void)?
1308 |         var response: URLResponse?
     |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1309 |     }
1310 |
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/Xet/Xet.swift:1316:22: error: cannot find type 'URLRequest' in scope
1314 |     /// delegate receives `didReceive data:` callbacks for progress tracking.
1315 |     func data(
1316 |         for request: URLRequest,
     |                      `- error: cannot find type 'URLRequest' in scope
1317 |         session: URLSession,
1318 |         progressHandler: (@Sendable (Int64, Int64) -> Void)? = nil
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1317:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1315 |     func data(
1316 |         for request: URLRequest,
1317 |         session: URLSession,
     |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1318 |         progressHandler: (@Sendable (Int64, Int64) -> Void)? = nil
1319 |     ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1319:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1317 |         session: URLSession,
1318 |         progressHandler: (@Sendable (Int64, Int64) -> Void)? = nil
1319 |     ) async throws -> (Data, URLResponse) {
     |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1320 |         let taskHolder = TaskHolder()
1321 |         return try await withTaskCancellationHandler {
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/Xet/Xet.swift:1347:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1345 |     private final class TaskHolder: @unchecked Sendable {
1346 |         private let lock = NSLock()
1347 |         private var task: URLSessionDataTask?
     |                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1348 |
1349 |         func setTask(_ task: URLSessionDataTask) {
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/Xet/Xet.swift:1349:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1347 |         private var task: URLSessionDataTask?
1348 |
1349 |         func setTask(_ task: URLSessionDataTask) {
     |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1350 |             lock.lock()
1351 |             self.task = task
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/Xet/Xet.swift:1367:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1365 |         dataTask: URLSessionDataTask,
1366 |         didReceive response: URLResponse,
1367 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
     |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1368 |     ) {
1369 |         lock.withLock {
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1364:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1362 |
1363 |     func urlSession(
1364 |         _ session: URLSession,
     |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1365 |         dataTask: URLSessionDataTask,
1366 |         didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1365:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1363 |     func urlSession(
1364 |         _ session: URLSession,
1365 |         dataTask: URLSessionDataTask,
     |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1366 |         didReceive response: URLResponse,
1367 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1366:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1364 |         _ session: URLSession,
1365 |         dataTask: URLSessionDataTask,
1366 |         didReceive response: URLResponse,
     |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1367 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
1368 |     ) {
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/Xet/Xet.swift:1376:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1374 |
1375 |     func urlSession(
1376 |         _ session: URLSession,
     |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1377 |         dataTask: URLSessionDataTask,
1378 |         didReceive receivedData: Data
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1377:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1375 |     func urlSession(
1376 |         _ session: URLSession,
1377 |         dataTask: URLSessionDataTask,
     |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1378 |         didReceive receivedData: Data
1379 |     ) {
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/Xet/Xet.swift:1393:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1391 |
1392 |     func urlSession(
1393 |         _ session: URLSession,
     |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1394 |         task: URLSessionTask,
1395 |         didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1394:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1392 |     func urlSession(
1393 |         _ session: URLSession,
1394 |         task: URLSessionTask,
     |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1395 |         didCompleteWithError error: Error?
1396 |     ) {
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/Xet/Xet.swift:1522:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1520 |     actor TokenProvider {
1521 |         /// URL session used for token refresh requests.
1522 |         private let urlSession: URLSession
     |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1523 |
1524 |         /// Window before expiration to treat tokens as stale.
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/Xet/Xet.swift:1559:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1557 |         ///     Defaults to 60 seconds.
1558 |         init(
1559 |             urlSession: URLSession = .shared,
     |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1560 |             safetyWindow: TimeInterval = 60
1561 |         ) {
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/Xet/Xet.swift:1559:39: error: value of type '_' expected to be instance of class or class-constrained type
1557 |         ///     Defaults to 60 seconds.
1558 |         init(
1559 |             urlSession: URLSession = .shared,
     |                                       `- error: value of type '_' expected to be instance of class or class-constrained type
1560 |             safetyWindow: TimeInterval = 60
1561 |         ) {
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1559:39: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
1557 |         ///     Defaults to 60 seconds.
1558 |         init(
1559 |             urlSession: URLSession = .shared,
     |                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
1560 |             safetyWindow: TimeInterval = 60
1561 |         ) {
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1638:26: error: cannot find type 'URLRequest' in scope
1636 |
1637 |         private static func connectionInfoWithRetry(
1638 |             for request: URLRequest,
     |                          `- error: cannot find type 'URLRequest' in scope
1639 |             urlSession: URLSession,
1640 |             maxRetries: Int,
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1639:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1637 |         private static func connectionInfoWithRetry(
1638 |             for request: URLRequest,
1639 |             urlSession: URLSession,
     |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1640 |             maxRetries: Int,
1641 |             retryBaseDelay: TimeInterval,
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/Xet/Xet.swift:1708:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1706 |         }
1707 |
1708 |         private static func connectionInfo(from response: HTTPURLResponse) throws -> ConnectionInfo? {
     |                                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1709 |             guard
1710 |                 let casURLString = response.value(forHTTPHeaderField: "X-Xet-Cas-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/Xet/Xet.swift:204:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 202 |         self.configuration = configuration
 203 |         self.fetchDelegate = FetchDelegate()
 204 |         let fetchConfig = URLSessionConfiguration.default
     |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 205 |         fetchConfig.timeoutIntervalForRequest = configuration.requestTimeout
 206 |         fetchConfig.httpMaximumConnectionsPerHost = 24
/host/spi-builder-workspace/Sources/Xet/Xet.swift:207:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 205 |         fetchConfig.timeoutIntervalForRequest = configuration.requestTimeout
 206 |         fetchConfig.httpMaximumConnectionsPerHost = 24
 207 |         self.urlSession = URLSession(
     |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 208 |             configuration: fetchConfig,
 209 |             delegate: fetchDelegate,
/host/spi-builder-workspace/Sources/Xet/Xet.swift:210:28: error: 'nil' requires a contextual type
 208 |             configuration: fetchConfig,
 209 |             delegate: fetchDelegate,
 210 |             delegateQueue: nil
     |                            `- error: 'nil' requires a contextual type
 211 |         )
 212 |         let controlConfig = URLSessionConfiguration.default
/host/spi-builder-workspace/Sources/Xet/Xet.swift:212:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 210 |             delegateQueue: nil
 211 |         )
 212 |         let controlConfig = URLSessionConfiguration.default
     |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 213 |         controlConfig.timeoutIntervalForRequest = configuration.requestTimeout
 214 |         self.controlSession = URLSession(configuration: controlConfig)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:214:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 212 |         let controlConfig = URLSessionConfiguration.default
 213 |         controlConfig.timeoutIntervalForRequest = configuration.requestTimeout
 214 |         self.controlSession = URLSession(configuration: controlConfig)
     |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 215 |         self.casClient = CASClient(urlSession: controlSession)
 216 |         self.tokenProvider = TokenProvider(urlSession: controlSession)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:236:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 234 |     /// If you create a downloader directly, call this when you are done.
 235 |     public func invalidate() {
 236 |         urlSession.invalidateAndCancel()
     |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 237 |         controlSession.invalidateAndCancel()
 238 |     }
/host/spi-builder-workspace/Sources/Xet/Xet.swift:237:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 235 |     public func invalidate() {
 236 |         urlSession.invalidateAndCancel()
 237 |         controlSession.invalidateAndCancel()
     |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 238 |     }
 239 |
/host/spi-builder-workspace/Sources/Xet/Xet.swift:241:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 239 |
 240 |     deinit {
 241 |         urlSession.invalidateAndCancel()
     |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 242 |         controlSession.invalidateAndCancel()
 243 |     }
/host/spi-builder-workspace/Sources/Xet/Xet.swift:242:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 240 |     deinit {
 241 |         urlSession.invalidateAndCancel()
 242 |         controlSession.invalidateAndCancel()
     |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 243 |     }
 244 |
/host/spi-builder-workspace/Sources/Xet/Xet.swift:509:110: error: cannot find type 'URLRequest' in scope
 507 |         }
 508 |
 509 |         @Sendable func makeFetchRequest(for fetchInfo: CASClient.ReconstructionResponse.FetchInfo) throws -> URLRequest {
     |                                                                                                              `- error: cannot find type 'URLRequest' in scope
 510 |             guard let fetchURL = URL(string: fetchInfo.url) else {
 511 |                 throw XetDownloaderError.invalidFetchURL(fetchInfo.url)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:518:27: error: cannot find 'URLRequest' in scope
 516 |             }
 517 |
 518 |             var request = URLRequest(url: fetchURL)
     |                           `- error: cannot find 'URLRequest' in scope
 519 |             request.httpMethod = "GET"
 520 |             Self.applyHeaders(xetRequestHeaders, to: &request)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:858:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 856 |                     chunkRanges: fetchInfo.ranges.map(\.chunkRange)
 857 |                 )
 858 |             } catch {
     |               `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 859 |                 guard Self.isRetryable(error) else {
 860 |                     throw error
/host/spi-builder-workspace/Sources/Xet/Xet.swift:915:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 913 |         expectedUnpackedLength: Int?
 914 |     ) throws -> (data: Data, chunkByteIndices: [Int]) {
 915 |         let contentType = response.value(forHTTPHeaderField: "Content-Type") ?? ""
     |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 916 |         guard contentType.localizedCaseInsensitiveContains("multipart/byteranges") else {
 917 |             return try decodeXorbData(responseData, expectedUnpackedLength: expectedUnpackedLength)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:926:40: error: cannot infer key path type from context; consider explicitly specifying a root type
 924 |         // wrong file contents.
 925 |         let expectedRanges = fetchInfo.urlRanges.sorted { $0.lowerBound < $1.lowerBound }
 926 |         let returnedRanges = parts.map(\.range)
     |                                        `- error: cannot infer key path type from context; consider explicitly specifying a root type
 927 |         guard returnedRanges == expectedRanges else {
 928 |             throw XetDownloaderError.invalidReconstruction
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1323:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
1321 |         return try await withTaskCancellationHandler {
1322 |             try await withCheckedThrowingContinuation { continuation in
1323 |                 let task = session.dataTask(with: request)
     |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
1324 |                 taskHolder.setTask(task)
1325 |                 lock.withLock {
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1359:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1357 |             let task = self.task
1358 |             lock.unlock()
1359 |             task?.cancel()
     |                   `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1360 |         }
1361 |     }
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1370:33: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
1368 |     ) {
1369 |         lock.withLock {
1370 |             taskStates[dataTask.taskIdentifier]?.response = response
     |                                 `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
1371 |         }
1372 |         completionHandler(.allow)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1372:28: error: cannot infer contextual base in reference to member 'allow'
1370 |             taskStates[dataTask.taskIdentifier]?.response = response
1371 |         }
1372 |         completionHandler(.allow)
     |                            `- error: cannot infer contextual base in reference to member 'allow'
1373 |     }
1374 |
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1380:38: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'countOfBytesExpectedToReceive'
1378 |         didReceive receivedData: Data
1379 |     ) {
1380 |         let bytesExpected = dataTask.countOfBytesExpectedToReceive
     |                                      `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'countOfBytesExpectedToReceive'
1381 |         let id = dataTask.taskIdentifier
1382 |
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1381:27: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
1379 |     ) {
1380 |         let bytesExpected = dataTask.countOfBytesExpectedToReceive
1381 |         let id = dataTask.taskIdentifier
     |                           `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
1382 |
1383 |         lock.lock()
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1398:49: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
1396 |     ) {
1397 |         let state: TaskState? = lock.withLock {
1398 |             taskStates.removeValue(forKey: task.taskIdentifier)
     |                                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
1399 |         }
1400 |         guard let state else { return }
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1599:31: error: cannot find 'URLRequest' in scope
1597 |
1598 |             let task = Task { [urlSession] () throws -> ConnectionInfo in
1599 |                 var request = URLRequest(url: refreshURL)
     |                               `- error: cannot find 'URLRequest' in scope
1600 |                 request.httpMethod = "GET"
1601 |                 request.cachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1661:65: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1659 |
1660 |                 do {
1661 |                     let (data, response) = try await urlSession.data(for: request)
     |                                                                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1662 |                     guard let http = response as? HTTPURLResponse else {
1663 |                         throw XetDownloaderError.invalidTokenResponse(underlying: nil)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1710:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1708 |         private static func connectionInfo(from response: HTTPURLResponse) throws -> ConnectionInfo? {
1709 |             guard
1710 |                 let casURLString = response.value(forHTTPHeaderField: "X-Xet-Cas-Url"),
     |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1711 |                 let accessToken = response.value(forHTTPHeaderField: "X-Xet-Access-Token"),
1712 |                 let expirationString = response.value(forHTTPHeaderField: "X-Xet-Token-Expiration"),
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1711:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1709 |             guard
1710 |                 let casURLString = response.value(forHTTPHeaderField: "X-Xet-Cas-Url"),
1711 |                 let accessToken = response.value(forHTTPHeaderField: "X-Xet-Access-Token"),
     |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1712 |                 let expirationString = response.value(forHTTPHeaderField: "X-Xet-Token-Expiration"),
1713 |                 let expiration = Int(expirationString)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1712:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1710 |                 let casURLString = response.value(forHTTPHeaderField: "X-Xet-Cas-Url"),
1711 |                 let accessToken = response.value(forHTTPHeaderField: "X-Xet-Access-Token"),
1712 |                 let expirationString = response.value(forHTTPHeaderField: "X-Xet-Token-Expiration"),
     |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1713 |                 let expiration = Int(expirationString)
1714 |             else {
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1987:43: error: cannot find 'O_CREAT' in scope
1985 |         // either absent/empty (when `appendOffset == nil`) or exactly
1986 |         // `appendOffset` bytes long.
1987 |         let flags = appendOffset == nil ? O_CREAT | O_RDWR | O_TRUNC : O_CREAT | O_RDWR
     |                                           `- error: cannot find 'O_CREAT' in scope
1988 |         let mode: mode_t = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
1989 |         let fd = open(destinationURL.path, flags, mode)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1987:62: error: cannot find 'O_TRUNC' in scope
1985 |         // either absent/empty (when `appendOffset == nil`) or exactly
1986 |         // `appendOffset` bytes long.
1987 |         let flags = appendOffset == nil ? O_CREAT | O_RDWR | O_TRUNC : O_CREAT | O_RDWR
     |                                                              `- error: cannot find 'O_TRUNC' in scope
1988 |         let mode: mode_t = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
1989 |         let fd = open(destinationURL.path, flags, mode)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1987:72: error: cannot find 'O_CREAT' in scope
1985 |         // either absent/empty (when `appendOffset == nil`) or exactly
1986 |         // `appendOffset` bytes long.
1987 |         let flags = appendOffset == nil ? O_CREAT | O_RDWR | O_TRUNC : O_CREAT | O_RDWR
     |                                                                        `- error: cannot find 'O_CREAT' in scope
1988 |         let mode: mode_t = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
1989 |         let fd = open(destinationURL.path, flags, mode)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
[8/8] Compiling Xet CAS.swift
/host/spi-builder-workspace/Sources/Xet/CAS.swift:12:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | /// that describes how to reassemble a file from its constituent chunks.
 11 | struct CASClient: Sendable {
 12 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private static let reconstructionVersionState = ReconstructionVersionState()
 14 |
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/Xet/CAS.swift:16:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     /// Creates a CAS client with the specified URL session.
 16 |     init(urlSession: URLSession = .shared) {
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |         self.urlSession = urlSession
 18 |     }
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/Xet/CAS.swift:16:36: error: value of type '_' expected to be instance of class or class-constrained type
 14 |
 15 |     /// Creates a CAS client with the specified URL session.
 16 |     init(urlSession: URLSession = .shared) {
    |                                    `- error: value of type '_' expected to be instance of class or class-constrained type
 17 |         self.urlSession = urlSession
 18 |     }
/host/spi-builder-workspace/Sources/Xet/CAS.swift:16:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |
 15 |     /// Creates a CAS client with the specified URL session.
 16 |     init(urlSession: URLSession = .shared) {
    |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |         self.urlSession = urlSession
 18 |     }
/host/spi-builder-workspace/Sources/Xet/CAS.swift:137:22: error: cannot find type 'URLRequest' in scope
135 |
136 |     private func reconstructionWithRetry(
137 |         for request: URLRequest,
    |                      `- error: cannot find type 'URLRequest' in scope
138 |         apiVersion: Int,
139 |         enableMultiRangeFetching: Bool,
/host/spi-builder-workspace/Sources/Xet/CAS.swift:12:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'CASClient' has non-Sendable type 'URLSession' (aka 'AnyObject')
 10 | /// that describes how to reassemble a file from its constituent chunks.
 11 | struct CASClient: Sendable {
 12 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'CASClient' has non-Sendable type 'URLSession' (aka 'AnyObject')
 13 |     private static let reconstructionVersionState = ReconstructionVersionState()
 14 |
/host/spi-builder-workspace/Sources/Xet/CAS.swift:116:23: error: cannot find 'URLRequest' in scope
114 |             .appendingPathComponent(fileID)
115 |
116 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "GET"
118 |         for (key, value) in requestHeaders where key.caseInsensitiveCompare("authorization") != .orderedSame {
/host/spi-builder-workspace/Sources/Xet/CAS.swift:161:61: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
159 |
160 |             do {
161 |                 let (data, response) = try await urlSession.data(for: request)
    |                                                             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
162 |                 guard let http = response as? HTTPURLResponse else {
163 |                     throw XetDownloaderError.invalidReconstructionResponse
BUILD FAILURE 6.2 wasm