Build Information
Failed to build Thrift with Swift 5.8 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.28.7
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/undefinedlabs/Thrift-Swift.git
Reference: master
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/undefinedlabs/Thrift-Swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 18ff09e Merge pull request #1 from RayZhao1998/feature/swift5.2
Cloned https://github.com/undefinedlabs/Thrift-Swift.git
Revision (git rev-parse @):
18ff09e6b30e589ed38f90a1af23e193b8ecef8e
SUCCESS checkout https://github.com/undefinedlabs/Thrift-Swift.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: $PWD/checkout
https://github.com/undefinedlabs/Thrift-Swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/29] Emitting module Thrift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var responseValidate: ((HTTPURLResponse?, Data?) throws -> Void)?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:28:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:31:70: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class func setupDefaultsForSessionConfiguration(_ config: URLSessionConfiguration, withProtocolName protocolName: String?) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession, url: URL) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:59:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validateResponse(_ response: HTTPURLResponse?, data: Data?) throws {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:37: error: cannot find type 'URLRequest' in scope
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:125: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
[2/32] Compiling Thrift TFileHandleTransport.swift
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var responseValidate: ((HTTPURLResponse?, Data?) throws -> Void)?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:28:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:31:70: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class func setupDefaultsForSessionConfiguration(_ config: URLSessionConfiguration, withProtocolName protocolName: String?) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession, url: URL) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:59:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validateResponse(_ response: HTTPURLResponse?, data: Data?) throws {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:37: error: cannot find type 'URLRequest' in scope
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:125: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:38:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~~~~~~ ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:38:36: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:39:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
config.urlCache = nil
~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:39:25: error: 'nil' requires a contextual type
config.urlCache = nil
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:41:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
config.httpShouldUsePipelining = true
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:42:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldSetCookies'
config.httpShouldSetCookies = true
~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:43:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
config.httpAdditionalHeaders = ["Content-Type": thriftContentType,
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:20: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:105:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:107:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: factory.url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:132:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if taskError == nil && httpResponse.statusCode != 200 {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:166:11: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
task?.resume()
~~~~~ ^~~~~~
[3/32] Compiling Thrift TFileTransport.swift
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var responseValidate: ((HTTPURLResponse?, Data?) throws -> Void)?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:28:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:31:70: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class func setupDefaultsForSessionConfiguration(_ config: URLSessionConfiguration, withProtocolName protocolName: String?) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession, url: URL) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:59:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validateResponse(_ response: HTTPURLResponse?, data: Data?) throws {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:37: error: cannot find type 'URLRequest' in scope
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:125: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:38:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~~~~~~ ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:38:36: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:39:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
config.urlCache = nil
~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:39:25: error: 'nil' requires a contextual type
config.urlCache = nil
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:41:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
config.httpShouldUsePipelining = true
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:42:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldSetCookies'
config.httpShouldSetCookies = true
~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:43:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
config.httpAdditionalHeaders = ["Content-Type": thriftContentType,
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:20: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:105:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:107:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: factory.url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:132:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if taskError == nil && httpResponse.statusCode != 200 {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:166:11: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
task?.resume()
~~~~~ ^~~~~~
[4/32] Compiling Thrift TFramedTransport.swift
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var responseValidate: ((HTTPURLResponse?, Data?) throws -> Void)?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:28:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:31:70: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class func setupDefaultsForSessionConfiguration(_ config: URLSessionConfiguration, withProtocolName protocolName: String?) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession, url: URL) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:59:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validateResponse(_ response: HTTPURLResponse?, data: Data?) throws {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:37: error: cannot find type 'URLRequest' in scope
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:125: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:38:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~~~~~~ ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:38:36: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:39:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
config.urlCache = nil
~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:39:25: error: 'nil' requires a contextual type
config.urlCache = nil
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:41:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
config.httpShouldUsePipelining = true
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:42:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldSetCookies'
config.httpShouldSetCookies = true
~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:43:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
config.httpAdditionalHeaders = ["Content-Type": thriftContentType,
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:20: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:105:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:107:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: factory.url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:132:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if taskError == nil && httpResponse.statusCode != 200 {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:166:11: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
task?.resume()
~~~~~ ^~~~~~
[5/32] Compiling Thrift THTTPSessionTransport.swift
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var responseValidate: ((HTTPURLResponse?, Data?) throws -> Void)?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:28:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:31:70: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class func setupDefaultsForSessionConfiguration(_ config: URLSessionConfiguration, withProtocolName protocolName: String?) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession, url: URL) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:59:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validateResponse(_ response: HTTPURLResponse?, data: Data?) throws {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:37: error: cannot find type 'URLRequest' in scope
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:125: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:38:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~~~~~~ ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:38:36: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:39:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
config.urlCache = nil
~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:39:25: error: 'nil' requires a contextual type
config.urlCache = nil
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:41:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
config.httpShouldUsePipelining = true
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:42:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldSetCookies'
config.httpShouldSetCookies = true
~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:43:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
config.httpAdditionalHeaders = ["Content-Type": thriftContentType,
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:20: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:105:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:107:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: factory.url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:132:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if taskError == nil && httpResponse.statusCode != 200 {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:166:11: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
task?.resume()
~~~~~ ^~~~~~
[6/32] Compiling Thrift LinuxHelper.swift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinuxHelper.swift:34:16: warning: 'unsafeBitCast' from 'Int' to 'UInt' can be replaced with 'bitPattern:' initializer on 'UInt'
let cast = unsafeBitCast(rhs, to: UInt.self)
^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
UInt(bitPattern: )
[7/32] Compiling Thrift TApplicationError.swift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinuxHelper.swift:34:16: warning: 'unsafeBitCast' from 'Int' to 'UInt' can be replaced with 'bitPattern:' initializer on 'UInt'
let cast = unsafeBitCast(rhs, to: UInt.self)
^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
UInt(bitPattern: )
[8/32] Compiling Thrift TBinary.swift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinuxHelper.swift:34:16: warning: 'unsafeBitCast' from 'Int' to 'UInt' can be replaced with 'bitPattern:' initializer on 'UInt'
let cast = unsafeBitCast(rhs, to: UInt.self)
^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
UInt(bitPattern: )
[9/32] Compiling Thrift TBinaryProtocol.swift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinuxHelper.swift:34:16: warning: 'unsafeBitCast' from 'Int' to 'UInt' can be replaced with 'bitPattern:' initializer on 'UInt'
let cast = unsafeBitCast(rhs, to: UInt.self)
^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
UInt(bitPattern: )
[10/32] Compiling Thrift TProcessor.swift
[11/32] Compiling Thrift TProtocol.swift
[12/32] Compiling Thrift TProtocolError.swift
[13/32] Compiling Thrift TSSLSocketTransport.swift
[14/32] Compiling Thrift TTransportError.swift
[15/32] Compiling Thrift TWrappedProtocol.swift
[16/32] Compiling Thrift Thrift.swift
[17/32] Compiling Thrift TClient.swift
[18/32] Compiling Thrift TCompactProtocol.swift
[19/32] Compiling Thrift TEnum.swift
[20/32] Compiling Thrift TError.swift
[21/32] Compiling Thrift TSSLSocketTransportError.swift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
[22/32] Compiling Thrift TSerializable.swift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
[23/32] Compiling Thrift TSet.swift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
[24/32] Compiling Thrift TSocketServer.swift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
[25/32] Compiling Thrift TSocketTransport.swift
[26/32] Compiling Thrift TStreamTransport.swift
[27/32] Compiling Thrift TStruct.swift
[28/32] Compiling Thrift TTransport.swift
[29/32] Compiling Thrift TList.swift
[30/32] Compiling Thrift TMap.swift
[31/32] Compiling Thrift TMemoryBufferTransport.swift
[32/32] Compiling Thrift TMultiplexedProtocol.swift
[0/1] Planning build
Building for debugging...
[1/12] Compiling Thrift TSet.swift
[2/12] Compiling Thrift TSerializable.swift
[3/15] Compiling Thrift TSSLSocketTransportError.swift
[4/16] Compiling Thrift TFramedTransport.swift
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var responseValidate: ((HTTPURLResponse?, Data?) throws -> Void)?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:28:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:31:70: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class func setupDefaultsForSessionConfiguration(_ config: URLSessionConfiguration, withProtocolName protocolName: String?) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession, url: URL) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:59:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validateResponse(_ response: HTTPURLResponse?, data: Data?) throws {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:37: error: cannot find type 'URLRequest' in scope
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:125: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:38:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~~~~~~ ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:38:36: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:39:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
config.urlCache = nil
~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:39:25: error: 'nil' requires a contextual type
config.urlCache = nil
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:41:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
config.httpShouldUsePipelining = true
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:42:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldSetCookies'
config.httpShouldSetCookies = true
~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:43:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
config.httpAdditionalHeaders = ["Content-Type": thriftContentType,
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:20: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:105:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:107:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: factory.url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:132:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if taskError == nil && httpResponse.statusCode != 200 {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:166:11: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
task?.resume()
~~~~~ ^~~~~~
[5/16] Compiling Thrift THTTPSessionTransport.swift
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var responseValidate: ((HTTPURLResponse?, Data?) throws -> Void)?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:28:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:31:70: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class func setupDefaultsForSessionConfiguration(_ config: URLSessionConfiguration, withProtocolName protocolName: String?) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession, url: URL) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:59:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validateResponse(_ response: HTTPURLResponse?, data: Data?) throws {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:37: error: cannot find type 'URLRequest' in scope
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:125: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:38:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'requestCachePolicy'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~~~~~~ ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:38:36: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
config.requestCachePolicy = .reloadIgnoringLocalCacheData
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:39:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
config.urlCache = nil
~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:39:25: error: 'nil' requires a contextual type
config.urlCache = nil
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:41:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldUsePipelining'
config.httpShouldUsePipelining = true
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:42:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpShouldSetCookies'
config.httpShouldSetCookies = true
~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:43:14: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
config.httpAdditionalHeaders = ["Content-Type": thriftContentType,
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:20: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:105:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:107:19: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: factory.url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:132:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if taskError == nil && httpResponse.statusCode != 200 {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:166:11: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
task?.resume()
~~~~~ ^~~~~~
[6/17] Compiling Thrift TSocketServer.swift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
[7/18] Compiling Thrift TMemoryBufferTransport.swift
[8/19] Compiling Thrift TMultiplexedProtocol.swift
[9/20] Compiling Thrift TMap.swift
[10/21] Compiling Thrift TStruct.swift
[11/22] Compiling Thrift TTransport.swift
[12/23] Compiling Thrift TProtocol.swift
[13/24] Compiling Thrift TEnum.swift
[14/25] Compiling Thrift TWrappedProtocol.swift
[15/25] Compiling Thrift TTransportError.swift
[16/25] Compiling Thrift TSocketTransport.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/25] Compiling Thrift TFileHandleTransport.swift
[18/25] Compiling Thrift TFileTransport.swift
[19/25] Compiling Thrift TBinary.swift
[20/25] Compiling Thrift TBinaryProtocol.swift
[21/25] Emitting module Thrift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var responseValidate: ((HTTPURLResponse?, Data?) throws -> Void)?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:28:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:31:70: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class func setupDefaultsForSessionConfiguration(_ config: URLSessionConfiguration, withProtocolName protocolName: String?) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession, url: URL) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:59:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func validateResponse(_ response: HTTPURLResponse?, data: Data?) throws {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:37: error: cannot find type 'URLRequest' in scope
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:125: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
[22/25] Compiling Thrift LinuxHelper.swift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinuxHelper.swift:34:16: warning: 'unsafeBitCast' from 'Int' to 'UInt' can be replaced with 'bitPattern:' initializer on 'UInt'
let cast = unsafeBitCast(rhs, to: UInt.self)
^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
UInt(bitPattern: )
[23/25] Compiling Thrift TApplicationError.swift
/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
public static let success = kCFSocketSuccess
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinuxHelper.swift:34:16: warning: 'unsafeBitCast' from 'Int' to 'UInt' can be replaced with 'bitPattern:' initializer on 'UInt'
let cast = unsafeBitCast(rhs, to: UInt.self)
^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
UInt(bitPattern: )
[24/25] Compiling Thrift TCompactProtocol.swift
[25/25] Compiling Thrift TList.swift
BUILD FAILURE 5.8 linux