Build Information
Failed to build Swiftlane with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.25.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/onmyway133/Swiftlane.git
Reference: 0.1.5
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/onmyway133/Swiftlane
* tag 0.1.5 -> FETCH_HEAD
HEAD is now at 92829e0 Generate plist for export options
Cloned https://github.com/onmyway133/Swiftlane.git
Revision (git rev-parse @):
92829e0b761e801cd48c2798c5c2390962183363
SUCCESS checkout https://github.com/onmyway133/Swiftlane.git at 0.1.5
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/kean/Get
Fetching https://github.com/onmyway133/AppStoreConnect
Fetching https://github.com/vapor/jwt-kit
[1/37] Fetching appstoreconnect
[37/2298] Fetching appstoreconnect, get
[491/8016] Fetching appstoreconnect, get, jwt-kit
Fetching https://github.com/getGuaka/Colorizer.git
Fetched https://github.com/onmyway133/AppStoreConnect (0.74s)
Fetched https://github.com/kean/Get (0.74s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetched https://github.com/vapor/jwt-kit (0.74s)
Fetching https://github.com/onevcat/Rainbow
[1/58] Fetching colorizer
[59/1172] Fetching colorizer, rainbow
Fetched https://github.com/getGuaka/Colorizer.git (0.27s)
Fetching https://github.com/MaxDesiatov/XMLCoder.git
Fetched https://github.com/onevcat/Rainbow (0.29s)
Fetching https://github.com/onmyway133/Spek.git
[1/11048] Fetching swift-argument-parser
[885/11334] Fetching swift-argument-parser, spek
[8683/21310] Fetching swift-argument-parser, spek, xmlcoder
Fetched https://github.com/onmyway133/Spek.git (0.31s)
Fetching https://github.com/tuist/xcbeautify
[12905/21024] Fetching swift-argument-parser, xmlcoder
[21025/24140] Fetching swift-argument-parser, xmlcoder, xcbeautify
Fetched https://github.com/MaxDesiatov/XMLCoder.git (0.60s)
Fetching https://github.com/apple/swift-tools-support-core.git
[11111/14164] Fetching swift-argument-parser, xcbeautify
Fetched https://github.com/apple/swift-argument-parser.git (0.90s)
Fetching https://github.com/drmohundro/SWXMLHash.git
[2743/3116] Fetching xcbeautify
Fetched https://github.com/tuist/xcbeautify (0.40s)
Fetching https://github.com/kean/NaiveDate
[1/2766] Fetching swxmlhash
[2767/8546] Fetching swxmlhash, swift-tools-support-core
[3403/8835] Fetching swxmlhash, swift-tools-support-core, naivedate
[2197/6069] Fetching swift-tools-support-core, naivedate
Fetched https://github.com/drmohundro/SWXMLHash.git (0.34s)
Fetching https://github.com/ChargePoint/xcparse
Fetched https://github.com/kean/NaiveDate (0.25s)
Fetching https://github.com/apple/swift-crypto.git
[3642/5780] Fetching swift-tools-support-core
Fetched https://github.com/apple/swift-tools-support-core.git (0.56s)
Fetching https://github.com/JohnSundell/Files.git
[1/1574] Fetching xcparse
[458/8699] Fetching xcparse, swift-crypto
[3396/9930] Fetching xcparse, swift-crypto, files
Fetching https://github.com/kean/URLQueryEncoder
Fetched https://github.com/JohnSundell/Files.git (0.32s)
[5536/8699] Fetching xcparse, swift-crypto
Fetched https://github.com/ChargePoint/xcparse (0.72s)
Fetching https://github.com/yahoojapan/SwiftyXMLParser
[6199/7125] Fetching swift-crypto
[6200/7253] Fetching swift-crypto, urlqueryencoder
Fetched https://github.com/kean/URLQueryEncoder (0.38s)
[6840/7125] Fetching swift-crypto
[6984/7889] Fetching swift-crypto, swiftyxmlparser
Fetched https://github.com/yahoojapan/SwiftyXMLParser (0.30s)
Computing version for https://github.com/onmyway133/AppStoreConnect
Fetched https://github.com/apple/swift-crypto.git (1.40s)
Computed https://github.com/onmyway133/AppStoreConnect at 0.0.8 (0.54s)
Computing version for https://github.com/yahoojapan/SwiftyXMLParser
Computed https://github.com/yahoojapan/SwiftyXMLParser at 5.6.0 (0.40s)
Computing version for https://github.com/ChargePoint/xcparse
Computed https://github.com/ChargePoint/xcparse at 2.2.1 (0.42s)
Computing version for https://github.com/JohnSundell/Files.git
Computed https://github.com/JohnSundell/Files.git at 4.2.0 (0.38s)
Computing version for https://github.com/tuist/xcbeautify
Computed https://github.com/tuist/xcbeautify at 0.11.0 (0.39s)
Computing version for https://github.com/vapor/jwt-kit
Computed https://github.com/vapor/jwt-kit at 4.3.0 (0.40s)
Computing version for https://github.com/kean/URLQueryEncoder
Computed https://github.com/kean/URLQueryEncoder at 0.2.0 (0.42s)
Computing version for https://github.com/kean/NaiveDate
Computed https://github.com/kean/NaiveDate at 1.0.0 (0.42s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 0.5.0 (0.43s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.2.3 (0.44s)
Computing version for https://github.com/MaxDesiatov/XMLCoder.git
Computed https://github.com/MaxDesiatov/XMLCoder.git at 0.13.1 (0.39s)
Computing version for https://github.com/getGuaka/Colorizer.git
Computed https://github.com/getGuaka/Colorizer.git at 0.2.1 (1.17s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.0.3 (0.42s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 2.0.4 (0.46s)
Creating working copy for https://github.com/kean/NaiveDate
Working copy of https://github.com/kean/NaiveDate resolved at 1.0.0
Creating working copy for https://github.com/JohnSundell/Files.git
Working copy of https://github.com/JohnSundell/Files.git resolved at 4.2.0
Creating working copy for https://github.com/getGuaka/Colorizer.git
Working copy of https://github.com/getGuaka/Colorizer.git resolved at 0.2.1
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.2.3
Creating working copy for https://github.com/tuist/xcbeautify
Working copy of https://github.com/tuist/xcbeautify resolved at 0.11.0
Creating working copy for https://github.com/yahoojapan/SwiftyXMLParser
Working copy of https://github.com/yahoojapan/SwiftyXMLParser resolved at 5.6.0
Creating working copy for https://github.com/MaxDesiatov/XMLCoder.git
Working copy of https://github.com/MaxDesiatov/XMLCoder.git resolved at 0.13.1
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.0.3
Creating working copy for https://github.com/kean/Get
Working copy of https://github.com/kean/Get resolved at 0.5.0
Creating working copy for https://github.com/vapor/jwt-kit
Working copy of https://github.com/vapor/jwt-kit resolved at 4.3.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 2.0.4
Creating working copy for https://github.com/onmyway133/AppStoreConnect
Working copy of https://github.com/onmyway133/AppStoreConnect resolved at 0.0.8
Creating working copy for https://github.com/kean/URLQueryEncoder
Working copy of https://github.com/kean/URLQueryEncoder resolved at 0.2.0
Creating working copy for https://github.com/ChargePoint/xcparse
Working copy of https://github.com/ChargePoint/xcparse resolved at 2.2.1
Building for debugging...
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCclibc/process.c:10:12: warning: implicit declaration of function 'posix_spawn_file_actions_addchdir_np' is invalid in C99 [-Wimplicit-function-declaration]
return posix_spawn_file_actions_addchdir_np(file_actions, path);
^
1 warning generated.
[0/813] Compiling TSCclibc process.c
[1/813] Compiling TSCclibc libc.c
[2/813] Compiling aesni-x86_64.linux.x86_64.S
[3/813] Compiling aesni-x86.windows.x86.S
[4/813] Compiling a_d2i_fp.c
[5/813] Compiling a_mbstr.c
[6/813] Compiling a_object.c
[7/813] Compiling v3_skey.c
[8/813] Compiling v3_utl.c
[9/813] Compiling v3_pcons.c
[10/813] Compiling v3_prn.c
[11/814] Compiling v3_purp.c
[12/829] Compiling v3_pcia.c
[13/862] Compiling v3_pmaps.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/882] Emitting module Get
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:8:69: error: cannot find type 'URLRequest' in scope
func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:10:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:15:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:25:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var sessionConfiguration: URLSessionConfiguration = .default
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:25:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public var sessionConfiguration: URLSessionConfiguration = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:33:37: error: cannot find type 'URLSessionDelegate' in scope
public var sessionDelegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:35:57: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(host: String, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:35:84: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public init(host: String, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:107:34: error: cannot find type 'URLRequest' in scope
private func send(_ request: URLRequest) async throws -> Response<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:116:42: error: cannot find type 'URLRequest' in scope
private func actuallySend(_ request: URLRequest) async throws -> Response<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:124:74: error: cannot find type 'URLRequest' in scope
private func makeRequest<T>(for request: Request<T>) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:150:121: error: cannot find type 'URLRequest' in scope
private func makeRequest(url: URL, method: String, body: AnyEncodable?, headers: [String: String]?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:162:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func validate(response: URLResponse, data: Data) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:182:69: error: cannot find type 'URLRequest' in scope
func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {}
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:184:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:139:76: error: cannot find type 'URLSessionDelegate' in scope
static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:139:52: error: cannot find type 'URLSessionDelegate' in scope
static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:57:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: configuration.sessionConfiguration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:19:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:71:28: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
private var handlers = [URLSessionTask: TaskHandler]()
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:71:28: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
private var handlers = [URLSessionTask: TaskHandler]()
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:72:64: error: cannot find type 'URLSessionTaskMetrics' in scope
private typealias Completion = (Result<(Data, URLResponse, URLSessionTaskMetrics?), Error>) -> Void
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:97: error: cannot find type 'URLSessionTaskMetrics' in scope
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:89:41: error: cannot find type 'URLRequest' in scope
private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:89:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:89:111: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:98:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:98:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:95: error: cannot find type 'URLSessionTaskMetrics' in scope
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:112:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:112:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:124:22: error: cannot find type 'URLSessionTaskMetrics' in scope
var metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:70:35: error: cannot find type 'URLSessionDataDelegate' in scope
final class DataLoader: NSObject, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:144:40: error: cannot find type 'URLSessionDelegate' in scope
init(loader: DataLoader, delegate: URLSessionDelegate) {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:135:27: error: cannot find type 'URLSessionDelegate' in scope
private var delegate: URLSessionDelegate
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:136:43: error: cannot find type 'Selector' in scope
private let interceptedSelectors: Set<Selector>
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:156:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:156:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:161:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:161:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:166:95: error: cannot find type 'URLSessionTaskMetrics' in scope
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:166:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:166:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:173:42: error: cannot find type 'Selector' in scope
override func responds(to aSelector: Selector!) -> Bool {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:173:19: error: method does not override any method from its superclass
override func responds(to aSelector: Selector!) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:180:50: error: cannot find type 'Selector' in scope
override func forwardingTarget(for selector: Selector!) -> Any? {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:180:19: error: method does not override any method from its superclass
override func forwardingTarget(for selector: Selector!) -> Any? {
~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:134:48: error: cannot find type 'URLSessionTaskDelegate' in scope
final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:134:72: error: cannot find type 'URLSessionDataDelegate' in scope
final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:76:37: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
final class Box { var task: URLSessionTask? }
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:85:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:86:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:88:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public var metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:48: error: cannot find type 'URLRequest' in scope
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:92: error: cannot find type 'URLSessionTaskMetrics' in scope
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[16/882] Emitting module XMLCoder
[17/888] Compiling Colorizer StringForegroundColorizer.swift
[18/888] Emitting module Colorizer
[19/888] Compiling Colorizer Colorizer.swift
[20/888] Compiling Colorizer StringStyleColorizer.swift
[21/888] Compiling TSCLibc libc.swift
[22/888] Emitting module TSCLibc
[23/889] Compiling Get Request.swift
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:85:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:86:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:88:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public var metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:48: error: cannot find type 'URLRequest' in scope
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:92: error: cannot find type 'URLSessionTaskMetrics' in scope
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:87:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[24/889] Compiling Get Helpers.swift
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:19:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:71:28: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
private var handlers = [URLSessionTask: TaskHandler]()
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:71:28: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
private var handlers = [URLSessionTask: TaskHandler]()
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:72:64: error: cannot find type 'URLSessionTaskMetrics' in scope
private typealias Completion = (Result<(Data, URLResponse, URLSessionTaskMetrics?), Error>) -> Void
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:97: error: cannot find type 'URLSessionTaskMetrics' in scope
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:89:41: error: cannot find type 'URLRequest' in scope
private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:89:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:89:111: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:98:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:98:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:95: error: cannot find type 'URLSessionTaskMetrics' in scope
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:112:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:112:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:124:22: error: cannot find type 'URLSessionTaskMetrics' in scope
var metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:70:35: error: cannot find type 'URLSessionDataDelegate' in scope
final class DataLoader: NSObject, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:144:40: error: cannot find type 'URLSessionDelegate' in scope
init(loader: DataLoader, delegate: URLSessionDelegate) {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:135:27: error: cannot find type 'URLSessionDelegate' in scope
private var delegate: URLSessionDelegate
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:136:43: error: cannot find type 'Selector' in scope
private let interceptedSelectors: Set<Selector>
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:139:76: error: cannot find type 'URLSessionDelegate' in scope
static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:139:52: error: cannot find type 'URLSessionDelegate' in scope
static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:156:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:156:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:161:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:161:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:166:95: error: cannot find type 'URLSessionTaskMetrics' in scope
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:166:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:166:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:173:42: error: cannot find type 'Selector' in scope
override func responds(to aSelector: Selector!) -> Bool {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:173:19: error: method does not override any method from its superclass
override func responds(to aSelector: Selector!) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:180:50: error: cannot find type 'Selector' in scope
override func forwardingTarget(for selector: Selector!) -> Any? {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:180:19: error: method does not override any method from its superclass
override func forwardingTarget(for selector: Selector!) -> Any? {
~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:134:48: error: cannot find type 'URLSessionTaskDelegate' in scope
final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:134:72: error: cannot find type 'URLSessionDataDelegate' in scope
final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:76:37: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
final class Box { var task: URLSessionTask? }
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:90:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = session.dataTask(with: request)
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:91:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
session.delegateQueue.addOperation {
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:100:26: error: 'nil' requires a contextual type
handlers[task] = nil
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:101:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
if let response = task.response, error == nil {
~~~~ ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:102:33: error: cannot infer contextual base in reference to member 'success'
handler.completion(.success((handler.data ?? Data(), response, handler.metrics)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:104:33: error: cannot infer contextual base in reference to member 'failure'
handler.completion(.failure(error ?? URLError(.unknown)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:148:23: error: cannot find 'URLSessionDataDelegate' in scope
#selector(URLSessionDataDelegate.urlSession(_:dataTask:didReceive:)),
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:149:23: error: cannot find 'URLSessionTaskDelegate' in scope
#selector(URLSessionTaskDelegate.urlSession(_:task:didCompleteWithError:)),
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:150:23: error: cannot find 'URLSessionTaskDelegate' in scope
#selector(URLSessionTaskDelegate.urlSession(_:task:didFinishCollecting:))
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:148:13: error: '#selector' can only be used with the Objective-C runtime
#selector(URLSessionDataDelegate.urlSession(_:dataTask:didReceive:)),
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:158:23: error: cannot find type 'URLSessionDataDelegate' in scope
(delegate as? URLSessionDataDelegate)?.urlSession?(session, dataTask: dataTask, didReceive: data)
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:163:23: error: cannot find type 'URLSessionTaskDelegate' in scope
(delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didCompleteWithError: error)
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:167:26: error: incorrect argument label in call (have '_:task:didFinishCollecting:', expected '_:task:didCompleteWithError:')
loader.urlSession(session, task: task, didFinishCollecting: metrics)
^ ~~~~~~~~~~~~~~~~~~~
didCompleteWithError
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:168:23: error: cannot find type 'URLSessionTaskDelegate' in scope
(delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didFinishCollecting: metrics)
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:177:58: error: value of type 'NSObject' has no member 'responds'
return delegate.responds(to: aSelector) || super.responds(to: aSelector)
~~~~~ ^~~~~~~~
[25/889] Compiling Get APIClient.swift
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:8:69: error: cannot find type 'URLRequest' in scope
func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:10:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:15:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:25:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var sessionConfiguration: URLSessionConfiguration = .default
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:25:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public var sessionConfiguration: URLSessionConfiguration = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:33:37: error: cannot find type 'URLSessionDelegate' in scope
public var sessionDelegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:35:57: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(host: String, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:35:84: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public init(host: String, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:107:34: error: cannot find type 'URLRequest' in scope
private func send(_ request: URLRequest) async throws -> Response<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:116:42: error: cannot find type 'URLRequest' in scope
private func actuallySend(_ request: URLRequest) async throws -> Response<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:124:74: error: cannot find type 'URLRequest' in scope
private func makeRequest<T>(for request: Request<T>) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:150:121: error: cannot find type 'URLRequest' in scope
private func makeRequest(url: URL, method: String, body: AnyEncodable?, headers: [String: String]?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:162:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func validate(response: URLResponse, data: Data) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:182:69: error: cannot find type 'URLRequest' in scope
func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {}
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:184:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:139:76: error: cannot find type 'URLSessionDelegate' in scope
static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:139:52: error: cannot find type 'URLSessionDelegate' in scope
static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:57:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: configuration.sessionConfiguration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:118:28: error: no exact matches in call to instance method 'client'
try await delegate.client(self, willSendRequest: &request)
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:10:10: note: candidate has partially matching parameter list (APIClient, didReceiveInvalidResponse: HTTPURLResponse, data: Data)
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:184:10: note: candidate has partially matching parameter list (APIClient, didReceiveInvalidResponse: HTTPURLResponse, data: Data)
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:97: error: cannot find type 'URLSessionTaskMetrics' in scope
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:48: error: cannot find type 'URLRequest' in scope
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:92: error: cannot find type 'URLSessionTaskMetrics' in scope
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:121:16: error: generic parameter 'T' could not be inferred
return Response(value: data, data: data, request: request, response: response, metrics: metrics)
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:80:24: note: 'T' declared as parameter to type 'Response'
public struct Response<T> {
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:121:16: note: explicitly specify the generic arguments to fix this issue
return Response(value: data, data: data, request: request, response: response, metrics: metrics)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:151:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:163:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let httpResponse = response as? HTTPURLResponse else { return }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:164:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if !(200..<300).contains(httpResponse.statusCode) {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:185:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
APIError.unacceptableStatusCode(response.statusCode)
~~~~~~~~ ^~~~~~~~~~
[26/889] Compiling XMLCoder SingleKeyedBox.swift
[27/889] Compiling XMLCoder StringBox.swift
[28/889] Compiling XMLCoder UIntBox.swift
[29/889] Compiling XMLCoder URLBox.swift
[30/889] Compiling XMLCoder UnkeyedBox.swift
[31/889] Compiling XMLCoder ValueBox.swift
[32/889] Compiling XMLCoder DoubleBox.swift
[33/889] Compiling XMLCoder FloatBox.swift
[34/889] Compiling XMLCoder IntBox.swift
[35/889] Compiling XMLCoder KeyedBox.swift
[36/889] Compiling XMLCoder NullBox.swift
[37/889] Compiling XMLCoder SharedBox.swift
[38/889] Compiling XMLCoder Attribute.swift
[39/889] Compiling XMLCoder BoolBox.swift
[40/889] Compiling XMLCoder Box.swift
[41/889] Compiling XMLCoder ChoiceBox.swift
[42/889] Compiling XMLCoder DataBox.swift
[43/889] Compiling XMLCoder DateBox.swift
[44/889] Compiling XMLCoder DecimalBox.swift
[45/889] Compiling XMLCoder XMLKeyedDecodingContainer.swift
[46/889] Compiling XMLCoder XMLUnkeyedDecodingContainer.swift
[47/889] Compiling XMLCoder DynamicNodeEncoding.swift
[48/889] Compiling XMLCoder EncodingErrorExtension.swift
[49/889] Compiling XMLCoder SingleValueEncodingContainer.swift
[50/889] Compiling XMLCoder XMLChoiceEncodingContainer.swift
[51/889] Compiling XMLCoder DynamicNodeDecoding.swift
[52/889] Compiling XMLCoder SingleValueDecodingContainer.swift
[53/889] Compiling XMLCoder XMLChoiceDecodingContainer.swift
[54/889] Compiling XMLCoder XMLDecoder.swift
[55/889] Compiling XMLCoder XMLDecoderImplementation.swift
[56/889] Compiling XMLCoder XMLDecodingStorage.swift
[57/889] Compiling SwiftyXMLParser XML.swift
[59/890] Compiling SwiftyXMLParser Element.swift
[60/890] Compiling XMLCoder Element.swift
[61/890] Compiling XMLCoder ElementAndAttribute.swift
[62/890] Compiling XMLCoder ISO8601DateFormatter.swift
[63/890] Compiling XMLCoder KeyedStorage.swift
[64/890] Compiling XMLCoder Metatypes.swift
[65/890] Compiling XMLCoder String+Extensions.swift
[66/890] Compiling XMLCoder XMLChoiceCodingKey.swift
[67/890] Compiling XMLCoder XMLCoderElement.swift
[68/890] Compiling XMLCoder XMLHeader.swift
[69/890] Compiling XMLCoder XMLKey.swift
[70/890] Compiling XMLCoder XMLStackParser.swift
[71/890] Compiling XMLCoder DecodingErrorExtension.swift
[72/890] Compiling XMLCoder XMLEncoder.swift
[73/890] Compiling XMLCoder XMLEncoderImplementation.swift
[74/890] Compiling XMLCoder XMLEncodingStorage.swift
[75/890] Compiling XMLCoder XMLKeyedEncodingContainer.swift
[76/890] Compiling XMLCoder XMLReferencingEncoder.swift
[77/890] Compiling XMLCoder XMLUnkeyedEncodingContainer.swift
error: fatalError
[78/890] Emitting module Files
[79/890] Emitting module SwiftyXMLParser
[80/890] Compiling Colorizer StringBackgroundColorizer.swift
[81/890] Emitting module NaiveDate
[82/890] Compiling NaiveDate NaiveDateFormatter.swift
[0/1] Planning build
Building for debugging...
[0/799] Compiling v3_pci.c
[1/799] Compiling v3_ocsp.c
[2/799] Compiling v3_int.c
[3/799] Compiling v3_lib.c
[4/799] Compiling v3_utl.c
[5/799] Compiling v3_info.c
[6/801] Compiling CCryptoBoringSSLShims shims.c
[7/802] Compiling v3_ncons.c
[8/802] Compiling v3_ia5.c
[10/802] Emitting module TSCLibc
[12/810] Compiling Get Helpers.swift
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:19:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:71:28: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
private var handlers = [URLSessionTask: TaskHandler]()
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:71:28: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
private var handlers = [URLSessionTask: TaskHandler]()
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:72:64: error: cannot find type 'URLSessionTaskMetrics' in scope
private typealias Completion = (Result<(Data, URLResponse, URLSessionTaskMetrics?), Error>) -> Void
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:97: error: cannot find type 'URLSessionTaskMetrics' in scope
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:89:41: error: cannot find type 'URLRequest' in scope
private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:89:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:89:111: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:98:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:98:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:95: error: cannot find type 'URLSessionTaskMetrics' in scope
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:112:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:112:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:124:22: error: cannot find type 'URLSessionTaskMetrics' in scope
var metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:70:35: error: cannot find type 'URLSessionDataDelegate' in scope
final class DataLoader: NSObject, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:144:40: error: cannot find type 'URLSessionDelegate' in scope
init(loader: DataLoader, delegate: URLSessionDelegate) {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:135:27: error: cannot find type 'URLSessionDelegate' in scope
private var delegate: URLSessionDelegate
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:136:43: error: cannot find type 'Selector' in scope
private let interceptedSelectors: Set<Selector>
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:139:76: error: cannot find type 'URLSessionDelegate' in scope
static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:139:52: error: cannot find type 'URLSessionDelegate' in scope
static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:156:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:156:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:161:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:161:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:166:95: error: cannot find type 'URLSessionTaskMetrics' in scope
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:166:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:166:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:173:42: error: cannot find type 'Selector' in scope
override func responds(to aSelector: Selector!) -> Bool {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:173:19: error: method does not override any method from its superclass
override func responds(to aSelector: Selector!) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:180:50: error: cannot find type 'Selector' in scope
override func forwardingTarget(for selector: Selector!) -> Any? {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:180:19: error: method does not override any method from its superclass
override func forwardingTarget(for selector: Selector!) -> Any? {
~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:134:48: error: cannot find type 'URLSessionTaskDelegate' in scope
final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:134:72: error: cannot find type 'URLSessionDataDelegate' in scope
final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:76:37: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
final class Box { var task: URLSessionTask? }
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:90:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = session.dataTask(with: request)
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:91:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
session.delegateQueue.addOperation {
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:100:26: error: 'nil' requires a contextual type
handlers[task] = nil
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:101:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
if let response = task.response, error == nil {
~~~~ ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:102:33: error: cannot infer contextual base in reference to member 'success'
handler.completion(.success((handler.data ?? Data(), response, handler.metrics)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:104:33: error: cannot infer contextual base in reference to member 'failure'
handler.completion(.failure(error ?? URLError(.unknown)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:148:23: error: cannot find 'URLSessionDataDelegate' in scope
#selector(URLSessionDataDelegate.urlSession(_:dataTask:didReceive:)),
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:149:23: error: cannot find 'URLSessionTaskDelegate' in scope
#selector(URLSessionTaskDelegate.urlSession(_:task:didCompleteWithError:)),
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:150:23: error: cannot find 'URLSessionTaskDelegate' in scope
#selector(URLSessionTaskDelegate.urlSession(_:task:didFinishCollecting:))
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:148:13: error: '#selector' can only be used with the Objective-C runtime
#selector(URLSessionDataDelegate.urlSession(_:dataTask:didReceive:)),
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:158:23: error: cannot find type 'URLSessionDataDelegate' in scope
(delegate as? URLSessionDataDelegate)?.urlSession?(session, dataTask: dataTask, didReceive: data)
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:163:23: error: cannot find type 'URLSessionTaskDelegate' in scope
(delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didCompleteWithError: error)
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:167:26: error: incorrect argument label in call (have '_:task:didFinishCollecting:', expected '_:task:didCompleteWithError:')
loader.urlSession(session, task: task, didFinishCollecting: metrics)
^ ~~~~~~~~~~~~~~~~~~~
didCompleteWithError
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:168:23: error: cannot find type 'URLSessionTaskDelegate' in scope
(delegate as? URLSessionTaskDelegate)?.urlSession?(session, task: task, didFinishCollecting: metrics)
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:177:58: error: value of type 'NSObject' has no member 'responds'
return delegate.responds(to: aSelector) || super.responds(to: aSelector)
~~~~~ ^~~~~~~~
[14/816] Compiling Get Request.swift
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:85:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:86:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:88:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public var metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:48: error: cannot find type 'URLRequest' in scope
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:92: error: cannot find type 'URLSessionTaskMetrics' in scope
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:87:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[15/820] Compiling Get APIClient.swift
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:8:69: error: cannot find type 'URLRequest' in scope
func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:10:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:15:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:25:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var sessionConfiguration: URLSessionConfiguration = .default
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:25:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public var sessionConfiguration: URLSessionConfiguration = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:33:37: error: cannot find type 'URLSessionDelegate' in scope
public var sessionDelegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:35:57: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(host: String, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:35:84: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public init(host: String, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:107:34: error: cannot find type 'URLRequest' in scope
private func send(_ request: URLRequest) async throws -> Response<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:116:42: error: cannot find type 'URLRequest' in scope
private func actuallySend(_ request: URLRequest) async throws -> Response<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:124:74: error: cannot find type 'URLRequest' in scope
private func makeRequest<T>(for request: Request<T>) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:150:121: error: cannot find type 'URLRequest' in scope
private func makeRequest(url: URL, method: String, body: AnyEncodable?, headers: [String: String]?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:162:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func validate(response: URLResponse, data: Data) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:182:69: error: cannot find type 'URLRequest' in scope
func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {}
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:184:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:139:76: error: cannot find type 'URLSessionDelegate' in scope
static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:139:52: error: cannot find type 'URLSessionDelegate' in scope
static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:57:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: configuration.sessionConfiguration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:118:28: error: no exact matches in call to instance method 'client'
try await delegate.client(self, willSendRequest: &request)
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:10:10: note: candidate has partially matching parameter list (APIClient, didReceiveInvalidResponse: HTTPURLResponse, data: Data)
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:184:10: note: candidate has partially matching parameter list (APIClient, didReceiveInvalidResponse: HTTPURLResponse, data: Data)
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:97: error: cannot find type 'URLSessionTaskMetrics' in scope
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:48: error: cannot find type 'URLRequest' in scope
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:92: error: cannot find type 'URLSessionTaskMetrics' in scope
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:121:16: error: generic parameter 'T' could not be inferred
return Response(value: data, data: data, request: request, response: response, metrics: metrics)
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:80:24: note: 'T' declared as parameter to type 'Response'
public struct Response<T> {
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:121:16: note: explicitly specify the generic arguments to fix this issue
return Response(value: data, data: data, request: request, response: response, metrics: metrics)
^
<Any>
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:151:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:163:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let httpResponse = response as? HTTPURLResponse else { return }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:164:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if !(200..<300).contains(httpResponse.statusCode) {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:185:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
APIError.unacceptableStatusCode(response.statusCode)
~~~~~~~~ ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/820] Emitting module Get
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:8:69: error: cannot find type 'URLRequest' in scope
func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:10:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:15:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:25:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var sessionConfiguration: URLSessionConfiguration = .default
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:25:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public var sessionConfiguration: URLSessionConfiguration = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:33:37: error: cannot find type 'URLSessionDelegate' in scope
public var sessionDelegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:35:57: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(host: String, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:35:84: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public init(host: String, sessionConfiguration: URLSessionConfiguration = .default, delegate: APIClientDelegate? = nil) {
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:107:34: error: cannot find type 'URLRequest' in scope
private func send(_ request: URLRequest) async throws -> Response<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:116:42: error: cannot find type 'URLRequest' in scope
private func actuallySend(_ request: URLRequest) async throws -> Response<Data> {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:124:74: error: cannot find type 'URLRequest' in scope
private func makeRequest<T>(for request: Request<T>) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:150:121: error: cannot find type 'URLRequest' in scope
private func makeRequest(url: URL, method: String, body: AnyEncodable?, headers: [String: String]?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:162:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func validate(response: URLResponse, data: Data) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:182:69: error: cannot find type 'URLRequest' in scope
func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {}
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:184:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:139:76: error: cannot find type 'URLSessionDelegate' in scope
static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:139:52: error: cannot find type 'URLSessionDelegate' in scope
static func make(loader: DataLoader, delegate: URLSessionDelegate?) -> URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:57:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: configuration.sessionConfiguration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:19:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:71:28: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
private var handlers = [URLSessionTask: TaskHandler]()
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:71:28: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
private var handlers = [URLSessionTask: TaskHandler]()
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:72:64: error: cannot find type 'URLSessionTaskMetrics' in scope
private typealias Completion = (Result<(Data, URLResponse, URLSessionTaskMetrics?), Error>) -> Void
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:97: error: cannot find type 'URLSessionTaskMetrics' in scope
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:28: error: cannot find type 'URLRequest' in scope
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:75:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func data(for request: URLRequest, session: URLSession) async throws -> (Data, URLResponse, URLSessionTaskMetrics?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:89:41: error: cannot find type 'URLRequest' in scope
private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:89:62: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:89:111: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func loadData(with request: URLRequest, session: URLSession, completion: @escaping Completion) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:98:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:98:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:95: error: cannot find type 'URLSessionTaskMetrics' in scope
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:108:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:112:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:112:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:124:22: error: cannot find type 'URLSessionTaskMetrics' in scope
var metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:70:35: error: cannot find type 'URLSessionDataDelegate' in scope
final class DataLoader: NSObject, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:144:40: error: cannot find type 'URLSessionDelegate' in scope
init(loader: DataLoader, delegate: URLSessionDelegate) {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:135:27: error: cannot find type 'URLSessionDelegate' in scope
private var delegate: URLSessionDelegate
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:136:43: error: cannot find type 'Selector' in scope
private let interceptedSelectors: Set<Selector>
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:156:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:156:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:161:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:161:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:166:95: error: cannot find type 'URLSessionTaskMetrics' in scope
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:166:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:166:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:173:42: error: cannot find type 'Selector' in scope
override func responds(to aSelector: Selector!) -> Bool {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:173:19: error: method does not override any method from its superclass
override func responds(to aSelector: Selector!) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:180:50: error: cannot find type 'Selector' in scope
override func forwardingTarget(for selector: Selector!) -> Any? {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:180:19: error: method does not override any method from its superclass
override func forwardingTarget(for selector: Selector!) -> Any? {
~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:134:48: error: cannot find type 'URLSessionTaskDelegate' in scope
final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:134:72: error: cannot find type 'URLSessionDataDelegate' in scope
final class URLSessionProxyDelegate: NSObject, URLSessionTaskDelegate, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Helpers.swift:76:37: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
final class Box { var task: URLSessionTask? }
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:85:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:86:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:88:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public var metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:48: error: cannot find type 'URLRequest' in scope
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:92: error: cannot find type 'URLSessionTaskMetrics' in scope
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:90:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(value: T, data: Data, request: URLRequest, response: URLResponse, metrics: URLSessionTaskMetrics? = nil) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
error: fatalError
[16/820] Compiling v3_genn.c
BUILD FAILURE 5.9 linux