The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-xet, reference main (4395b0), with Swift 6.4 for Wasm on 25 Sep 2026 12:49:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-1":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
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.4
Building package at path:  $PWD
https://github.com/DePasqualeOrg/swift-xet.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-1":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Pre-planning 1 / 66]
[Starting]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/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 '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 '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 '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 '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 '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 '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
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Xet/BG4.swift /host/spi-builder-workspace/Sources/Xet/CAS.swift /host/spi-builder-workspace/Sources/Xet/LZ4.swift /host/spi-builder-workspace/Sources/Xet/Xet.swift /host/spi-builder-workspace/Sources/Xet/Xorb.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Xet -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Xet_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Modules/Xet.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Modules/Xet.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Xet-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Xet-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Xet-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Modules/Xet.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm