Build Information
Failed to build Cobalt with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:37: note: 'Failure' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:261:40: note: explicitly specify the generic arguments to fix this issue
let response = DataResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: error: generic parameter 'Success' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: 'Success' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: error: generic parameter 'Failure' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:41: note: 'Failure' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: note: explicitly specify the generic arguments to fix this issue
let response = DownloadResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:345:32: error: generic parameter 'Success' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: 'Success' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:345:32: error: generic parameter 'Failure' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:41: note: 'Failure' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:345:32: note: explicitly specify the generic arguments to fix this issue
let response = DownloadResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:376:40: error: generic parameter 'Success' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: 'Success' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:376:40: error: generic parameter 'Failure' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:41: note: 'Failure' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:376:40: note: explicitly specify the generic arguments to fix this issue
let response = DownloadResponse(request: self.request,
^
<Any, <#Failure: Error#>>
[47/55] Compiling Alamofire RetryPolicy.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:44:29: error: cannot find type 'URLRequest' in scope
func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> SerializedObject
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:44:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> SerializedObject
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:62:37: error: cannot find type 'URLRequest' in scope
func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: Error?) throws -> SerializedObject
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:62:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: Error?) throws -> SerializedObject
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:115:59: error: cannot find type 'URLRequest' in scope
public func requestAllowsEmptyResponseData(_ request: URLRequest?) -> Bool? {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:126:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func responseAllowsEmptyResponseData(_ response: HTTPURLResponse?) -> Bool? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:138:58: error: cannot find type 'URLRequest' in scope
public func emptyResponseAllowed(forRequest request: URLRequest?, response: HTTPURLResponse?) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:138:81: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func emptyResponseAllowed(forRequest request: URLRequest?, response: HTTPURLResponse?) -> Bool {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:146:44: error: cannot find type 'URLRequest' in scope
public func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: Error?) throws -> Self.SerializedObject {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:146:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: Error?) throws -> Self.SerializedObject {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:405:44: error: cannot find type 'URLRequest' in scope
public func serializeDownload(request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:406:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:401:15: error: type 'URLResponseSerializer' does not conform to protocol 'DownloadResponseSerializerProtocol'
public struct URLResponseSerializer: DownloadResponseSerializerProtocol {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:50:20: note: protocol requires nested type 'SerializedObject'; add nested type 'SerializedObject' for conformance
associatedtype SerializedObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:458:36: error: cannot find type 'URLRequest' in scope
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:458:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> Data {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:439:20: error: type 'DataResponseSerializer' does not conform to protocol 'DataResponseSerializerProtocol'
public final class DataResponseSerializer: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:439:20: error: type 'DataResponseSerializer' does not conform to protocol 'DownloadResponseSerializerProtocol'
public final class DataResponseSerializer: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:32:20: note: protocol requires nested type 'SerializedObject'; add nested type 'SerializedObject' for conformance
associatedtype SerializedObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:557:36: error: cannot find type 'URLRequest' in scope
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> String {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:557:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> String {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:532:20: error: type 'StringResponseSerializer' does not conform to protocol 'DataResponseSerializerProtocol'
public final class StringResponseSerializer: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:532:20: error: type 'StringResponseSerializer' does not conform to protocol 'DownloadResponseSerializerProtocol'
public final class StringResponseSerializer: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:32:20: note: protocol requires nested type 'SerializedObject'; add nested type 'SerializedObject' for conformance
associatedtype SerializedObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:675:36: error: cannot find type 'URLRequest' in scope
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> Any {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:675:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> Any {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:651:20: error: type 'JSONResponseSerializer' does not conform to protocol 'DataResponseSerializerProtocol'
public final class JSONResponseSerializer: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:651:20: error: type 'JSONResponseSerializer' does not conform to protocol 'DownloadResponseSerializerProtocol'
public final class JSONResponseSerializer: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:32:20: note: protocol requires nested type 'SerializedObject'; add nested type 'SerializedObject' for conformance
associatedtype SerializedObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:834:36: error: cannot find type 'URLRequest' in scope
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> T {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:834:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> T {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:810:20: error: type 'DecodableResponseSerializer<T>' does not conform to protocol 'DataResponseSerializerProtocol'
public final class DecodableResponseSerializer<T: Decodable>: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:810:20: error: type 'DecodableResponseSerializer<T>' does not conform to protocol 'DownloadResponseSerializerProtocol'
public final class DecodableResponseSerializer<T: Decodable>: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:32:20: note: protocol requires nested type 'SerializedObject'; add nested type 'SerializedObject' for conformance
associatedtype SerializedObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:127:31: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
response.flatMap { $0.statusCode }
~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:202:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest? { lastRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:234:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public var metrics: URLSessionTaskMetrics? { lastMetrics }
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:70:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:73:26: error: cannot find type 'URLSessionTaskMetrics' in scope
metrics: URLSessionTaskMetrics?,
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:186:32: error: generic parameter 'Success' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: 'Success' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:186:32: error: generic parameter 'Failure' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:37: note: 'Failure' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:186:32: note: explicitly specify the generic arguments to fix this issue
let response = DataResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:257:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:261:26: error: cannot find type 'URLSessionTaskMetrics' in scope
metrics: URLSessionTaskMetrics?,
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: error: generic parameter 'Success' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: 'Success' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: error: generic parameter 'Failure' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:41: note: 'Failure' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: note: explicitly specify the generic arguments to fix this issue
let response = DownloadResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:430:96: error: cannot convert value of type '(AFDownloadResponse<URL>) -> Void' (aka '(DownloadResponse<URL, AFError>) -> ()') to expected argument type '(DownloadResponse<URLResponseSerializer.SerializedObject, AFError>) -> Void'
response(queue: queue, responseSerializer: URLResponseSerializer(), completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('URLResponseSerializer.SerializedObject' and 'URL') are expected to be equal
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:497:37: error: cannot convert value of type '(AFDataResponse<Data>) -> Void' (aka '(DataResponse<Data, AFError>) -> ()') to expected argument type '(DataResponse<DataResponseSerializer.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: arguments to generic parameter 'Success' ('DataResponseSerializer.SerializedObject' and 'Data') are expected to be equal
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:523:37: error: cannot convert value of type '(AFDownloadResponse<Data>) -> Void' (aka '(DownloadResponse<Data, AFError>) -> ()') to expected argument type '(DownloadResponse<DataResponseSerializer.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('DataResponseSerializer.SerializedObject' and 'Data') are expected to be equal
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:572:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'textEncodingName'
if let encodingName = response?.textEncodingName, convertedEncoding == nil {
~~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:612:37: error: cannot convert value of type '(AFDataResponse<String>) -> Void' (aka '(DataResponse<String, AFError>) -> ()') to expected argument type '(DataResponse<StringResponseSerializer.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: arguments to generic parameter 'Success' ('StringResponseSerializer.SerializedObject' and 'String') are expected to be equal
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:642:37: error: cannot convert value of type '(AFDownloadResponse<String>) -> Void' (aka '(DownloadResponse<String, AFError>) -> ()') to expected argument type '(DownloadResponse<StringResponseSerializer.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('StringResponseSerializer.SerializedObject' and 'String') are expected to be equal
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:724:37: error: cannot convert value of type '(AFDataResponse<Any>) -> Void' (aka '(DataResponse<Any, AFError>) -> ()') to expected argument type '(DataResponse<JSONResponseSerializer.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: arguments to generic parameter 'Success' ('JSONResponseSerializer.SerializedObject' and 'Any') are expected to be equal
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:756:37: error: cannot convert value of type '(AFDownloadResponse<Any>) -> Void' (aka '(DownloadResponse<Any, AFError>) -> ()') to expected argument type '(DownloadResponse<JSONResponseSerializer.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('JSONResponseSerializer.SerializedObject' and 'Any') are expected to be equal
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:890:37: error: cannot convert value of type '(AFDataResponse<T>) -> Void' (aka '(DataResponse<T, AFError>) -> ()') to expected argument type '(DataResponse<DecodableResponseSerializer<_>.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: arguments to generic parameter 'Success' ('DecodableResponseSerializer<_>.SerializedObject' and 'T') are expected to be equal
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:886:38: error: generic parameter 'T' could not be inferred
responseSerializer: DecodableResponseSerializer(dataPreprocessor: dataPreprocessor,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:810:48: note: 'T' declared as parameter to type 'DecodableResponseSerializer'
public final class DecodableResponseSerializer<T: Decodable>: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:886:38: note: explicitly specify the generic arguments to fix this issue
responseSerializer: DecodableResponseSerializer(dataPreprocessor: dataPreprocessor,
^
<<#T: Decodable#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:925:37: error: cannot convert value of type '(AFDownloadResponse<T>) -> Void' (aka '(DownloadResponse<T, AFError>) -> ()') to expected argument type '(DownloadResponse<DecodableResponseSerializer<_>.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('DecodableResponseSerializer<_>.SerializedObject' and 'T') are expected to be equal
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:921:38: error: generic parameter 'T' could not be inferred
responseSerializer: DecodableResponseSerializer(dataPreprocessor: dataPreprocessor,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:810:48: note: 'T' declared as parameter to type 'DecodableResponseSerializer'
public final class DecodableResponseSerializer<T: Decodable>: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:921:38: note: explicitly specify the generic arguments to fix this issue
responseSerializer: DecodableResponseSerializer(dataPreprocessor: dataPreprocessor,
^
<<#T: Decodable#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:101:77: error: cannot find type 'URLRequest' in scope
func request(_ request: Request, didCreateInitialURLRequest urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:264:84: error: cannot find type 'URLRequest' in scope
public func request(_ request: Request, didCreateInitialURLRequest urlRequest: URLRequest) {}
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:107:77: error: cannot find type 'URLRequest' in scope
func request(_ request: Request, didAdaptInitialRequest initialRequest: URLRequest, to adaptedRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:107:108: error: cannot find type 'URLRequest' in scope
func request(_ request: Request, didAdaptInitialRequest initialRequest: URLRequest, to adaptedRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:267:64: error: cannot find type 'URLRequest' in scope
didAdaptInitialRequest initialRequest: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:268:44: error: cannot find type 'URLRequest' in scope
to adaptedRequest: URLRequest) {}
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:110:79: error: cannot find type 'URLRequest' in scope
func request(_ request: Request, didFailToAdaptURLRequest initialRequest: URLRequest, withError error: AFError)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:270:66: error: cannot find type 'URLRequest' in scope
didFailToAdaptURLRequest initialRequest: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:113:70: error: cannot find type 'URLRequest' in scope
func request(_ request: Request, didCreateURLRequest urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:272:77: error: cannot find type 'URLRequest' in scope
public func request(_ request: Request, didCreateURLRequest urlRequest: URLRequest) {}
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:119:64: error: cannot find type 'URLSessionTaskMetrics' in scope
func request(_ request: Request, didGatherMetrics metrics: URLSessionTaskMetrics)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:274:71: error: cannot find type 'URLSessionTaskMetrics' in scope
public func request(_ request: Request, didGatherMetrics metrics: URLSessionTaskMetrics) {}
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:156:49: error: cannot find type 'URLRequest' in scope
didValidateRequest urlRequest: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:286:56: error: cannot find type 'URLRequest' in scope
didValidateRequest urlRequest: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:177:49: error: cannot find type 'URLRequest' in scope
didValidateRequest urlRequest: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:293:56: error: cannot find type 'URLRequest' in scope
didValidateRequest urlRequest: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:211:49: error: cannot find type 'URLRequest' in scope
didValidateRequest urlRequest: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:303:56: error: cannot find type 'URLRequest' in scope
didValidateRequest urlRequest: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestInterceptor.swift:35:30: error: cannot find type 'URLRequest' in scope
func adapt(_ urlRequest: URLRequest, for session: Session, completion: @escaping (Result<URLRequest, Error>) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestInterceptor.swift:35:94: error: cannot find type 'URLRequest' in scope
func adapt(_ urlRequest: URLRequest, for session: Session, completion: @escaping (Result<URLRequest, Error>) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RetryPolicy.swift:329:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let statusCode = request.response?.statusCode, retryableHTTPStatusCodes.contains(statusCode) {
~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:407:11: error: cannot find type 'SecTrust' in scope
extension SecTrust: AlamofireExtended {}
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:550:11: error: cannot find type 'SecPolicy' in scope
extension SecPolicy: AlamofireExtended {}
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:593:11: error: cannot find type 'SecCertificate' in scope
extension SecCertificate: AlamofireExtended {}
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:607:11: error: cannot find type 'OSStatus' in scope
extension OSStatus: AlamofireExtended {}
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:613:11: error: cannot find type 'SecTrustResultType' in scope
extension SecTrustResultType: AlamofireExtended {}
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:105:35: error: cannot find type 'SecTrust' in scope
public func evaluate(_ trust: SecTrust, forHost host: String) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:124:51: error: cannot find 'kSecRevocationCRLMethod' in scope
public static let crl = Options(rawValue: kSecRevocationCRLMethod)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:144:31: error: cannot find type 'CFOptionFlags' in scope
public init(rawValue: CFOptionFlags) {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:139:30: error: cannot find type 'CFOptionFlags' in scope
public let rawValue: CFOptionFlags
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:124:40: error: extraneous argument label 'rawValue:' in call
public static let crl = Options(rawValue: kSecRevocationCRLMethod)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:126:69: error: cannot find 'kSecRevocationNetworkAccessDisabled' in scope
public static let networkAccessDisabled = Options(rawValue: kSecRevocationNetworkAccessDisabled)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:126:58: error: extraneous argument label 'rawValue:' in call
public static let networkAccessDisabled = Options(rawValue: kSecRevocationNetworkAccessDisabled)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:128:52: error: cannot find 'kSecRevocationOCSPMethod' in scope
public static let ocsp = Options(rawValue: kSecRevocationOCSPMethod)
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:128:41: error: extraneous argument label 'rawValue:' in call
public static let ocsp = Options(rawValue: kSecRevocationOCSPMethod)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:130:57: error: cannot find 'kSecRevocationPreferCRL' in scope
public static let preferCRL = Options(rawValue: kSecRevocationPreferCRL)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:130:46: error: extraneous argument label 'rawValue:' in call
public static let preferCRL = Options(rawValue: kSecRevocationPreferCRL)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:133:71: error: cannot find 'kSecRevocationRequirePositiveResponse' in scope
public static let requirePositiveResponse = Options(rawValue: kSecRevocationRequirePositiveResponse)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:133:60: error: extraneous argument label 'rawValue:' in call
public static let requirePositiveResponse = Options(rawValue: kSecRevocationRequirePositiveResponse)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:136:51: error: cannot find 'kSecRevocationUseAnyAvailableMethod' in scope
public static let any = Options(rawValue: kSecRevocationUseAnyAvailableMethod)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:136:40: error: extraneous argument label 'rawValue:' in call
public static let any = Options(rawValue: kSecRevocationUseAnyAvailableMethod)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:122:19: error: type 'RevocationTrustEvaluator.Options' does not conform to protocol 'SetAlgebra'
public struct Options: OptionSet {
^
Swift.OptionSet:2:23: note: candidate would match if 'RevocationTrustEvaluator.Options.RawValue' conformed to 'FixedWidthInteger'
@inlinable public init()
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:122:19: error: type 'RevocationTrustEvaluator.Options' does not conform to protocol 'RawRepresentable'
public struct Options: OptionSet {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:122:19: error: type 'RevocationTrustEvaluator.Options' does not conform to protocol 'Equatable'
public struct Options: OptionSet {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:139:20: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'RevocationTrustEvaluator.Options' to 'Equatable'
public let rawValue: CFOptionFlags
^
Swift.==:1:24: note: candidate would match if 'RevocationTrustEvaluator.Options.RawValue' conformed to 'Equatable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '__BridgedNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.SetAlgebra:3:5: note: protocol requires initializer 'init()' with type '()'
init()
^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
associatedtype RawValue
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(RevocationTrustEvaluator.Options, RevocationTrustEvaluator.Options) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:172:35: error: cannot find type 'SecTrust' in scope
public func evaluate(_ trust: SecTrust, forHost host: String) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:197:32: error: cannot find type 'SecCertificate' in scope
private let certificates: [SecCertificate]
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:215:32: error: cannot find type 'SecCertificate' in scope
public init(certificates: [SecCertificate] = Bundle.main.af.certificates,
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:225:35: error: cannot find type 'SecTrust' in scope
public func evaluate(_ trust: SecTrust, forHost host: String) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:260:24: error: cannot find type 'SecKey' in scope
private let keys: [SecKey]
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:277:24: error: cannot find type 'SecKey' in scope
public init(keys: [SecKey] = Bundle.main.af.publicKeys,
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:285:35: error: cannot find type 'SecTrust' in scope
public func evaluate(_ trust: SecTrust, forHost host: String) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:330:35: error: cannot find type 'SecTrust' in scope
public func evaluate(_ trust: SecTrust, forHost host: String) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:355:35: error: cannot find type 'SecTrust' in scope
public func evaluate(_ trust: SecTrust, forHost host: String) throws {}
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:382:31: error: cannot find type 'SecCertificate' in scope
public var certificates: [SecCertificate] {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:393:29: error: cannot find type 'SecKey' in scope
public var publicKeys: [SecKey] {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:408:52: error: cannot find type 'SecTrust' in scope
extension AlamofireExtension where ExtendedType == SecTrust {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:415:48: error: cannot find type 'SecPolicy' in scope
public func evaluate(afterApplying policy: SecPolicy) throws {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:429:34: error: cannot find type 'SecPolicy' in scope
public func validate(policy: SecPolicy, errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:429:71: error: cannot find type 'OSStatus' in scope
public func validate(policy: SecPolicy, errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:429:91: error: cannot find type 'SecTrustResultType' in scope
public func validate(policy: SecPolicy, errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:439:52: error: cannot find type 'SecTrust' in scope
public func apply(policy: SecPolicy) throws -> SecTrust {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:439:31: error: cannot find type 'SecPolicy' in scope
public func apply(policy: SecPolicy) throws -> SecTrust {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:474:52: error: cannot find type 'OSStatus' in scope
public func validate(errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:474:72: error: cannot find type 'SecTrustResultType' in scope
public func validate(errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:487:56: error: cannot find type 'SecCertificate' in scope
public func setAnchorCertificates(_ certificates: [SecCertificate]) throws {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:504:29: error: cannot find type 'SecKey' in scope
public var publicKeys: [SecKey] {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:509:31: error: cannot find type 'SecCertificate' in scope
public var certificates: [SecCertificate] {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:551:52: error: cannot find type 'SecPolicy' in scope
extension AlamofireExtension where ExtendedType == SecPolicy {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:35: error: cannot find 'SecPolicyCreateSSL' in scope
public static let `default` = SecPolicyCreateSSL(true, nil)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:60: error: 'nil' requires a contextual type
public static let `default` = SecPolicyCreateSSL(true, nil)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:560:56: error: cannot find type 'SecPolicy' in scope
public static func hostname(_ hostname: String) -> SecPolicy {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:571:88: error: cannot find type 'SecPolicy' in scope
public static func revocation(options: RevocationTrustEvaluator.Options) throws -> SecPolicy {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:581:53: error: cannot find type 'SecCertificate' in scope
extension AlamofireExtension where ExtendedType == [SecCertificate] {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:588:29: error: cannot find type 'SecKey' in scope
public var publicKeys: [SecKey] {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:594:52: error: cannot find type 'SecCertificate' in scope
extension AlamofireExtension where ExtendedType == SecCertificate {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:596:27: error: cannot find type 'SecKey' in scope
public var publicKey: SecKey? {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:608:52: error: cannot find type 'OSStatus' in scope
extension AlamofireExtension where ExtendedType == OSStatus {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:614:52: error: cannot find type 'SecTrustResultType' in scope
extension AlamofireExtension where ExtendedType == SecTrustResultType {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:616:16: error: invalid redeclaration of 'isSuccess'
public var isSuccess: Bool {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:610:16: note: 'isSuccess' previously declared here
public var isSuccess: Bool { type == errSecSuccess }
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:182:50: error: cannot find 'SecPolicy' in scope
try trust.af.evaluate(afterApplying: SecPolicy.af.revocation(options: options))
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:184:43: error: cannot find 'SecPolicy' in scope
try trust.af.validate(policy: SecPolicy.af.revocation(options: options)) { status, result in
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:137:43: error: cannot find type 'SecTrust' in scope
init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:137:63: error: cannot find type 'OSStatus' in scope
init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:137:83: error: cannot find type 'SecTrustResultType' in scope
init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:60: error: cannot find type 'SecTrust' in scope
case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:91: error: cannot find type 'SecCertificate' in scope
case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:129: error: cannot find type 'SecCertificate' in scope
case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:168:58: error: cannot find type 'SecTrust' in scope
case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:168:81: error: cannot find type 'SecKey' in scope
case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:168:103: error: cannot find type 'SecKey' in scope
case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:331:24: error: value of type '[any ServerTrustEvaluating]' has no member 'evaluate'
try evaluators.evaluate(trust, forHost: host)
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:440:22: error: cannot find 'SecTrustSetPolicies' in scope
let status = SecTrustSetPolicies(type, policy)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:152:45: error: cannot find type 'SecTrust' in scope
case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:152:63: error: cannot find type 'SecPolicy' in scope
case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:152:82: error: cannot find type 'OSStatus' in scope
case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:457:20: error: cannot find type 'CFError' in scope
var error: CFError?
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:458:35: error: cannot find 'SecTrustEvaluateWithError' in scope
let evaluationSucceeded = SecTrustEvaluateWithError(type, &error)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:475:22: error: cannot find 'SecTrustResultType' in scope
var result = SecTrustResultType.invalid
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:476:22: error: cannot find 'SecTrustEvaluate' in scope
let status = SecTrustEvaluate(type, &result)
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:489:22: error: cannot find 'SecTrustSetAnchorCertificates' in scope
let status = SecTrustSetAnchorCertificates(type, certificates as CFArray)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:489:74: error: cannot find type 'CFArray' in scope
let status = SecTrustSetAnchorCertificates(type, certificates as CFArray)
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:154:54: error: cannot find type 'OSStatus' in scope
case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:154:79: error: cannot find type 'SecCertificate' in scope
case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:496:26: error: cannot find 'SecTrustSetAnchorCertificatesOnly' in scope
let onlyStatus = SecTrustSetAnchorCertificatesOnly(type, true)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:526:41: error: cannot find 'SecPolicy' in scope
try evaluate(afterApplying: SecPolicy.af.default)
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:528:34: error: cannot find 'SecPolicy' in scope
try validate(policy: SecPolicy.af.default) { status, result in
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:541:41: error: cannot find 'SecPolicy' in scope
try evaluate(afterApplying: SecPolicy.af.hostname(host))
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:543:34: error: cannot find 'SecPolicy' in scope
try validate(policy: SecPolicy.af.hostname(host)) { status, result in
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:572:28: error: cannot find 'SecPolicyCreateRevocation' in scope
guard let policy = SecPolicyCreateRevocation(options.rawValue) else {
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:584:20: error: cannot find 'SecCertificateCopyData' in scope
type.map { SecCertificateCopyData($0) as Data }
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:597:22: error: cannot find 'SecPolicyCreateBasicX509' in scope
let policy = SecPolicyCreateBasicX509()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:598:20: error: cannot find type 'SecTrust' in scope
var trust: SecTrust?
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:599:35: error: cannot find 'SecTrustCreateWithCertificates' in scope
let trustCreationStatus = SecTrustCreateWithCertificates(type, policy, &trust)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:601:64: error: cannot find 'errSecSuccess' in scope
guard let createdTrust = trust, trustCreationStatus == errSecSuccess else { return nil }
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:610:42: error: cannot find 'errSecSuccess' in scope
public var isSuccess: Bool { type == errSecSuccess }
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:617:43: error: cannot infer contextual base in reference to member 'proceed'
(type == .unspecified || type == .proceed)
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:186:32: error: generic parameter 'Success' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: 'Success' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:186:32: error: generic parameter 'Failure' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:37: note: 'Failure' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:186:32: note: explicitly specify the generic arguments to fix this issue
let response = DataResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:231:32: error: generic parameter 'Success' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: 'Success' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:231:32: error: generic parameter 'Failure' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:37: note: 'Failure' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:231:32: note: explicitly specify the generic arguments to fix this issue
let response = DataResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:261:40: error: generic parameter 'Success' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: 'Success' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:261:40: error: generic parameter 'Failure' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:37: note: 'Failure' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:261:40: note: explicitly specify the generic arguments to fix this issue
let response = DataResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: error: generic parameter 'Success' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: 'Success' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: error: generic parameter 'Failure' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:41: note: 'Failure' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: note: explicitly specify the generic arguments to fix this issue
let response = DownloadResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:345:32: error: generic parameter 'Success' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: 'Success' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:345:32: error: generic parameter 'Failure' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:41: note: 'Failure' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:345:32: note: explicitly specify the generic arguments to fix this issue
let response = DownloadResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:376:40: error: generic parameter 'Success' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: 'Success' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:376:40: error: generic parameter 'Failure' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:41: note: 'Failure' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:376:40: note: explicitly specify the generic arguments to fix this issue
let response = DownloadResponse(request: self.request,
^
<Any, <#Failure: Error#>>
[48/55] Compiling Alamofire ServerTrustEvaluation.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:44:29: error: cannot find type 'URLRequest' in scope
func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> SerializedObject
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:44:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> SerializedObject
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:62:37: error: cannot find type 'URLRequest' in scope
func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: Error?) throws -> SerializedObject
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:62:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: Error?) throws -> SerializedObject
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:115:59: error: cannot find type 'URLRequest' in scope
public func requestAllowsEmptyResponseData(_ request: URLRequest?) -> Bool? {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:126:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func responseAllowsEmptyResponseData(_ response: HTTPURLResponse?) -> Bool? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:138:58: error: cannot find type 'URLRequest' in scope
public func emptyResponseAllowed(forRequest request: URLRequest?, response: HTTPURLResponse?) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:138:81: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func emptyResponseAllowed(forRequest request: URLRequest?, response: HTTPURLResponse?) -> Bool {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:146:44: error: cannot find type 'URLRequest' in scope
public func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: Error?) throws -> Self.SerializedObject {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:146:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: Error?) throws -> Self.SerializedObject {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:405:44: error: cannot find type 'URLRequest' in scope
public func serializeDownload(request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:406:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse?,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:401:15: error: type 'URLResponseSerializer' does not conform to protocol 'DownloadResponseSerializerProtocol'
public struct URLResponseSerializer: DownloadResponseSerializerProtocol {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:50:20: note: protocol requires nested type 'SerializedObject'; add nested type 'SerializedObject' for conformance
associatedtype SerializedObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:458:36: error: cannot find type 'URLRequest' in scope
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> Data {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:458:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> Data {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:439:20: error: type 'DataResponseSerializer' does not conform to protocol 'DataResponseSerializerProtocol'
public final class DataResponseSerializer: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:439:20: error: type 'DataResponseSerializer' does not conform to protocol 'DownloadResponseSerializerProtocol'
public final class DataResponseSerializer: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:32:20: note: protocol requires nested type 'SerializedObject'; add nested type 'SerializedObject' for conformance
associatedtype SerializedObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:557:36: error: cannot find type 'URLRequest' in scope
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> String {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:557:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> String {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:532:20: error: type 'StringResponseSerializer' does not conform to protocol 'DataResponseSerializerProtocol'
public final class StringResponseSerializer: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:532:20: error: type 'StringResponseSerializer' does not conform to protocol 'DownloadResponseSerializerProtocol'
public final class StringResponseSerializer: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:32:20: note: protocol requires nested type 'SerializedObject'; add nested type 'SerializedObject' for conformance
associatedtype SerializedObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:675:36: error: cannot find type 'URLRequest' in scope
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> Any {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:675:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> Any {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:651:20: error: type 'JSONResponseSerializer' does not conform to protocol 'DataResponseSerializerProtocol'
public final class JSONResponseSerializer: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:651:20: error: type 'JSONResponseSerializer' does not conform to protocol 'DownloadResponseSerializerProtocol'
public final class JSONResponseSerializer: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:32:20: note: protocol requires nested type 'SerializedObject'; add nested type 'SerializedObject' for conformance
associatedtype SerializedObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:834:36: error: cannot find type 'URLRequest' in scope
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> T {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:834:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> T {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:810:20: error: type 'DecodableResponseSerializer<T>' does not conform to protocol 'DataResponseSerializerProtocol'
public final class DecodableResponseSerializer<T: Decodable>: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:810:20: error: type 'DecodableResponseSerializer<T>' does not conform to protocol 'DownloadResponseSerializerProtocol'
public final class DecodableResponseSerializer<T: Decodable>: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:32:20: note: protocol requires nested type 'SerializedObject'; add nested type 'SerializedObject' for conformance
associatedtype SerializedObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:127:31: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
response.flatMap { $0.statusCode }
~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:202:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest? { lastRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:234:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public var metrics: URLSessionTaskMetrics? { lastMetrics }
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:70:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:73:26: error: cannot find type 'URLSessionTaskMetrics' in scope
metrics: URLSessionTaskMetrics?,
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:186:32: error: generic parameter 'Success' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: 'Success' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:186:32: error: generic parameter 'Failure' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:37: note: 'Failure' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:186:32: note: explicitly specify the generic arguments to fix this issue
let response = DataResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:257:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:261:26: error: cannot find type 'URLSessionTaskMetrics' in scope
metrics: URLSessionTaskMetrics?,
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: error: generic parameter 'Success' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: 'Success' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: error: generic parameter 'Failure' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:41: note: 'Failure' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: note: explicitly specify the generic arguments to fix this issue
let response = DownloadResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:430:96: error: cannot convert value of type '(AFDownloadResponse<URL>) -> Void' (aka '(DownloadResponse<URL, AFError>) -> ()') to expected argument type '(DownloadResponse<URLResponseSerializer.SerializedObject, AFError>) -> Void'
response(queue: queue, responseSerializer: URLResponseSerializer(), completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('URLResponseSerializer.SerializedObject' and 'URL') are expected to be equal
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:497:37: error: cannot convert value of type '(AFDataResponse<Data>) -> Void' (aka '(DataResponse<Data, AFError>) -> ()') to expected argument type '(DataResponse<DataResponseSerializer.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: arguments to generic parameter 'Success' ('DataResponseSerializer.SerializedObject' and 'Data') are expected to be equal
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:523:37: error: cannot convert value of type '(AFDownloadResponse<Data>) -> Void' (aka '(DownloadResponse<Data, AFError>) -> ()') to expected argument type '(DownloadResponse<DataResponseSerializer.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('DataResponseSerializer.SerializedObject' and 'Data') are expected to be equal
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:572:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'textEncodingName'
if let encodingName = response?.textEncodingName, convertedEncoding == nil {
~~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:612:37: error: cannot convert value of type '(AFDataResponse<String>) -> Void' (aka '(DataResponse<String, AFError>) -> ()') to expected argument type '(DataResponse<StringResponseSerializer.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: arguments to generic parameter 'Success' ('StringResponseSerializer.SerializedObject' and 'String') are expected to be equal
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:642:37: error: cannot convert value of type '(AFDownloadResponse<String>) -> Void' (aka '(DownloadResponse<String, AFError>) -> ()') to expected argument type '(DownloadResponse<StringResponseSerializer.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('StringResponseSerializer.SerializedObject' and 'String') are expected to be equal
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:724:37: error: cannot convert value of type '(AFDataResponse<Any>) -> Void' (aka '(DataResponse<Any, AFError>) -> ()') to expected argument type '(DataResponse<JSONResponseSerializer.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: arguments to generic parameter 'Success' ('JSONResponseSerializer.SerializedObject' and 'Any') are expected to be equal
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:756:37: error: cannot convert value of type '(AFDownloadResponse<Any>) -> Void' (aka '(DownloadResponse<Any, AFError>) -> ()') to expected argument type '(DownloadResponse<JSONResponseSerializer.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('JSONResponseSerializer.SerializedObject' and 'Any') are expected to be equal
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:890:37: error: cannot convert value of type '(AFDataResponse<T>) -> Void' (aka '(DataResponse<T, AFError>) -> ()') to expected argument type '(DataResponse<DecodableResponseSerializer<_>.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: arguments to generic parameter 'Success' ('DecodableResponseSerializer<_>.SerializedObject' and 'T') are expected to be equal
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:886:38: error: generic parameter 'T' could not be inferred
responseSerializer: DecodableResponseSerializer(dataPreprocessor: dataPreprocessor,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:810:48: note: 'T' declared as parameter to type 'DecodableResponseSerializer'
public final class DecodableResponseSerializer<T: Decodable>: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:886:38: note: explicitly specify the generic arguments to fix this issue
responseSerializer: DecodableResponseSerializer(dataPreprocessor: dataPreprocessor,
^
<<#T: Decodable#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:925:37: error: cannot convert value of type '(AFDownloadResponse<T>) -> Void' (aka '(DownloadResponse<T, AFError>) -> ()') to expected argument type '(DownloadResponse<DecodableResponseSerializer<_>.SerializedObject, AFError>) -> Void'
completionHandler: completionHandler)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('DecodableResponseSerializer<_>.SerializedObject' and 'T') are expected to be equal
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:921:38: error: generic parameter 'T' could not be inferred
responseSerializer: DecodableResponseSerializer(dataPreprocessor: dataPreprocessor,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:810:48: note: 'T' declared as parameter to type 'DecodableResponseSerializer'
public final class DecodableResponseSerializer<T: Decodable>: ResponseSerializer {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:921:38: note: explicitly specify the generic arguments to fix this issue
responseSerializer: DecodableResponseSerializer(dataPreprocessor: dataPreprocessor,
^
<<#T: Decodable#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:101:77: error: cannot find type 'URLRequest' in scope
func request(_ request: Request, didCreateInitialURLRequest urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:264:84: error: cannot find type 'URLRequest' in scope
public func request(_ request: Request, didCreateInitialURLRequest urlRequest: URLRequest) {}
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:107:77: error: cannot find type 'URLRequest' in scope
func request(_ request: Request, didAdaptInitialRequest initialRequest: URLRequest, to adaptedRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:107:108: error: cannot find type 'URLRequest' in scope
func request(_ request: Request, didAdaptInitialRequest initialRequest: URLRequest, to adaptedRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:267:64: error: cannot find type 'URLRequest' in scope
didAdaptInitialRequest initialRequest: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:268:44: error: cannot find type 'URLRequest' in scope
to adaptedRequest: URLRequest) {}
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:110:79: error: cannot find type 'URLRequest' in scope
func request(_ request: Request, didFailToAdaptURLRequest initialRequest: URLRequest, withError error: AFError)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:270:66: error: cannot find type 'URLRequest' in scope
didFailToAdaptURLRequest initialRequest: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:113:70: error: cannot find type 'URLRequest' in scope
func request(_ request: Request, didCreateURLRequest urlRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:272:77: error: cannot find type 'URLRequest' in scope
public func request(_ request: Request, didCreateURLRequest urlRequest: URLRequest) {}
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:119:64: error: cannot find type 'URLSessionTaskMetrics' in scope
func request(_ request: Request, didGatherMetrics metrics: URLSessionTaskMetrics)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:274:71: error: cannot find type 'URLSessionTaskMetrics' in scope
public func request(_ request: Request, didGatherMetrics metrics: URLSessionTaskMetrics) {}
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:156:49: error: cannot find type 'URLRequest' in scope
didValidateRequest urlRequest: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:286:56: error: cannot find type 'URLRequest' in scope
didValidateRequest urlRequest: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:177:49: error: cannot find type 'URLRequest' in scope
didValidateRequest urlRequest: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:293:56: error: cannot find type 'URLRequest' in scope
didValidateRequest urlRequest: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:211:49: error: cannot find type 'URLRequest' in scope
didValidateRequest urlRequest: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:303:56: error: cannot find type 'URLRequest' in scope
didValidateRequest urlRequest: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestInterceptor.swift:35:30: error: cannot find type 'URLRequest' in scope
func adapt(_ urlRequest: URLRequest, for session: Session, completion: @escaping (Result<URLRequest, Error>) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestInterceptor.swift:35:94: error: cannot find type 'URLRequest' in scope
func adapt(_ urlRequest: URLRequest, for session: Session, completion: @escaping (Result<URLRequest, Error>) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RetryPolicy.swift:329:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let statusCode = request.response?.statusCode, retryableHTTPStatusCodes.contains(statusCode) {
~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:407:11: error: cannot find type 'SecTrust' in scope
extension SecTrust: AlamofireExtended {}
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:550:11: error: cannot find type 'SecPolicy' in scope
extension SecPolicy: AlamofireExtended {}
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:593:11: error: cannot find type 'SecCertificate' in scope
extension SecCertificate: AlamofireExtended {}
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:607:11: error: cannot find type 'OSStatus' in scope
extension OSStatus: AlamofireExtended {}
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:613:11: error: cannot find type 'SecTrustResultType' in scope
extension SecTrustResultType: AlamofireExtended {}
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:105:35: error: cannot find type 'SecTrust' in scope
public func evaluate(_ trust: SecTrust, forHost host: String) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:124:51: error: cannot find 'kSecRevocationCRLMethod' in scope
public static let crl = Options(rawValue: kSecRevocationCRLMethod)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:144:31: error: cannot find type 'CFOptionFlags' in scope
public init(rawValue: CFOptionFlags) {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:139:30: error: cannot find type 'CFOptionFlags' in scope
public let rawValue: CFOptionFlags
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:124:40: error: extraneous argument label 'rawValue:' in call
public static let crl = Options(rawValue: kSecRevocationCRLMethod)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:126:69: error: cannot find 'kSecRevocationNetworkAccessDisabled' in scope
public static let networkAccessDisabled = Options(rawValue: kSecRevocationNetworkAccessDisabled)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:126:58: error: extraneous argument label 'rawValue:' in call
public static let networkAccessDisabled = Options(rawValue: kSecRevocationNetworkAccessDisabled)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:128:52: error: cannot find 'kSecRevocationOCSPMethod' in scope
public static let ocsp = Options(rawValue: kSecRevocationOCSPMethod)
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:128:41: error: extraneous argument label 'rawValue:' in call
public static let ocsp = Options(rawValue: kSecRevocationOCSPMethod)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:130:57: error: cannot find 'kSecRevocationPreferCRL' in scope
public static let preferCRL = Options(rawValue: kSecRevocationPreferCRL)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:130:46: error: extraneous argument label 'rawValue:' in call
public static let preferCRL = Options(rawValue: kSecRevocationPreferCRL)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:133:71: error: cannot find 'kSecRevocationRequirePositiveResponse' in scope
public static let requirePositiveResponse = Options(rawValue: kSecRevocationRequirePositiveResponse)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:133:60: error: extraneous argument label 'rawValue:' in call
public static let requirePositiveResponse = Options(rawValue: kSecRevocationRequirePositiveResponse)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:136:51: error: cannot find 'kSecRevocationUseAnyAvailableMethod' in scope
public static let any = Options(rawValue: kSecRevocationUseAnyAvailableMethod)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:136:40: error: extraneous argument label 'rawValue:' in call
public static let any = Options(rawValue: kSecRevocationUseAnyAvailableMethod)
^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:122:19: error: type 'RevocationTrustEvaluator.Options' does not conform to protocol 'SetAlgebra'
public struct Options: OptionSet {
^
Swift.OptionSet:2:23: note: candidate would match if 'RevocationTrustEvaluator.Options.RawValue' conformed to 'FixedWidthInteger'
@inlinable public init()
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:122:19: error: type 'RevocationTrustEvaluator.Options' does not conform to protocol 'RawRepresentable'
public struct Options: OptionSet {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:122:19: error: type 'RevocationTrustEvaluator.Options' does not conform to protocol 'Equatable'
public struct Options: OptionSet {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:139:20: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'RevocationTrustEvaluator.Options' to 'Equatable'
public let rawValue: CFOptionFlags
^
Swift.==:1:24: note: candidate would match if 'RevocationTrustEvaluator.Options.RawValue' conformed to 'Equatable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '__BridgedNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.SetAlgebra:3:5: note: protocol requires initializer 'init()' with type '()'
init()
^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
associatedtype RawValue
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(RevocationTrustEvaluator.Options, RevocationTrustEvaluator.Options) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:172:35: error: cannot find type 'SecTrust' in scope
public func evaluate(_ trust: SecTrust, forHost host: String) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:197:32: error: cannot find type 'SecCertificate' in scope
private let certificates: [SecCertificate]
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:215:32: error: cannot find type 'SecCertificate' in scope
public init(certificates: [SecCertificate] = Bundle.main.af.certificates,
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:225:35: error: cannot find type 'SecTrust' in scope
public func evaluate(_ trust: SecTrust, forHost host: String) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:260:24: error: cannot find type 'SecKey' in scope
private let keys: [SecKey]
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:277:24: error: cannot find type 'SecKey' in scope
public init(keys: [SecKey] = Bundle.main.af.publicKeys,
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:285:35: error: cannot find type 'SecTrust' in scope
public func evaluate(_ trust: SecTrust, forHost host: String) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:330:35: error: cannot find type 'SecTrust' in scope
public func evaluate(_ trust: SecTrust, forHost host: String) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:355:35: error: cannot find type 'SecTrust' in scope
public func evaluate(_ trust: SecTrust, forHost host: String) throws {}
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:382:31: error: cannot find type 'SecCertificate' in scope
public var certificates: [SecCertificate] {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:393:29: error: cannot find type 'SecKey' in scope
public var publicKeys: [SecKey] {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:408:52: error: cannot find type 'SecTrust' in scope
extension AlamofireExtension where ExtendedType == SecTrust {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:415:48: error: cannot find type 'SecPolicy' in scope
public func evaluate(afterApplying policy: SecPolicy) throws {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:429:34: error: cannot find type 'SecPolicy' in scope
public func validate(policy: SecPolicy, errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:429:71: error: cannot find type 'OSStatus' in scope
public func validate(policy: SecPolicy, errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:429:91: error: cannot find type 'SecTrustResultType' in scope
public func validate(policy: SecPolicy, errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:439:52: error: cannot find type 'SecTrust' in scope
public func apply(policy: SecPolicy) throws -> SecTrust {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:439:31: error: cannot find type 'SecPolicy' in scope
public func apply(policy: SecPolicy) throws -> SecTrust {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:474:52: error: cannot find type 'OSStatus' in scope
public func validate(errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:474:72: error: cannot find type 'SecTrustResultType' in scope
public func validate(errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:487:56: error: cannot find type 'SecCertificate' in scope
public func setAnchorCertificates(_ certificates: [SecCertificate]) throws {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:504:29: error: cannot find type 'SecKey' in scope
public var publicKeys: [SecKey] {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:509:31: error: cannot find type 'SecCertificate' in scope
public var certificates: [SecCertificate] {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:551:52: error: cannot find type 'SecPolicy' in scope
extension AlamofireExtension where ExtendedType == SecPolicy {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:35: error: cannot find 'SecPolicyCreateSSL' in scope
public static let `default` = SecPolicyCreateSSL(true, nil)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:60: error: 'nil' requires a contextual type
public static let `default` = SecPolicyCreateSSL(true, nil)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:560:56: error: cannot find type 'SecPolicy' in scope
public static func hostname(_ hostname: String) -> SecPolicy {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:571:88: error: cannot find type 'SecPolicy' in scope
public static func revocation(options: RevocationTrustEvaluator.Options) throws -> SecPolicy {
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:581:53: error: cannot find type 'SecCertificate' in scope
extension AlamofireExtension where ExtendedType == [SecCertificate] {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:588:29: error: cannot find type 'SecKey' in scope
public var publicKeys: [SecKey] {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:594:52: error: cannot find type 'SecCertificate' in scope
extension AlamofireExtension where ExtendedType == SecCertificate {
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:596:27: error: cannot find type 'SecKey' in scope
public var publicKey: SecKey? {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:608:52: error: cannot find type 'OSStatus' in scope
extension AlamofireExtension where ExtendedType == OSStatus {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:614:52: error: cannot find type 'SecTrustResultType' in scope
extension AlamofireExtension where ExtendedType == SecTrustResultType {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:616:16: error: invalid redeclaration of 'isSuccess'
public var isSuccess: Bool {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:610:16: note: 'isSuccess' previously declared here
public var isSuccess: Bool { type == errSecSuccess }
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:182:50: error: cannot find 'SecPolicy' in scope
try trust.af.evaluate(afterApplying: SecPolicy.af.revocation(options: options))
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:184:43: error: cannot find 'SecPolicy' in scope
try trust.af.validate(policy: SecPolicy.af.revocation(options: options)) { status, result in
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:137:43: error: cannot find type 'SecTrust' in scope
init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:137:63: error: cannot find type 'OSStatus' in scope
init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:137:83: error: cannot find type 'SecTrustResultType' in scope
init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:60: error: cannot find type 'SecTrust' in scope
case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:91: error: cannot find type 'SecCertificate' in scope
case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:129: error: cannot find type 'SecCertificate' in scope
case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:168:58: error: cannot find type 'SecTrust' in scope
case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:168:81: error: cannot find type 'SecKey' in scope
case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:168:103: error: cannot find type 'SecKey' in scope
case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
^~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:331:24: error: value of type '[any ServerTrustEvaluating]' has no member 'evaluate'
try evaluators.evaluate(trust, forHost: host)
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:440:22: error: cannot find 'SecTrustSetPolicies' in scope
let status = SecTrustSetPolicies(type, policy)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:152:45: error: cannot find type 'SecTrust' in scope
case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:152:63: error: cannot find type 'SecPolicy' in scope
case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:152:82: error: cannot find type 'OSStatus' in scope
case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:457:20: error: cannot find type 'CFError' in scope
var error: CFError?
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:458:35: error: cannot find 'SecTrustEvaluateWithError' in scope
let evaluationSucceeded = SecTrustEvaluateWithError(type, &error)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:475:22: error: cannot find 'SecTrustResultType' in scope
var result = SecTrustResultType.invalid
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:476:22: error: cannot find 'SecTrustEvaluate' in scope
let status = SecTrustEvaluate(type, &result)
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:489:22: error: cannot find 'SecTrustSetAnchorCertificates' in scope
let status = SecTrustSetAnchorCertificates(type, certificates as CFArray)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:489:74: error: cannot find type 'CFArray' in scope
let status = SecTrustSetAnchorCertificates(type, certificates as CFArray)
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:154:54: error: cannot find type 'OSStatus' in scope
case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:154:79: error: cannot find type 'SecCertificate' in scope
case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:496:26: error: cannot find 'SecTrustSetAnchorCertificatesOnly' in scope
let onlyStatus = SecTrustSetAnchorCertificatesOnly(type, true)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:526:41: error: cannot find 'SecPolicy' in scope
try evaluate(afterApplying: SecPolicy.af.default)
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:528:34: error: cannot find 'SecPolicy' in scope
try validate(policy: SecPolicy.af.default) { status, result in
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:541:41: error: cannot find 'SecPolicy' in scope
try evaluate(afterApplying: SecPolicy.af.hostname(host))
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:543:34: error: cannot find 'SecPolicy' in scope
try validate(policy: SecPolicy.af.hostname(host)) { status, result in
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:572:28: error: cannot find 'SecPolicyCreateRevocation' in scope
guard let policy = SecPolicyCreateRevocation(options.rawValue) else {
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:584:20: error: cannot find 'SecCertificateCopyData' in scope
type.map { SecCertificateCopyData($0) as Data }
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:597:22: error: cannot find 'SecPolicyCreateBasicX509' in scope
let policy = SecPolicyCreateBasicX509()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:598:20: error: cannot find type 'SecTrust' in scope
var trust: SecTrust?
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:599:35: error: cannot find 'SecTrustCreateWithCertificates' in scope
let trustCreationStatus = SecTrustCreateWithCertificates(type, policy, &trust)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:601:64: error: cannot find 'errSecSuccess' in scope
guard let createdTrust = trust, trustCreationStatus == errSecSuccess else { return nil }
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:610:42: error: cannot find 'errSecSuccess' in scope
public var isSuccess: Bool { type == errSecSuccess }
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:617:43: error: cannot infer contextual base in reference to member 'proceed'
(type == .unspecified || type == .proceed)
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:186:32: error: generic parameter 'Success' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: 'Success' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:186:32: error: generic parameter 'Failure' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:37: note: 'Failure' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:186:32: note: explicitly specify the generic arguments to fix this issue
let response = DataResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:231:32: error: generic parameter 'Success' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: 'Success' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:231:32: error: generic parameter 'Failure' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:37: note: 'Failure' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:231:32: note: explicitly specify the generic arguments to fix this issue
let response = DataResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:261:40: error: generic parameter 'Success' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: 'Success' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:261:40: error: generic parameter 'Failure' could not be inferred
let response = DataResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:37: note: 'Failure' declared as parameter to type 'DataResponse'
public struct DataResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:261:40: note: explicitly specify the generic arguments to fix this issue
let response = DataResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: error: generic parameter 'Success' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: 'Success' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: error: generic parameter 'Failure' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:41: note: 'Failure' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:299:32: note: explicitly specify the generic arguments to fix this issue
let response = DownloadResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:345:32: error: generic parameter 'Success' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: 'Success' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:345:32: error: generic parameter 'Failure' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:41: note: 'Failure' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:345:32: note: explicitly specify the generic arguments to fix this issue
let response = DownloadResponse(request: self.request,
^
<Any, <#Failure: Error#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:376:40: error: generic parameter 'Success' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: 'Success' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:376:40: error: generic parameter 'Failure' could not be inferred
let response = DownloadResponse(request: self.request,
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:41: note: 'Failure' declared as parameter to type 'DownloadResponse'
public struct DownloadResponse<Success, Failure: Error> {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:376:40: note: explicitly specify the generic arguments to fix this issue
let response = DownloadResponse(request: self.request,
^
<Any, <#Failure: Error#>>
[49/55] Compiling Alamofire URLEncodedFormEncoder.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLRequest+Alamofire.swift:27:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:27:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration: AlamofireExtended {}
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:31:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static var `default`: URLSessionConfiguration {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:35: error: cannot find 'SecPolicyCreateSSL' in scope
public static let `default` = SecPolicyCreateSSL(true, nil)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:60: error: 'nil' requires a contextual type
public static let `default` = SecPolicyCreateSSL(true, nil)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:28:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
extension AlamofireExtension where ExtendedType: URLSessionConfiguration {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:32:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let configuration = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:33:34: error: cannot infer contextual base in reference to member 'default'
configuration.headers = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:82:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:96:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:106:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:149:36: error: cannot find type 'URLRequest' in scope
public typealias Validation = (URLRequest?, HTTPURLResponse, Data?) -> ValidationResult
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:197:47: error: cannot find type 'URLRequest' in scope
public typealias Validation = (_ request: URLRequest?, _ response: HTTPURLResponse) -> ValidationResult
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:247:47: error: cannot find type 'URLRequest' in scope
public typealias Validation = (_ request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:202:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest? { lastRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:85:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if acceptableStatusCodes.contains(response.statusCode) {
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:88:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let reason: ErrorReason = .unacceptableStatusCode(code: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:110:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
let responseContentType = response.mimeType,
~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:159:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:173:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:48: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, data in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:159:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:173:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, data in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:207:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:221:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:207:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:221:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:261:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:260:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:274:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:261:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:261:48: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:260:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:274:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:38: error: cannot infer type of closure parameter 'response' without a type annotation
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:48: error: cannot infer type of closure parameter 'fileURL' without a type annotation
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:277:25: error: reference to member 'failure' cannot be resolved without a contextual type
return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
~^~~~~~~
[50/55] Compiling Alamofire URLRequest+Alamofire.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLRequest+Alamofire.swift:27:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:27:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration: AlamofireExtended {}
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:31:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static var `default`: URLSessionConfiguration {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:35: error: cannot find 'SecPolicyCreateSSL' in scope
public static let `default` = SecPolicyCreateSSL(true, nil)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:60: error: 'nil' requires a contextual type
public static let `default` = SecPolicyCreateSSL(true, nil)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:28:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
extension AlamofireExtension where ExtendedType: URLSessionConfiguration {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:32:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let configuration = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:33:34: error: cannot infer contextual base in reference to member 'default'
configuration.headers = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:82:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:96:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:106:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:149:36: error: cannot find type 'URLRequest' in scope
public typealias Validation = (URLRequest?, HTTPURLResponse, Data?) -> ValidationResult
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:197:47: error: cannot find type 'URLRequest' in scope
public typealias Validation = (_ request: URLRequest?, _ response: HTTPURLResponse) -> ValidationResult
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:247:47: error: cannot find type 'URLRequest' in scope
public typealias Validation = (_ request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:202:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest? { lastRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:85:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if acceptableStatusCodes.contains(response.statusCode) {
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:88:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let reason: ErrorReason = .unacceptableStatusCode(code: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:110:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
let responseContentType = response.mimeType,
~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:159:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:173:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:48: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, data in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:159:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:173:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, data in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:207:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:221:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:207:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:221:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:261:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:260:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:274:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:261:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:261:48: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:260:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:274:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:38: error: cannot infer type of closure parameter 'response' without a type annotation
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:48: error: cannot infer type of closure parameter 'fileURL' without a type annotation
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:277:25: error: reference to member 'failure' cannot be resolved without a contextual type
return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
~^~~~~~~
[51/55] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLRequest+Alamofire.swift:27:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:27:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration: AlamofireExtended {}
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:31:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static var `default`: URLSessionConfiguration {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:35: error: cannot find 'SecPolicyCreateSSL' in scope
public static let `default` = SecPolicyCreateSSL(true, nil)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:60: error: 'nil' requires a contextual type
public static let `default` = SecPolicyCreateSSL(true, nil)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:28:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
extension AlamofireExtension where ExtendedType: URLSessionConfiguration {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:32:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let configuration = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:33:34: error: cannot infer contextual base in reference to member 'default'
configuration.headers = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:82:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:96:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:106:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:149:36: error: cannot find type 'URLRequest' in scope
public typealias Validation = (URLRequest?, HTTPURLResponse, Data?) -> ValidationResult
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:197:47: error: cannot find type 'URLRequest' in scope
public typealias Validation = (_ request: URLRequest?, _ response: HTTPURLResponse) -> ValidationResult
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:247:47: error: cannot find type 'URLRequest' in scope
public typealias Validation = (_ request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:202:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest? { lastRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:85:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if acceptableStatusCodes.contains(response.statusCode) {
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:88:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let reason: ErrorReason = .unacceptableStatusCode(code: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:110:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
let responseContentType = response.mimeType,
~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:159:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:173:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:48: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, data in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:159:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:173:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, data in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:207:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:221:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:207:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:221:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:261:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:260:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:274:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:261:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:261:48: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:260:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:274:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:38: error: cannot infer type of closure parameter 'response' without a type annotation
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:48: error: cannot infer type of closure parameter 'fileURL' without a type annotation
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:277:25: error: reference to member 'failure' cannot be resolved without a contextual type
return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
~^~~~~~~
[52/55] Compiling Alamofire Validation.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLRequest+Alamofire.swift:27:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:27:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration: AlamofireExtended {}
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:31:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static var `default`: URLSessionConfiguration {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:35: error: cannot find 'SecPolicyCreateSSL' in scope
public static let `default` = SecPolicyCreateSSL(true, nil)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:60: error: 'nil' requires a contextual type
public static let `default` = SecPolicyCreateSSL(true, nil)
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:28:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
extension AlamofireExtension where ExtendedType: URLSessionConfiguration {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:32:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let configuration = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:33:34: error: cannot infer contextual base in reference to member 'default'
configuration.headers = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:82:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:96:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:106:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: HTTPURLResponse)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:149:36: error: cannot find type 'URLRequest' in scope
public typealias Validation = (URLRequest?, HTTPURLResponse, Data?) -> ValidationResult
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:197:47: error: cannot find type 'URLRequest' in scope
public typealias Validation = (_ request: URLRequest?, _ response: HTTPURLResponse) -> ValidationResult
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:247:47: error: cannot find type 'URLRequest' in scope
public typealias Validation = (_ request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:202:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest? { lastRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:85:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if acceptableStatusCodes.contains(response.statusCode) {
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:88:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let reason: ErrorReason = .unacceptableStatusCode(code: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:110:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
let responseContentType = response.mimeType,
~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:159:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:173:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:48: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, data in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:159:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:173:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, data in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:207:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:221:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:207:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:221:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:261:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:260:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:274:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:261:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:261:48: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, _ in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:9: error: no exact matches in call to instance method 'validate'
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:260:17: note: found this candidate
public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:274:17: note: found this candidate
public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:35: error: cannot infer type of closure parameter '_' without a type annotation
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:38: error: cannot infer type of closure parameter 'response' without a type annotation
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:275:48: error: cannot infer type of closure parameter 'fileURL' without a type annotation
validate { [unowned self] _, response, fileURL in
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:277:25: error: reference to member 'failure' cannot be resolved without a contextual type
return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
~^~~~~~~
error: fatalError
[53/56] Compiling Logging LogHandler.swift
[54/56] Emitting module Logging
BUILD FAILURE 5.10 linux