Build Information
Failed to build AdyenNetworking, reference develop (cc93bc
), with Swift 5.9 for Linux on 14 Mar 2025 14:57:37 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Adyen/adyen-networking-ios.git
Reference: develop
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/Adyen/adyen-networking-ios
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at cc93bc0 Merge pull request #48 from Adyen/fixing-prepare-release-workflow
Cloned https://github.com/Adyen/adyen-networking-ios.git
Revision (git rev-parse @):
cc93bc0e4f58038b0f87f091b58e7f2cbc530fd7
SUCCESS checkout https://github.com/Adyen/adyen-networking-ios.git at develop
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $PWD
https://github.com/Adyen/adyen-networking-ios.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:e6feefcc5d5d2f301fe47477cfe0928fc3b12c59579fdacf1d387095b6fee662
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Building for debugging...
[1/19] Compiling AdyenNetworking DebugLogging.swift
[2/19] Compiling AdyenNetworking Logging.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/21] Compiling AdyenNetworking Errors.swift
/host/spi-builder-workspace/AdyenNetworking/APIClient/Request.swift:74:16: warning: stored property 'url' of 'Sendable'-conforming struct 'DownloadResponse' has non-sendable type 'URL'
public let url: URL
^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/Request.swift:7:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[4/21] Compiling AdyenNetworking HTTPResponse.swift
/host/spi-builder-workspace/AdyenNetworking/APIClient/Request.swift:74:16: warning: stored property 'url' of 'Sendable'-conforming struct 'DownloadResponse' has non-sendable type 'URL'
public let url: URL
^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/Request.swift:7:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[5/21] Compiling AdyenNetworking Request.swift
/host/spi-builder-workspace/AdyenNetworking/APIClient/Request.swift:74:16: warning: stored property 'url' of 'Sendable'-conforming struct 'DownloadResponse' has non-sendable type 'URL'
public let url: URL
^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/Request.swift:7:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[6/21] Emitting module AdyenNetworking
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:81:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:109:29: error: cannot find type 'URLSessionDelegate' in scope
urlSessionDelegate: URLSessionDelegate? = nil
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:106:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration? = nil,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:129:29: error: cannot find type 'URLSessionDelegate' in scope
urlSessionDelegate: URLSessionDelegate? = nil
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:125:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:196:73: error: cannot find type 'URLRequest' in scope
private func buildUrlRequest<R: Request>(from request: R) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:269:46: error: cannot find type 'URLRequest' in scope
private func log<R: Request>(urlRequest: URLRequest, request: R) {
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:323:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private static func buildDefaultConfiguration() -> URLSessionConfiguration {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:342:83: error: cannot find type 'URLRequest' in scope
private func generateFilename(from urlResponse: URLResponse, with urlRequest: URLRequest) -> String {
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:342:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func generateFilename(from urlResponse: URLResponse, with urlRequest: URLRequest) -> String {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:441:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleHttpErrorCodes(from urlResponse: URLResponse) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/Request.swift:74:16: warning: stored property 'url' of 'Sendable'-conforming struct 'DownloadResponse' has non-sendable type 'URL'
public let url: URL
^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/Request.swift:7:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:50:10: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
internal extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:16:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal init(data: Data?, response: URLResponse?) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:36:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal init(url: URL?, response: URLResponse?) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[7/21] Compiling AdyenNetworking APIClient.swift
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:81:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:109:29: error: cannot find type 'URLSessionDelegate' in scope
urlSessionDelegate: URLSessionDelegate? = nil
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:106:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration? = nil,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:129:29: error: cannot find type 'URLSessionDelegate' in scope
urlSessionDelegate: URLSessionDelegate? = nil
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:125:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:196:73: error: cannot find type 'URLRequest' in scope
private func buildUrlRequest<R: Request>(from request: R) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:269:46: error: cannot find type 'URLRequest' in scope
private func log<R: Request>(urlRequest: URLRequest, request: R) {
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:323:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private static func buildDefaultConfiguration() -> URLSessionConfiguration {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:342:83: error: cannot find type 'URLRequest' in scope
private func generateFilename(from urlResponse: URLResponse, with urlRequest: URLRequest) -> String {
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:342:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func generateFilename(from urlResponse: URLResponse, with urlRequest: URLRequest) -> String {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:441:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleHttpErrorCodes(from urlResponse: URLResponse) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:112:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.urlSession = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:115:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:143:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
urlSession.dataTask(with: try buildUrlRequest(from: request)) { [weak self] result in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:143:89: error: cannot infer type of closure parameter 'result' without a type annotation
urlSession.dataTask(with: try buildUrlRequest(from: request)) { [weak self] result in
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:146:45: error: cannot infer contextual base in reference to member 'init'
.flatMap { response in .init(catching: {
~^~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:150:26: error: cannot infer key path type from context; consider explicitly specifying a root type
.map(\.responseBody)
^
<#Root#>
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:178:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
urlSession.downloadTask(with: try buildUrlRequest(from: request)) { [weak self]
~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:179:17: error: cannot infer type of closure parameter 'result' without a type annotation
result in
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:182:45: error: cannot infer contextual base in reference to member 'init'
.flatMap { response in .init(catching: { try self.handle(response, request) }) }
~^~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:183:26: error: cannot infer key path type from context; consider explicitly specifying a root type
.map(\.responseBody)
^
<#Root#>
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:199:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: add(queryParameters: request.queryParameters + apiContext.queryParameters, to: url))
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:206:9: error: no exact matches in call to instance method 'log'
log(urlRequest: urlRequest, request: request)
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:291:18: note: incorrect labels for candidate (have: '(urlRequest:request:)', expected: '(result:request:)')
private func log<R: Request>(result: URLSessionSuccess, request: R) {
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:302:18: note: incorrect labels for candidate (have: '(urlRequest:request:)', expected: '(result:request:)')
private func log<R: Request>(result: URLSessionDownloadSuccess, request: R) {
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:324:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
let config = URLSessionConfiguration.ephemeral
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:325:27: error: 'nil' requires a contextual type
config.urlCache = nil
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:328:58: error: cannot infer contextual base in reference to member 'TLSv12'
config.tlsMinimumSupportedProtocolVersion = .TLSv12
~^~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:330:51: error: cannot infer contextual base in reference to member 'tlsProtocol12'
config.tlsMinimumSupportedProtocol = .tlsProtocol12
~^~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:343:21: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'suggestedFilename'
urlResponse.suggestedFilename ??
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:344:21: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
urlResponse.url?.lastPathComponent ??
~~~~~~~~~~~ ^~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:389:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
.data(for: try buildUrlRequest(from: request)) as (data: Data, urlResponse: URLResponse)
^~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:400:63: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
let (locationUrl, urlResponse) = try await urlSession.download(for: urlRequest)
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:415:62: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
let (asyncBytes, urlResponse) = try await urlSession.bytes(for: urlRequest)
~~~~~~~~~~ ^~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:442:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
if let httpResponse = urlResponse as? HTTPURLResponse,
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:442:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
if let httpResponse = urlResponse as? HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:443:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
(400...599).contains(httpResponse.statusCode),
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:444:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
let headers = httpResponse.allHeaderFields as? [String: String] {
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:447:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
statusCode: httpResponse.statusCode,
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:146:45: error: cannot infer contextual base in reference to member 'init'
.flatMap { response in .init(catching: {
~^~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:150:26: error: cannot infer key path type from context; consider explicitly specifying a root type
.map(\.responseBody)
^
<#Root#>
[8/21] Compiling AdyenNetworking AnyAPIContext.swift
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:81:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:109:29: error: cannot find type 'URLSessionDelegate' in scope
urlSessionDelegate: URLSessionDelegate? = nil
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:106:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration? = nil,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:129:29: error: cannot find type 'URLSessionDelegate' in scope
urlSessionDelegate: URLSessionDelegate? = nil
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:125:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:196:73: error: cannot find type 'URLRequest' in scope
private func buildUrlRequest<R: Request>(from request: R) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:269:46: error: cannot find type 'URLRequest' in scope
private func log<R: Request>(urlRequest: URLRequest, request: R) {
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:323:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private static func buildDefaultConfiguration() -> URLSessionConfiguration {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:342:83: error: cannot find type 'URLRequest' in scope
private func generateFilename(from urlResponse: URLResponse, with urlRequest: URLRequest) -> String {
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:342:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func generateFilename(from urlResponse: URLResponse, with urlRequest: URLRequest) -> String {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:441:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleHttpErrorCodes(from urlResponse: URLResponse) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:112:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.urlSession = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:115:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:143:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
urlSession.dataTask(with: try buildUrlRequest(from: request)) { [weak self] result in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:143:89: error: cannot infer type of closure parameter 'result' without a type annotation
urlSession.dataTask(with: try buildUrlRequest(from: request)) { [weak self] result in
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:146:45: error: cannot infer contextual base in reference to member 'init'
.flatMap { response in .init(catching: {
~^~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:150:26: error: cannot infer key path type from context; consider explicitly specifying a root type
.map(\.responseBody)
^
<#Root#>
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:178:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
urlSession.downloadTask(with: try buildUrlRequest(from: request)) { [weak self]
~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:179:17: error: cannot infer type of closure parameter 'result' without a type annotation
result in
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:182:45: error: cannot infer contextual base in reference to member 'init'
.flatMap { response in .init(catching: { try self.handle(response, request) }) }
~^~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:183:26: error: cannot infer key path type from context; consider explicitly specifying a root type
.map(\.responseBody)
^
<#Root#>
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:199:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: add(queryParameters: request.queryParameters + apiContext.queryParameters, to: url))
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:206:9: error: no exact matches in call to instance method 'log'
log(urlRequest: urlRequest, request: request)
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:291:18: note: incorrect labels for candidate (have: '(urlRequest:request:)', expected: '(result:request:)')
private func log<R: Request>(result: URLSessionSuccess, request: R) {
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:302:18: note: incorrect labels for candidate (have: '(urlRequest:request:)', expected: '(result:request:)')
private func log<R: Request>(result: URLSessionDownloadSuccess, request: R) {
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:324:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
let config = URLSessionConfiguration.ephemeral
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:325:27: error: 'nil' requires a contextual type
config.urlCache = nil
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:328:58: error: cannot infer contextual base in reference to member 'TLSv12'
config.tlsMinimumSupportedProtocolVersion = .TLSv12
~^~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:330:51: error: cannot infer contextual base in reference to member 'tlsProtocol12'
config.tlsMinimumSupportedProtocol = .tlsProtocol12
~^~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:343:21: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'suggestedFilename'
urlResponse.suggestedFilename ??
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:344:21: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
urlResponse.url?.lastPathComponent ??
~~~~~~~~~~~ ^~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:389:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
.data(for: try buildUrlRequest(from: request)) as (data: Data, urlResponse: URLResponse)
^~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:400:63: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
let (locationUrl, urlResponse) = try await urlSession.download(for: urlRequest)
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:415:62: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
let (asyncBytes, urlResponse) = try await urlSession.bytes(for: urlRequest)
~~~~~~~~~~ ^~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:442:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
if let httpResponse = urlResponse as? HTTPURLResponse,
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:442:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
if let httpResponse = urlResponse as? HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:443:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
(400...599).contains(httpResponse.statusCode),
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:444:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
let headers = httpResponse.allHeaderFields as? [String: String] {
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:447:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
statusCode: httpResponse.statusCode,
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:146:45: error: cannot infer contextual base in reference to member 'init'
.flatMap { response in .init(catching: {
~^~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:150:26: error: cannot infer key path type from context; consider explicitly specifying a root type
.map(\.responseBody)
^
<#Root#>
[9/21] Compiling AdyenNetworking AnyAPIEnvironment.swift
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:81:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:109:29: error: cannot find type 'URLSessionDelegate' in scope
urlSessionDelegate: URLSessionDelegate? = nil
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:106:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration? = nil,
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:129:29: error: cannot find type 'URLSessionDelegate' in scope
urlSessionDelegate: URLSessionDelegate? = nil
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:125:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:196:73: error: cannot find type 'URLRequest' in scope
private func buildUrlRequest<R: Request>(from request: R) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:269:46: error: cannot find type 'URLRequest' in scope
private func log<R: Request>(urlRequest: URLRequest, request: R) {
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:323:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private static func buildDefaultConfiguration() -> URLSessionConfiguration {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:342:83: error: cannot find type 'URLRequest' in scope
private func generateFilename(from urlResponse: URLResponse, with urlRequest: URLRequest) -> String {
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:342:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func generateFilename(from urlResponse: URLResponse, with urlRequest: URLRequest) -> String {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:441:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleHttpErrorCodes(from urlResponse: URLResponse) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:112:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.urlSession = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:115:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:143:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
urlSession.dataTask(with: try buildUrlRequest(from: request)) { [weak self] result in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:143:89: error: cannot infer type of closure parameter 'result' without a type annotation
urlSession.dataTask(with: try buildUrlRequest(from: request)) { [weak self] result in
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:146:45: error: cannot infer contextual base in reference to member 'init'
.flatMap { response in .init(catching: {
~^~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:150:26: error: cannot infer key path type from context; consider explicitly specifying a root type
.map(\.responseBody)
^
<#Root#>
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:178:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
urlSession.downloadTask(with: try buildUrlRequest(from: request)) { [weak self]
~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:179:17: error: cannot infer type of closure parameter 'result' without a type annotation
result in
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:182:45: error: cannot infer contextual base in reference to member 'init'
.flatMap { response in .init(catching: { try self.handle(response, request) }) }
~^~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:183:26: error: cannot infer key path type from context; consider explicitly specifying a root type
.map(\.responseBody)
^
<#Root#>
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:199:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: add(queryParameters: request.queryParameters + apiContext.queryParameters, to: url))
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:206:9: error: no exact matches in call to instance method 'log'
log(urlRequest: urlRequest, request: request)
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:291:18: note: incorrect labels for candidate (have: '(urlRequest:request:)', expected: '(result:request:)')
private func log<R: Request>(result: URLSessionSuccess, request: R) {
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:302:18: note: incorrect labels for candidate (have: '(urlRequest:request:)', expected: '(result:request:)')
private func log<R: Request>(result: URLSessionDownloadSuccess, request: R) {
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:324:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
let config = URLSessionConfiguration.ephemeral
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:325:27: error: 'nil' requires a contextual type
config.urlCache = nil
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:328:58: error: cannot infer contextual base in reference to member 'TLSv12'
config.tlsMinimumSupportedProtocolVersion = .TLSv12
~^~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:330:51: error: cannot infer contextual base in reference to member 'tlsProtocol12'
config.tlsMinimumSupportedProtocol = .tlsProtocol12
~^~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:343:21: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'suggestedFilename'
urlResponse.suggestedFilename ??
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:344:21: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
urlResponse.url?.lastPathComponent ??
~~~~~~~~~~~ ^~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:389:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
.data(for: try buildUrlRequest(from: request)) as (data: Data, urlResponse: URLResponse)
^~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:400:63: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
let (locationUrl, urlResponse) = try await urlSession.download(for: urlRequest)
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:415:62: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
let (asyncBytes, urlResponse) = try await urlSession.bytes(for: urlRequest)
~~~~~~~~~~ ^~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:442:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
if let httpResponse = urlResponse as? HTTPURLResponse,
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:442:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
if let httpResponse = urlResponse as? HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:443:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
(400...599).contains(httpResponse.statusCode),
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:444:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
let headers = httpResponse.allHeaderFields as? [String: String] {
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:447:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
statusCode: httpResponse.statusCode,
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:146:45: error: cannot infer contextual base in reference to member 'init'
.flatMap { response in .init(catching: {
~^~~~
/host/spi-builder-workspace/AdyenNetworking/APIClient/APIClient.swift:150:26: error: cannot infer key path type from context; consider explicitly specifying a root type
.map(\.responseBody)
^
<#Root#>
[10/21] Compiling AdyenNetworking RetryAPIClient.swift
[11/21] Compiling AdyenNetworking RetryOnErrorAPIClient.swift
[12/21] Compiling AdyenNetworking Scheduler.swift
[13/21] Compiling AdyenNetworking AnyCoder.swift
[14/21] Compiling AdyenNetworking AnyResponseValidator.swift
[15/21] Compiling AdyenNetworking BackoffScheduler.swift
[16/21] Compiling AdyenNetworking Coder.swift
[17/21] Compiling AdyenNetworking DebugLogger.swift
[18/21] Compiling AdyenNetworking SimpleScheduler.swift
[19/21] Compiling AdyenNetworking UniqueAssetAPIClient.swift
[20/21] Compiling AdyenNetworking URLHelpers.swift
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:50:10: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
internal extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:16:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal init(data: Data?, response: URLResponse?) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:36:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal init(url: URL?, response: URLResponse?) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:18:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
let httpResponse = response as? HTTPURLResponse,
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:18:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let httpResponse = response as? HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:19:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
let headers = httpResponse.allHeaderFields as? [String: String] else {
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:25:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
self.statusCode = httpResponse.statusCode
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:38:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
let httpResponse = response as? HTTPURLResponse,
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:38:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let httpResponse = response as? HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:39:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
let headers = httpResponse.allHeaderFields as? [String: String] else {
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:45:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
self.statusCode = httpResponse.statusCode
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:54:26: error: cannot find type 'URLRequest' in scope
with urlRequest: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:68:26: error: cannot find type 'URLRequest' in scope
with urlRequest: URLRequest,
^~~~~~~~~~
[21/21] Compiling AdyenNetworking URLSessionHelpers.swift
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:50:10: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
internal extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:16:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal init(data: Data?, response: URLResponse?) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:36:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal init(url: URL?, response: URLResponse?) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:18:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
let httpResponse = response as? HTTPURLResponse,
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:18:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let httpResponse = response as? HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:19:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
let headers = httpResponse.allHeaderFields as? [String: String] else {
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:25:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
self.statusCode = httpResponse.statusCode
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:38:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
let httpResponse = response as? HTTPURLResponse,
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:38:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let httpResponse = response as? HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:39:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
let headers = httpResponse.allHeaderFields as? [String: String] else {
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:45:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
self.statusCode = httpResponse.statusCode
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:54:26: error: cannot find type 'URLRequest' in scope
with urlRequest: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/AdyenNetworking/Helpers/URLSessionHelpers.swift:68:26: error: cannot find type 'URLRequest' in scope
with urlRequest: URLRequest,
^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux