Build Information
Failed to build APIKit, reference 5.4.0 (b839e5), with Swift 6.4 for Linux on 18 Sep 2026 18:19:32 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-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/ishkawa/APIKit.git
Reference: 5.4.0
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/ishkawa/APIKit
* tag 5.4.0 -> FETCH_HEAD
HEAD is now at b839e53 Set version 5.4.0
Cloned https://github.com/ishkawa/APIKit.git
Revision (git rev-parse @):
b839e53b870104798035b279d2a6168b0a2227b1
SUCCESS checkout https://github.com/ishkawa/APIKit.git at 5.4.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.4
Building package at path: $PWD
https://github.com/ishkawa/APIKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Tests/APIKitTests/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/APIKit/Info.plist
Building for debugging...
[Planning deferred tasks]
[33 / 41] APIKit
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/APIKit/BodyParameters/Data+InputStream.swift:5:10: [1;33mwarning: [1;39massociated value 'unreadableStream' of 'Sendable'-conforming enum 'InputStreamError' has non-Sendable type 'InputStream'[0;0m
[0;36m3 |[0;0m enum InputStreamError: Error {
[0;36m4 |[0;0m case invalidDataCapacity(Int)
[0;36m5 |[0;0m case unreadableStream(InputStream)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'unreadableStream' of 'Sendable'-conforming enum 'InputStreamError' has non-Sendable type 'InputStream'[0;0m
[0;36m6 |[0;0m }
[0;36m7 |[0;0m
Foundation.InputStream:1:12: [1;39mnote: [1;39mclass 'InputStream' does not conform to the 'Sendable' protocol[0;0m
[0;36m1 |[0;0m open class InputStream : Stream {
[0;36m|[0;0m `- [1;39mnote: [1;39mclass 'InputStream' does not conform to the 'Sendable' protocol[0;0m
[0;36m2 |[0;0m open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
[0;36m3 |[0;0m open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/host/spi-builder-workspace/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift:32:78: [1;31merror: [1;39mcannot find 'arc4random' in scope[0;0m
[0;36m30 |[0;0m public let entityType: EntityType
[0;36m31 |[0;0m
[0;36m32 |[0;0m public init(parts: [Part], boundary: String = String(format: "%08x%08x", [4;39marc4random[0;0m(), arc4random()), entityType: EntityType = .data) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'arc4random' in scope[0;0m
[0;36m33 |[0;0m self.parts = parts
[0;36m34 |[0;0m self.boundary = boundary
/host/spi-builder-workspace/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift:32:92: [1;31merror: [1;39mcannot find 'arc4random' in scope[0;0m
[0;36m30 |[0;0m public let entityType: EntityType
[0;36m31 |[0;0m
[0;36m32 |[0;0m public init(parts: [Part], boundary: String = String(format: "%08x%08x", arc4random(), [4;39marc4random[0;0m()), entityType: EntityType = .data) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'arc4random' in scope[0;0m
[0;36m33 |[0;0m self.parts = parts
[0;36m34 |[0;0m self.boundary = boundary
/host/spi-builder-workspace/Sources/APIKit/Error/RequestError.swift:9:31: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m7 |[0;0m
[0;36m8 |[0;0m /// Indicates `URLRequest` built by `Request.buildURLRequest` is unexpected.
[0;36m9 |[0;0m case unexpectedURLRequest([4;39mURLRequest[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m10 |[0;0m }
[0;36m11 |[0;0m
/host/spi-builder-workspace/Sources/APIKit/Error/ResponseError.swift:7:29: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m5 |[0;0m public enum ResponseError: Error {
[0;36m6 |[0;0m /// Indicates the session adapter returned `URLResponse` that fails to down-cast to `HTTPURLResponse`.
[0;36m7 |[0;0m case nonHTTPURLResponse([4;39mURLResponse[0;0m?)
[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;36m8 |[0;0m
[0;36m9 |[0;0m /// Indicates `HTTPURLResponse.statusCode` is not acceptable.
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/APIKit/Request.swift:48:54: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m46 |[0;0m /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
[0;36m47 |[0;0m /// - Throws: `Error`
[0;36m48 |[0;0m func intercept(urlRequest: URLRequest) throws -> [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m49 |[0;0m
[0;36m50 |[0;0m /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/Sources/APIKit/Request.swift:48:32: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m46 |[0;0m /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
[0;36m47 |[0;0m /// - Throws: `Error`
[0;36m48 |[0;0m func intercept(urlRequest: [4;39mURLRequest[0;0m) throws -> URLRequest
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m49 |[0;0m
[0;36m50 |[0;0m /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/Sources/APIKit/Request.swift:55:46: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m53 |[0;0m /// if the HTTP status code is not in `200..<300`.
[0;36m54 |[0;0m /// - Throws: `Error`
[0;36m55 |[0;0m func intercept(object: Any, urlResponse: [4;39mHTTPURLResponse[0;0m) throws -> Any
[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;36m56 |[0;0m
[0;36m57 |[0;0m /// Build `Response` instance from raw response object. This method is called after
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/APIKit/Request.swift:60:50: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m58 |[0;0m /// `intercept(object:urlResponse:)` if it does not throw any error.
[0;36m59 |[0;0m /// - Throws: `Error`
[0;36m60 |[0;0m func response(from object: Any, urlResponse: [4;39mHTTPURLResponse[0;0m) throws -> Response
[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;36m61 |[0;0m }
[0;36m62 |[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/APIKit/Request.swift:92:54: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m90 |[0;0m }
[0;36m91 |[0;0m
[0;36m92 |[0;0m func intercept(urlRequest: URLRequest) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m93 |[0;0m return urlRequest
[0;36m94 |[0;0m }
/host/spi-builder-workspace/Sources/APIKit/Request.swift:92:32: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m90 |[0;0m }
[0;36m91 |[0;0m
[0;36m92 |[0;0m func intercept(urlRequest: [4;39mURLRequest[0;0m) throws -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m93 |[0;0m return urlRequest
[0;36m94 |[0;0m }
/host/spi-builder-workspace/Sources/APIKit/Request.swift:96:46: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m94 |[0;0m }
[0;36m95 |[0;0m
[0;36m96 |[0;0m func intercept(object: Any, urlResponse: [4;39mHTTPURLResponse[0;0m) throws -> Any {
[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;36m97 |[0;0m guard 200..<300 ~= urlResponse.statusCode else {
[0;36m98 |[0;0m throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
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/APIKit/Request.swift:105:38: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m103 |[0;0m /// Builds `URLRequest` from properties of `self`.
[0;36m104 |[0;0m /// - Throws: `RequestError`, `Error`
[0;36m105 |[0;0m func buildURLRequest() throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m106 |[0;0m let url = path.isEmpty ? baseURL : baseURL.appendingPathComponent(path)
[0;36m107 |[0;0m guard var components = URLComponents(url: url, resolvingAgainstBaseURL: true) else {
/host/spi-builder-workspace/Sources/APIKit/Request.swift:142:41: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m140 |[0;0m /// Builds `Response` from response `Data`.
[0;36m141 |[0;0m /// - Throws: `ResponseError`, `Error`
[0;36m142 |[0;0m func parse(data: Data, urlResponse: [4;39mHTTPURLResponse[0;0m) throws -> Response {
[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;36m143 |[0;0m let parsedObject = try dataParser.parse(data: data)
[0;36m144 |[0;0m let passedObject = try intercept(object: parsedObject, urlResponse: urlResponse)
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/APIKit/Request.swift:150:50: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m148 |[0;0m
[0;36m149 |[0;0m public extension Request where Response == Void {
[0;36m150 |[0;0m func response(from object: Any, urlResponse: [4;39mHTTPURLResponse[0;0m) throws {
[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;36m151 |[0;0m return
[0;36m152 |[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/APIKit/SessionAdapter/SessionAdapter.swift:14:38: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m12 |[0;0m public protocol SessionAdapter {
[0;36m13 |[0;0m /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
[0;36m14 |[0;0m func createTask(with URLRequest: [4;39mURLRequest[0;0m, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m15 |[0;0m
[0;36m16 |[0;0m /// Collects tasks from backend networking stack. `handler` must be called after collecting.
/host/spi-builder-workspace/Sources/APIKit/Session.swift:23:53: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m21 |[0;0m // Shared session for class methods
[0;36m22 |[0;0m private static let privateShared: Session = {
[0;36m23 |[0;0m let configuration = [4;39mURLSessionConfiguration[0;0m.[4;39mdefault[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m24 |[0;0m let adapter = URLSessionAdapter(configuration: configuration)
[0;36m25 |[0;0m return Session(adapter: adapter)
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:77: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m12 |[0;0m public protocol SessionAdapter {
[0;36m13 |[0;0m /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
[0;36m14 |[0;0m func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, [4;39mURLResponse[0;0m?, Error?) -> Void) -> SessionTask
[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;36m15 |[0;0m
[0;36m16 |[0;0m /// Collects tasks from backend networking stack. `handler` must be called after collecting.
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/APIKit/SessionAdapter/URLSessionAdapter.swift:3:1: [1;31merror: [1;39mnon-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m1 |[0;0m import Foundation
[0;36m2 |[0;0m
[0;36m3 |[0;0m extension [4;39mURLSessionTask[0;0m: SessionTask {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m4 |[0;0m
[0;36m5 |[0;0m }
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:57: [1;31merror: [1;39mcannot find type 'URLSessionDelegate' in scope[0;0m
[0;36m15 |[0;0m /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
[0;36m16 |[0;0m /// `super` in these methods if you implement them.
[0;36m17 |[0;0m open class URLSessionAdapter: NSObject, SessionAdapter, [4;39mURLSessionDelegate[0;0m, URLSessionTaskDelegate, URLSessionDataDelegate {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDelegate' in scope[0;0m
[0;36m18 |[0;0m /// The underlying `URLSession` instance.
[0;36m19 |[0;0m open var urlSession: URLSession!
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:77: [1;31merror: [1;39mcannot find type 'URLSessionTaskDelegate' in scope[0;0m
[0;36m15 |[0;0m /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
[0;36m16 |[0;0m /// `super` in these methods if you implement them.
[0;36m17 |[0;0m open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, [4;39mURLSessionTaskDelegate[0;0m, URLSessionDataDelegate {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionTaskDelegate' in scope[0;0m
[0;36m18 |[0;0m /// The underlying `URLSession` instance.
[0;36m19 |[0;0m open var urlSession: URLSession!
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:101: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m15 |[0;0m /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
[0;36m16 |[0;0m /// `super` in these methods if you implement them.
[0;36m17 |[0;0m open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, [4;39mURLSessionDataDelegate[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m18 |[0;0m /// The underlying `URLSession` instance.
[0;36m19 |[0;0m open var urlSession: URLSession!
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:19: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;36m17 |[0;0m open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
[0;36m18 |[0;0m /// The underlying `URLSession` instance.
[0;36m19 |[0;0m open var urlSession: [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;36m20 |[0;0m
[0;36m21 |[0;0m /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
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/APIKit/SessionAdapter/URLSessionAdapter.swift:22: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;36m20 |[0;0m
[0;36m21 |[0;0m /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
[0;36m22 |[0;0m public init(configuration: [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;36m23 |[0;0m super.init()
[0;36m24 |[0;0m self.urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
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/APIKit/SessionAdapter/URLSessionAdapter.swift:28:43: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
[0;36m28 |[0;0m open func createTask(with URLRequest: [4;39mURLRequest[0;0m, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m29 |[0;0m let task = urlSession.dataTask(with: URLRequest)
[0;36m30 |[0;0m
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:28:82: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
[0;36m28 |[0;0m open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, [4;39mURLResponse[0;0m?, Error?) -> Void) -> SessionTask {
[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;36m29 |[0;0m let task = urlSession.dataTask(with: URLRequest)
[0;36m30 |[0;0m
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/APIKit/SessionAdapter/URLSessionAdapter.swift:45:67: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m43 |[0;0m }
[0;36m44 |[0;0m
[0;36m45 |[0;0m private func setBuffer(_ buffer: NSMutableData, forTask task: [4;39mURLSessionTask[0;0m) {
[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;36m46 |[0;0m objc_setAssociatedObject(task, &dataTaskResponseBufferKey, buffer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
[0;36m47 |[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/APIKit/SessionAdapter/URLSessionAdapter.swift:49:35: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m47 |[0;0m }
[0;36m48 |[0;0m
[0;36m49 |[0;0m private func buffer(for task: [4;39mURLSessionTask[0;0m) -> NSMutableData? {
[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;36m50 |[0;0m return objc_getAssociatedObject(task, &dataTaskResponseBufferKey) as? NSMutableData
[0;36m51 |[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/APIKit/SessionAdapter/URLSessionAdapter.swift:53:58: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m51 |[0;0m }
[0;36m52 |[0;0m
[0;36m53 |[0;0m private func setHandler(_ handler: @escaping (Data?, [4;39mURLResponse[0;0m?, Error?) -> Void, forTask task: URLSessionTask) {
[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;36m54 |[0;0m objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
[0;36m55 |[0;0m }
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/APIKit/SessionAdapter/URLSessionAdapter.swift:53:103: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m51 |[0;0m }
[0;36m52 |[0;0m
[0;36m53 |[0;0m private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: [4;39mURLSessionTask[0;0m) {
[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;36m54 |[0;0m objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
[0;36m55 |[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/APIKit/SessionAdapter/URLSessionAdapter.swift:57:36: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m55 |[0;0m }
[0;36m56 |[0;0m
[0;36m57 |[0;0m private func handler(for task: [4;39mURLSessionTask[0;0m) -> ((Data?, URLResponse?, Error?) -> Void)? {
[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;36m58 |[0;0m return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
[0;36m59 |[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/APIKit/SessionAdapter/URLSessionAdapter.swift:57:64: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m55 |[0;0m }
[0;36m56 |[0;0m
[0;36m57 |[0;0m private func handler(for task: URLSessionTask) -> ((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;36m58 |[0;0m return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
[0;36m59 |[0;0m }
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/APIKit/SessionAdapter/URLSessionAdapter.swift:62:37: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m60 |[0;0m
[0;36m61 |[0;0m // MARK: URLSessionTaskDelegate
[0;36m62 |[0;0m open 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;36m63 |[0;0m handler(for: task)?(buffer(for: task) as Data?, task.response, error)
[0;36m64 |[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/APIKit/SessionAdapter/URLSessionAdapter.swift:62:55: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m60 |[0;0m
[0;36m61 |[0;0m // MARK: URLSessionTaskDelegate
[0;36m62 |[0;0m open 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;36m63 |[0;0m handler(for: task)?(buffer(for: task) as Data?, task.response, error)
[0;36m64 |[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/APIKit/SessionAdapter/URLSessionAdapter.swift:67:37: [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
[0;36m66 |[0;0m // MARK: URLSessionDataDelegate
[0;36m67 |[0;0m open 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;36m68 |[0;0m buffer(for: dataTask)?.append(data)
[0;36m69 |[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/APIKit/SessionAdapter/URLSessionAdapter.swift:67:59: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m65 |[0;0m
[0;36m66 |[0;0m // MARK: URLSessionDataDelegate
[0;36m67 |[0;0m open 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;36m68 |[0;0m buffer(for: dataTask)?.append(data)
[0;36m69 |[0;0m }
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
[#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/APIKit/BodyParameters/BodyParameters.swift /host/spi-builder-workspace/Sources/APIKit/BodyParameters/Data+InputStream.swift /host/spi-builder-workspace/Sources/APIKit/BodyParameters/FormURLEncodedBodyParameters.swift /host/spi-builder-workspace/Sources/APIKit/BodyParameters/JSONBodyParameters.swift /host/spi-builder-workspace/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift /host/spi-builder-workspace/Sources/APIKit/BodyParameters/ProtobufBodyParameters.swift /host/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift /host/spi-builder-workspace/Sources/APIKit/Combine/Combine.swift /host/spi-builder-workspace/Sources/APIKit/Concurrency/Concurrency.swift /host/spi-builder-workspace/Sources/APIKit/DataParser/DataParser.swift /host/spi-builder-workspace/Sources/APIKit/DataParser/FormURLEncodedDataParser.swift /host/spi-builder-workspace/Sources/APIKit/DataParser/JSONDataParser.swift /host/spi-builder-workspace/Sources/APIKit/DataParser/ProtobufDataParser.swift /host/spi-builder-workspace/Sources/APIKit/DataParser/StringDataParser.swift /host/spi-builder-workspace/Sources/APIKit/Error/RequestError.swift /host/spi-builder-workspace/Sources/APIKit/Error/ResponseError.swift /host/spi-builder-workspace/Sources/APIKit/Error/SessionTaskError.swift /host/spi-builder-workspace/Sources/APIKit/HTTPMethod.swift /host/spi-builder-workspace/Sources/APIKit/Request.swift /host/spi-builder-workspace/Sources/APIKit/Serializations/URLEncodedSerialization.swift /host/spi-builder-workspace/Sources/APIKit/Session.swift /host/spi-builder-workspace/Sources/APIKit/SessionAdapter/SessionAdapter.swift /host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift /host/spi-builder-workspace/Sources/APIKit/Unavailable.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/APIKit.build/Debug-linux-x86_64/APIKit-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-linux-x86_64/APIKit-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-linux-x86_64/APIKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name APIKit -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-linux-x86_64/APIKit-t.build/Objects-normal/x86_64/APIKit_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/APIKit.build/Debug-linux-x86_64/APIKit-t.build/Objects-normal/x86_64/Modules/APIKit.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-linux-x86_64/APIKit-t.build/Objects-normal/x86_64/Modules/APIKit.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-linux-x86_64/APIKit-t.build/Objects-normal/x86_64/APIKit-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-linux-x86_64/APIKit-t.build/Objects-normal/x86_64/APIKit-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-linux-x86_64/APIKit-t.build/Objects-normal/x86_64/APIKit-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-linux-x86_64/APIKit-t.build/Objects-normal/x86_64/Modules/APIKit.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux