Build Information
Failed to build TUSKit, reference main (2bc1fb), with Swift 6.4 for Wasm on 13 Oct 2026 12:32:00 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.0-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tus/TUSKit.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/tus/TUSKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2bc1fb4 Add FUNDING.yml pointing to the tus Open Collective (#232)
Cloned https://github.com/tus/TUSKit.git
Revision (git rev-parse @):
2bc1fb4dff7b83f0ba52da1e7b886b742d7d0a02
SUCCESS checkout https://github.com/tus/TUSKit.git at main
========================================
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.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:d8610b27563fbed4643ddaec8e9397319e3b3e1372fc54686db2dacb952c1b8f
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
/host/spi-builder-workspace/Sources/TUSKit/Extensions/HTTPURLResponse+Headers.swift:10:1: [1;31merror: [1;39mnon-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m8 |[0;0m import Foundation
[0;36m9 |[0;0m
[0;36m10 |[0;0m extension [4;39mHTTPURLResponse[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m11 |[0;0m func extractHeaders() -> [String: String] {
[0;36m12 |[0;0m var headers: [String: String] = [:]
/host/spi-builder-workspace/Sources/TUSKit/Files.swift:22:25: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m20 |[0;0m let storageDirectory: URL
[0;36m21 |[0;0m
[0;36m22 |[0;0m private let queue = [4;39mDispatchQueue[0;0m(label: "com.tuskit.files")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// Pass a directory to store the local cache in.
/host/spi-builder-workspace/Sources/TUSKit/Network.swift:15:1: [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m13 |[0;0m
[0;36m14 |[0;0m // Result support for URLSession
[0;36m15 |[0;0m extension [4;39mURLSession[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m16 |[0;0m
[0;36m17 |[0;0m func dataTask(request: URLRequest, completion: @escaping (Result<(Data?, HTTPURLResponse), Error>) -> Void) -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/TUSKit/Network.swift:33:67: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m31 |[0;0m /// - Parameter completion: A completionhandler to call
[0;36m32 |[0;0m /// - Returns: A new function that you can pass to URLSession's dataTask
[0;36m33 |[0;0m private func makeCompletion(completion: @escaping (Result<(Data?, [4;39mHTTPURLResponse[0;0m), Error>) -> Void) -> (Data?, URLResponse?, Error?) -> Void {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m34 |[0;0m return { data, response, error in
[0;36m35 |[0;0m guard let httpResponse = response as? HTTPURLResponse else {
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/Network.swift:33:113: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m31 |[0;0m /// - Parameter completion: A completionhandler to call
[0;36m32 |[0;0m /// - Returns: A new function that you can pass to URLSession's dataTask
[0;36m33 |[0;0m private func makeCompletion(completion: @escaping (Result<(Data?, HTTPURLResponse), Error>) -> Void) -> (Data?, [4;39mURLResponse[0;0m?, Error?) -> Void {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m34 |[0;0m return { data, response, error in
[0;36m35 |[0;0m guard let httpResponse = response as? HTTPURLResponse else {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/Scheduler.swift:42:17: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m40 |[0;0m
[0;36m41 |[0;0m // Tasks are processed in background
[0;36m42 |[0;0m let queue = [4;39mDispatchQueue[0;0m(label: "com.TUSKit.Scheduler")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m43 |[0;0m
[0;36m44 |[0;0m /// Add multiple tasks. Note that these are independent tasks.
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:17:24: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m case couldNotRetrieveOffset
[0;36m16 |[0;0m case couldNotRetrieveLocation
[0;36m17 |[0;0m case failedRequest([4;39mHTTPURLResponse[0;0m, Data?)
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m18 |[0;0m
[0;36m19 |[0;0m public var localizedDescription: String {
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:66:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m64 |[0;0m
[0;36m65 |[0;0m let sessionIdentifier: String?
[0;36m66 |[0;0m private let session: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m67 |[0;0m private let sessionDelegate = SessionDataDelegate()
[0;36m68 |[0;0m private let queue = DispatchQueue(label: "com.tus.TUSAPI")
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:68:25: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m66 |[0;0m private let session: URLSession
[0;36m67 |[0;0m private let sessionDelegate = SessionDataDelegate()
[0;36m68 |[0;0m private let queue = [4;39mDispatchQueue[0;0m(label: "com.tus.TUSAPI")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m69 |[0;0m private var backgroundHandler: (() -> Void)? = nil
[0;36m70 |[0;0m private var callbacks: [String: (Result<(Data?, HTTPURLResponse), Error>) -> Void] = [:]
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:70:53: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m68 |[0;0m private let queue = DispatchQueue(label: "com.tus.TUSAPI")
[0;36m69 |[0;0m private var backgroundHandler: (() -> Void)? = nil
[0;36m70 |[0;0m private var callbacks: [String: (Result<(Data?, [4;39mHTTPURLResponse[0;0m), Error>) -> Void] = [:]
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m71 |[0;0m private var taskData: [String: Data] = [:]
[0;36m72 |[0;0m private var progressObservations: [String: NSKeyValueObservation] = [:]
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:72:48: [1;31merror: [1;39mcannot find type 'NSKeyValueObservation' in scope[0;0m
[0;36m70 |[0;0m private var callbacks: [String: (Result<(Data?, HTTPURLResponse), Error>) -> Void] = [:]
[0;36m71 |[0;0m private var taskData: [String: Data] = [:]
[0;36m72 |[0;0m private var progressObservations: [String: [4;39mNSKeyValueObservation[0;0m] = [:]
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'NSKeyValueObservation' in scope[0;0m
[0;36m73 |[0;0m weak var progressDelegate: ProgressDelegate?
[0;36m74 |[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:82:19: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m80 |[0;0m }
[0;36m81 |[0;0m
[0;36m82 |[0;0m init(session: [4;39mURLSession[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m83 |[0;0m self.session = session
[0;36m84 |[0;0m self.sessionIdentifier = session.configuration.identifier
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:88:32: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m86 |[0;0m }
[0;36m87 |[0;0m
[0;36m88 |[0;0m init(sessionConfiguration: [4;39mURLSessionConfiguration[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m89 |[0;0m self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
[0;36m90 |[0;0m self.sessionIdentifier = sessionConfiguration.identifier
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:95:105: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m93 |[0;0m
[0;36m94 |[0;0m @discardableResult
[0;36m95 |[0;0m func serverInfo(server: URL, completion: @escaping (Result<TusServerInfo, TUSAPIError>) -> Void) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m96 |[0;0m let request = makeRequest(url: server, method: .options, headers: [:])
[0;36m97 |[0;0m let task = session.dataTask(request: request) { result in
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:141:133: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m139 |[0;0m /// - completion: A completion giving us the `Status` of an upload.
[0;36m140 |[0;0m @discardableResult
[0;36m141 |[0;0m func status(remoteDestination: URL, headers: [String: String]?, completion: @escaping (Result<Status, TUSAPIError>) -> Void) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m142 |[0;0m let request = makeRequest(url: remoteDestination, method: .head, headers: headers ?? [:])
[0;36m143 |[0;0m let identifier = UUID().uuidString
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:181:137: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m179 |[0;0m /// - completion: Completes with a result that gives a URL to upload to.
[0;36m180 |[0;0m @discardableResult
[0;36m181 |[0;0m func create(metaData: UploadMetadata, customHeaders: [String: String], completion: @escaping (Result<URL, TUSAPIError>) -> Void) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m182 |[0;0m let request = makeCreateRequest(metaData: metaData, customHeaders: customHeaders)
[0;36m183 |[0;0m let identifier = UUID().uuidString
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:213:90: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m211 |[0;0m }
[0;36m212 |[0;0m
[0;36m213 |[0;0m func makeCreateRequest(metaData: UploadMetadata, customHeaders: [String: String]) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m214 |[0;0m func makeUploadMetaHeader() -> [String: String] {
[0;36m215 |[0;0m var metaDataDict: [String: String] = [:]
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:267:176: [1;31merror: [1;39m'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m265 |[0;0m /// - completion: Completionhandler for when the upload is finished.
[0;36m266 |[0;0m @discardableResult
[0;36m267 |[0;0m func upload(data: Data, range: Range<Int>?, location: URL, metaData: UploadMetadata, customHeaders: [String: String], completion: @escaping (UploadTaskResult) -> Void) -> [4;39mURLSessionUploadTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m268 |[0;0m let offset: Int
[0;36m269 |[0;0m let length: Int
Foundation.URLSessionUploadTask:2:18: [1;39mnote: [1;39m'URLSessionUploadTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionUploadTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionUploadTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:320:181: [1;31merror: [1;39m'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m318 |[0;0m }
[0;36m319 |[0;0m
[0;36m320 |[0;0m func upload(fromFile file: URL, offset: Int = 0, location: URL, metaData: UploadMetadata, customHeaders: [String: String], completion: @escaping (UploadTaskResult) -> Void) -> [4;39mURLSessionUploadTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m321 |[0;0m let length: Int
[0;36m322 |[0;0m if let fileAttributes = try? FileManager.default.attributesOfItem(atPath: file.path) {
Foundation.URLSessionUploadTask:2:18: [1;39mnote: [1;39m'URLSessionUploadTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionUploadTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionUploadTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:366:48: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m364 |[0;0m }
[0;36m365 |[0;0m
[0;36m366 |[0;0m func observeProgressForCompatibility(task: [4;39mURLSessionTask[0;0m, totalBytesExpectedToSend: Int64) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m367 |[0;0m guard let identifier = task.taskDescription else { return }
[0;36m368 |[0;0m
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:379:40: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m377 |[0;0m }
[0;36m378 |[0;0m
[0;36m379 |[0;0m func handleProgressForTask(_ task: [4;39mURLSessionTask[0;0m, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m380 |[0;0m guard let identifier = task.taskDescription, let id = UUID(uuidString: identifier) else { return }
[0;36m381 |[0;0m progressDelegate?.progressUpdated(forID: id, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:419:90: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m417 |[0;0m /// - headers: The headers to add to the request.
[0;36m418 |[0;0m /// - Returns: A new URLRequest to use in any TUS API call.
[0;36m419 |[0;0m private func makeRequest(url: URL, method: HTTPMethod, headers: [String: String]) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m420 |[0;0m var request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 30)
[0;36m421 |[0;0m request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:473:48: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m471 |[0;0m
[0;36m472 |[0;0m extension TUSAPI {
[0;36m473 |[0;0m final class SessionDataDelegate: NSObject, [4;39mURLSessionDataDelegate[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m474 |[0;0m weak var api: TUSAPI?
[0;36m475 |[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:476:36: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m474 |[0;0m weak var api: TUSAPI?
[0;36m475 |[0;0m
[0;36m476 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, dataTask: URLSessionDataTask, didReceive data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m477 |[0;0m guard let api, let identifier = dataTask.taskDescription else {
[0;36m478 |[0;0m return
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:476:58: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m474 |[0;0m weak var api: TUSAPI?
[0;36m475 |[0;0m
[0;36m476 |[0;0m func urlSession(_ session: URLSession, dataTask: [4;39mURLSessionDataTask[0;0m, didReceive data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m477 |[0;0m guard let api, let identifier = dataTask.taskDescription else {
[0;36m478 |[0;0m return
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:484:36: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m482 |[0;0m }
[0;36m483 |[0;0m
[0;36m484 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m485 |[0;0m api?.handleProgressForTask(task, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
[0;36m486 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:484:54: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m482 |[0;0m }
[0;36m483 |[0;0m
[0;36m484 |[0;0m func urlSession(_ session: URLSession, task: [4;39mURLSessionTask[0;0m, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m485 |[0;0m api?.handleProgressForTask(task, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
[0;36m486 |[0;0m }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:488:36: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m486 |[0;0m }
[0;36m487 |[0;0m
[0;36m488 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, task: URLSessionTask, didCompleteWithError error: Error?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m489 |[0;0m api?.handleCompletionOfTask(task, withError: error)
[0;36m490 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:488:54: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m486 |[0;0m }
[0;36m487 |[0;0m
[0;36m488 |[0;0m func urlSession(_ session: URLSession, task: [4;39mURLSessionTask[0;0m, didCompleteWithError error: Error?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m489 |[0;0m api?.handleCompletionOfTask(task, withError: error)
[0;36m490 |[0;0m }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:492:73: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m490 |[0;0m }
[0;36m491 |[0;0m
[0;36m492 |[0;0m func urlSessionDidFinishEvents(forBackgroundURLSession session: [4;39mURLSession[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m493 |[0;0m api?.handleFinishOfBackgroundURLSessionEvents()
[0;36m494 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:497:41: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m495 |[0;0m }
[0;36m496 |[0;0m
[0;36m497 |[0;0m func handleCompletionOfTask(_ task: [4;39mURLSessionTask[0;0m, withError error: Error?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m498 |[0;0m queue.sync {
[0;36m499 |[0;0m guard let identifier = task.taskDescription else {
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:99:25: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m97 |[0;0m /// Keep track of uploads and their id's
[0;36m98 |[0;0m var uploads = [UUID: UploadMetadata]()
[0;36m99 |[0;0m private let queue = [4;39mDispatchQueue[0;0m(label: "com.TUSKit.TUSClient")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m100 |[0;0m let reportingQueue: DispatchQueue
[0;36m101 |[0;0m private let headerGenerator: HeaderGenerator
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:100:25: [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m98 |[0;0m var uploads = [UUID: UploadMetadata]()
[0;36m99 |[0;0m private let queue = DispatchQueue(label: "com.TUSKit.TUSClient")
[0;36m100 |[0;0m let reportingQueue: [4;39mDispatchQueue[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m101 |[0;0m private let headerGenerator: HeaderGenerator
[0;36m102 |[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:118:92: [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m116 |[0;0m public init(server: URL, sessionIdentifier: String, sessionConfiguration: URLSessionConfiguration,
[0;36m117 |[0;0m storageDirectory: URL? = nil, chunkSize: Int = 500 * 1024,
[0;36m118 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: [4;39mDispatchQueue[0;0m = DispatchQueue.main,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m119 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
[0;36m120 |[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:116:79: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m114 |[0;0m /// make sure that you provide an empty array in the `supportExtensions` parameter.
[0;36m115 |[0;0m /// - Throws: File related errors when it can't make a directory at the designated path.
[0;36m116 |[0;0m public init(server: URL, sessionIdentifier: String, sessionConfiguration: [4;39mURLSessionConfiguration[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m117 |[0;0m storageDirectory: URL? = nil, chunkSize: Int = 500 * 1024,
[0;36m118 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:165:92: [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m163 |[0;0m public init(server: URL, sessionIdentifier: String, storageDirectory: URL? = nil,
[0;36m164 |[0;0m session: URLSession = URLSession.shared, chunkSize: Int = 500 * 1024,
[0;36m165 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: [4;39mDispatchQueue[0;0m = DispatchQueue.main,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m166 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
[0;36m167 |[0;0m self.sessionIdentifier = sessionIdentifier
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:164:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m162 |[0;0m @available(*, deprecated, message: "Use the init(server:sessionIdentifier:sessionConfiguration:storageDirectory:chunkSize:supportedExtension) initializer instead.")
[0;36m163 |[0;0m public init(server: URL, sessionIdentifier: String, storageDirectory: URL? = nil,
[0;36m164 |[0;0m session: [4;39mURLSession[0;0m = URLSession.shared, chunkSize: Int = 500 * 1024,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m165 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
[0;36m166 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:164:50: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m162 |[0;0m @available(*, deprecated, message: "Use the init(server:sessionIdentifier:sessionConfiguration:storageDirectory:chunkSize:supportedExtension) initializer instead.")
[0;36m163 |[0;0m public init(server: URL, sessionIdentifier: String, storageDirectory: URL? = nil,
[0;36m164 |[0;0m session: URLSession = [4;39mURLSession[0;0m.[4;39mshared[0;0m, chunkSize: Int = 500 * 1024,
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m165 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
[0;36m166 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:164:50: [1;31merror: [1;39mdefault argument value of type '_' cannot be converted to type 'AnyObject'[0;0m
[0;36m162 |[0;0m @available(*, deprecated, message: "Use the init(server:sessionIdentifier:sessionConfiguration:storageDirectory:chunkSize:supportedExtension) initializer instead.")
[0;36m163 |[0;0m public init(server: URL, sessionIdentifier: String, storageDirectory: URL? = nil,
[0;36m164 |[0;0m session: URLSession = [4;39mURLSession.shared[0;0m, chunkSize: Int = 500 * 1024,
[0;36m|[0;0m `- [1;31merror: [1;39mdefault argument value of type '_' cannot be converted to type 'AnyObject'[0;0m
[0;36m165 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
[0;36m166 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:201:92: [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m199 |[0;0m public init(server: URL, storageDirectory: URL? = nil,
[0;36m200 |[0;0m session: URLSession = URLSession.shared, chunkSize: Int = 500 * 1024,
[0;36m201 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: [4;39mDispatchQueue[0;0m = DispatchQueue.main,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m202 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
[0;36m203 |[0;0m guard session.configuration.sessionSendsLaunchEvents == false else {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:200:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m198 |[0;0m @available(iOS 15.0, macOS 12.0, watchOS 8.0, *)
[0;36m199 |[0;0m public init(server: URL, storageDirectory: URL? = nil,
[0;36m200 |[0;0m session: [4;39mURLSession[0;0m = URLSession.shared, chunkSize: Int = 500 * 1024,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m201 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
[0;36m202 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:200:50: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m198 |[0;0m @available(iOS 15.0, macOS 12.0, watchOS 8.0, *)
[0;36m199 |[0;0m public init(server: URL, storageDirectory: URL? = nil,
[0;36m200 |[0;0m session: URLSession = [4;39mURLSession[0;0m.[4;39mshared[0;0m, chunkSize: Int = 500 * 1024,
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m201 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
[0;36m202 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:200:50: [1;31merror: [1;39mdefault argument value of type '_' cannot be converted to type 'AnyObject'[0;0m
[0;36m198 |[0;0m @available(iOS 15.0, macOS 12.0, watchOS 8.0, *)
[0;36m199 |[0;0m public init(server: URL, storageDirectory: URL? = nil,
[0;36m200 |[0;0m session: URLSession = [4;39mURLSession.shared[0;0m, chunkSize: Int = 500 * 1024,
[0;36m|[0;0m `- [1;31merror: [1;39mdefault argument value of type '_' cannot be converted to type 'AnyObject'[0;0m
[0;36m201 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
[0;36m202 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:893:25: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m891 |[0;0m final class HeaderGenerator {
[0;36m892 |[0;0m private let handler: HeaderGenerationHandler?
[0;36m893 |[0;0m private let queue = [4;39mDispatchQueue[0;0m(label: "com.tuskit.headergenerator")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m894 |[0;0m private var latestHeaders = [UUID: [String: String]]()
[0;36m895 |[0;0m
/host/spi-builder-workspace/Sources/TUSKit/Tasks/CreationTask.swift:27:35: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m25 |[0;0m private let headerGenerator: HeaderGenerator
[0;36m26 |[0;0m private var didCancel: Bool = false
[0;36m27 |[0;0m private weak var sessionTask: [4;39mURLSessionDataTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m private let queue = DispatchQueue(label: "com.tuskit.creationtask")
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/Tasks/CreationTask.swift:29:25: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m27 |[0;0m private weak var sessionTask: URLSessionDataTask?
[0;36m28 |[0;0m
[0;36m29 |[0;0m private let queue = [4;39mDispatchQueue[0;0m(label: "com.tuskit.creationtask")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m30 |[0;0m
[0;36m31 |[0;0m init(metaData: UploadMetadata, api: TUSAPI, files: Files, chunkSize: Int? = nil, headerGenerator: HeaderGenerator) throws {
/host/spi-builder-workspace/Sources/TUSKit/Tasks/StatusTask.swift:26:27: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m24 |[0;0m private let headerGenerator: HeaderGenerator
[0;36m25 |[0;0m private var didCancel: Bool = false
[0;36m26 |[0;0m weak var sessionTask: [4;39mURLSessionDataTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m27 |[0;0m
[0;36m28 |[0;0m private let queue = DispatchQueue(label: "com.tuskit.statustask")
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/Tasks/StatusTask.swift:28:25: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m26 |[0;0m weak var sessionTask: URLSessionDataTask?
[0;36m27 |[0;0m
[0;36m28 |[0;0m private let queue = [4;39mDispatchQueue[0;0m(label: "com.tuskit.statustask")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m29 |[0;0m
[0;36m30 |[0;0m init(api: TUSAPI, remoteDestination: URL, metaData: UploadMetadata, files: Files, chunkSize: Int?, headerGenerator: HeaderGenerator) {
/host/spi-builder-workspace/Sources/TUSKit/Tasks/UploadDataTask.swift:22:17: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m20 |[0;0m let metaData: UploadMetadata
[0;36m21 |[0;0m
[0;36m22 |[0;0m let queue = [4;39mDispatchQueue[0;0m(label: "com.tuskit.uploadDataTask")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m private var isCanceled = false
/host/spi-builder-workspace/Sources/TUSKit/Tasks/UploadDataTask.swift:29:35: [1;31merror: [1;39m'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m27 |[0;0m private let files: Files
[0;36m28 |[0;0m private let range: Range<Int>?
[0;36m29 |[0;0m private weak var sessionTask: [4;39mURLSessionUploadTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m30 |[0;0m private let headerGenerator: HeaderGenerator
[0;36m31 |[0;0m
Foundation.URLSessionUploadTask:2:18: [1;39mnote: [1;39m'URLSessionUploadTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionUploadTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionUploadTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/TUSKit/UploadMetada.swift:15:17: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m13 |[0;0m final class UploadMetadata: Codable {
[0;36m14 |[0;0m
[0;36m15 |[0;0m let queue = [4;39mDispatchQueue[0;0m(label: "com.tuskit.uploadmetadata")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m16 |[0;0m
[0;36m17 |[0;0m 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/HTTPURLResponse+Headers.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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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