Build Information
Failed to build Swiftlane with Swift 5.8 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.8-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.8
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.8-latest swift build 2>&1
Fetching https://github.com/tuist/xcbeautify
Fetching https://github.com/vapor/jwt-kit
Fetching https://github.com/getGuaka/Colorizer.git
[1/58] Fetching colorizer
[59/3174] Fetching colorizer, xcbeautify
Fetched https://github.com/getGuaka/Colorizer.git (0.29s)
Fetching https://github.com/JohnSundell/Files.git
[2774/3116] Fetching xcbeautify
[3117/8834] Fetching xcbeautify, jwt-kit
Fetched https://github.com/tuist/xcbeautify (0.39s)
Fetching https://github.com/apple/swift-crypto.git
[973/5718] Fetching jwt-kit
[5719/6949] Fetching jwt-kit, files
Fetched https://github.com/JohnSundell/Files.git (0.45s)
Fetching https://github.com/MaxDesiatov/XMLCoder.git
Fetched https://github.com/vapor/jwt-kit (0.78s)
Fetching https://github.com/drmohundro/SWXMLHash.git
[1/7125] Fetching swift-crypto
[5416/17101] Fetching swift-crypto, xmlcoder
[6643/19867] Fetching swift-crypto, xmlcoder, swxmlhash
Fetched https://github.com/drmohundro/SWXMLHash.git (0.51s)
Fetching https://github.com/apple/swift-argument-parser.git
[16175/17101] Fetching swift-crypto, xmlcoder
Fetched https://github.com/MaxDesiatov/XMLCoder.git (0.59s)
Fetching https://github.com/kean/URLQueryEncoder
[6270/7125] Fetching swift-crypto
[7126/7253] Fetching swift-crypto, urlqueryencoder
Fetching https://github.com/onevcat/Rainbow
Fetched https://github.com/kean/URLQueryEncoder (0.30s)
[7126/8239] Fetching swift-crypto, rainbow
Fetched https://github.com/onevcat/Rainbow (0.29s)
Fetching https://github.com/ChargePoint/xcparse
[1/11048] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-crypto.git (1.54s)
Fetching https://github.com/apple/swift-tools-support-core.git
[11049/12622] Fetching swift-argument-parser, xcparse
[11317/18402] Fetching swift-argument-parser, xcparse, swift-tools-support-core
Fetched https://github.com/apple/swift-argument-parser.git (1.09s)
[5081/7354] Fetching xcparse, swift-tools-support-core
Fetching https://github.com/kean/Get
Fetched https://github.com/apple/swift-tools-support-core.git (0.65s)
Fetching https://github.com/onmyway133/Spek.git
[1/2261] Fetching get
Fetched https://github.com/ChargePoint/xcparse (0.79s)
Fetching https://github.com/onmyway133/AppStoreConnect
[2262/2547] Fetching get, spek
Fetched https://github.com/kean/Get (0.46s)
Fetching https://github.com/kean/NaiveDate
[176/323] Fetching spek, appstoreconnect
Fetched https://github.com/onmyway133/Spek.git (0.41s)
Fetching https://github.com/yahoojapan/SwiftyXMLParser
Fetched https://github.com/onmyway133/AppStoreConnect (0.28s)
[1/289] Fetching naivedate
[290/1053] Fetching naivedate, swiftyxmlparser
Fetched https://github.com/kean/NaiveDate (0.39s)
Fetched https://github.com/yahoojapan/SwiftyXMLParser (0.27s)
Computing version for https://github.com/onmyway133/AppStoreConnect
Computed https://github.com/onmyway133/AppStoreConnect at 0.0.8 (0.39s)
Computing version for https://github.com/yahoojapan/SwiftyXMLParser
Computed https://github.com/yahoojapan/SwiftyXMLParser at 5.6.0 (0.37s)
Computing version for https://github.com/ChargePoint/xcparse
Computed https://github.com/ChargePoint/xcparse at 2.2.1 (0.39s)
Computing version for https://github.com/JohnSundell/Files.git
Computed https://github.com/JohnSundell/Files.git at 4.2.0 (0.36s)
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.39s)
Computing version for https://github.com/kean/URLQueryEncoder
Computed https://github.com/kean/URLQueryEncoder at 0.2.0 (0.43s)
Computing version for https://github.com/kean/NaiveDate
Computed https://github.com/kean/NaiveDate at 1.0.0 (0.38s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 0.5.0 (0.38s)
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.42s)
Computing version for https://github.com/MaxDesiatov/XMLCoder.git
Computed https://github.com/MaxDesiatov/XMLCoder.git at 0.13.1 (0.37s)
Computing version for https://github.com/getGuaka/Colorizer.git
Computed https://github.com/getGuaka/Colorizer.git at 0.2.1 (1.23s)
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.43s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 2.0.4 (0.38s)
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-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/onmyway133/AppStoreConnect
Working copy of https://github.com/onmyway133/AppStoreConnect resolved at 0.0.8
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/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/JohnSundell/Files.git
Working copy of https://github.com/JohnSundell/Files.git resolved at 4.2.0
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/ChargePoint/xcparse
Working copy of https://github.com/ChargePoint/xcparse resolved at 2.2.1
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/kean/Get
Working copy of https://github.com/kean/Get resolved at 0.5.0
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/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/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 2.0.4
Building for debugging...
[0/813] Compiling TSCclibc libc.c
/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.
[1/813] Compiling TSCclibc process.c
[2/813] Compiling a_i2d_fp.c
[3/813] Compiling a_gentm.c
[4/813] Compiling a_bitstr.c
[5/813] Compiling a_int.c
[6/813] Compiling a_object.c
[7/813] Compiling v3_utl.c
[8/813] Compiling v3_prn.c
[9/813] Compiling v3_pmaps.c
[10/813] Compiling v3_skey.c
[11/813] Compiling v3_pcia.c
[11/813] Compiling v3_pcons.c
[13/813] Compiling v3_purp.c
[14/822] Compiling v3_pci.c
[16/882] Emitting module SwiftyXMLParser
[17/882] Emitting module Colorizer
[18/882] Compiling Colorizer Colorizer.swift
[19/882] Compiling Colorizer StringBackgroundColorizer.swift
[20/882] Compiling Colorizer StringStyleColorizer.swift
[21/882] Compiling TSCLibc libc.swift
[22/882] Emitting module TSCLibc
[25/884] Compiling Colorizer StringForegroundColorizer.swift
[26/884] Compiling Colorizer StringStyle.swift
[27/884] Compiling XMLCoder DoubleBox.swift
[28/884] Compiling XMLCoder FloatBox.swift
[29/884] Compiling XMLCoder IntBox.swift
[30/884] Compiling XMLCoder KeyedBox.swift
[31/884] Compiling XMLCoder NullBox.swift
[32/884] Compiling XMLCoder SharedBox.swift
[33/884] Compiling XMLCoder SingleKeyedBox.swift
[34/884] Compiling XMLCoder StringBox.swift
[35/884] Compiling XMLCoder UIntBox.swift
[36/884] Compiling XMLCoder URLBox.swift
[37/884] Compiling XMLCoder UnkeyedBox.swift
[38/884] Compiling XMLCoder ValueBox.swift
[40/891] Compiling SwiftyXMLParser XML.swift
[41/892] 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 }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[43/892] 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/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/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: found this candidate
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:184:10: note: found this candidate
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)
[44/892] 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/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/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: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: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: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
^
[45/892] 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: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: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: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: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: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)
~~~~~ ^~~~~~~~
[45/892] Compiling v3_ocsp.c
[46/892] Emitting module Files
[47/892] Emitting module URLQueryEncoder
[0/1] Planning build
Building for debugging...
[0/798] Compiling v3_pmaps.c
[1/798] Compiling v3_prn.c
[2/798] Compiling v3_skey.c
[3/798] Compiling v3_purp.c
[4/798] Compiling v3_pcons.c
[5/798] Compiling v3_utl.c
[6/800] Compiling CCryptoBoringSSLShims shims.c
[7/800] Compiling v3_ocsp.c
[9/886] Compiling NaiveDate NaiveDateFormatter.swift
[10/887] Compiling SwiftyXMLParser Error.swift
[11/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 }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
[12/889] Compiling SwiftyXMLParser Element.swift
[13/889] Compiling SwiftyXMLParser Parser.swift
[14/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: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: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: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: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: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)
~~~~~ ^~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/889] 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/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/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: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: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: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/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/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/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: found this candidate
func client(_ client: APIClient, didReceiveInvalidResponse response: HTTPURLResponse, data: Data) -> Error
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClient.swift:184:10: note: found this candidate
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)
~~~~~~~~ ^~~~~~~~~~
[17/889] Emitting module SwiftyXMLParser
[18/889] Emitting module NaiveDate
BUILD FAILURE 5.8 linux