Build Information
Failed to build OAuthSwiftAlamofire with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
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:420: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:420: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:504: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:504: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:479: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:479: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:605: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:605: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:581: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:581: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:735: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:735: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:711: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:711: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:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return response.flatMap { $0.statusCode }
~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:196:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest? { return lastRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:230:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public var metrics: URLSessionTaskMetrics? { return lastMetrics }
^~~~~~~~~~~~~~~~~~~~~
/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:217:25: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let start = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:227:23: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let end = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/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:216: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:216: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:332:25: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let start = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:341:23: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let end = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:413:44: 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:470:44: 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:216: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:519:61: error: cannot find type 'CFString' in scope
if let encodingName = response?.textEncodingName as CFString?, convertedEncoding == nil {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:519:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'textEncodingName'
if let encodingName = response?.textEncodingName as CFString?, convertedEncoding == nil {
~~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:520:31: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
let ianaCharSet = CFStringConvertIANACharSetNameToEncoding(encodingName)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:521:36: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
let nsStringEncoding = CFStringConvertEncodingToNSStringEncoding(ianaCharSet)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:551:44: 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:572:44: 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:216: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:641:44: 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:661:44: 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:216: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:777:44: 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:776:45: error: generic parameter 'T' could not be inferred
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:711: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:776:45: note: explicitly specify the generic arguments to fix this issue
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
<<#T: Decodable#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:798:44: 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:216: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:797:45: error: generic parameter 'T' could not be inferred
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:711: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:797:45: note: explicitly specify the generic arguments to fix this issue
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
<<#T: Decodable#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RetryPolicy.swift:324:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func shouldRetry(response: HTTPURLResponse?, error: Error) -> 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/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:325:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let statusCode = response?.statusCode, retryableHTTPStatusCodes.contains(statusCode) {
~~~~~~~~~ ^~~~~~~~~~
/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:216: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:216: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:216: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:216: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:216: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:216: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#>>
[19/61] Compiling OAuthSwift String+OAuthSwift.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:35:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:38:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let 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/Response.swift:47:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public let metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/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/Response.swift:71:27: 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/Response.swift:218:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:221:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let 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/Response.swift:233:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public let metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:258:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:262:26: error: cannot find type 'URLSessionTaskMetrics' in scope
metrics: URLSessionTaskMetrics?,
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:259:27: 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/Response.swift:101:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
let sortedHeaders = response.headers.sorted()
~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:291:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
let sortedHeaders = response.headers.sorted()
~~~~~~~~ ^~~~~~~
/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:37: error: cannot find type 'URLRequest' in scope
func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: Error?) throws -> Self.SerializedObject {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:146: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 -> 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:439: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:439: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:420: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:420: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:504: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:504: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:479: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:479: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:605: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:605: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:581: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:581: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:735: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:735: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:711: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:711: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:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return response.flatMap { $0.statusCode }
~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:196:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest? { return lastRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:230:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public var metrics: URLSessionTaskMetrics? { return lastMetrics }
^~~~~~~~~~~~~~~~~~~~~
/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:217:25: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let start = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:227:23: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let end = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/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:216: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:216: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:332:25: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let start = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:341:23: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let end = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:413:44: 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:470:44: 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:216: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:519:61: error: cannot find type 'CFString' in scope
if let encodingName = response?.textEncodingName as CFString?, convertedEncoding == nil {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:519:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'textEncodingName'
if let encodingName = response?.textEncodingName as CFString?, convertedEncoding == nil {
~~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:520:31: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
let ianaCharSet = CFStringConvertIANACharSetNameToEncoding(encodingName)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:521:36: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
let nsStringEncoding = CFStringConvertEncodingToNSStringEncoding(ianaCharSet)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:551:44: 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:572:44: 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:216: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:641:44: 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:661:44: 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:216: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:777:44: 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:776:45: error: generic parameter 'T' could not be inferred
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:711: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:776:45: note: explicitly specify the generic arguments to fix this issue
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
<<#T: Decodable#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:798:44: 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:216: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:797:45: error: generic parameter 'T' could not be inferred
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:711: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:797:45: note: explicitly specify the generic arguments to fix this issue
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
<<#T: Decodable#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RetryPolicy.swift:324:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func shouldRetry(response: HTTPURLResponse?, error: Error) -> 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/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:325:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let statusCode = response?.statusCode, retryableHTTPStatusCodes.contains(statusCode) {
~~~~~~~~~ ^~~~~~~~~~
/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:216: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:216: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:216: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:216: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:216: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:216: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#>>
[20/61] Compiling OAuthSwift UIApplication+OAuthSwift.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:35:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:38:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let 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/Response.swift:47:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public let metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/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/Response.swift:71:27: 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/Response.swift:218:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:221:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let 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/Response.swift:233:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public let metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:258:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:262:26: error: cannot find type 'URLSessionTaskMetrics' in scope
metrics: URLSessionTaskMetrics?,
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:259:27: 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/Response.swift:101:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
let sortedHeaders = response.headers.sorted()
~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:291:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
let sortedHeaders = response.headers.sorted()
~~~~~~~~ ^~~~~~~
/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:37: error: cannot find type 'URLRequest' in scope
func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: Error?) throws -> Self.SerializedObject {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:146: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 -> 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:439: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:439: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:420: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:420: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:504: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:504: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:479: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:479: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:605: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:605: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:581: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:581: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:735: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:735: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:711: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:711: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:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return response.flatMap { $0.statusCode }
~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:196:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest? { return lastRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:230:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public var metrics: URLSessionTaskMetrics? { return lastMetrics }
^~~~~~~~~~~~~~~~~~~~~
/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:217:25: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let start = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:227:23: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let end = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/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:216: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:216: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:332:25: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let start = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:341:23: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let end = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:413:44: 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:470:44: 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:216: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:519:61: error: cannot find type 'CFString' in scope
if let encodingName = response?.textEncodingName as CFString?, convertedEncoding == nil {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:519:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'textEncodingName'
if let encodingName = response?.textEncodingName as CFString?, convertedEncoding == nil {
~~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:520:31: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
let ianaCharSet = CFStringConvertIANACharSetNameToEncoding(encodingName)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:521:36: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
let nsStringEncoding = CFStringConvertEncodingToNSStringEncoding(ianaCharSet)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:551:44: 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:572:44: 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:216: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:641:44: 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:661:44: 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:216: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:777:44: 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:776:45: error: generic parameter 'T' could not be inferred
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:711: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:776:45: note: explicitly specify the generic arguments to fix this issue
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
<<#T: Decodable#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:798:44: 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:216: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:797:45: error: generic parameter 'T' could not be inferred
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:711: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:797:45: note: explicitly specify the generic arguments to fix this issue
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
<<#T: Decodable#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RetryPolicy.swift:324:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func shouldRetry(response: HTTPURLResponse?, error: Error) -> 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/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:325:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let statusCode = response?.statusCode, retryableHTTPStatusCodes.contains(statusCode) {
~~~~~~~~~ ^~~~~~~~~~
/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:216: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:216: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:216: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:216: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:216: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:216: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#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:35:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:38:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let 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/Response.swift:47:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public let metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/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/Response.swift:71:27: 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/Response.swift:218:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:221:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let 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/Response.swift:233:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public let metrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:258:26: error: cannot find type 'URLRequest' in scope
public init(request: URLRequest?,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:262:26: error: cannot find type 'URLSessionTaskMetrics' in scope
metrics: URLSessionTaskMetrics?,
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:259:27: 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/Response.swift:101:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
let sortedHeaders = response.headers.sorted()
~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:291:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
let sortedHeaders = response.headers.sorted()
~~~~~~~~ ^~~~~~~
/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:37: error: cannot find type 'URLRequest' in scope
func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: Error?) throws -> Self.SerializedObject {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:146: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 -> 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:439: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:439: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:420: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:420: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:504: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:504: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:479: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:479: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:605: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:605: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:581: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:581: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:735: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:735: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:711: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:711: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:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return response.flatMap { $0.statusCode }
~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:196:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest? { return lastRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:230:25: error: cannot find type 'URLSessionTaskMetrics' in scope
public var metrics: URLSessionTaskMetrics? { return lastMetrics }
^~~~~~~~~~~~~~~~~~~~~
/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:217:25: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let start = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:227:23: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let end = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/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:216: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:216: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:332:25: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let start = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:341:23: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
let end = CFAbsoluteTimeGetCurrent()
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:413:44: 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:470:44: 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:216: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:519:61: error: cannot find type 'CFString' in scope
if let encodingName = response?.textEncodingName as CFString?, convertedEncoding == nil {
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:519:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'textEncodingName'
if let encodingName = response?.textEncodingName as CFString?, convertedEncoding == nil {
~~~~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:520:31: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
let ianaCharSet = CFStringConvertIANACharSetNameToEncoding(encodingName)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:521:36: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
let nsStringEncoding = CFStringConvertEncodingToNSStringEncoding(ianaCharSet)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:551:44: 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:572:44: 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:216: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:641:44: 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:661:44: 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:216: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:777:44: 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:776:45: error: generic parameter 'T' could not be inferred
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:711: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:776:45: note: explicitly specify the generic arguments to fix this issue
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
<<#T: Decodable#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:798:44: 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:216: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:797:45: error: generic parameter 'T' could not be inferred
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:711: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:797:45: note: explicitly specify the generic arguments to fix this issue
responseSerializer: DecodableResponseSerializer(decoder: decoder),
^
<<#T: Decodable#>>
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RetryPolicy.swift:324:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func shouldRetry(response: HTTPURLResponse?, error: Error) -> 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/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:325:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let statusCode = response?.statusCode, retryableHTTPStatusCodes.contains(statusCode) {
~~~~~~~~~ ^~~~~~~~~~
/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:216: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:216: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:216: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:216: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:216: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:216: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#>>
[22/61] Compiling OAuthSwift OAuthWebViewController.swift
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Handler/OAuthWebViewController.swift:39:36: error: cannot find type 'OAuthViewController' in scope
open class OAuthWebViewController: OAuthViewController, OAuthSwiftURLHandlerType {
^~~~~~~~~~~~~~~~~~~
[23/61] Compiling OAuthSwift SFAuthenticationURLHandler.swift
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Handler/OAuthWebViewController.swift:39:36: error: cannot find type 'OAuthViewController' in scope
open class OAuthWebViewController: OAuthViewController, OAuthSwiftURLHandlerType {
^~~~~~~~~~~~~~~~~~~
[24/61] Compiling OAuthSwift SafariURLHandler.swift
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Handler/OAuthWebViewController.swift:39:36: error: cannot find type 'OAuthViewController' in scope
open class OAuthWebViewController: OAuthViewController, OAuthSwiftURLHandlerType {
^~~~~~~~~~~~~~~~~~~
[25/61] Compiling OAuthSwift Int+OAuthSwift.swift
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Handler/OAuthWebViewController.swift:39:36: error: cannot find type 'OAuthViewController' in scope
open class OAuthWebViewController: OAuthViewController, OAuthSwiftURLHandlerType {
^~~~~~~~~~~~~~~~~~~
error: compile command failed due to signal 6 (use -v to see invocation)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:130:31: error: cannot find type 'SecTrust' in scope
public let trust: SecTrust
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:132:32: error: cannot find type 'OSStatus' in scope
public let status: OSStatus
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:134:32: error: cannot find type 'SecTrustResultType' in scope
public let result: SecTrustResultType
^~~~~~~~~~~~~~~~~~
/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: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/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/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:139:30: error: cannot find type 'CFOptionFlags' in scope
public let rawValue: CFOptionFlags
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/CachedResponseHandler.swift:41:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func dataTask(_ task: URLSessionDataTask,
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/CachedResponseHandler.swift:42:47: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
willCacheResponse response: CachedURLResponse,
^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/CachedResponseHandler.swift:43:42: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
completion: @escaping (CachedURLResponse?) -> Void)
^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/CachedResponseHandler.swift:58:22: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case modify((URLSessionDataTask, CachedURLResponse) -> CachedURLResponse?)
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/CachedResponseHandler.swift:58:42: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case modify((URLSessionDataTask, CachedURLResponse) -> CachedURLResponse?)
^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/CachedResponseHandler.swift:58:64: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case modify((URLSessionDataTask, CachedURLResponse) -> CachedURLResponse?)
^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/CachedResponseHandler.swift:78:34: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func dataTask(_ task: URLSessionDataTask,
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/CachedResponseHandler.swift:79:54: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
willCacheResponse response: CachedURLResponse,
^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/CachedResponseHandler.swift:80:49: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
completion: @escaping (CachedURLResponse?) -> Void) {
^~~~~~~~~~~~~~~~~
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
public typealias CachedURLResponse = AnyObject
^
Can't demangle: $s9Alamofire7AFErrorO24ServerTrustFailureReasonO24certificatePinningFailed33_E6FE27F77E4165F94EC7579EB4CCE715LLXeF4hostL_SSvp
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift -primary-file /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift -primary-file /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AlamofireExtended.swift -primary-file /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/CachedResponseHandler.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/DispatchQueue+Alamofire.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPHeaders.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPMethod.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/MultipartFormData.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/MultipartUpload.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/NetworkReachabilityManager.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Notifications.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/OperationQueue+Alamofire.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Protector.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestInterceptor.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestTaskMap.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Result+Alamofire.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RetryPolicy.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLEncodedFormEncoder.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLRequest+Alamofire.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift -supplementary-output-file-map /tmp/TemporaryDirectory.WQp2O2/supplementaryOutputs-1 -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug -enable-testing -g -module-cache-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -suppress-warnings -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /usr/bin/swift-driver -empty-abi-descriptor -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -fPIC -Xcc -g -Xcc -fno-omit-frame-pointer -module-name Alamofire -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Alamofire.build/AFError.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Alamofire.build/Alamofire.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Alamofire.build/AlamofireExtended.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Alamofire.build/CachedResponseHandler.swift.o -index-store-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1. Swift version 5.10-dev (LLVM dbfaba0078e9380, Swift 63c8b551eb2f613)
2. Compiling with the current language version
3. While walking into 'AFError' (at /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:29:8)
4. While walking into 'ServerTrustFailureReason' (at /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:124:12)
5. While evaluating request USRGenerationRequest(Alamofire.(file).AFError.ServerTrustFailureReason.certificatePinningFailed(host:trust:pinnedCertificates:serverCertificates:).host@/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:39)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/usr/bin/swift-frontend(+0x7307d73)[0x5562e6dbbd73]
/usr/bin/swift-frontend(+0x7305abe)[0x5562e6db9abe]
/usr/bin/swift-frontend(+0x73080ea)[0x5562e6dbc0ea]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7ff7092fc520]
/lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7ff7093509fc]
/lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7ff7092fc476]
/lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7ff7092e27f3]
/usr/bin/swift-frontend(+0x2af4275)[0x5562e25a8275]
/usr/bin/swift-frontend(+0x2755c54)[0x5562e2209c54]
/usr/bin/swift-frontend(+0x2ab869b)[0x5562e256c69b]
/usr/bin/swift-frontend(+0x2347a0c)[0x5562e1dfba0c]
/usr/bin/swift-frontend(+0x106859c)[0x5562e0b1c59c]
/usr/bin/swift-frontend(+0x1068102)[0x5562e0b1c102]
/usr/bin/swift-frontend(+0x106716b)[0x5562e0b1b16b]
/usr/bin/swift-frontend(+0x2ab91aa)[0x5562e256d1aa]
/usr/bin/swift-frontend(+0x1036d5b)[0x5562e0aead5b]
/usr/bin/swift-frontend(+0x10362a7)[0x5562e0aea2a7]
/usr/bin/swift-frontend(+0x1033c59)[0x5562e0ae7c59]
/usr/bin/swift-frontend(+0x1cb4cd1)[0x5562e1768cd1]
/usr/bin/swift-frontend(+0x27ad05c)[0x5562e226105c]
/usr/bin/swift-frontend(+0x27aeb3c)[0x5562e2262b3c]
/usr/bin/swift-frontend(+0x27b10e7)[0x5562e22650e7]
/usr/bin/swift-frontend(+0x27ad07c)[0x5562e226107c]
/usr/bin/swift-frontend(+0x27b1c1f)[0x5562e2265c1f]
/usr/bin/swift-frontend(+0x27b086b)[0x5562e226486b]
/usr/bin/swift-frontend(+0x27ad07c)[0x5562e226107c]
/usr/bin/swift-frontend(+0x27b1c1f)[0x5562e2265c1f]
/usr/bin/swift-frontend(+0x27b086b)[0x5562e226486b]
/usr/bin/swift-frontend(+0x27ad07c)[0x5562e226107c]
/usr/bin/swift-frontend(+0x27acf73)[0x5562e2260f73]
/usr/bin/swift-frontend(+0x298b1e2)[0x5562e243f1e2]
/usr/bin/swift-frontend(+0x1cb26a6)[0x5562e17666a6]
/usr/bin/swift-frontend(+0x1032c84)[0x5562e0ae6c84]
/usr/bin/swift-frontend(+0x1032b2a)[0x5562e0ae6b2a]
/usr/bin/swift-frontend(+0x1027f82)[0x5562e0adbf82]
/usr/bin/swift-frontend(+0x1027978)[0x5562e0adb978]
/usr/bin/swift-frontend(+0xe3f242)[0x5562e08f3242]
/usr/bin/swift-frontend(+0xe3d09c)[0x5562e08f109c]
/usr/bin/swift-frontend(+0xe382cd)[0x5562e08ec2cd]
/usr/bin/swift-frontend(+0xe369db)[0x5562e08ea9db]
/usr/bin/swift-frontend(+0xcc3315)[0x5562e0777315]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7ff7092e3d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7ff7092e3e40]
/usr/bin/swift-frontend(+0xcc2375)[0x5562e0776375]
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:12:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:21:65: error: cannot find type 'URLRequest' in scope
public init(data: Data, response: HTTPURLResponse, request: URLRequest?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:17:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:19:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(data: Data, response: HTTPURLResponse, request: URLRequest?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftURLHandlerType.swift:21:2: error: Objective-C interoperability is disabled
@objc public protocol OAuthSwiftURLHandlerType {
~^~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:12:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:21:65: error: cannot find type 'URLRequest' in scope
public init(data: Data, response: HTTPURLResponse, request: URLRequest?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:17:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:19:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(data: Data, response: HTTPURLResponse, request: URLRequest?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftURLHandlerType.swift:21:2: error: Objective-C interoperability is disabled
@objc public protocol OAuthSwiftURLHandlerType {
~^~~~~
[28/61] Compiling OAuthSwift OAuthSwiftURLHandlerType.swift
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:12:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:21:65: error: cannot find type 'URLRequest' in scope
public init(data: Data, response: HTTPURLResponse, request: URLRequest?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:17:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var response: HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:19:25: error: cannot find type 'URLRequest' in scope
public var request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(data: Data, response: HTTPURLResponse, request: URLRequest?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftURLHandlerType.swift:21:2: error: Objective-C interoperability is disabled
@objc public protocol OAuthSwiftURLHandlerType {
~^~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:83:59: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
scanner.scanUpTo(keyValueSeparator, into: &key)
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:83:59: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
scanner.scanUpTo(keyValueSeparator, into: &key)
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:87:58: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
scanner.scanUpTo(elementSeparator, into: &value)
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:87:58: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
scanner.scanUpTo(elementSeparator, into: &value)
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:140:23: error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
let charset = CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(self.rawValue))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:140:64: error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
let charset = CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(self.rawValue))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:83:59: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
scanner.scanUpTo(keyValueSeparator, into: &key)
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:83:59: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
scanner.scanUpTo(keyValueSeparator, into: &key)
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:87:58: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
scanner.scanUpTo(elementSeparator, into: &value)
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:87:58: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
scanner.scanUpTo(elementSeparator, into: &value)
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:140:23: error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
let charset = CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(self.rawValue))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:140:64: error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
let charset = CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(self.rawValue))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:83:59: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
scanner.scanUpTo(keyValueSeparator, into: &key)
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:83:59: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
scanner.scanUpTo(keyValueSeparator, into: &key)
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:87:58: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
scanner.scanUpTo(elementSeparator, into: &value)
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:87:58: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
scanner.scanUpTo(elementSeparator, into: &value)
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:140:23: error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
let charset = CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(self.rawValue))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift:140:64: error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
let charset = CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(self.rawValue))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: compile command failed due to signal 6 (use -v to see invocation)
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/NSError+OAuthSwift.swift:58:54: error: value of type 'AnyObject' has no subscripts
let errorCode = jsonDic["error"]?["code"] as? Int
~~~~~~~~~~~~~~~~~^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/NSError+OAuthSwift.swift:59:57: error: value of type 'AnyObject' has no subscripts
let errorSubCode = jsonDic["error"]?["error_subcode"] as? Int
~~~~~~~~~~~~~~~~~^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/NSError+OAuthSwift.swift:58:54: error: value of type 'AnyObject' has no subscripts
let errorCode = jsonDic["error"]?["code"] as? Int
~~~~~~~~~~~~~~~~~^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/NSError+OAuthSwift.swift:59:57: error: value of type 'AnyObject' has no subscripts
let errorSubCode = jsonDic["error"]?["error_subcode"] as? Int
~~~~~~~~~~~~~~~~~^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/NSError+OAuthSwift.swift:58:54: error: value of type 'AnyObject' has no subscripts
let errorCode = jsonDic["error"]?["code"] as? Int
~~~~~~~~~~~~~~~~~^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/NSError+OAuthSwift.swift:59:57: error: value of type 'AnyObject' has no subscripts
let errorSubCode = jsonDic["error"]?["error_subcode"] as? Int
~~~~~~~~~~~~~~~~~^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftError.swift:34:46: error: cannot find type 'URLRequest' in scope
case requestError(error: Error, request: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftError.swift:38:54: error: cannot find type 'URLRequest' in scope
case authorizationPending(error: Error, request: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftError.swift:40:42: error: cannot find type 'URLRequest' in scope
case slowDown(error: Error, request: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftError.swift:42:46: error: cannot find type 'URLRequest' in scope
case accessDenied(error: Error, request: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:58:31: error: cannot find type 'URLRequest' in scope
convenience init(request: URLRequest, paramsLocation: ParamsLocation = .authorizationHeader, sessionFactory: URLSessionFactory = .default) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:42:26: error: cannot find type 'URLRequest' in scope
private var request: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:43:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var task: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:44:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var session: URLSession!
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:433:56: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public var configuration = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:436:31: error: cannot find type 'URLSessionDelegate' in scope
public weak var delegate: URLSessionDelegate?
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:116:101: error: cannot find type 'URLRequest' in scope
public static func completionHandler(completionHandler completion: CompletionHandler?, request: URLRequest, data: Data?, resp: URLResponse?, error: Error?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:116:132: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public static func completionHandler(completionHandler completion: CompletionHandler?, request: URLRequest, data: Data?, resp: URLResponse?, error: Error?) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:222:39: error: cannot find type 'URLRequest' in scope
open func makeRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:226:59: error: cannot find type 'URLRequest' in scope
open class func makeRequest(config: Config) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:242:74: error: cannot find type 'URLRequest' in scope
paramsLocation: ParamsLocation = .authorizationHeader) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:264:74: error: cannot find type 'URLRequest' in scope
paramsLocation: ParamsLocation = .authorizationHeader) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:260:24: error: cannot find type 'URLRequest' in scope
request: inout URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:314:32: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:347:33: error: cannot find type 'URLRequest' in scope
public init(urlRequest: URLRequest, parameters: OAuthSwift.Parameters = [:], paramsLocation: ParamsLocation = .authorizationHeader, dataEncoding: String.Encoding = OAuthSwiftDataEncoding, sessionFactory: URLSessionFactory = .default) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:447:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func build() -> URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:59:46: error: extra argument 'urlRequest' in call
self.init(config: Config(urlRequest: request, paramsLocation: paramsLocation, sessionFactory: sessionFactory))
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:59:33: error: missing arguments for parameters 'url', 'parameters' in call
self.init(config: Config(urlRequest: request, paramsLocation: paramsLocation, sessionFactory: sessionFactory))
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:337:16: note: 'init(url:httpMethod:httpBody:headers:timeoutInterval:httpShouldHandleCookies:parameters:paramsLocation:dataEncoding:sessionFactory:)' declared here
public init(url: URL, httpMethod: Method = .GET, httpBody: Data? = nil, headers: OAuthSwift.Headers = [:], timeoutInterval: TimeInterval = 60, httpShouldHandleCookies: Bool = false, parameters: OAuthSwift.Parameters, paramsLocation: ParamsLocation = .authorizationHeader, dataEncoding: String.Encoding = OAuthSwiftDataEncoding, sessionFactory: URLSessionFactory = .default) {
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:74:28: error: 'nil' requires a contextual type
self.request = nil
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:140:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let response = resp as? HTTPURLResponse, let responseData = data else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:149:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
if let response = resp as? HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:150:57: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
userInfo["Response-Headers"] = response.allHeaderFields
~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:158:24: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
guard response.statusCode < 400 else {
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:175:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
localizedDescription = OAuthSwiftHTTPRequest.descriptionForHTTPStatus(response.statusCode, responseString: String(data: responseData, encoding: OAuthSwiftDataEncoding)!)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:180:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
"Response-Headers": response.allHeaderFields,
~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:187:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
if let urlString = response.url?.absoluteString {
~~~~~~~~ ^~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:191:80: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let error = NSError(domain: OAuthSwiftError.Domain, code: response.statusCode, userInfo: userInfo)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift:21:65: error: cannot find type 'URLRequest' in scope
public init(data: Data, response: HTTPURLResponse, request: URLRequest?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:216:18: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
task.cancel()
~~~~ ^~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:244:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:338:30: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:344:35: error: extra argument 'urlRequest' in call
self.init(urlRequest: urlRequest, parameters: parameters, paramsLocation: paramsLocation, dataEncoding: dataEncoding, sessionFactory: sessionFactory)
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:344:23: error: missing argument for parameter 'url' in call
self.init(urlRequest: urlRequest, parameters: parameters, paramsLocation: paramsLocation, dataEncoding: dataEncoding, sessionFactory: sessionFactory)
^
url: <#URL#>,
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:337:16: note: 'init(url:httpMethod:httpBody:headers:timeoutInterval:httpShouldHandleCookies:parameters:paramsLocation:dataEncoding:sessionFactory:)' declared here
public init(url: URL, httpMethod: Method = .GET, httpBody: Data? = nil, headers: OAuthSwift.Headers = [:], timeoutInterval: TimeInterval = 60, httpShouldHandleCookies: Bool = false, parameters: OAuthSwift.Parameters, paramsLocation: ParamsLocation = .authorizationHeader, dataEncoding: String.Encoding = OAuthSwiftDataEncoding, sessionFactory: URLSessionFactory = .default) {
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:404:40: error: 'nil' requires a contextual type
urlComponents?.query = nil
^
/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:448:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
return URLSession(configuration: self.configuration, delegate: self.delegate, delegateQueue: self.queue)
^~~~~~~~~~
Can't demangle: $s10OAuthSwift0aB5ErrorO07requestC033_26BBA774041396F45A943316C92836FFLLXeF5errorL_s0C0_pvp
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Collection+OAuthSwift.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Data+OAuthSwift.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Dictionary+OAuthSwift.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/HMAC.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Handler/ASWebAuthenticationURLHandler.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Handler/ExtensionContextURLHandler.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Handler/OAuthSwiftOpenURLExternally.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Handler/OAuthSwiftURLHandlerProxy.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Handler/OAuthWebViewController.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Handler/SFAuthenticationURLHandler.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Handler/SafariURLHandler.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Int+OAuthSwift.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/NSError+OAuthSwift.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/NotificationCenter+OAuthSwift.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuth1Swift.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuth2Swift.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwift.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftClient.swift -primary-file /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftCredential.swift -primary-file /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftError.swift -primary-file /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftMultipartData.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftResponse.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftURLHandlerType.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/SHA1.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/String+OAuthSwift.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/UIApplication+OAuthSwift.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/URL+OAuthSwift.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/URLConvertible.swift /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/Utils.swift -supplementary-output-file-map /tmp/TemporaryDirectory.HQM5GC/supplementaryOutputs-5 -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug -enable-testing -g -module-cache-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -suppress-warnings -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /usr/bin/swift-driver -empty-abi-descriptor -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -fPIC -Xcc -g -Xcc -fno-omit-frame-pointer -module-name OAuthSwift -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/OAuthSwift.build/OAuthSwiftCredential.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/OAuthSwift.build/OAuthSwiftError.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/OAuthSwift.build/OAuthSwiftHTTPRequest.swift.o -index-store-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1. Swift version 5.10-dev (LLVM dbfaba0078e9380, Swift 63c8b551eb2f613)
2. Compiling with the current language version
3. While walking into 'OAuthSwiftError' (at /host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftError.swift:12:8)
4. While evaluating request USRGenerationRequest(OAuthSwift.(file).OAuthSwiftError.requestError(error:request:).error@/host/spi-builder-workspace/.build/checkouts/OAuthSwift/Sources/OAuthSwiftError.swift:34:23)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/usr/bin/swift-frontend(+0x7307d73)[0x562e527afd73]
/usr/bin/swift-frontend(+0x7305abe)[0x562e527adabe]
/usr/bin/swift-frontend(+0x73080ea)[0x562e527b00ea]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f1def322520]
/lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f1def3769fc]
/lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f1def322476]
/lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7f1def3087f3]
/usr/bin/swift-frontend(+0x2af4275)[0x562e4df9c275]
/usr/bin/swift-frontend(+0x2755c54)[0x562e4dbfdc54]
/usr/bin/swift-frontend(+0x2ab869b)[0x562e4df6069b]
/usr/bin/swift-frontend(+0x2347a0c)[0x562e4d7efa0c]
/usr/bin/swift-frontend(+0x106859c)[0x562e4c51059c]
/usr/bin/swift-frontend(+0x1068102)[0x562e4c510102]
/usr/bin/swift-frontend(+0x106716b)[0x562e4c50f16b]
/usr/bin/swift-frontend(+0x2ab91aa)[0x562e4df611aa]
/usr/bin/swift-frontend(+0x1036d5b)[0x562e4c4ded5b]
/usr/bin/swift-frontend(+0x10362a7)[0x562e4c4de2a7]
/usr/bin/swift-frontend(+0x1033c59)[0x562e4c4dbc59]
/usr/bin/swift-frontend(+0x1cb4cd1)[0x562e4d15ccd1]
/usr/bin/swift-frontend(+0x27ad05c)[0x562e4dc5505c]
/usr/bin/swift-frontend(+0x27aeb3c)[0x562e4dc56b3c]
/usr/bin/swift-frontend(+0x27b10e7)[0x562e4dc590e7]
/usr/bin/swift-frontend(+0x27ad07c)[0x562e4dc5507c]
/usr/bin/swift-frontend(+0x27b1c1f)[0x562e4dc59c1f]
/usr/bin/swift-frontend(+0x27b086b)[0x562e4dc5886b]
/usr/bin/swift-frontend(+0x27ad07c)[0x562e4dc5507c]
/usr/bin/swift-frontend(+0x27acf73)[0x562e4dc54f73]
/usr/bin/swift-frontend(+0x298b1e2)[0x562e4de331e2]
/usr/bin/swift-frontend(+0x1cb26a6)[0x562e4d15a6a6]
/usr/bin/swift-frontend(+0x1032c84)[0x562e4c4dac84]
/usr/bin/swift-frontend(+0x1032b2a)[0x562e4c4dab2a]
/usr/bin/swift-frontend(+0x1027f82)[0x562e4c4cff82]
/usr/bin/swift-frontend(+0x1027978)[0x562e4c4cf978]
/usr/bin/swift-frontend(+0xe3f242)[0x562e4c2e7242]
/usr/bin/swift-frontend(+0xe3d09c)[0x562e4c2e509c]
/usr/bin/swift-frontend(+0xe382cd)[0x562e4c2e02cd]
/usr/bin/swift-frontend(+0xe369db)[0x562e4c2de9db]
/usr/bin/swift-frontend(+0xcc3315)[0x562e4c16b315]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f1def309d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f1def309e40]
/usr/bin/swift-frontend(+0xcc2375)[0x562e4c16a375]
BUILD FAILURE 5.10 linux
Build Machine: Linux 2