Build Information
Failed to build TUSKit, reference 3.7.1 (167938), with Swift 6.4 for Linux on 24 Sep 2026 06:25:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build 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: linux
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-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line: cd /host
/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/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:64: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;36m62 |[0;0m
[0;36m63 |[0;0m let sessionIdentifier: String?
[0;36m64 |[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;36m65 |[0;0m private let sessionDelegate = SessionDataDelegate()
[0;36m66 |[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: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;36m66 |[0;0m private let queue = DispatchQueue(label: "com.tus.TUSAPI")
[0;36m67 |[0;0m private var backgroundHandler: (() -> Void)? = nil
[0;36m68 |[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;36m69 |[0;0m private var taskData: [String: Data] = [:]
[0;36m70 |[0;0m
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:77: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;36m75 |[0;0m }
[0;36m76 |[0;0m
[0;36m77 |[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;36m78 |[0;0m self.session = session
[0;36m79 |[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:83: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;36m81 |[0;0m }
[0;36m82 |[0;0m
[0;36m83 |[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;36m84 |[0;0m self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
[0;36m85 |[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:90: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;36m88 |[0;0m
[0;36m89 |[0;0m @discardableResult
[0;36m90 |[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;36m91 |[0;0m let request = makeRequest(url: server, method: .options, headers: [:])
[0;36m92 |[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:136: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;36m134 |[0;0m /// - completion: A completion giving us the `Status` of an upload.
[0;36m135 |[0;0m @discardableResult
[0;36m136 |[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;36m137 |[0;0m let request = makeRequest(url: remoteDestination, method: .head, headers: headers ?? [:])
[0;36m138 |[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:176: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;36m174 |[0;0m /// - completion: Completes with a result that gives a URL to upload to.
[0;36m175 |[0;0m @discardableResult
[0;36m176 |[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;36m177 |[0;0m let request = makeCreateRequest(metaData: metaData, customHeaders: customHeaders)
[0;36m178 |[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:208:90: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m206 |[0;0m }
[0;36m207 |[0;0m
[0;36m208 |[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;36m209 |[0;0m func makeUploadMetaHeader() -> [String: String] {
[0;36m210 |[0;0m var metaDataDict: [String: String] = [:]
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:262:184: [1;31merror: [1;39m'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m260 |[0;0m /// - completion: Completionhandler for when the upload is finished.
[0;36m261 |[0;0m @discardableResult
[0;36m262 |[0;0m func upload(data: Data, range: Range<Int>?, location: URL, metaData: UploadMetadata, customHeaders: [String: String], completion: @escaping (Result<Int, TUSAPIError>) -> 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;36m263 |[0;0m let offset: Int
[0;36m264 |[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:313:189: [1;31merror: [1;39m'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m311 |[0;0m }
[0;36m312 |[0;0m
[0;36m313 |[0;0m func upload(fromFile file: URL, offset: Int = 0, location: URL, metaData: UploadMetadata, customHeaders: [String: String], completion: @escaping (Result<Int, TUSAPIError>) -> 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;36m314 |[0;0m let length: Int
[0;36m315 |[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:392:90: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m390 |[0;0m /// - headers: The headers to add to the request.
[0;36m391 |[0;0m /// - Returns: A new URLRequest to use in any TUS API call.
[0;36m392 |[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;36m393 |[0;0m var request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 30)
[0;36m394 |[0;0m request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:446:48: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m444 |[0;0m
[0;36m445 |[0;0m private extension TUSAPI {
[0;36m446 |[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;36m447 |[0;0m weak var api: TUSAPI?
[0;36m448 |[0;0m
/host/spi-builder-workspace/Sources/TUSKit/TUSAPI.swift:449: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;36m447 |[0;0m weak var api: TUSAPI?
[0;36m448 |[0;0m
[0;36m449 |[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;36m450 |[0;0m guard let api, let identifier = dataTask.taskDescription else {
[0;36m451 |[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:449: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;36m447 |[0;0m weak var api: TUSAPI?
[0;36m448 |[0;0m
[0;36m449 |[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;36m450 |[0;0m guard let api, let identifier = dataTask.taskDescription else {
[0;36m451 |[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:457: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;36m455 |[0;0m }
[0;36m456 |[0;0m
[0;36m457 |[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;36m458 |[0;0m api?.handleCompletionOfTask(task, withError: error)
[0;36m459 |[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:457: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;36m455 |[0;0m }
[0;36m456 |[0;0m
[0;36m457 |[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;36m458 |[0;0m api?.handleCompletionOfTask(task, withError: error)
[0;36m459 |[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:461: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;36m459 |[0;0m }
[0;36m460 |[0;0m
[0;36m461 |[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;36m462 |[0;0m api?.handleFinishOfBackgroundURLSessionEvents()
[0;36m463 |[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:466: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;36m464 |[0;0m }
[0;36m465 |[0;0m
[0;36m466 |[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;36m467 |[0;0m queue.sync {
[0;36m468 |[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:110: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;36m108 |[0;0m /// make sure that you provide an empty array in the `supportExtensions` parameter.
[0;36m109 |[0;0m /// - Throws: File related errors when it can't make a directory at the designated path.
[0;36m110 |[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;36m111 |[0;0m storageDirectory: URL? = nil, chunkSize: Int = 500 * 1024,
[0;36m112 |[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:157: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;36m155 |[0;0m @available(*, deprecated, message: "Use the init(server:sessionIdentifier:sessionConfiguration:storageDirectory:chunkSize:supportedExtension) initializer instead.")
[0;36m156 |[0;0m public init(server: URL, sessionIdentifier: String, storageDirectory: URL? = nil,
[0;36m157 |[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;36m158 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
[0;36m159 |[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:157:50: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m155 |[0;0m @available(*, deprecated, message: "Use the init(server:sessionIdentifier:sessionConfiguration:storageDirectory:chunkSize:supportedExtension) initializer instead.")
[0;36m156 |[0;0m public init(server: URL, sessionIdentifier: String, storageDirectory: URL? = nil,
[0;36m157 |[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;36m158 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
[0;36m159 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:157:50: [1;31merror: [1;39mdefault argument value of type '_' cannot be converted to type 'AnyObject'[0;0m
[0;36m155 |[0;0m @available(*, deprecated, message: "Use the init(server:sessionIdentifier:sessionConfiguration:storageDirectory:chunkSize:supportedExtension) initializer instead.")
[0;36m156 |[0;0m public init(server: URL, sessionIdentifier: String, storageDirectory: URL? = nil,
[0;36m157 |[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;36m158 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
[0;36m159 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:192: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;36m190 |[0;0m @available(iOS 15.0, macOS 12.0, watchOS 8.0, *)
[0;36m191 |[0;0m public init(server: URL, storageDirectory: URL? = nil,
[0;36m192 |[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;36m193 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
[0;36m194 |[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:192:50: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m190 |[0;0m @available(iOS 15.0, macOS 12.0, watchOS 8.0, *)
[0;36m191 |[0;0m public init(server: URL, storageDirectory: URL? = nil,
[0;36m192 |[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;36m193 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
[0;36m194 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
/host/spi-builder-workspace/Sources/TUSKit/TUSClient.swift:192:50: [1;31merror: [1;39mdefault argument value of type '_' cannot be converted to type 'AnyObject'[0;0m
[0;36m190 |[0;0m @available(iOS 15.0, macOS 12.0, watchOS 8.0, *)
[0;36m191 |[0;0m public init(server: URL, storageDirectory: URL? = nil,
[0;36m192 |[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;36m193 |[0;0m supportedExtensions: [TUSProtocolExtension] = [.creation], reportingQueue: DispatchQueue = DispatchQueue.main,
[0;36m194 |[0;0m generateHeaders: HeaderGenerationHandler? = nil) throws {
/host/spi-builder-workspace/Sources/TUSKit/Tasks/CreationTask.swift:28: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;36m26 |[0;0m private let headerGenerator: HeaderGenerator
[0;36m27 |[0;0m private var didCancel: Bool = false
[0;36m28 |[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;36m29 |[0;0m
[0;36m30 |[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/StatusTask.swift:27: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;36m25 |[0;0m private let headerGenerator: HeaderGenerator
[0;36m26 |[0;0m private var didCancel: Bool = false
[0;36m27 |[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;36m28 |[0;0m
[0;36m29 |[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/UploadDataTask.swift:30:30: [1;31merror: [1;39mcannot find type 'NSKeyValueObservation' in scope[0;0m
[0;36m28 |[0;0m private let files: Files
[0;36m29 |[0;0m private let range: Range<Int>?
[0;36m30 |[0;0m private var observation: [4;39mNSKeyValueObservation[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'NSKeyValueObservation' in scope[0;0m
[0;36m31 |[0;0m private weak var sessionTask: URLSessionUploadTask?
[0;36m32 |[0;0m private let headerGenerator: HeaderGenerator
/host/spi-builder-workspace/Sources/TUSKit/Tasks/UploadDataTask.swift:31: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;36m29 |[0;0m private let range: Range<Int>?
[0;36m30 |[0;0m private var observation: NSKeyValueObservation?
[0;36m31 |[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;36m32 |[0;0m private let headerGenerator: HeaderGenerator
[0;36m33 |[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/Tasks/UploadDataTask.swift:175:28: [1;31merror: [1;39m'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m173 |[0;0m
[0;36m174 |[0;0m @available(iOS 11.0, macOS 10.13, *)
[0;36m175 |[0;0m func observeTask(task: [4;39mURLSessionUploadTask[0;0m, size: Int) {
[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;36m176 |[0;0m let targetRange = 0..<size
[0;36m177 |[0;0m let uploaded = metaData.uploadedRange?.count ?? 0
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
[#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 x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -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 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fno-omit-frame-pointer -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-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-linux-x86_64/TUSKit-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-linux-x86_64/TUSKit-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-linux-x86_64/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-linux-x86_64/TUSKit-t.build/Objects-normal/x86_64/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-linux-x86_64/TUSKit-t.build/Objects-normal/x86_64/Modules/TUSKit.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-linux-x86_64/TUSKit-t.build/Objects-normal/x86_64/Modules/TUSKit.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-linux-x86_64/TUSKit-t.build/Objects-normal/x86_64/TUSKit-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-linux-x86_64/TUSKit-t.build/Objects-normal/x86_64/TUSKit-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-linux-x86_64/TUSKit-t.build/Objects-normal/x86_64/TUSKit-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/TUSKit.build/Debug-linux-x86_64/TUSKit-t.build/Objects-normal/x86_64/Modules/TUSKit.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux