Build Information
Failed to build SwiftYFinance, reference 2.0.0 (bcc81f
), with Swift 6.0 for Linux on 3 Nov 2024 10:29:09 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
26 |
27 | extension URLSessionConfiguration: AlamofireExtended {}
28 | extension AlamofireExtension where ExtendedType: URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | /// Alamofire's default configuration. Same as `URLSessionConfiguration.default` but adds Alamofire default
30 | /// `Accept-Language`, `Accept-Encoding`, and `User-Agent` headers.
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:32:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
30 | /// `Accept-Language`, `Accept-Encoding`, and `User-Agent` headers.
31 | public static var `default`: URLSessionConfiguration {
32 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
33 | configuration.headers = .default
34 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:33:34: error: cannot infer contextual base in reference to member 'default'
31 | public static var `default`: URLSessionConfiguration {
32 | let configuration = URLSessionConfiguration.default
33 | configuration.headers = .default
| `- error: cannot infer contextual base in reference to member 'default'
34 |
35 | return configuration
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:82:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 | fileprivate func validate<S: Sequence>(statusCode acceptableStatusCodes: S,
82 | response: HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | -> ValidationResult
84 | where S.Iterator.Element == Int {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:96:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 |
95 | fileprivate func validate<S: Sequence>(contentType acceptableContentTypes: S,
96 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | data: Data?)
98 | -> ValidationResult
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:106:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |
105 | fileprivate func validate<S: Sequence>(contentType acceptableContentTypes: S,
106 | response: HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | -> ValidationResult
108 | where S.Iterator.Element == String {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:149:36: error: cannot find type 'URLRequest' in scope
147 | /// A closure used to validate a request that takes a URL request, a URL response and data, and returns whether the
148 | /// request was valid.
149 | public typealias Validation = (URLRequest?, HTTPURLResponse, Data?) -> ValidationResult
| `- error: cannot find type 'URLRequest' in scope
150 |
151 | /// Validates that the response has a status code in the specified sequence.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:197:47: error: cannot find type 'URLRequest' in scope
195 | /// A closure used to validate a request that takes a `URLRequest` and `HTTPURLResponse` and returns whether the
196 | /// request was valid.
197 | public typealias Validation = (_ request: URLRequest?, _ response: HTTPURLResponse) -> ValidationResult
| `- error: cannot find type 'URLRequest' in scope
198 |
199 | /// Validates that the response has a status code in the specified sequence.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:244:47: error: cannot find type 'URLRequest' in scope
242 | /// A closure used to validate a request that takes a URL request, a URL response, a temporary URL and a
243 | /// destination URL, and returns whether the request was valid.
244 | public typealias Validation = (_ request: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
245 | _ response: HTTPURLResponse,
246 | _ fileURL: URL?)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:198:25: error: cannot find type 'URLRequest' in scope
196 | public var lastRequest: URLRequest? { requests.last }
197 | /// Current `URLRequest` created on behalf of the `Request`.
198 | public var request: URLRequest? { lastRequest }
| `- error: cannot find type 'URLRequest' in scope
199 |
200 | /// `URLRequest`s from all of the `URLSessionTask`s executed on behalf of the `Request`. May be different from
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:85:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
83 | -> ValidationResult
84 | where S.Iterator.Element == Int {
85 | if acceptableStatusCodes.contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
86 | return .success(Void())
87 | } else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:88:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
86 | return .success(Void())
87 | } else {
88 | let reason: ErrorReason = .unacceptableStatusCode(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
89 | return .failure(AFError.responseValidationFailed(reason: reason))
90 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:110:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
108 | where S.Iterator.Element == String {
109 | guard
110 | let responseContentType = response.mimeType,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
111 | let responseMIMEType = MIMEType(responseContentType)
112 | else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:1064:40: error: @escaping attribute only applies to function types
1062 | /// - Returns: The instance.
1063 | @discardableResult
1064 | public func validate(_ validation: @escaping Validation) -> Self {
| `- error: @escaping attribute only applies to function types
1065 | let validator: () -> Void = { [unowned self] in
1066 | guard self.error == nil, let response = self.response else { return }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:16: error: no exact matches in call to instance method 'validate'
157 | /// - Returns: The instance.
158 | @discardableResult
159 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
160 | return validate { [unowned self] _, response, _ in
| `- error: no exact matches in call to instance method 'validate'
161 | self.validate(statusCode: acceptableStatusCodes, response: response)
162 | }
:
171 | /// - returns: The request.
172 | @discardableResult
173 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
174 | return validate { [unowned self] _, response, data in
175 | self.validate(contentType: acceptableContentTypes(), response: response, data: data)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:42: error: cannot infer type of closure parameter '_' without a type annotation
158 | @discardableResult
159 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
160 | return validate { [unowned self] _, response, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
161 | self.validate(statusCode: acceptableStatusCodes, response: response)
162 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:55: error: cannot infer type of closure parameter '_' without a type annotation
158 | @discardableResult
159 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
160 | return validate { [unowned self] _, response, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
161 | self.validate(statusCode: acceptableStatusCodes, response: response)
162 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:16: error: no exact matches in call to instance method 'validate'
157 | /// - Returns: The instance.
158 | @discardableResult
159 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
160 | return validate { [unowned self] _, response, _ in
161 | self.validate(statusCode: acceptableStatusCodes, response: response)
:
171 | /// - returns: The request.
172 | @discardableResult
173 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
174 | return validate { [unowned self] _, response, data in
| `- error: no exact matches in call to instance method 'validate'
175 | self.validate(contentType: acceptableContentTypes(), response: response, data: data)
176 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:42: error: cannot infer type of closure parameter '_' without a type annotation
172 | @discardableResult
173 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
174 | return validate { [unowned self] _, response, data in
| `- error: cannot infer type of closure parameter '_' without a type annotation
175 | self.validate(contentType: acceptableContentTypes(), response: response, data: data)
176 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:1227:40: error: @escaping attribute only applies to function types
1225 | /// - Returns: The `DataStreamRequest`.
1226 | @discardableResult
1227 | public func validate(_ validation: @escaping Validation) -> Self {
| `- error: @escaping attribute only applies to function types
1228 | let validator: () -> Void = { [unowned self] in
1229 | guard self.error == nil, let response = self.response else { return }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:16: error: no exact matches in call to instance method 'validate'
205 | /// - Returns: The instance.
206 | @discardableResult
207 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
208 | return validate { [unowned self] _, response in
| `- error: no exact matches in call to instance method 'validate'
209 | self.validate(statusCode: acceptableStatusCodes, response: response)
210 | }
:
219 | /// - returns: The request.
220 | @discardableResult
221 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
222 | return validate { [unowned self] _, response in
223 | self.validate(contentType: acceptableContentTypes(), response: response)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:42: error: cannot infer type of closure parameter '_' without a type annotation
206 | @discardableResult
207 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
208 | return validate { [unowned self] _, response in
| `- error: cannot infer type of closure parameter '_' without a type annotation
209 | self.validate(statusCode: acceptableStatusCodes, response: response)
210 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:16: error: no exact matches in call to instance method 'validate'
205 | /// - Returns: The instance.
206 | @discardableResult
207 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
208 | return validate { [unowned self] _, response in
209 | self.validate(statusCode: acceptableStatusCodes, response: response)
:
219 | /// - returns: The request.
220 | @discardableResult
221 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
222 | return validate { [unowned self] _, response in
| `- error: no exact matches in call to instance method 'validate'
223 | self.validate(contentType: acceptableContentTypes(), response: response)
224 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:42: error: cannot infer type of closure parameter '_' without a type annotation
220 | @discardableResult
221 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
222 | return validate { [unowned self] _, response in
| `- error: cannot infer type of closure parameter '_' without a type annotation
223 | self.validate(contentType: acceptableContentTypes(), response: response)
224 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:1596:40: error: @escaping attribute only applies to function types
1594 | /// - Returns: The instance.
1595 | @discardableResult
1596 | public func validate(_ validation: @escaping Validation) -> Self {
| `- error: @escaping attribute only applies to function types
1597 | let validator: () -> Void = { [unowned self] in
1598 | guard self.error == nil, let response = self.response else { return }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:258:16: error: no exact matches in call to instance method 'validate'
255 | /// - Returns: The instance.
256 | @discardableResult
257 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
258 | return validate { [unowned self] _, response, _ in
| `- error: no exact matches in call to instance method 'validate'
259 | self.validate(statusCode: acceptableStatusCodes, response: response)
260 | }
:
269 | /// - returns: The request.
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
272 | return validate { [unowned self] _, response, fileURL in
273 | guard let validFileURL = fileURL else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:258:42: error: cannot infer type of closure parameter '_' without a type annotation
256 | @discardableResult
257 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
258 | return validate { [unowned self] _, response, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
259 | self.validate(statusCode: acceptableStatusCodes, response: response)
260 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:258:55: error: cannot infer type of closure parameter '_' without a type annotation
256 | @discardableResult
257 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
258 | return validate { [unowned self] _, response, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
259 | self.validate(statusCode: acceptableStatusCodes, response: response)
260 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:272:16: error: no exact matches in call to instance method 'validate'
255 | /// - Returns: The instance.
256 | @discardableResult
257 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
258 | return validate { [unowned self] _, response, _ in
259 | self.validate(statusCode: acceptableStatusCodes, response: response)
:
269 | /// - returns: The request.
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
272 | return validate { [unowned self] _, response, fileURL in
| `- error: no exact matches in call to instance method 'validate'
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:272:42: error: cannot infer type of closure parameter '_' without a type annotation
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
272 | return validate { [unowned self] _, response, fileURL in
| `- error: cannot infer type of closure parameter '_' without a type annotation
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:272:45: error: cannot infer type of closure parameter 'response' without a type annotation
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
272 | return validate { [unowned self] _, response, fileURL in
| `- error: cannot infer type of closure parameter 'response' without a type annotation
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:272:55: error: cannot infer type of closure parameter 'fileURL' without a type annotation
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
272 | return validate { [unowned self] _, response, fileURL in
| `- error: cannot infer type of closure parameter 'fileURL' without a type annotation
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:274:25: error: cannot infer contextual base in reference to member 'failure'
272 | return validate { [unowned self] _, response, fileURL in
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
| `- error: cannot infer contextual base in reference to member 'failure'
275 | }
276 |
[8/42] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLRequest+Alamofire.swift:27:18: error: cannot find type 'URLRequest' in scope
25 | import Foundation
26 |
27 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | /// Returns the `httpMethod` as Alamofire's `HTTPMethod` type.
29 | var method: HTTPMethod? {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:27:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
25 | import Foundation
26 |
27 | extension URLSessionConfiguration: AlamofireExtended {}
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
28 | extension AlamofireExtension where ExtendedType: URLSessionConfiguration {
29 | /// Alamofire's default configuration. Same as `URLSessionConfiguration.default` but adds Alamofire default
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:31:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | /// Alamofire's default configuration. Same as `URLSessionConfiguration.default` but adds Alamofire default
30 | /// `Accept-Language`, `Accept-Encoding`, and `User-Agent` headers.
31 | public static var `default`: URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | let configuration = URLSessionConfiguration.default
33 | configuration.headers = .default
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:28: error: cannot find 'SecPolicyCreateSSL' in scope
551 | public extension AlamofireExtension where ExtendedType == SecPolicy {
552 | /// Creates a `SecPolicy` instance which will validate server certificates but not require a host name match.
553 | static let `default` = SecPolicyCreateSSL(true, nil)
| `- error: cannot find 'SecPolicyCreateSSL' in scope
554 |
555 | /// Creates a `SecPolicy` instance which will validate server certificates and much match the provided hostname.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:53: error: 'nil' requires a contextual type
551 | public extension AlamofireExtension where ExtendedType == SecPolicy {
552 | /// Creates a `SecPolicy` instance which will validate server certificates but not require a host name match.
553 | static let `default` = SecPolicyCreateSSL(true, nil)
| `- error: 'nil' requires a contextual type
554 |
555 | /// Creates a `SecPolicy` instance which will validate server certificates and much match the provided hostname.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:551:59: error: cannot find type 'SecPolicy' in scope
549 |
550 | extension SecPolicy: AlamofireExtended {}
551 | public extension AlamofireExtension where ExtendedType == SecPolicy {
| `- error: cannot find type 'SecPolicy' in scope
552 | /// Creates a `SecPolicy` instance which will validate server certificates but not require a host name match.
553 | static let `default` = SecPolicyCreateSSL(true, nil)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:28:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | extension URLSessionConfiguration: AlamofireExtended {}
28 | extension AlamofireExtension where ExtendedType: URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | /// Alamofire's default configuration. Same as `URLSessionConfiguration.default` but adds Alamofire default
30 | /// `Accept-Language`, `Accept-Encoding`, and `User-Agent` headers.
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:32:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
30 | /// `Accept-Language`, `Accept-Encoding`, and `User-Agent` headers.
31 | public static var `default`: URLSessionConfiguration {
32 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
33 | configuration.headers = .default
34 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:33:34: error: cannot infer contextual base in reference to member 'default'
31 | public static var `default`: URLSessionConfiguration {
32 | let configuration = URLSessionConfiguration.default
33 | configuration.headers = .default
| `- error: cannot infer contextual base in reference to member 'default'
34 |
35 | return configuration
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:82:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 | fileprivate func validate<S: Sequence>(statusCode acceptableStatusCodes: S,
82 | response: HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | -> ValidationResult
84 | where S.Iterator.Element == Int {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:96:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 |
95 | fileprivate func validate<S: Sequence>(contentType acceptableContentTypes: S,
96 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | data: Data?)
98 | -> ValidationResult
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:106:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |
105 | fileprivate func validate<S: Sequence>(contentType acceptableContentTypes: S,
106 | response: HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | -> ValidationResult
108 | where S.Iterator.Element == String {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:149:36: error: cannot find type 'URLRequest' in scope
147 | /// A closure used to validate a request that takes a URL request, a URL response and data, and returns whether the
148 | /// request was valid.
149 | public typealias Validation = (URLRequest?, HTTPURLResponse, Data?) -> ValidationResult
| `- error: cannot find type 'URLRequest' in scope
150 |
151 | /// Validates that the response has a status code in the specified sequence.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:197:47: error: cannot find type 'URLRequest' in scope
195 | /// A closure used to validate a request that takes a `URLRequest` and `HTTPURLResponse` and returns whether the
196 | /// request was valid.
197 | public typealias Validation = (_ request: URLRequest?, _ response: HTTPURLResponse) -> ValidationResult
| `- error: cannot find type 'URLRequest' in scope
198 |
199 | /// Validates that the response has a status code in the specified sequence.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:244:47: error: cannot find type 'URLRequest' in scope
242 | /// A closure used to validate a request that takes a URL request, a URL response, a temporary URL and a
243 | /// destination URL, and returns whether the request was valid.
244 | public typealias Validation = (_ request: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
245 | _ response: HTTPURLResponse,
246 | _ fileURL: URL?)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:198:25: error: cannot find type 'URLRequest' in scope
196 | public var lastRequest: URLRequest? { requests.last }
197 | /// Current `URLRequest` created on behalf of the `Request`.
198 | public var request: URLRequest? { lastRequest }
| `- error: cannot find type 'URLRequest' in scope
199 |
200 | /// `URLRequest`s from all of the `URLSessionTask`s executed on behalf of the `Request`. May be different from
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:85:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
83 | -> ValidationResult
84 | where S.Iterator.Element == Int {
85 | if acceptableStatusCodes.contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
86 | return .success(Void())
87 | } else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:88:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
86 | return .success(Void())
87 | } else {
88 | let reason: ErrorReason = .unacceptableStatusCode(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
89 | return .failure(AFError.responseValidationFailed(reason: reason))
90 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:110:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
108 | where S.Iterator.Element == String {
109 | guard
110 | let responseContentType = response.mimeType,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
111 | let responseMIMEType = MIMEType(responseContentType)
112 | else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:1064:40: error: @escaping attribute only applies to function types
1062 | /// - Returns: The instance.
1063 | @discardableResult
1064 | public func validate(_ validation: @escaping Validation) -> Self {
| `- error: @escaping attribute only applies to function types
1065 | let validator: () -> Void = { [unowned self] in
1066 | guard self.error == nil, let response = self.response else { return }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:16: error: no exact matches in call to instance method 'validate'
157 | /// - Returns: The instance.
158 | @discardableResult
159 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
160 | return validate { [unowned self] _, response, _ in
| `- error: no exact matches in call to instance method 'validate'
161 | self.validate(statusCode: acceptableStatusCodes, response: response)
162 | }
:
171 | /// - returns: The request.
172 | @discardableResult
173 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
174 | return validate { [unowned self] _, response, data in
175 | self.validate(contentType: acceptableContentTypes(), response: response, data: data)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:42: error: cannot infer type of closure parameter '_' without a type annotation
158 | @discardableResult
159 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
160 | return validate { [unowned self] _, response, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
161 | self.validate(statusCode: acceptableStatusCodes, response: response)
162 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:55: error: cannot infer type of closure parameter '_' without a type annotation
158 | @discardableResult
159 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
160 | return validate { [unowned self] _, response, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
161 | self.validate(statusCode: acceptableStatusCodes, response: response)
162 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:16: error: no exact matches in call to instance method 'validate'
157 | /// - Returns: The instance.
158 | @discardableResult
159 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
160 | return validate { [unowned self] _, response, _ in
161 | self.validate(statusCode: acceptableStatusCodes, response: response)
:
171 | /// - returns: The request.
172 | @discardableResult
173 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
174 | return validate { [unowned self] _, response, data in
| `- error: no exact matches in call to instance method 'validate'
175 | self.validate(contentType: acceptableContentTypes(), response: response, data: data)
176 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:42: error: cannot infer type of closure parameter '_' without a type annotation
172 | @discardableResult
173 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
174 | return validate { [unowned self] _, response, data in
| `- error: cannot infer type of closure parameter '_' without a type annotation
175 | self.validate(contentType: acceptableContentTypes(), response: response, data: data)
176 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:1227:40: error: @escaping attribute only applies to function types
1225 | /// - Returns: The `DataStreamRequest`.
1226 | @discardableResult
1227 | public func validate(_ validation: @escaping Validation) -> Self {
| `- error: @escaping attribute only applies to function types
1228 | let validator: () -> Void = { [unowned self] in
1229 | guard self.error == nil, let response = self.response else { return }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:16: error: no exact matches in call to instance method 'validate'
205 | /// - Returns: The instance.
206 | @discardableResult
207 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
208 | return validate { [unowned self] _, response in
| `- error: no exact matches in call to instance method 'validate'
209 | self.validate(statusCode: acceptableStatusCodes, response: response)
210 | }
:
219 | /// - returns: The request.
220 | @discardableResult
221 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
222 | return validate { [unowned self] _, response in
223 | self.validate(contentType: acceptableContentTypes(), response: response)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:42: error: cannot infer type of closure parameter '_' without a type annotation
206 | @discardableResult
207 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
208 | return validate { [unowned self] _, response in
| `- error: cannot infer type of closure parameter '_' without a type annotation
209 | self.validate(statusCode: acceptableStatusCodes, response: response)
210 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:16: error: no exact matches in call to instance method 'validate'
205 | /// - Returns: The instance.
206 | @discardableResult
207 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
208 | return validate { [unowned self] _, response in
209 | self.validate(statusCode: acceptableStatusCodes, response: response)
:
219 | /// - returns: The request.
220 | @discardableResult
221 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
222 | return validate { [unowned self] _, response in
| `- error: no exact matches in call to instance method 'validate'
223 | self.validate(contentType: acceptableContentTypes(), response: response)
224 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:42: error: cannot infer type of closure parameter '_' without a type annotation
220 | @discardableResult
221 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
222 | return validate { [unowned self] _, response in
| `- error: cannot infer type of closure parameter '_' without a type annotation
223 | self.validate(contentType: acceptableContentTypes(), response: response)
224 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:1596:40: error: @escaping attribute only applies to function types
1594 | /// - Returns: The instance.
1595 | @discardableResult
1596 | public func validate(_ validation: @escaping Validation) -> Self {
| `- error: @escaping attribute only applies to function types
1597 | let validator: () -> Void = { [unowned self] in
1598 | guard self.error == nil, let response = self.response else { return }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:258:16: error: no exact matches in call to instance method 'validate'
255 | /// - Returns: The instance.
256 | @discardableResult
257 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
258 | return validate { [unowned self] _, response, _ in
| `- error: no exact matches in call to instance method 'validate'
259 | self.validate(statusCode: acceptableStatusCodes, response: response)
260 | }
:
269 | /// - returns: The request.
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
272 | return validate { [unowned self] _, response, fileURL in
273 | guard let validFileURL = fileURL else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:258:42: error: cannot infer type of closure parameter '_' without a type annotation
256 | @discardableResult
257 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
258 | return validate { [unowned self] _, response, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
259 | self.validate(statusCode: acceptableStatusCodes, response: response)
260 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:258:55: error: cannot infer type of closure parameter '_' without a type annotation
256 | @discardableResult
257 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
258 | return validate { [unowned self] _, response, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
259 | self.validate(statusCode: acceptableStatusCodes, response: response)
260 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:272:16: error: no exact matches in call to instance method 'validate'
255 | /// - Returns: The instance.
256 | @discardableResult
257 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
258 | return validate { [unowned self] _, response, _ in
259 | self.validate(statusCode: acceptableStatusCodes, response: response)
:
269 | /// - returns: The request.
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
272 | return validate { [unowned self] _, response, fileURL in
| `- error: no exact matches in call to instance method 'validate'
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:272:42: error: cannot infer type of closure parameter '_' without a type annotation
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
272 | return validate { [unowned self] _, response, fileURL in
| `- error: cannot infer type of closure parameter '_' without a type annotation
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:272:45: error: cannot infer type of closure parameter 'response' without a type annotation
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
272 | return validate { [unowned self] _, response, fileURL in
| `- error: cannot infer type of closure parameter 'response' without a type annotation
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:272:55: error: cannot infer type of closure parameter 'fileURL' without a type annotation
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
272 | return validate { [unowned self] _, response, fileURL in
| `- error: cannot infer type of closure parameter 'fileURL' without a type annotation
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:274:25: error: cannot infer contextual base in reference to member 'failure'
272 | return validate { [unowned self] _, response, fileURL in
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
| `- error: cannot infer contextual base in reference to member 'failure'
275 | }
276 |
[9/42] Compiling Alamofire Validation.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLRequest+Alamofire.swift:27:18: error: cannot find type 'URLRequest' in scope
25 | import Foundation
26 |
27 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | /// Returns the `httpMethod` as Alamofire's `HTTPMethod` type.
29 | var method: HTTPMethod? {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:27:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
25 | import Foundation
26 |
27 | extension URLSessionConfiguration: AlamofireExtended {}
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
28 | extension AlamofireExtension where ExtendedType: URLSessionConfiguration {
29 | /// Alamofire's default configuration. Same as `URLSessionConfiguration.default` but adds Alamofire default
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:31:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | /// Alamofire's default configuration. Same as `URLSessionConfiguration.default` but adds Alamofire default
30 | /// `Accept-Language`, `Accept-Encoding`, and `User-Agent` headers.
31 | public static var `default`: URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | let configuration = URLSessionConfiguration.default
33 | configuration.headers = .default
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:28: error: cannot find 'SecPolicyCreateSSL' in scope
551 | public extension AlamofireExtension where ExtendedType == SecPolicy {
552 | /// Creates a `SecPolicy` instance which will validate server certificates but not require a host name match.
553 | static let `default` = SecPolicyCreateSSL(true, nil)
| `- error: cannot find 'SecPolicyCreateSSL' in scope
554 |
555 | /// Creates a `SecPolicy` instance which will validate server certificates and much match the provided hostname.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:53: error: 'nil' requires a contextual type
551 | public extension AlamofireExtension where ExtendedType == SecPolicy {
552 | /// Creates a `SecPolicy` instance which will validate server certificates but not require a host name match.
553 | static let `default` = SecPolicyCreateSSL(true, nil)
| `- error: 'nil' requires a contextual type
554 |
555 | /// Creates a `SecPolicy` instance which will validate server certificates and much match the provided hostname.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:551:59: error: cannot find type 'SecPolicy' in scope
549 |
550 | extension SecPolicy: AlamofireExtended {}
551 | public extension AlamofireExtension where ExtendedType == SecPolicy {
| `- error: cannot find type 'SecPolicy' in scope
552 | /// Creates a `SecPolicy` instance which will validate server certificates but not require a host name match.
553 | static let `default` = SecPolicyCreateSSL(true, nil)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:28:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | extension URLSessionConfiguration: AlamofireExtended {}
28 | extension AlamofireExtension where ExtendedType: URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | /// Alamofire's default configuration. Same as `URLSessionConfiguration.default` but adds Alamofire default
30 | /// `Accept-Language`, `Accept-Encoding`, and `User-Agent` headers.
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:32:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
30 | /// `Accept-Language`, `Accept-Encoding`, and `User-Agent` headers.
31 | public static var `default`: URLSessionConfiguration {
32 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
33 | configuration.headers = .default
34 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift:33:34: error: cannot infer contextual base in reference to member 'default'
31 | public static var `default`: URLSessionConfiguration {
32 | let configuration = URLSessionConfiguration.default
33 | configuration.headers = .default
| `- error: cannot infer contextual base in reference to member 'default'
34 |
35 | return configuration
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:82:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 | fileprivate func validate<S: Sequence>(statusCode acceptableStatusCodes: S,
82 | response: HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | -> ValidationResult
84 | where S.Iterator.Element == Int {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:96:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 |
95 | fileprivate func validate<S: Sequence>(contentType acceptableContentTypes: S,
96 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | data: Data?)
98 | -> ValidationResult
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:106:54: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |
105 | fileprivate func validate<S: Sequence>(contentType acceptableContentTypes: S,
106 | response: HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | -> ValidationResult
108 | where S.Iterator.Element == String {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:149:36: error: cannot find type 'URLRequest' in scope
147 | /// A closure used to validate a request that takes a URL request, a URL response and data, and returns whether the
148 | /// request was valid.
149 | public typealias Validation = (URLRequest?, HTTPURLResponse, Data?) -> ValidationResult
| `- error: cannot find type 'URLRequest' in scope
150 |
151 | /// Validates that the response has a status code in the specified sequence.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:197:47: error: cannot find type 'URLRequest' in scope
195 | /// A closure used to validate a request that takes a `URLRequest` and `HTTPURLResponse` and returns whether the
196 | /// request was valid.
197 | public typealias Validation = (_ request: URLRequest?, _ response: HTTPURLResponse) -> ValidationResult
| `- error: cannot find type 'URLRequest' in scope
198 |
199 | /// Validates that the response has a status code in the specified sequence.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:244:47: error: cannot find type 'URLRequest' in scope
242 | /// A closure used to validate a request that takes a URL request, a URL response, a temporary URL and a
243 | /// destination URL, and returns whether the request was valid.
244 | public typealias Validation = (_ request: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
245 | _ response: HTTPURLResponse,
246 | _ fileURL: URL?)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:198:25: error: cannot find type 'URLRequest' in scope
196 | public var lastRequest: URLRequest? { requests.last }
197 | /// Current `URLRequest` created on behalf of the `Request`.
198 | public var request: URLRequest? { lastRequest }
| `- error: cannot find type 'URLRequest' in scope
199 |
200 | /// `URLRequest`s from all of the `URLSessionTask`s executed on behalf of the `Request`. May be different from
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:85:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
83 | -> ValidationResult
84 | where S.Iterator.Element == Int {
85 | if acceptableStatusCodes.contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
86 | return .success(Void())
87 | } else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:88:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
86 | return .success(Void())
87 | } else {
88 | let reason: ErrorReason = .unacceptableStatusCode(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
89 | return .failure(AFError.responseValidationFailed(reason: reason))
90 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:110:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
108 | where S.Iterator.Element == String {
109 | guard
110 | let responseContentType = response.mimeType,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
111 | let responseMIMEType = MIMEType(responseContentType)
112 | else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:1064:40: error: @escaping attribute only applies to function types
1062 | /// - Returns: The instance.
1063 | @discardableResult
1064 | public func validate(_ validation: @escaping Validation) -> Self {
| `- error: @escaping attribute only applies to function types
1065 | let validator: () -> Void = { [unowned self] in
1066 | guard self.error == nil, let response = self.response else { return }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:16: error: no exact matches in call to instance method 'validate'
157 | /// - Returns: The instance.
158 | @discardableResult
159 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
160 | return validate { [unowned self] _, response, _ in
| `- error: no exact matches in call to instance method 'validate'
161 | self.validate(statusCode: acceptableStatusCodes, response: response)
162 | }
:
171 | /// - returns: The request.
172 | @discardableResult
173 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
174 | return validate { [unowned self] _, response, data in
175 | self.validate(contentType: acceptableContentTypes(), response: response, data: data)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:42: error: cannot infer type of closure parameter '_' without a type annotation
158 | @discardableResult
159 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
160 | return validate { [unowned self] _, response, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
161 | self.validate(statusCode: acceptableStatusCodes, response: response)
162 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:160:55: error: cannot infer type of closure parameter '_' without a type annotation
158 | @discardableResult
159 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
160 | return validate { [unowned self] _, response, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
161 | self.validate(statusCode: acceptableStatusCodes, response: response)
162 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:16: error: no exact matches in call to instance method 'validate'
157 | /// - Returns: The instance.
158 | @discardableResult
159 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
160 | return validate { [unowned self] _, response, _ in
161 | self.validate(statusCode: acceptableStatusCodes, response: response)
:
171 | /// - returns: The request.
172 | @discardableResult
173 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
174 | return validate { [unowned self] _, response, data in
| `- error: no exact matches in call to instance method 'validate'
175 | self.validate(contentType: acceptableContentTypes(), response: response, data: data)
176 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:174:42: error: cannot infer type of closure parameter '_' without a type annotation
172 | @discardableResult
173 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
174 | return validate { [unowned self] _, response, data in
| `- error: cannot infer type of closure parameter '_' without a type annotation
175 | self.validate(contentType: acceptableContentTypes(), response: response, data: data)
176 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:1227:40: error: @escaping attribute only applies to function types
1225 | /// - Returns: The `DataStreamRequest`.
1226 | @discardableResult
1227 | public func validate(_ validation: @escaping Validation) -> Self {
| `- error: @escaping attribute only applies to function types
1228 | let validator: () -> Void = { [unowned self] in
1229 | guard self.error == nil, let response = self.response else { return }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:16: error: no exact matches in call to instance method 'validate'
205 | /// - Returns: The instance.
206 | @discardableResult
207 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
208 | return validate { [unowned self] _, response in
| `- error: no exact matches in call to instance method 'validate'
209 | self.validate(statusCode: acceptableStatusCodes, response: response)
210 | }
:
219 | /// - returns: The request.
220 | @discardableResult
221 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
222 | return validate { [unowned self] _, response in
223 | self.validate(contentType: acceptableContentTypes(), response: response)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:208:42: error: cannot infer type of closure parameter '_' without a type annotation
206 | @discardableResult
207 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
208 | return validate { [unowned self] _, response in
| `- error: cannot infer type of closure parameter '_' without a type annotation
209 | self.validate(statusCode: acceptableStatusCodes, response: response)
210 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:16: error: no exact matches in call to instance method 'validate'
205 | /// - Returns: The instance.
206 | @discardableResult
207 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
208 | return validate { [unowned self] _, response in
209 | self.validate(statusCode: acceptableStatusCodes, response: response)
:
219 | /// - returns: The request.
220 | @discardableResult
221 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
222 | return validate { [unowned self] _, response in
| `- error: no exact matches in call to instance method 'validate'
223 | self.validate(contentType: acceptableContentTypes(), response: response)
224 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:222:42: error: cannot infer type of closure parameter '_' without a type annotation
220 | @discardableResult
221 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
222 | return validate { [unowned self] _, response in
| `- error: cannot infer type of closure parameter '_' without a type annotation
223 | self.validate(contentType: acceptableContentTypes(), response: response)
224 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:1596:40: error: @escaping attribute only applies to function types
1594 | /// - Returns: The instance.
1595 | @discardableResult
1596 | public func validate(_ validation: @escaping Validation) -> Self {
| `- error: @escaping attribute only applies to function types
1597 | let validator: () -> Void = { [unowned self] in
1598 | guard self.error == nil, let response = self.response else { return }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:258:16: error: no exact matches in call to instance method 'validate'
255 | /// - Returns: The instance.
256 | @discardableResult
257 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
258 | return validate { [unowned self] _, response, _ in
| `- error: no exact matches in call to instance method 'validate'
259 | self.validate(statusCode: acceptableStatusCodes, response: response)
260 | }
:
269 | /// - returns: The request.
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
272 | return validate { [unowned self] _, response, fileURL in
273 | guard let validFileURL = fileURL else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:258:42: error: cannot infer type of closure parameter '_' without a type annotation
256 | @discardableResult
257 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
258 | return validate { [unowned self] _, response, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
259 | self.validate(statusCode: acceptableStatusCodes, response: response)
260 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:258:55: error: cannot infer type of closure parameter '_' without a type annotation
256 | @discardableResult
257 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
258 | return validate { [unowned self] _, response, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
259 | self.validate(statusCode: acceptableStatusCodes, response: response)
260 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:272:16: error: no exact matches in call to instance method 'validate'
255 | /// - Returns: The instance.
256 | @discardableResult
257 | public func validate<S: Sequence>(statusCode acceptableStatusCodes: S) -> Self where S.Iterator.Element == Int {
| `- note: found this candidate
258 | return validate { [unowned self] _, response, _ in
259 | self.validate(statusCode: acceptableStatusCodes, response: response)
:
269 | /// - returns: The request.
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
| `- note: found this candidate
272 | return validate { [unowned self] _, response, fileURL in
| `- error: no exact matches in call to instance method 'validate'
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:272:42: error: cannot infer type of closure parameter '_' without a type annotation
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
272 | return validate { [unowned self] _, response, fileURL in
| `- error: cannot infer type of closure parameter '_' without a type annotation
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:272:45: error: cannot infer type of closure parameter 'response' without a type annotation
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
272 | return validate { [unowned self] _, response, fileURL in
| `- error: cannot infer type of closure parameter 'response' without a type annotation
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:272:55: error: cannot infer type of closure parameter 'fileURL' without a type annotation
270 | @discardableResult
271 | public func validate<S: Sequence>(contentType acceptableContentTypes: @escaping @autoclosure () -> S) -> Self where S.Iterator.Element == String {
272 | return validate { [unowned self] _, response, fileURL in
| `- error: cannot infer type of closure parameter 'fileURL' without a type annotation
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift:274:25: error: cannot infer contextual base in reference to member 'failure'
272 | return validate { [unowned self] _, response, fileURL in
273 | guard let validFileURL = fileURL else {
274 | return .failure(AFError.responseValidationFailed(reason: .dataFileNil))
| `- error: cannot infer contextual base in reference to member 'failure'
275 | }
276 |
[10/42] Emitting module SwiftyJSON
[11/42] Compiling SwiftyJSON SwiftyJSON.swift
/host/spi-builder-workspace/.build/checkouts/SwiftyJSON/Source/SwiftyJSON/SwiftyJSON.swift:1215:51: error: ambiguous use of operator '<'
1213 |
1214 | switch (lhs.type, rhs.type) {
1215 | case (.number, .number): return lhs.rawNumber < rhs.rawNumber
| `- error: ambiguous use of operator '<'
1216 | case (.string, .string): return lhs.rawString < rhs.rawString
1217 | default: return false
:
1249 | }
1250 |
1251 | func < (lhs: NSNumber, rhs: NSNumber) -> Bool {
| `- note: found this candidate
1252 |
1253 | switch (lhs.isBool, rhs.isBool) {
Foundation.NSNumber:2:24: note: found this candidate in module 'Foundation'
1 | extension NSNumber : Comparable {
2 | public static func < (lhs: NSNumber, rhs: NSNumber) -> Bool
| `- note: found this candidate in module 'Foundation'
3 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:173:94: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'af'
171 | /// - eventMonitors: Additional `EventMonitor`s used by the instance. Alamofire always adds a
172 | /// `AlamofireNotifications` `EventMonitor` to the array passed here. `[]` by default.
173 | public convenience init(configuration: URLSessionConfiguration = URLSessionConfiguration.af.default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'af'
174 | delegate: SessionDelegate = SessionDelegate(),
175 | rootQueue: DispatchQueue = DispatchQueue(label: "org.alamofire.session.rootQueue"),
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:40:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// break internal Alamofire logic that tracks those tasks.
39 | ///
40 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// Instance's `SessionDelegate`, which handles the `URLSessionDelegate` methods and `Request` interaction.
42 | public let delegate: SessionDelegate
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestInterceptor.swift:35:30: error: cannot find type 'URLRequest' in scope
33 | /// - session: The `Session` that will execute the `URLRequest`.
34 | /// - completion: The completion handler that must be called when adaptation is complete.
35 | func adapt(_ urlRequest: URLRequest, for session: Session, completion: @escaping (Result<URLRequest, Error>) -> Void)
| `- error: cannot find type 'URLRequest' in scope
36 | }
37 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestInterceptor.swift:35:94: error: cannot find type 'URLRequest' in scope
33 | /// - session: The `Session` that will execute the `URLRequest`.
34 | /// - completion: The completion handler that must be called when adaptation is complete.
35 | func adapt(_ urlRequest: URLRequest, for session: Session, completion: @escaping (Result<URLRequest, Error>) -> Void)
| `- error: cannot find type 'URLRequest' in scope
36 | }
37 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:43:43: error: cannot find type 'URLRequest' in scope
41 | /// - completion: The closure to execute containing the new `URLRequest`, a modified `URLRequest`, or `nil`.
42 | func task(_ task: URLSessionTask,
43 | willBeRedirectedTo request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
44 | for response: HTTPURLResponse,
45 | completion: @escaping (URLRequest?) -> Void)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:45:38: error: cannot find type 'URLRequest' in scope
43 | willBeRedirectedTo request: URLRequest,
44 | for response: HTTPURLResponse,
45 | completion: @escaping (URLRequest?) -> Void)
| `- error: cannot find type 'URLRequest' in scope
46 | }
47 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:59:41: error: cannot find type 'URLRequest' in scope
57 | task: URLSessionTask,
58 | willPerformHTTPRedirection response: HTTPURLResponse,
59 | newRequest request: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
60 |
61 | /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:task:didFinishCollecting:)` method.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:62:95: error: cannot find type 'URLSessionTaskMetrics' in scope
60 |
61 | /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:task:didFinishCollecting:)` method.
62 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics)
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
63 |
64 | /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:task:didCompleteWithError:)` method.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:101:77: error: cannot find type 'URLRequest' in scope
99 | /// Event called when a `URLRequest` is first created for a `Request`. If a `RequestAdapter` is active, the
100 | /// `URLRequest` will be adapted before being issued.
101 | func request(_ request: Request, didCreateInitialURLRequest urlRequest: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
102 |
103 | /// Event called when the attempt to create a `URLRequest` from a `Request`'s original `URLRequestConvertible` value fails.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:107:77: error: cannot find type 'URLRequest' in scope
105 |
106 | /// Event called when a `RequestAdapter` adapts the `Request`'s initial `URLRequest`.
107 | func request(_ request: Request, didAdaptInitialRequest initialRequest: URLRequest, to adaptedRequest: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
108 |
109 | /// Event called when a `RequestAdapter` fails to adapt the `Request`'s initial `URLRequest`.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:107:108: error: cannot find type 'URLRequest' in scope
105 |
106 | /// Event called when a `RequestAdapter` adapts the `Request`'s initial `URLRequest`.
107 | func request(_ request: Request, didAdaptInitialRequest initialRequest: URLRequest, to adaptedRequest: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
108 |
109 | /// Event called when a `RequestAdapter` fails to adapt the `Request`'s initial `URLRequest`.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:110:79: error: cannot find type 'URLRequest' in scope
108 |
109 | /// Event called when a `RequestAdapter` fails to adapt the `Request`'s initial `URLRequest`.
110 | func request(_ request: Request, didFailToAdaptURLRequest initialRequest: URLRequest, withError error: AFError)
| `- error: cannot find type 'URLRequest' in scope
111 |
112 | /// Event called when a final `URLRequest` is created for a `Request`.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:113:70: error: cannot find type 'URLRequest' in scope
111 |
112 | /// Event called when a final `URLRequest` is created for a `Request`.
113 | func request(_ request: Request, didCreateURLRequest urlRequest: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
114 |
115 | /// Event called when a `URLSessionTask` subclass instance is created for a `Request`.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:119:64: error: cannot find type 'URLSessionTaskMetrics' in scope
117 |
118 | /// Event called when a `Request` receives a `URLSessionTaskMetrics` value.
119 | func request(_ request: Request, didGatherMetrics metrics: URLSessionTaskMetrics)
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
120 |
121 | /// Event called when a `Request` fails due to an error created by Alamofire. e.g. When certificate pinning fails.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:156:49: error: cannot find type 'URLRequest' in scope
154 | /// Event called when a `DataRequest` calls a `Validation`.
155 | func request(_ request: DataRequest,
156 | didValidateRequest urlRequest: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
157 | response: HTTPURLResponse,
158 | data: Data?,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:177:49: error: cannot find type 'URLRequest' in scope
175 | /// - result: Produced `ValidationResult`.
176 | func request(_ request: DataStreamRequest,
177 | didValidateRequest urlRequest: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
178 | response: HTTPURLResponse,
179 | withResult result: Request.ValidationResult)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:211:49: error: cannot find type 'URLRequest' in scope
209 | /// Event called when a `DownloadRequest` calls a `Validation`.
210 | func request(_ request: DownloadRequest,
211 | didValidateRequest urlRequest: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
212 | response: HTTPURLResponse,
213 | fileURL: URL?,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestTaskMap.swift:39:27: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
37 | }
38 |
39 | init(tasksToRequests: [URLSessionTask: Request] = [:],
| `- error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
40 | requestsToTasks: [Request: URLSessionTask] = [:],
41 | taskEvents: [URLSessionTask: (completed: Bool, metricsGathered: Bool)] = [:]) {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestTaskMap.swift:41:22: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
39 | init(tasksToRequests: [URLSessionTask: Request] = [:],
40 | requestsToTasks: [Request: URLSessionTask] = [:],
41 | taskEvents: [URLSessionTask: (completed: Bool, metricsGathered: Bool)] = [:]) {
| `- error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
42 | self.tasksToRequests = tasksToRequests
43 | self.requestsToTasks = requestsToTasks
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:74:29: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
72 | var activeRequests: Set<Request> = []
73 | /// Completion events awaiting `URLSessionTaskMetrics`.
74 | var waitingCompletions: [URLSessionTask: () -> Void] = [:]
| `- error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
75 |
76 | /// Creates a `Session` from a `URLSession` and other parameters.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:74:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | var activeRequests: Set<Request> = []
73 | /// Completion events awaiting `URLSessionTaskMetrics`.
74 | var waitingCompletions: [URLSessionTask: () -> Void] = [:]
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 | /// Creates a `Session` from a `URLSession` and other parameters.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:108:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | /// - eventMonitors: Additional `EventMonitor`s used by the instance. Alamofire always adds a
107 | /// `AlamofireNotifications` `EventMonitor` to the array passed here. `[]` by default.
108 | public init(session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | delegate: SessionDelegate,
110 | rootQueue: DispatchQueue,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:173:44: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 | /// - eventMonitors: Additional `EventMonitor`s used by the instance. Alamofire always adds a
172 | /// `AlamofireNotifications` `EventMonitor` to the array passed here. `[]` by default.
173 | public convenience init(configuration: URLSessionConfiguration = URLSessionConfiguration.af.default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 | delegate: SessionDelegate = SessionDelegate(),
175 | rootQueue: DispatchQueue = DispatchQueue(label: "org.alamofire.session.rootQueue"),
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:228:47: error: cannot find type 'URLRequest' in scope
226 |
227 | /// Closure which provides a `URLRequest` for mutation.
228 | public typealias RequestModifier = (inout URLRequest) throws -> Void
| `- error: cannot find type 'URLRequest' in scope
229 |
230 | struct RequestConvertible: URLRequestConvertible {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:40:94: error: cannot find type 'URLRequest' in scope
38 | /// - Returns: The encoded `URLRequest`.
39 | /// - Throws: Any `Error` produced during parameter encoding.
40 | func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
41 | }
42 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:238:39: error: cannot find type 'URLRequest' in scope
236 | let requestModifier: RequestModifier?
237 |
238 | func asURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
239 | var request = try URLRequest(url: url, method: method, headers: headers)
240 | try requestModifier?(&request)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLConvertible+URLRequestConvertible.swift:74:35: error: cannot find type 'URLRequest' in scope
72 | /// - Returns: A `URLRequest`.
73 | /// - Throws: Any error thrown while constructing the `URLRequest`.
74 | func asURLRequest() throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
75 | }
76 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:38:81: error: cannot find type 'URLRequest' in scope
36 | /// - Throws: An `Error` when encoding fails. For Alamofire provided encoders, this will be an instance of
37 | /// `AFError.parameterEncoderFailed` with an associated `ParameterEncoderFailureReason`.
38 | func encode<Parameters: Encodable>(_ parameters: Parameters?, into request: URLRequest) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:38:103: error: cannot find type 'URLRequest' in scope
36 | /// - Throws: An `Error` when encoding fails. For Alamofire provided encoders, this will be an instance of
37 | /// `AFError.parameterEncoderFailed` with an associated `ParameterEncoderFailureReason`.
38 | func encode<Parameters: Encodable>(_ parameters: Parameters?, into request: URLRequest) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:286:39: error: cannot find type 'URLRequest' in scope
284 | let requestModifier: RequestModifier?
285 |
286 | func asURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
287 | var request = try URLRequest(url: url, method: method, headers: headers)
288 | try requestModifier?(&request)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:582:39: error: cannot find type 'URLRequest' in scope
580 | let requestModifier: RequestModifier?
581 |
582 | func asURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
583 | var request = try URLRequest(url: url, method: method, headers: headers)
584 | try requestModifier?(&request)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:598:39: error: cannot find type 'URLRequest' in scope
596 | }
597 |
598 | func asURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
599 | try request.asURLRequest()
600 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1067:44: error: cannot find type 'URLRequest' in scope
1065 | // MARK: - Task Handling
1066 |
1067 | func didCreateURLRequest(_ urlRequest: URLRequest, for request: Request) {
| `- error: cannot find type 'URLRequest' in scope
1068 | dispatchPrecondition(condition: .onQueue(rootQueue))
1069 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1093:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1091 | }
1092 |
1093 | func updateStatesForTask(_ task: URLSessionTask, request: Request) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1094 | dispatchPrecondition(condition: .onQueue(rootQueue))
1095 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1148:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1146 |
1147 | extension Session: RequestDelegate {
1148 | public var sessionConfiguration: URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1149 | session.configuration
1150 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1195:28: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1193 |
1194 | extension Session: SessionStateProvider {
1195 | func request(for task: URLSessionTask) -> Request? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1196 | dispatchPrecondition(condition: .onQueue(rootQueue))
1197 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1201:42: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1199 | }
1200 |
1201 | func didGatherMetricsForTask(_ task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1202 | dispatchPrecondition(condition: .onQueue(rootQueue))
1203 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1212:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1210 | }
1211 |
1212 | func didCompleteTask(_ task: URLSessionTask, completion: @escaping () -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1213 | dispatchPrecondition(condition: .onQueue(rootQueue))
1214 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1224:31: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1222 | }
1223 |
1224 | func credential(for task: URLSessionTask, in protectionSpace: URLProtectionSpace) -> URLCredential? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1225 | dispatchPrecondition(condition: .onQueue(rootQueue))
1226 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1224:67: error: 'URLProtectionSpace' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1222 | }
1223 |
1224 | func credential(for task: URLSessionTask, in protectionSpace: URLProtectionSpace) -> URLCredential? {
| `- error: 'URLProtectionSpace' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1225 | dispatchPrecondition(condition: .onQueue(rootQueue))
1226 |
Foundation.URLProtectionSpace:2:18: note: 'URLProtectionSpace' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtectionSpace = AnyObject
| `- note: 'URLProtectionSpace' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1224:90: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1222 | }
1223 |
1224 | func credential(for task: URLSessionTask, in protectionSpace: URLProtectionSpace) -> URLCredential? {
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1225 | dispatchPrecondition(condition: .onQueue(rootQueue))
1226 |
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:119:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
117 | cachedResponseHandler: CachedResponseHandler? = nil,
118 | eventMonitors: [EventMonitor] = []) {
119 | precondition(session.configuration.identifier == nil,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
120 | "Alamofire does not support background URLSessionConfigurations.")
121 | precondition(session.delegateQueue.underlyingQueue === rootQueue,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:121:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
119 | precondition(session.configuration.identifier == nil,
120 | "Alamofire does not support background URLSessionConfigurations.")
121 | precondition(session.delegateQueue.underlyingQueue === rootQueue,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
122 | "Session(session:) initializer must be passed the DispatchQueue used as the delegateQueue's underlyingQueue as rootQueue.")
123 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:184:36: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'identifier'
182 | cachedResponseHandler: CachedResponseHandler? = nil,
183 | eventMonitors: [EventMonitor] = []) {
184 | precondition(configuration.identifier == nil, "Alamofire does not support background URLSessionConfigurations.")
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'identifier'
185 |
186 | let delegateQueue = OperationQueue(maxConcurrentOperationCount: 1, underlyingQueue: rootQueue, name: "org.alamofire.session.sessionDelegateQueue")
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:187:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
185 |
186 | let delegateQueue = OperationQueue(maxConcurrentOperationCount: 1, underlyingQueue: rootQueue, name: "org.alamofire.session.sessionDelegateQueue")
187 | let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
188 |
189 | self.init(session: session,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:204:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
202 | deinit {
203 | finishRequestsForDeinit()
204 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
205 | }
206 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:239:31: error: cannot find 'URLRequest' in scope
237 |
238 | func asURLRequest() throws -> URLRequest {
239 | var request = try URLRequest(url: url, method: method, headers: headers)
| `- error: cannot find 'URLRequest' in scope
240 | try requestModifier?(&request)
241 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:287:31: error: cannot find 'URLRequest' in scope
285 |
286 | func asURLRequest() throws -> URLRequest {
287 | var request = try URLRequest(url: url, method: method, headers: headers)
| `- error: cannot find 'URLRequest' in scope
288 | try requestModifier?(&request)
289 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:314:27: error: generic parameter 'Parameters' could not be inferred
276 | }
277 |
278 | struct RequestEncodableConvertible<Parameters: Encodable>: URLRequestConvertible {
| `- note: 'Parameters' declared as parameter to type 'Session.RequestEncodableConvertible'
279 | let url: URLConvertible
280 | let method: HTTPMethod
:
312 | interceptor: RequestInterceptor? = nil,
313 | requestModifier: RequestModifier? = nil) -> DataRequest {
314 | let convertible = RequestEncodableConvertible(url: convertible,
| |- error: generic parameter 'Parameters' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
315 | method: method,
316 | parameters: parameters,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:372:27: error: generic parameter 'Parameters' could not be inferred
276 | }
277 |
278 | struct RequestEncodableConvertible<Parameters: Encodable>: URLRequestConvertible {
| `- note: 'Parameters' declared as parameter to type 'Session.RequestEncodableConvertible'
279 | let url: URLConvertible
280 | let method: HTTPMethod
:
370 | interceptor: RequestInterceptor? = nil,
371 | requestModifier: RequestModifier? = nil) -> DataStreamRequest {
372 | let convertible = RequestEncodableConvertible(url: convertible,
| |- error: generic parameter 'Parameters' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
373 | method: method,
374 | parameters: parameters,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:404:27: error: generic parameter 'Parameters' could not be inferred
276 | }
277 |
278 | struct RequestEncodableConvertible<Parameters: Encodable>: URLRequestConvertible {
| `- note: 'Parameters' declared as parameter to type 'Session.RequestEncodableConvertible'
279 | let url: URLConvertible
280 | let method: HTTPMethod
:
402 | interceptor: RequestInterceptor? = nil,
403 | requestModifier: RequestModifier? = nil) -> DataStreamRequest {
404 | let convertible = RequestEncodableConvertible(url: convertible,
| |- error: generic parameter 'Parameters' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
405 | method: method,
406 | parameters: Optional<Empty>.none,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:505:27: error: generic parameter 'Parameters' could not be inferred
276 | }
277 |
278 | struct RequestEncodableConvertible<Parameters: Encodable>: URLRequestConvertible {
| `- note: 'Parameters' declared as parameter to type 'Session.RequestEncodableConvertible'
279 | let url: URLConvertible
280 | let method: HTTPMethod
:
503 | requestModifier: RequestModifier? = nil,
504 | to destination: DownloadRequest.Destination? = nil) -> DownloadRequest {
505 | let convertible = RequestEncodableConvertible(url: convertible,
| |- error: generic parameter 'Parameters' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
506 | method: method,
507 | parameters: parameters,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:583:31: error: cannot find 'URLRequest' in scope
581 |
582 | func asURLRequest() throws -> URLRequest {
583 | var request = try URLRequest(url: url, method: method, headers: headers)
| `- error: cannot find 'URLRequest' in scope
584 | try requestModifier?(&request)
585 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:893:78: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
891 | requestModifier: requestModifier)
892 |
893 | let multipartUpload = MultipartUpload(isInBackgroundSession: session.configuration.identifier != nil,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
894 | encodingMemoryThreshold: encodingMemoryThreshold,
895 | request: convertible,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:933:78: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
931 | interceptor: RequestInterceptor? = nil,
932 | fileManager: FileManager = .default) -> UploadRequest {
933 | let multipartUpload = MultipartUpload(isInBackgroundSession: session.configuration.identifier != nil,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
934 | encodingMemoryThreshold: encodingMemoryThreshold,
935 | request: request,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1031:29: error: cannot find type 'URLRequest' in scope
1029 | dispatchPrecondition(condition: .onQueue(requestQueue))
1030 |
1031 | let initialRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
1032 |
1033 | do {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:277:48: error: cannot find type 'URLRequest' in scope
275 | ///
276 | /// - Parameter request: The `URLRequest` created.
277 | func didCreateInitialURLRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
278 | dispatchPrecondition(condition: .onQueue(underlyingQueue))
279 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:307:51: error: cannot find type 'URLRequest' in scope
305 | /// - initialRequest: The `URLRequest` that was adapted.
306 | /// - adaptedRequest: The `URLRequest` returned by the `RequestAdapter`.
307 | func didAdaptInitialRequest(_ initialRequest: URLRequest, to adaptedRequest: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
308 | dispatchPrecondition(condition: .onQueue(underlyingQueue))
309 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:307:82: error: cannot find type 'URLRequest' in scope
305 | /// - initialRequest: The `URLRequest` that was adapted.
306 | /// - adaptedRequest: The `URLRequest` returned by the `RequestAdapter`.
307 | func didAdaptInitialRequest(_ initialRequest: URLRequest, to adaptedRequest: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
308 | dispatchPrecondition(condition: .onQueue(underlyingQueue))
309 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:337:41: error: cannot find type 'URLRequest' in scope
335 | ///
336 | /// - Parameter request: The `URLRequest` created.
337 | func didCreateURLRequest(_ request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
338 | dispatchPrecondition(condition: .onQueue(underlyingQueue))
339 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:638:28: error: cannot find type 'URLRequest' in scope
636 | ///
637 | /// - Returns: The `URLSessionTask` created.
638 | func task(for request: URLRequest, using session: URLSession) -> URLSessionTask {
| `- error: cannot find type 'URLRequest' in scope
639 | fatalError("Subclasses must override.")
640 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1074:28: error: cannot call value of non-function type 'URLSessionTask?' (aka 'Optional<AnyObject>')
1072 | guard !request.isCancelled else { return }
1073 |
1074 | let task = request.task(for: urlRequest, using: session)
| `- error: cannot call value of non-function type 'URLSessionTask?' (aka 'Optional<AnyObject>')
1075 | requestTaskMap[request] = task
1076 | request.didCreateTask(task)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:1496:37: error: cannot find type 'URLRequest' in scope
1494 | }
1495 |
1496 | override func task(for request: URLRequest, using session: URLSession) -> URLSessionTask {
| `- error: cannot find type 'URLRequest' in scope
1497 | session.downloadTask(with: request)
1498 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1102:22: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
1100 | break
1101 | case .resumed:
1102 | task.resume()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
1103 | rootQueue.async { request.didResumeTask(task) }
1104 | case .suspended:
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestInterceptor.swift:109:34: error: cannot find type 'URLRequest' in scope
107 |
108 | /// `RequestAdapter` closure definition.
109 | public typealias AdaptHandler = (URLRequest, Session, _ completion: @escaping (Result<URLRequest, Error>) -> Void) -> Void
| `- error: cannot find type 'URLRequest' in scope
110 | /// `RequestRetrier` closure definition.
111 | public typealias RetryHandler = (Request, Session, Error, _ completion: @escaping (RetryResult) -> Void) -> Void
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestInterceptor.swift:109:87: error: cannot find type 'URLRequest' in scope
107 |
108 | /// `RequestAdapter` closure definition.
109 | public typealias AdaptHandler = (URLRequest, Session, _ completion: @escaping (Result<URLRequest, Error>) -> Void) -> Void
| `- error: cannot find type 'URLRequest' in scope
110 | /// `RequestRetrier` closure definition.
111 | public typealias RetryHandler = (Request, Session, Error, _ completion: @escaping (RetryResult) -> Void) -> Void
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestInterceptor.swift:166:31: error: @escaping attribute only applies to function types
164 | /// - adaptHandler: `AdaptHandler` closure to be used.
165 | /// - retryHandler: `RetryHandler` closure to be used.
166 | public init(adaptHandler: @escaping AdaptHandler, retryHandler: @escaping RetryHandler) {
| `- error: @escaping attribute only applies to function types
167 | adapters = [Adapter(adaptHandler)]
168 | retriers = [Retrier(retryHandler)]
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1149:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
1147 | extension Session: RequestDelegate {
1148 | public var sessionConfiguration: URLSessionConfiguration {
1149 | session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
1150 | }
1151 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1207:31: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
1205 |
1206 | if didDisassociate {
1207 | waitingCompletions[task]?()
| `- error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
1208 | waitingCompletions[task] = nil
1209 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1208:31: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
1206 | if didDisassociate {
1207 | waitingCompletions[task]?()
1208 | waitingCompletions[task] = nil
| `- error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
1209 | }
1210 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1220:31: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
1218 | completion()
1219 | } else {
1220 | waitingCompletions[task] = completion
| `- error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
1221 | }
1222 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift:1228:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
1226 |
1227 | return requestTaskMap[task]?.credential ??
1228 | session.configuration.urlCredentialStorage?.defaultCredential(for: protectionSpace)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
1229 | }
1230 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | /// - task: The `URLSessionTask` for which to find the associated `Request`.
46 | /// - type: The `Request` subclass type to cast any `Request` associate with `task`.
47 | func request<R: Request>(for task: URLSessionTask, as type: R.Type) -> R? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | guard let provider = stateProvider else {
49 | assertionFailure("StateProvider is nil.")
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:63:28: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | var cachedResponseHandler: CachedResponseHandler? { get }
62 |
63 | func request(for task: URLSessionTask) -> Request?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | func didGatherMetricsForTask(_ task: URLSessionTask)
65 | func didCompleteTask(_ task: URLSessionTask, completion: @escaping () -> Void)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:64:42: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |
63 | func request(for task: URLSessionTask) -> Request?
64 | func didGatherMetricsForTask(_ task: URLSessionTask)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | func didCompleteTask(_ task: URLSessionTask, completion: @escaping () -> Void)
66 | func credential(for task: URLSessionTask, in protectionSpace: URLProtectionSpace) -> URLCredential?
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:65:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | func request(for task: URLSessionTask) -> Request?
64 | func didGatherMetricsForTask(_ task: URLSessionTask)
65 | func didCompleteTask(_ task: URLSessionTask, completion: @escaping () -> Void)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | func credential(for task: URLSessionTask, in protectionSpace: URLProtectionSpace) -> URLCredential?
67 | func cancelRequestsForSessionInvalidation(with error: Error?)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:66:31: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | func didGatherMetricsForTask(_ task: URLSessionTask)
65 | func didCompleteTask(_ task: URLSessionTask, completion: @escaping () -> Void)
66 | func credential(for task: URLSessionTask, in protectionSpace: URLProtectionSpace) -> URLCredential?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | func cancelRequestsForSessionInvalidation(with error: Error?)
68 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:66:67: error: 'URLProtectionSpace' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | func didGatherMetricsForTask(_ task: URLSessionTask)
65 | func didCompleteTask(_ task: URLSessionTask, completion: @escaping () -> Void)
66 | func credential(for task: URLSessionTask, in protectionSpace: URLProtectionSpace) -> URLCredential?
| `- error: 'URLProtectionSpace' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | func cancelRequestsForSessionInvalidation(with error: Error?)
68 | }
Foundation.URLProtectionSpace:2:18: note: 'URLProtectionSpace' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtectionSpace = AnyObject
| `- note: 'URLProtectionSpace' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:66:90: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | func didGatherMetricsForTask(_ task: URLSessionTask)
65 | func didCompleteTask(_ task: URLSessionTask, completion: @escaping () -> Void)
66 | func credential(for task: URLSessionTask, in protectionSpace: URLProtectionSpace) -> URLCredential?
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | func cancelRequestsForSessionInvalidation(with error: Error?)
68 | }
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:72:28: error: cannot find type 'URLSessionDelegate' in scope
70 | // MARK: URLSessionDelegate
71 |
72 | extension SessionDelegate: URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
73 | open func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
74 | eventMonitor?.urlSession(session, didBecomeInvalidWithError: error)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:73:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 |
72 | extension SessionDelegate: URLSessionDelegate {
73 | open func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | eventMonitor?.urlSession(session, didBecomeInvalidWithError: error)
75 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:82:28: error: cannot find type 'URLSessionTaskDelegate' in scope
80 | // MARK: URLSessionTaskDelegate
81 |
82 | extension SessionDelegate: URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
83 | /// Result of a `URLAuthenticationChallenge` evaluation.
84 | typealias ChallengeEvaluation = (disposition: URLSession.AuthChallengeDisposition, credential: URLCredential?, error: AFError?)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:84:62: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
82 | extension SessionDelegate: URLSessionTaskDelegate {
83 | /// Result of a `URLAuthenticationChallenge` evaluation.
84 | typealias ChallengeEvaluation = (disposition: URLSession.AuthChallengeDisposition, credential: URLCredential?, error: AFError?)
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 |
86 | open func urlSession(_ session: URLSession,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:89:67: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
87 | task: URLSessionTask,
88 | didReceive challenge: URLAuthenticationChallenge,
89 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
90 | eventMonitor?.urlSession(session, task: task, didReceive: challenge)
91 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:86:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | typealias ChallengeEvaluation = (disposition: URLSession.AuthChallengeDisposition, credential: URLCredential?, error: AFError?)
85 |
86 | open func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | task: URLSessionTask,
88 | didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:87:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 |
86 | open func urlSession(_ session: URLSession,
87 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | didReceive challenge: URLAuthenticationChallenge,
89 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:88:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | open func urlSession(_ session: URLSession,
87 | task: URLSessionTask,
88 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
90 | eventMonitor?.urlSession(session, task: task, didReceive: challenge)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:115:59: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | ///
114 | /// - Returns: The `ChallengeEvaluation`.
115 | func attemptServerTrustAuthentication(with challenge: URLAuthenticationChallenge) -> ChallengeEvaluation {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | let host = challenge.protectionSpace.host
117 |
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:144:57: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | ///
143 | /// - Returns: The `ChallengeEvaluation`.
144 | func attemptCredentialAuthentication(for challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | belongingTo task: URLSessionTask) -> ChallengeEvaluation {
146 | guard challenge.previousFailureCount == 0 else {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:145:60: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | /// - Returns: The `ChallengeEvaluation`.
144 | func attemptCredentialAuthentication(for challenge: URLAuthenticationChallenge,
145 | belongingTo task: URLSessionTask) -> ChallengeEvaluation {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | guard challenge.previousFailureCount == 0 else {
147 | return (.rejectProtectionSpace, nil, nil)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:157:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | }
156 |
157 | open func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | task: URLSessionTask,
159 | didSendBodyData bytesSent: Int64,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:158:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |
157 | open func urlSession(_ session: URLSession,
158 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | didSendBodyData bytesSent: Int64,
160 | totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:172:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | }
171 |
172 | open func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 | task: URLSessionTask,
174 | needNewBodyStream completionHandler: @escaping (InputStream?) -> Void) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:173:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |
172 | open func urlSession(_ session: URLSession,
173 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 | needNewBodyStream completionHandler: @escaping (InputStream?) -> Void) {
175 | eventMonitor?.urlSession(session, taskNeedsNewBodyStream: task)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:189:46: error: cannot find type 'URLRequest' in scope
187 | task: URLSessionTask,
188 | willPerformHTTPRedirection response: HTTPURLResponse,
189 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
190 | completionHandler: @escaping (URLRequest?) -> Void) {
191 | eventMonitor?.urlSession(session, task: task, willPerformHTTPRedirection: response, newRequest: request)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:190:56: error: cannot find type 'URLRequest' in scope
188 | willPerformHTTPRedirection response: HTTPURLResponse,
189 | newRequest request: URLRequest,
190 | completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
191 | eventMonitor?.urlSession(session, task: task, willPerformHTTPRedirection: response, newRequest: request)
192 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:186:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | }
185 |
186 | open func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | task: URLSessionTask,
188 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:187:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |
186 | open func urlSession(_ session: URLSession,
187 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 | willPerformHTTPRedirection response: HTTPURLResponse,
189 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:188:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 | open func urlSession(_ session: URLSession,
187 | task: URLSessionTask,
188 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 | newRequest request: URLRequest,
190 | completionHandler: @escaping (URLRequest?) -> Void) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:200:100: error: cannot find type 'URLSessionTaskMetrics' in scope
198 | }
199 |
200 | open func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
201 | eventMonitor?.urlSession(session, task: task, didFinishCollecting: metrics)
202 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:200:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | }
199 |
200 | open func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 | eventMonitor?.urlSession(session, task: task, didFinishCollecting: metrics)
202 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:200:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | }
199 |
200 | open func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 | eventMonitor?.urlSession(session, task: task, didFinishCollecting: metrics)
202 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:208:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
208 | open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | eventMonitor?.urlSession(session, task: task, didCompleteWithError: error)
210 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:208:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | }
207 |
208 | open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | eventMonitor?.urlSession(session, task: task, didCompleteWithError: error)
210 |
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:219:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |
218 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
219 | open func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | eventMonitor?.urlSession(session, taskIsWaitingForConnectivity: task)
221 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:219:84: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |
218 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
219 | open func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | eventMonitor?.urlSession(session, taskIsWaitingForConnectivity: task)
221 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:226:28: error: cannot find type 'URLSessionDataDelegate' in scope
224 | // MARK: URLSessionDataDelegate
225 |
226 | extension SessionDelegate: URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
227 | open func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
228 | eventMonitor?.urlSession(session, dataTask: dataTask, didReceive: data)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:227:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 | extension SessionDelegate: URLSessionDataDelegate {
227 | open func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | eventMonitor?.urlSession(session, dataTask: dataTask, didReceive: data)
229 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:227:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 | extension SessionDelegate: URLSessionDataDelegate {
227 | open func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | eventMonitor?.urlSession(session, dataTask: dataTask, didReceive: data)
229 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:240:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 | }
239 |
240 | open func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 | dataTask: URLSessionDataTask,
242 | willCacheResponse proposedResponse: CachedURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:241:36: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |
240 | open func urlSession(_ session: URLSession,
241 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | willCacheResponse proposedResponse: CachedURLResponse,
243 | completionHandler: @escaping (CachedURLResponse?) -> Void) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:242:62: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | open func urlSession(_ session: URLSession,
241 | dataTask: URLSessionDataTask,
242 | willCacheResponse proposedResponse: CachedURLResponse,
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | completionHandler: @escaping (CachedURLResponse?) -> Void) {
244 | eventMonitor?.urlSession(session, dataTask: dataTask, willCacheResponse: proposedResponse)
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:243:56: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 | dataTask: URLSessionDataTask,
242 | willCacheResponse proposedResponse: CachedURLResponse,
243 | completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 | eventMonitor?.urlSession(session, dataTask: dataTask, willCacheResponse: proposedResponse)
245 |
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:256:28: error: cannot find type 'URLSessionDownloadDelegate' in scope
254 | // MARK: URLSessionDownloadDelegate
255 |
256 | extension SessionDelegate: URLSessionDownloadDelegate {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
257 | open func urlSession(_ session: URLSession,
258 | downloadTask: URLSessionDownloadTask,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:257:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |
256 | extension SessionDelegate: URLSessionDownloadDelegate {
257 | open func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | downloadTask: URLSessionDownloadTask,
259 | didResumeAtOffset fileOffset: Int64,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:258:40: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
256 | extension SessionDelegate: URLSessionDownloadDelegate {
257 | open func urlSession(_ session: URLSession,
258 | downloadTask: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
259 | didResumeAtOffset fileOffset: Int64,
260 | expectedTotalBytes: Int64) {
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:274:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 | }
273 |
274 | open func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | downloadTask: URLSessionDownloadTask,
276 | didWriteData bytesWritten: Int64,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:275:40: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
273 |
274 | open func urlSession(_ session: URLSession,
275 | downloadTask: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
276 | didWriteData bytesWritten: Int64,
277 | totalBytesWritten: Int64,
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:293:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 | }
292 |
293 | open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
294 | eventMonitor?.urlSession(session, downloadTask: downloadTask, didFinishDownloadingTo: location)
295 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:293:63: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 | }
292 |
293 | open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
294 | eventMonitor?.urlSession(session, downloadTask: downloadTask, didFinishDownloadingTo: location)
295 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:242:48: error: cannot find type 'URLRequest' in scope
240 | task: URLSessionTask,
241 | willPerformHTTPRedirection response: HTTPURLResponse,
242 | newRequest request: URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
243 | public func urlSession(_ session: URLSession,
244 | task: URLSessionTask,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:245:57: error: cannot find type 'URLSessionTaskMetrics' in scope
243 | public func urlSession(_ session: URLSession,
244 | task: URLSessionTask,
245 | didFinishCollecting metrics: URLSessionTaskMetrics) {}
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
246 | public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {}
247 | public func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {}
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:93:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
91 |
92 | let evaluation: ChallengeEvaluation
93 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
94 | case NSURLAuthenticationMethodServerTrust:
95 | evaluation = attemptServerTrustAuthentication(with: challenge)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:94:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
92 | let evaluation: ChallengeEvaluation
93 | switch challenge.protectionSpace.authenticationMethod {
94 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
95 | evaluation = attemptServerTrustAuthentication(with: challenge)
96 | case NSURLAuthenticationMethodHTTPBasic, NSURLAuthenticationMethodHTTPDigest, NSURLAuthenticationMethodNTLM,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:96:14: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
94 | case NSURLAuthenticationMethodServerTrust:
95 | evaluation = attemptServerTrustAuthentication(with: challenge)
96 | case NSURLAuthenticationMethodHTTPBasic, NSURLAuthenticationMethodHTTPDigest, NSURLAuthenticationMethodNTLM,
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
97 | NSURLAuthenticationMethodNegotiate, NSURLAuthenticationMethodClientCertificate:
98 | evaluation = attemptCredentialAuthentication(for: challenge, belongingTo: task)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:96:50: error: cannot find 'NSURLAuthenticationMethodHTTPDigest' in scope
94 | case NSURLAuthenticationMethodServerTrust:
95 | evaluation = attemptServerTrustAuthentication(with: challenge)
96 | case NSURLAuthenticationMethodHTTPBasic, NSURLAuthenticationMethodHTTPDigest, NSURLAuthenticationMethodNTLM,
| `- error: cannot find 'NSURLAuthenticationMethodHTTPDigest' in scope
97 | NSURLAuthenticationMethodNegotiate, NSURLAuthenticationMethodClientCertificate:
98 | evaluation = attemptCredentialAuthentication(for: challenge, belongingTo: task)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:96:87: error: cannot find 'NSURLAuthenticationMethodNTLM' in scope
94 | case NSURLAuthenticationMethodServerTrust:
95 | evaluation = attemptServerTrustAuthentication(with: challenge)
96 | case NSURLAuthenticationMethodHTTPBasic, NSURLAuthenticationMethodHTTPDigest, NSURLAuthenticationMethodNTLM,
| `- error: cannot find 'NSURLAuthenticationMethodNTLM' in scope
97 | NSURLAuthenticationMethodNegotiate, NSURLAuthenticationMethodClientCertificate:
98 | evaluation = attemptCredentialAuthentication(for: challenge, belongingTo: task)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:97:14: error: cannot find 'NSURLAuthenticationMethodNegotiate' in scope
95 | evaluation = attemptServerTrustAuthentication(with: challenge)
96 | case NSURLAuthenticationMethodHTTPBasic, NSURLAuthenticationMethodHTTPDigest, NSURLAuthenticationMethodNTLM,
97 | NSURLAuthenticationMethodNegotiate, NSURLAuthenticationMethodClientCertificate:
| `- error: cannot find 'NSURLAuthenticationMethodNegotiate' in scope
98 | evaluation = attemptCredentialAuthentication(for: challenge, belongingTo: task)
99 | default:
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:97:50: error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
95 | evaluation = attemptServerTrustAuthentication(with: challenge)
96 | case NSURLAuthenticationMethodHTTPBasic, NSURLAuthenticationMethodHTTPDigest, NSURLAuthenticationMethodNTLM,
97 | NSURLAuthenticationMethodNegotiate, NSURLAuthenticationMethodClientCertificate:
| `- error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
98 | evaluation = attemptCredentialAuthentication(for: challenge, belongingTo: task)
99 | default:
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:100:28: error: cannot infer contextual base in reference to member 'performDefaultHandling'
98 | evaluation = attemptCredentialAuthentication(for: challenge, belongingTo: task)
99 | default:
100 | evaluation = (.performDefaultHandling, nil, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
101 | }
102 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:100:52: error: 'nil' requires a contextual type
98 | evaluation = attemptCredentialAuthentication(for: challenge, belongingTo: task)
99 | default:
100 | evaluation = (.performDefaultHandling, nil, nil)
| `- error: 'nil' requires a contextual type
101 | }
102 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:100:57: error: 'nil' requires a contextual type
98 | evaluation = attemptCredentialAuthentication(for: challenge, belongingTo: task)
99 | default:
100 | evaluation = (.performDefaultHandling, nil, nil)
| `- error: 'nil' requires a contextual type
101 | }
102 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:116:30: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
114 | /// - Returns: The `ChallengeEvaluation`.
115 | func attemptServerTrustAuthentication(with challenge: URLAuthenticationChallenge) -> ChallengeEvaluation {
116 | let host = challenge.protectionSpace.host
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
117 |
118 | guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:118:65: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
116 | let host = challenge.protectionSpace.host
117 |
118 | guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
119 | let trust = challenge.protectionSpace.serverTrust
120 | else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:118:25: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
116 | let host = challenge.protectionSpace.host
117 |
118 | guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
119 | let trust = challenge.protectionSpace.serverTrust
120 | else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:119:35: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
117 |
118 | guard challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
119 | let trust = challenge.protectionSpace.serverTrust
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
120 | else {
121 | return (.performDefaultHandling, nil, nil)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:146:25: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'previousFailureCount'
144 | func attemptCredentialAuthentication(for challenge: URLAuthenticationChallenge,
145 | belongingTo task: URLSessionTask) -> ChallengeEvaluation {
146 | guard challenge.previousFailureCount == 0 else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'previousFailureCount'
147 | return (.rejectProtectionSpace, nil, nil)
148 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:150:83: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
148 | }
149 |
150 | guard let credential = stateProvider?.credential(for: task, in: challenge.protectionSpace) else {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
151 | return (.performDefaultHandling, nil, nil)
152 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:191:23: error: no exact matches in call to instance method 'urlSession'
189 | newRequest request: URLRequest,
190 | completionHandler: @escaping (URLRequest?) -> Void) {
191 | eventMonitor?.urlSession(session, task: task, willPerformHTTPRedirection: response, newRequest: request)
| `- error: no exact matches in call to instance method 'urlSession'
192 |
193 | if let redirectHandler = stateProvider?.request(for: task)?.redirectHandler ?? stateProvider?.redirectHandler {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:82:10: note: candidate has partially matching parameter list (URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset: Int64, expectedTotalBytes: Int64)
80 |
81 | /// Event called during `URLSessionDownloadDelegate`'s `urlSession(_:downloadTask:didResumeAtOffset:expectedTotalBytes:)` method.
82 | func urlSession(_ session: URLSession,
| `- note: candidate has partially matching parameter list (URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset: Int64, expectedTotalBytes: Int64)
83 | downloadTask: URLSessionDownloadTask,
84 | didResumeAtOffset fileOffset: Int64,
:
250 | dataTask: URLSessionDataTask,
251 | willCacheResponse proposedResponse: CachedURLResponse) {}
252 | public func urlSession(_ session: URLSession,
| `- note: candidate has partially matching parameter list (URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset: Int64, expectedTotalBytes: Int64)
253 | downloadTask: URLSessionDownloadTask,
254 | didResumeAtOffset fileOffset: Int64,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift:201:23: error: no exact matches in call to instance method 'urlSession'
199 |
200 | open func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
201 | eventMonitor?.urlSession(session, task: task, didFinishCollecting: metrics)
| `- error: no exact matches in call to instance method 'urlSession'
202 |
203 | stateProvider?.request(for: task)?.didGatherMetrics(metrics)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:43:10: note: incorrect labels for candidate (have: '(_:task:didFinishCollecting:)', expected: '(_:task:didReceive:)')
41 |
42 | /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:task:didReceive:completionHandler:)` method.
43 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge)
| `- note: incorrect labels for candidate (have: '(_:task:didFinishCollecting:)', expected: '(_:task:didReceive:)')
44 |
45 | /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:)` method.
:
63 |
64 | /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:task:didCompleteWithError:)` method.
65 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?)
| `- note: incorrect labels for candidate (have: '(_:task:didFinishCollecting:)', expected: '(_:task:didCompleteWithError:)')
66 |
67 | /// Event called during `URLSessionTaskDelegate`'s `urlSession(_:taskIsWaitingForConnectivity:)` method.
:
228 |
229 | public func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {}
230 | public func urlSession(_ session: URLSession,
| `- note: incorrect labels for candidate (have: '(_:task:didFinishCollecting:)', expected: '(_:task:didReceive:)')
231 | task: URLSessionTask,
232 | didReceive challenge: URLAuthenticationChallenge) {}
:
244 | task: URLSessionTask,
245 | didFinishCollecting metrics: URLSessionTaskMetrics) {}
246 | public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {}
| `- note: incorrect labels for candidate (have: '(_:task:didFinishCollecting:)', expected: '(_:task:didCompleteWithError:)')
247 | public func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {}
248 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {}
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:419:38: error: cannot find type 'URLSessionTaskMetrics' in scope
417 | ///
418 | /// - Parameter metrics: The `URLSessionTaskMetrics` gathered.
419 | func didGatherMetrics(_ metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
420 | dispatchPrecondition(condition: .onQueue(underlyingQueue))
421 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:264:84: error: cannot find type 'URLRequest' in scope
262 | downloadTask: URLSessionDownloadTask,
263 | didFinishDownloadingTo location: URL) {}
264 | public func request(_ request: Request, didCreateInitialURLRequest urlRequest: URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
265 | public func request(_ request: Request, didFailToCreateURLRequestWithError error: AFError) {}
266 | public func request(_ request: Request,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:267:64: error: cannot find type 'URLRequest' in scope
265 | public func request(_ request: Request, didFailToCreateURLRequestWithError error: AFError) {}
266 | public func request(_ request: Request,
267 | didAdaptInitialRequest initialRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
268 | to adaptedRequest: URLRequest) {}
269 | public func request(_ request: Request,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:268:44: error: cannot find type 'URLRequest' in scope
266 | public func request(_ request: Request,
267 | didAdaptInitialRequest initialRequest: URLRequest,
268 | to adaptedRequest: URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
269 | public func request(_ request: Request,
270 | didFailToAdaptURLRequest initialRequest: URLRequest,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:270:66: error: cannot find type 'URLRequest' in scope
268 | to adaptedRequest: URLRequest) {}
269 | public func request(_ request: Request,
270 | didFailToAdaptURLRequest initialRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
271 | withError error: AFError) {}
272 | public func request(_ request: Request, didCreateURLRequest urlRequest: URLRequest) {}
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:272:77: error: cannot find type 'URLRequest' in scope
270 | didFailToAdaptURLRequest initialRequest: URLRequest,
271 | withError error: AFError) {}
272 | public func request(_ request: Request, didCreateURLRequest urlRequest: URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
273 | public func request(_ request: Request, didCreateTask task: URLSessionTask) {}
274 | public func request(_ request: Request, didGatherMetrics metrics: URLSessionTaskMetrics) {}
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:274:71: error: cannot find type 'URLSessionTaskMetrics' in scope
272 | public func request(_ request: Request, didCreateURLRequest urlRequest: URLRequest) {}
273 | public func request(_ request: Request, didCreateTask task: URLSessionTask) {}
274 | public func request(_ request: Request, didGatherMetrics metrics: URLSessionTaskMetrics) {}
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
275 | public func request(_ request: Request, didFailTask task: URLSessionTask, earlyWithError error: AFError) {}
276 | public func request(_ request: Request, didCompleteTask task: URLSessionTask, with error: AFError?) {}
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:286:56: error: cannot find type 'URLRequest' in scope
284 | public func request(_ request: Request, didCancelTask task: URLSessionTask) {}
285 | public func request(_ request: DataRequest,
286 | didValidateRequest urlRequest: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
287 | response: HTTPURLResponse,
288 | data: Data?,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:293:56: error: cannot find type 'URLRequest' in scope
291 | public func request<Value>(_ request: DataRequest, didParseResponse response: DataResponse<Value, AFError>) {}
292 | public func request(_ request: DataStreamRequest,
293 | didValidateRequest urlRequest: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
294 | response: HTTPURLResponse,
295 | withResult result: Request.ValidationResult) {}
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift:303:56: error: cannot find type 'URLRequest' in scope
301 | public func request(_ request: DownloadRequest, didCreateDestinationURL url: URL) {}
302 | public func request(_ request: DownloadRequest,
303 | didValidateRequest urlRequest: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
304 | response: HTTPURLResponse,
305 | fileURL: URL?,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLConvertible+URLRequestConvertible.swift:79:28: error: cannot find type 'URLRequest' in scope
77 | extension URLRequestConvertible {
78 | /// The `URLRequest` returned by discarding any `Error` encountered.
79 | public var urlRequest: URLRequest? { try? asURLRequest() }
| `- error: cannot find type 'URLRequest' in scope
80 | }
81 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLConvertible+URLRequestConvertible.swift:82:11: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | extension URLRequest: URLRequestConvertible {
| `- error: cannot find type 'URLRequest' in scope
83 | /// Returns `self`.
84 | public func asURLRequest() throws -> URLRequest { self }
BUILD FAILURE 6.0 linux