The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TUSKit, reference 3.7.1 (167938), with Swift 6.4 for Wasm on 24 Sep 2026 06:25:12 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/tus/TUSKit.git
Reference: 3.7.1
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/tus/TUSKit
 * tag               3.7.1      -> FETCH_HEAD
HEAD is now at 1679382 Merge pull request #224 from tus/2026-01-21-b2cg
Cloned https://github.com/tus/TUSKit.git
Revision (git rev-parse @):
167938293923b5c31ba1255da5aada8e67533984
SUCCESS checkout https://github.com/tus/TUSKit.git at 3.7.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/tus/TUSKit.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...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

[32 / 40] TUSKit
/host/spi-builder-workspace/Sources/TUSKit/Files.swift:22:25: error: cannot find 'DispatchQueue' in scope
 20 |     let storageDirectory: URL
 21 |
 22 |     private let queue = DispatchQueue(label: "com.tuskit.files")
    |                         `- error: cannot find 'DispatchQueue' in scope
 23 |
 24 |     /// Pass a directory to store the local cache in.
/host/spi-builder-workspace/Sources/TUSKit/Network.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
13 |
14 | // Result support for URLSession
15 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
16 |
17 |     func dataTask(request: URLRequest, completion: @escaping (Result<(Data?, HTTPURLResponse), Error>) -> Void) -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/TUSKit/Network.swift:33:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | /// - Parameter completion: A completionhandler to call
32 | /// - Returns: A new function that you can pass to URLSession's dataTask
33 | private func makeCompletion(completion: @escaping (Result<(Data?, HTTPURLResponse), Error>) -> Void) -> (Data?, URLResponse?, Error?) -> Void {
   |                                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     return { data, response, error in
35 |         guard let httpResponse = response as? HTTPURLResponse else {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TUSKit/Network.swift:33:113: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | /// - Parameter completion: A completionhandler to call
32 | /// - Returns: A new function that you can pass to URLSession's dataTask
33 | private func makeCompletion(completion: @escaping (Result<(Data?, HTTPURLResponse), Error>) -> Void) -> (Data?, URLResponse?, Error?) -> Void {
   |                                                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     return { data, response, error in
35 |         guard let httpResponse = response as? HTTPURLResponse else {
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/TUSKit/Scheduler.swift:42:17: error: cannot find 'DispatchQueue' in scope
 40 |
 41 |     // Tasks are processed in background
 42 |     let queue = DispatchQueue(label: "com.TUSKit.Scheduler")
    |                 `- error: cannot find 'DispatchQueue' in scope
 43 |
 44 |     /// Add multiple tasks. Note that these are independent tasks.
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:17:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     case couldNotRetrieveOffset
 16 |     case couldNotRetrieveLocation
 17 |     case failedRequest(HTTPURLResponse, Data?)
    |                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |
 19 |     public var localizedDescription: String {
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/TUSKit/TUSAPI.swift:64:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |
 63 |     let sessionIdentifier: String?
 64 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     private let sessionDelegate = SessionDataDelegate()
 66 |     private let queue = DispatchQueue(label: "com.tus.TUSAPI")
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/TUSKit/TUSAPI.swift:66:25: error: cannot find 'DispatchQueue' in scope
 64 |     private let session: URLSession
 65 |     private let sessionDelegate = SessionDataDelegate()
 66 |     private let queue = DispatchQueue(label: "com.tus.TUSAPI")
    |                         `- error: cannot find 'DispatchQueue' in scope
 67 |     private var backgroundHandler: (() -> Void)? = nil
 68 |     private var callbacks: [String: (Result<(Data?, HTTPURLResponse), Error>) -> Void] = [:]
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:68:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private let queue = DispatchQueue(label: "com.tus.TUSAPI")
 67 |     private var backgroundHandler: (() -> Void)? = nil
 68 |     private var callbacks: [String: (Result<(Data?, HTTPURLResponse), Error>) -> Void] = [:]
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     private var taskData: [String: Data] = [:]
 70 |
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/TUSKit/TUSAPI.swift:77:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |     }
 76 |
 77 |     init(session: URLSession) {
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         self.session = session
 79 |         self.sessionIdentifier = session.configuration.identifier
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/TUSKit/TUSAPI.swift:83:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |     }
 82 |
 83 |     init(sessionConfiguration: URLSessionConfiguration) {
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
 85 |         self.sessionIdentifier = sessionConfiguration.identifier
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:90:105: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     @discardableResult
 90 |     func serverInfo(server: URL, completion: @escaping (Result<TusServerInfo, TUSAPIError>) -> Void) -> URLSessionDataTask {
    |                                                                                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         let request = makeRequest(url: server, method: .options, headers: [:])
 92 |         let task = session.dataTask(request: request) { result in
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/TUSKit/TUSAPI.swift:136:133: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |     ///   - completion: A completion giving us the `Status` of an upload.
135 |     @discardableResult
136 |     func status(remoteDestination: URL, headers: [String: String]?, completion: @escaping (Result<Status, TUSAPIError>) -> Void) -> URLSessionDataTask {
    |                                                                                                                                     `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |         let request = makeRequest(url: remoteDestination, method: .head, headers: headers ?? [:])
138 |         let identifier = UUID().uuidString
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/TUSKit/TUSAPI.swift:176:137: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |     ///   - completion: Completes with a result that gives a URL to upload to.
175 |     @discardableResult
176 |     func create(metaData: UploadMetadata, customHeaders: [String: String], completion: @escaping (Result<URL, TUSAPIError>) -> Void) -> URLSessionDataTask {
    |                                                                                                                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 |         let request = makeCreateRequest(metaData: metaData, customHeaders: customHeaders)
178 |         let identifier = UUID().uuidString
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/TUSKit/TUSAPI.swift:208:90: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     func makeCreateRequest(metaData: UploadMetadata, customHeaders: [String: String]) -> URLRequest {
    |                                                                                          `- error: cannot find type 'URLRequest' in scope
209 |         func makeUploadMetaHeader() -> [String: String] {
210 |             var metaDataDict: [String: String] = [:]
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:262:184: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 |     ///   - completion: Completionhandler for when the upload is finished.
261 |     @discardableResult
262 |     func upload(data: Data, range: Range<Int>?, location: URL, metaData: UploadMetadata, customHeaders: [String: String], completion: @escaping (Result<Int, TUSAPIError>) -> Void) -> URLSessionUploadTask {
    |                                                                                                                                                                                        `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 |         let offset: Int
264 |         let length: Int
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:313:189: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |     }
312 |
313 |     func upload(fromFile file: URL, offset: Int = 0, location: URL, metaData: UploadMetadata, customHeaders: [String: String], completion: @escaping (Result<Int, TUSAPIError>) -> Void) -> URLSessionUploadTask {
    |                                                                                                                                                                                             `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
314 |         let length: Int
315 |         if let fileAttributes = try? FileManager.default.attributesOfItem(atPath: file.path) {
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:392:90: error: cannot find type 'URLRequest' in scope
390 |     ///   - headers: The headers to add to the request.
391 |     /// - Returns: A new URLRequest to use in any TUS API call.
392 |     private func makeRequest(url: URL, method: HTTPMethod, headers: [String: String]) -> URLRequest {
    |                                                                                          `- error: cannot find type 'URLRequest' in scope
393 |         var request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 30)
394 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:446:48: error: cannot find type 'URLSessionDataDelegate' in scope
444 |
445 | private extension TUSAPI {
446 |     final class SessionDataDelegate: NSObject, URLSessionDataDelegate {
    |                                                `- error: cannot find type 'URLSessionDataDelegate' in scope
447 |         weak var api: TUSAPI?
448 |
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:449:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
447 |         weak var api: TUSAPI?
448 |
449 |         func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
450 |             guard let api, let identifier = dataTask.taskDescription else {
451 |                 return
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/TUSKit/TUSAPI.swift:449:58: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
447 |         weak var api: TUSAPI?
448 |
449 |         func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
450 |             guard let api, let identifier = dataTask.taskDescription else {
451 |                 return
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/TUSKit/TUSAPI.swift:457:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
455 |         }
456 |
457 |         func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
458 |             api?.handleCompletionOfTask(task, withError: error)
459 |         }
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/TUSKit/TUSAPI.swift:457:54: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
455 |         }
456 |
457 |         func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
458 |             api?.handleCompletionOfTask(task, withError: error)
459 |         }
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/TUSKit/TUSAPI.swift:461:73: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
459 |         }
460 |
461 |         func urlSessionDidFinishEvents(forBackgroundURLSession session: URLSession) {
    |                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
462 |             api?.handleFinishOfBackgroundURLSessionEvents()
463 |         }
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/TUSKit/TUSAPI.swift:466:41: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
464 |     }
465 |
466 |     func handleCompletionOfTask(_ task: URLSessionTask, withError error: Error?) {
    |                                         `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
467 |         queue.sync {
468 |             guard let identifier = task.taskDescription else {
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/TUSKit/TUSClient.swift:93:25: error: cannot find 'DispatchQueue' in scope
 91 |     /// Keep track of uploads and their id's
 92 |     private var uploads = [UUID: UploadMetadata]()
 93 |     private let queue = DispatchQueue(label: "com.TUSKit.TUSClient")
    |                         `- error: cannot find 'DispatchQueue' in scope
 94 |     private let reportingQueue: DispatchQueue
 95 |     private let headerGenerator: HeaderGenerator
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:94:33: error: cannot find type 'DispatchQueue' in scope
 92 |     private var uploads = [UUID: UploadMetadata]()
 93 |     private let queue = DispatchQueue(label: "com.TUSKit.TUSClient")
 94 |     private let reportingQueue: DispatchQueue
    |                                 `- error: cannot find type 'DispatchQueue' in scope
 95 |     private let headerGenerator: HeaderGenerator
 96 |
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:112:92: error: cannot find type 'DispatchQueue' in scope
110 |     public init(server: URL, sessionIdentifier: String, sessionConfiguration: URLSessionConfiguration,
111 |                 storageDirectory: URL? = nil, chunkSize: Int = 500 * 1024,
112 |                 supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
    |                                                                                            `- error: cannot find type 'DispatchQueue' in scope
113 |                 generateHeaders: HeaderGenerationHandler? = nil) throws {
114 |
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:110:79: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ///   make sure that you provide an empty array in the `supportExtensions` parameter.
109 |     /// - Throws: File related errors when it can't make a directory at the designated path.
110 |     public init(server: URL, sessionIdentifier: String, sessionConfiguration: URLSessionConfiguration,
    |                                                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |                 storageDirectory: URL? = nil, chunkSize: Int = 500 * 1024,
112 |                 supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:158:92: error: cannot find type 'DispatchQueue' in scope
156 |     public init(server: URL, sessionIdentifier: String, storageDirectory: URL? = nil,
157 |                 session: URLSession = URLSession.shared, chunkSize: Int = 500 * 1024,
158 |                 supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
    |                                                                                            `- error: cannot find type 'DispatchQueue' in scope
159 |                 generateHeaders: HeaderGenerationHandler? = nil) throws {
160 |         self.sessionIdentifier = sessionIdentifier
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:157:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |     @available(*, deprecated, message: "Use the init(server:sessionIdentifier:sessionConfiguration:storageDirectory:chunkSize:supportedExtension) initializer instead.")
156 |     public init(server: URL, sessionIdentifier: String, storageDirectory: URL? = nil,
157 |                 session: URLSession = URLSession.shared, chunkSize: Int = 500 * 1024,
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 |                 supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
159 |                 generateHeaders: HeaderGenerationHandler? = nil) throws {
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/TUSKit/TUSClient.swift:157:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     @available(*, deprecated, message: "Use the init(server:sessionIdentifier:sessionConfiguration:storageDirectory:chunkSize:supportedExtension) initializer instead.")
156 |     public init(server: URL, sessionIdentifier: String, storageDirectory: URL? = nil,
157 |                 session: URLSession = URLSession.shared, chunkSize: Int = 500 * 1024,
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |                 supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
159 |                 generateHeaders: HeaderGenerationHandler? = nil) throws {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:157:50: error: default argument value of type '_' cannot be converted to type 'AnyObject'
155 |     @available(*, deprecated, message: "Use the init(server:sessionIdentifier:sessionConfiguration:storageDirectory:chunkSize:supportedExtension) initializer instead.")
156 |     public init(server: URL, sessionIdentifier: String, storageDirectory: URL? = nil,
157 |                 session: URLSession = URLSession.shared, chunkSize: Int = 500 * 1024,
    |                                                  `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
158 |                 supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
159 |                 generateHeaders: HeaderGenerationHandler? = nil) throws {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:193:92: error: cannot find type 'DispatchQueue' in scope
191 |     public init(server: URL, storageDirectory: URL? = nil,
192 |                 session: URLSession = URLSession.shared, chunkSize: Int = 500 * 1024,
193 |                 supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
    |                                                                                            `- error: cannot find type 'DispatchQueue' in scope
194 |                 generateHeaders: HeaderGenerationHandler? = nil) throws {
195 |         guard session.configuration.sessionSendsLaunchEvents == false else {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:192:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |     @available(iOS 15.0, macOS 12.0, watchOS 8.0, *)
191 |     public init(server: URL, storageDirectory: URL? = nil,
192 |                 session: URLSession = URLSession.shared, chunkSize: Int = 500 * 1024,
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |                 supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
194 |                 generateHeaders: HeaderGenerationHandler? = nil) throws {
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/TUSKit/TUSClient.swift:192:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
190 |     @available(iOS 15.0, macOS 12.0, watchOS 8.0, *)
191 |     public init(server: URL, storageDirectory: URL? = nil,
192 |                 session: URLSession = URLSession.shared, chunkSize: Int = 500 * 1024,
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
193 |                 supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
194 |                 generateHeaders: HeaderGenerationHandler? = nil) throws {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:192:50: error: default argument value of type '_' cannot be converted to type 'AnyObject'
190 |     @available(iOS 15.0, macOS 12.0, watchOS 8.0, *)
191 |     public init(server: URL, storageDirectory: URL? = nil,
192 |                 session: URLSession = URLSession.shared, chunkSize: Int = 500 * 1024,
    |                                                  `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
193 |                 supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
194 |                 generateHeaders: HeaderGenerationHandler? = nil) throws {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:877:25: error: cannot find 'DispatchQueue' in scope
875 | final class HeaderGenerator {
876 |     private let handler: HeaderGenerationHandler?
877 |     private let queue = DispatchQueue(label: "com.tuskit.headergenerator")
    |                         `- error: cannot find 'DispatchQueue' in scope
878 |     private var latestHeaders = [UUID: [String: String]]()
879 |
/host/spi-builder-workspace/Sources/TUSKit/Tasks/CreationTask.swift:28:35: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     private let headerGenerator: HeaderGenerator
27 |     private var didCancel: Bool = false
28 |     private weak var sessionTask: URLSessionDataTask?
   |                                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 |     private let queue = DispatchQueue(label: "com.tuskit.creationtask")
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/TUSKit/Tasks/CreationTask.swift:30:25: error: cannot find 'DispatchQueue' in scope
28 |     private weak var sessionTask: URLSessionDataTask?
29 |
30 |     private let queue = DispatchQueue(label: "com.tuskit.creationtask")
   |                         `- error: cannot find 'DispatchQueue' in scope
31 |
32 |     init(metaData: UploadMetadata, api: TUSAPI, files: Files, chunkSize: Int? = nil, headerGenerator: HeaderGenerator) throws {
/host/spi-builder-workspace/Sources/TUSKit/Tasks/StatusTask.swift:27:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     private let headerGenerator: HeaderGenerator
 26 |     private var didCancel: Bool = false
 27 |     weak var sessionTask: URLSessionDataTask?
    |                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |
 29 |     private let queue = DispatchQueue(label: "com.tuskit.statustask")
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/TUSKit/Tasks/StatusTask.swift:29:25: error: cannot find 'DispatchQueue' in scope
 27 |     weak var sessionTask: URLSessionDataTask?
 28 |
 29 |     private let queue = DispatchQueue(label: "com.tuskit.statustask")
    |                         `- error: cannot find 'DispatchQueue' in scope
 30 |
 31 |     init(api: TUSAPI, remoteDestination: URL, metaData: UploadMetadata, files: Files, chunkSize: Int?, headerGenerator: HeaderGenerator) {
/host/spi-builder-workspace/Sources/TUSKit/Tasks/UploadDataTask.swift:23:17: error: cannot find 'DispatchQueue' in scope
 21 |     let metaData: UploadMetadata
 22 |
 23 |     let queue = DispatchQueue(label: "com.tuskit.uploadDataTask")
    |                 `- error: cannot find 'DispatchQueue' in scope
 24 |
 25 |     private var isCanceled = false
/host/spi-builder-workspace/Sources/TUSKit/Tasks/UploadDataTask.swift:30:30: error: cannot find type 'NSKeyValueObservation' in scope
 28 |     private let files: Files
 29 |     private let range: Range<Int>?
 30 |     private var observation: NSKeyValueObservation?
    |                              `- error: cannot find type 'NSKeyValueObservation' in scope
 31 |     private weak var sessionTask: URLSessionUploadTask?
 32 |     private let headerGenerator: HeaderGenerator
/host/spi-builder-workspace/Sources/TUSKit/Tasks/UploadDataTask.swift:31:35: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     private let range: Range<Int>?
 30 |     private var observation: NSKeyValueObservation?
 31 |     private weak var sessionTask: URLSessionUploadTask?
    |                                   `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     private let headerGenerator: HeaderGenerator
 33 |
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TUSKit/Tasks/UploadDataTask.swift:175:28: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |
174 |     @available(iOS 11.0, macOS 10.13, *)
175 |     func observeTask(task: URLSessionUploadTask, size: Int) {
    |                            `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |         let targetRange = 0..<size
177 |         let uploaded = metaData.uploadedRange?.count ?? 0
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TUSKit/UploadMetada.swift:15:17: error: cannot find 'DispatchQueue' in scope
 13 | final class UploadMetadata: Codable {
 14 |
 15 |     let queue = DispatchQueue(label: "com.tuskit.uploadmetadata")
    |                 `- error: cannot find 'DispatchQueue' in scope
 16 |
 17 |     enum CodingKeys: String, CodingKey {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/TUSKit/Extensions/Collection+chunk.swift /host/spi-builder-workspace/Sources/TUSKit/Extensions/Data+chunk.swift /host/spi-builder-workspace/Sources/TUSKit/Extensions/String+base64.swift /host/spi-builder-workspace/Sources/TUSKit/Files.swift /host/spi-builder-workspace/Sources/TUSKit/Network.swift /host/spi-builder-workspace/Sources/TUSKit/Scheduler.swift /host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift /host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift /host/spi-builder-workspace/Sources/TUSKit/TUSClientError.swift /host/spi-builder-workspace/Sources/TUSKit/TUSProtocolExtension.swift /host/spi-builder-workspace/Sources/TUSKit/Tasks/CreationTask.swift /host/spi-builder-workspace/Sources/TUSKit/Tasks/IdentifiableTask.swift /host/spi-builder-workspace/Sources/TUSKit/Tasks/StatusTask.swift /host/spi-builder-workspace/Sources/TUSKit/Tasks/UploadDataTask.swift /host/spi-builder-workspace/Sources/TUSKit/TusServerInfo.swift /host/spi-builder-workspace/Sources/TUSKit/UploadInfo.swift /host/spi-builder-workspace/Sources/TUSKit/UploadMetada.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 5 -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/TUSKit.build/Debug-webassembly-wasm32/TUSKit-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-webassembly-wasm32/TUSKit-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-webassembly-wasm32/TUSKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name TUSKit -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-webassembly-wasm32/TUSKit-t.build/Objects-normal/wasm32/TUSKit_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/TUSKit.build/Debug-webassembly-wasm32/TUSKit-t.build/Objects-normal/wasm32/Modules/TUSKit.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-webassembly-wasm32/TUSKit-t.build/Objects-normal/wasm32/Modules/TUSKit.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-webassembly-wasm32/TUSKit-t.build/Objects-normal/wasm32/TUSKit-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-webassembly-wasm32/TUSKit-t.build/Objects-normal/wasm32/TUSKit-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-webassembly-wasm32/TUSKit-t.build/Objects-normal/wasm32/TUSKit-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-webassembly-wasm32/TUSKit-t.build/Objects-normal/wasm32/Modules/TUSKit.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm