Build Information
Failed to build RestBird with Swift 6.0 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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
810 | public final class DecodableResponseSerializer<T: Decodable>: ResponseSerializer {
| `- error: type 'DecodableResponseSerializer<T>' does not conform to protocol 'DownloadResponseSerializerProtocol'
811 | public let dataPreprocessor: DataPreprocessor
812 | /// The `DataDecoder` instance used to decode responses.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:127:31: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
125 | /// - Returns: `Bool` representing the outcome of the evaluation, or `nil` if `response` was `nil`.
126 | public func responseAllowsEmptyResponseData(_ response: HTTPURLResponse?) -> Bool? {
127 | response.flatMap { $0.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 | .map { emptyResponseCodes.contains($0) }
129 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:202:25: error: cannot find type 'URLRequest' in scope
200 | public var lastRequest: URLRequest? { requests.last }
201 | /// Current `URLRequest` created on behalf of the `Request`.
202 | public var request: URLRequest? { lastRequest }
| `- error: cannot find type 'URLRequest' in scope
203 |
204 | /// `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/Request.swift:234:25: error: cannot find type 'URLSessionTaskMetrics' in scope
232 | public var lastMetrics: URLSessionTaskMetrics? { allMetrics.last }
233 | /// Current `URLSessionTaskMetrics` gathered on behalf of the `Request`.
234 | public var metrics: URLSessionTaskMetrics? { lastMetrics }
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
235 |
236 | // MARK: Retry Count
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:70:26: error: cannot find type 'URLRequest' in scope
68 | /// - serializationDuration: The duration taken by serialization.
69 | /// - result: The `Result` of response serialization.
70 | public init(request: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
71 | response: HTTPURLResponse?,
72 | data: Data?,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:73:26: error: cannot find type 'URLSessionTaskMetrics' in scope
71 | response: HTTPURLResponse?,
72 | data: Data?,
73 | metrics: URLSessionTaskMetrics?,
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
74 | serializationDuration: TimeInterval,
75 | result: Result<Success, Failure>) {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:185:40: error: trailing closure passed to parameter of type 'DispatchWorkItem' that does not accept a closure
183 | // End work that should be on the serialization queue.
184 |
185 | self.underlyingQueue.async {
| `- error: trailing closure passed to parameter of type 'DispatchWorkItem' that does not accept a closure
186 | let response = DataResponse(request: self.request,
187 | response: self.response,
Dispatch.DispatchQueue:62:17: note: 'async(execute:)' declared here
60 | public func sync(execute workItem: DispatchWorkItem)
61 | @available(macOS 10.10, iOS 8.0, *)
62 | public func async(execute workItem: DispatchWorkItem)
| `- note: 'async(execute:)' declared here
63 | @available(macOS 10.10, iOS 8.0, *)
64 | public func async(group: DispatchGroup, execute workItem: DispatchWorkItem)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:257:26: error: cannot find type 'URLRequest' in scope
255 | /// - serializationDuration: The duration taken by serialization.
256 | /// - result: The `Result` of response serialization.
257 | public init(request: URLRequest?,
| `- error: cannot find type 'URLRequest' in scope
258 | response: HTTPURLResponse?,
259 | fileURL: URL?,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:261:26: error: cannot find type 'URLSessionTaskMetrics' in scope
259 | fileURL: URL?,
260 | resumeData: Data?,
261 | metrics: URLSessionTaskMetrics?,
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
262 | serializationDuration: TimeInterval,
263 | result: Result<Success, Failure>) {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:298:40: error: trailing closure passed to parameter of type 'DispatchWorkItem' that does not accept a closure
296 | // End work that should be on the serialization queue.
297 |
298 | self.underlyingQueue.async {
| `- error: trailing closure passed to parameter of type 'DispatchWorkItem' that does not accept a closure
299 | let response = DownloadResponse(request: self.request,
300 | response: self.response,
Dispatch.DispatchQueue:62:17: note: 'async(execute:)' declared here
60 | public func sync(execute workItem: DispatchWorkItem)
61 | @available(macOS 10.10, iOS 8.0, *)
62 | public func async(execute workItem: DispatchWorkItem)
| `- note: 'async(execute:)' declared here
63 | @available(macOS 10.10, iOS 8.0, *)
64 | public func async(group: DispatchGroup, execute workItem: DispatchWorkItem)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:430:96: error: cannot convert value of type '(AFDownloadResponse<URL>) -> Void' (aka '(DownloadResponse<URL, AFError>) -> ()') to expected argument type '(DownloadResponse<URLResponseSerializer.SerializedObject, AFError>) -> Void'
428 | public func responseURL(queue: DispatchQueue = .main,
429 | completionHandler: @escaping (AFDownloadResponse<URL>) -> Void) -> Self {
430 | response(queue: queue, responseSerializer: URLResponseSerializer(), completionHandler: completionHandler)
| `- error: cannot convert value of type '(AFDownloadResponse<URL>) -> Void' (aka '(DownloadResponse<URL, AFError>) -> ()') to expected argument type '(DownloadResponse<URLResponseSerializer.SerializedObject, AFError>) -> Void'
431 | }
432 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('URLResponseSerializer.SerializedObject' and 'URL') are expected to be equal
213 |
214 | /// Used to store all data associated with a serialized response of a download request.
215 | public struct DownloadResponse<Success, Failure: Error> {
| `- note: arguments to generic parameter 'Success' ('URLResponseSerializer.SerializedObject' and 'URL') are expected to be equal
216 | /// The URL request sent to the server.
217 | public let request: URLRequest?
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:497:37: error: cannot convert value of type '(AFDataResponse<Data>) -> Void' (aka '(DataResponse<Data, AFError>) -> ()') to expected argument type '(DataResponse<DataResponseSerializer.SerializedObject, AFError>) -> Void'
495 | emptyResponseCodes: emptyResponseCodes,
496 | emptyRequestMethods: emptyRequestMethods),
497 | completionHandler: completionHandler)
| `- error: cannot convert value of type '(AFDataResponse<Data>) -> Void' (aka '(DataResponse<Data, AFError>) -> ()') to expected argument type '(DataResponse<DataResponseSerializer.SerializedObject, AFError>) -> Void'
498 | }
499 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: arguments to generic parameter 'Success' ('DataResponseSerializer.SerializedObject' and 'Data') are expected to be equal
31 |
32 | /// Type used to store all values associated with a serialized response of a `DataRequest` or `UploadRequest`.
33 | public struct DataResponse<Success, Failure: Error> {
| `- note: arguments to generic parameter 'Success' ('DataResponseSerializer.SerializedObject' and 'Data') are expected to be equal
34 | /// The URL request sent to the server.
35 | public let request: URLRequest?
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:523:37: error: cannot convert value of type '(AFDownloadResponse<Data>) -> Void' (aka '(DownloadResponse<Data, AFError>) -> ()') to expected argument type '(DownloadResponse<DataResponseSerializer.SerializedObject, AFError>) -> Void'
521 | emptyResponseCodes: emptyResponseCodes,
522 | emptyRequestMethods: emptyRequestMethods),
523 | completionHandler: completionHandler)
| `- error: cannot convert value of type '(AFDownloadResponse<Data>) -> Void' (aka '(DownloadResponse<Data, AFError>) -> ()') to expected argument type '(DownloadResponse<DataResponseSerializer.SerializedObject, AFError>) -> Void'
524 | }
525 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('DataResponseSerializer.SerializedObject' and 'Data') are expected to be equal
213 |
214 | /// Used to store all data associated with a serialized response of a download request.
215 | public struct DownloadResponse<Success, Failure: Error> {
| `- note: arguments to generic parameter 'Success' ('DataResponseSerializer.SerializedObject' and 'Data') are expected to be equal
216 | /// The URL request sent to the server.
217 | public let request: URLRequest?
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:572:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'textEncodingName'
570 | var convertedEncoding = encoding
571 |
572 | if let encodingName = response?.textEncodingName, convertedEncoding == nil {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'textEncodingName'
573 | convertedEncoding = String.Encoding(ianaCharsetName: encodingName)
574 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:612:37: error: cannot convert value of type '(AFDataResponse<String>) -> Void' (aka '(DataResponse<String, AFError>) -> ()') to expected argument type '(DataResponse<StringResponseSerializer.SerializedObject, AFError>) -> Void'
610 | emptyResponseCodes: emptyResponseCodes,
611 | emptyRequestMethods: emptyRequestMethods),
612 | completionHandler: completionHandler)
| `- error: cannot convert value of type '(AFDataResponse<String>) -> Void' (aka '(DataResponse<String, AFError>) -> ()') to expected argument type '(DataResponse<StringResponseSerializer.SerializedObject, AFError>) -> Void'
613 | }
614 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: arguments to generic parameter 'Success' ('StringResponseSerializer.SerializedObject' and 'String') are expected to be equal
31 |
32 | /// Type used to store all values associated with a serialized response of a `DataRequest` or `UploadRequest`.
33 | public struct DataResponse<Success, Failure: Error> {
| `- note: arguments to generic parameter 'Success' ('StringResponseSerializer.SerializedObject' and 'String') are expected to be equal
34 | /// The URL request sent to the server.
35 | public let request: URLRequest?
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:642:37: error: cannot convert value of type '(AFDownloadResponse<String>) -> Void' (aka '(DownloadResponse<String, AFError>) -> ()') to expected argument type '(DownloadResponse<StringResponseSerializer.SerializedObject, AFError>) -> Void'
640 | emptyResponseCodes: emptyResponseCodes,
641 | emptyRequestMethods: emptyRequestMethods),
642 | completionHandler: completionHandler)
| `- error: cannot convert value of type '(AFDownloadResponse<String>) -> Void' (aka '(DownloadResponse<String, AFError>) -> ()') to expected argument type '(DownloadResponse<StringResponseSerializer.SerializedObject, AFError>) -> Void'
643 | }
644 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('StringResponseSerializer.SerializedObject' and 'String') are expected to be equal
213 |
214 | /// Used to store all data associated with a serialized response of a download request.
215 | public struct DownloadResponse<Success, Failure: Error> {
| `- note: arguments to generic parameter 'Success' ('StringResponseSerializer.SerializedObject' and 'String') are expected to be equal
216 | /// The URL request sent to the server.
217 | public let request: URLRequest?
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:724:37: error: cannot convert value of type '(AFDataResponse<Any>) -> Void' (aka '(DataResponse<Any, AFError>) -> ()') to expected argument type '(DataResponse<JSONResponseSerializer.SerializedObject, AFError>) -> Void'
722 | emptyRequestMethods: emptyRequestMethods,
723 | options: options),
724 | completionHandler: completionHandler)
| `- error: cannot convert value of type '(AFDataResponse<Any>) -> Void' (aka '(DataResponse<Any, AFError>) -> ()') to expected argument type '(DataResponse<JSONResponseSerializer.SerializedObject, AFError>) -> Void'
725 | }
726 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: arguments to generic parameter 'Success' ('JSONResponseSerializer.SerializedObject' and 'Any') are expected to be equal
31 |
32 | /// Type used to store all values associated with a serialized response of a `DataRequest` or `UploadRequest`.
33 | public struct DataResponse<Success, Failure: Error> {
| `- note: arguments to generic parameter 'Success' ('JSONResponseSerializer.SerializedObject' and 'Any') are expected to be equal
34 | /// The URL request sent to the server.
35 | public let request: URLRequest?
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:756:37: error: cannot convert value of type '(AFDownloadResponse<Any>) -> Void' (aka '(DownloadResponse<Any, AFError>) -> ()') to expected argument type '(DownloadResponse<JSONResponseSerializer.SerializedObject, AFError>) -> Void'
754 | emptyRequestMethods: emptyRequestMethods,
755 | options: options),
756 | completionHandler: completionHandler)
| `- error: cannot convert value of type '(AFDownloadResponse<Any>) -> Void' (aka '(DownloadResponse<Any, AFError>) -> ()') to expected argument type '(DownloadResponse<JSONResponseSerializer.SerializedObject, AFError>) -> Void'
757 | }
758 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('JSONResponseSerializer.SerializedObject' and 'Any') are expected to be equal
213 |
214 | /// Used to store all data associated with a serialized response of a download request.
215 | public struct DownloadResponse<Success, Failure: Error> {
| `- note: arguments to generic parameter 'Success' ('JSONResponseSerializer.SerializedObject' and 'Any') are expected to be equal
216 | /// The URL request sent to the server.
217 | public let request: URLRequest?
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:890:37: error: cannot convert value of type '(AFDataResponse<T>) -> Void' (aka '(DataResponse<T, AFError>) -> ()') to expected argument type '(DataResponse<DecodableResponseSerializer<_>.SerializedObject, AFError>) -> Void'
888 | emptyResponseCodes: emptyResponseCodes,
889 | emptyRequestMethods: emptyRequestMethods),
890 | completionHandler: completionHandler)
| `- error: cannot convert value of type '(AFDataResponse<T>) -> Void' (aka '(DataResponse<T, AFError>) -> ()') to expected argument type '(DataResponse<DecodableResponseSerializer<_>.SerializedObject, AFError>) -> Void'
891 | }
892 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:33:28: note: arguments to generic parameter 'Success' ('DecodableResponseSerializer<_>.SerializedObject' and 'T') are expected to be equal
31 |
32 | /// Type used to store all values associated with a serialized response of a `DataRequest` or `UploadRequest`.
33 | public struct DataResponse<Success, Failure: Error> {
| `- note: arguments to generic parameter 'Success' ('DecodableResponseSerializer<_>.SerializedObject' and 'T') are expected to be equal
34 | /// The URL request sent to the server.
35 | public let request: URLRequest?
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:886:38: error: generic parameter 'T' could not be inferred
808 | /// type's `emptyValue()` will be returned. If the decoded type is `Empty`, the `.value` instance is returned. If the
809 | /// decoded type *does not* conform to `EmptyResponse` and isn't `Empty`, an error will be produced.
810 | public final class DecodableResponseSerializer<T: Decodable>: ResponseSerializer {
| `- note: 'T' declared as parameter to type 'DecodableResponseSerializer'
811 | public let dataPreprocessor: DataPreprocessor
812 | /// The `DataDecoder` instance used to decode responses.
:
884 | completionHandler: @escaping (AFDataResponse<T>) -> Void) -> Self {
885 | response(queue: queue,
886 | responseSerializer: DecodableResponseSerializer(dataPreprocessor: dataPreprocessor,
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
887 | decoder: decoder,
888 | emptyResponseCodes: emptyResponseCodes,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:925:37: error: cannot convert value of type '(AFDownloadResponse<T>) -> Void' (aka '(DownloadResponse<T, AFError>) -> ()') to expected argument type '(DownloadResponse<DecodableResponseSerializer<_>.SerializedObject, AFError>) -> Void'
923 | emptyResponseCodes: emptyResponseCodes,
924 | emptyRequestMethods: emptyRequestMethods),
925 | completionHandler: completionHandler)
| `- error: cannot convert value of type '(AFDownloadResponse<T>) -> Void' (aka '(DownloadResponse<T, AFError>) -> ()') to expected argument type '(DownloadResponse<DecodableResponseSerializer<_>.SerializedObject, AFError>) -> Void'
926 | }
927 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift:215:32: note: arguments to generic parameter 'Success' ('DecodableResponseSerializer<_>.SerializedObject' and 'T') are expected to be equal
213 |
214 | /// Used to store all data associated with a serialized response of a download request.
215 | public struct DownloadResponse<Success, Failure: Error> {
| `- note: arguments to generic parameter 'Success' ('DecodableResponseSerializer<_>.SerializedObject' and 'T') are expected to be equal
216 | /// The URL request sent to the server.
217 | public let request: URLRequest?
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:921:38: error: generic parameter 'T' could not be inferred
808 | /// type's `emptyValue()` will be returned. If the decoded type is `Empty`, the `.value` instance is returned. If the
809 | /// decoded type *does not* conform to `EmptyResponse` and isn't `Empty`, an error will be produced.
810 | public final class DecodableResponseSerializer<T: Decodable>: ResponseSerializer {
| `- note: 'T' declared as parameter to type 'DecodableResponseSerializer'
811 | public let dataPreprocessor: DataPreprocessor
812 | /// The `DataDecoder` instance used to decode responses.
:
919 | completionHandler: @escaping (AFDownloadResponse<T>) -> Void) -> Self {
920 | response(queue: queue,
921 | responseSerializer: DecodableResponseSerializer(dataPreprocessor: dataPreprocessor,
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
922 | decoder: decoder,
923 | emptyResponseCodes: emptyResponseCodes,
/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: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: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: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: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: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: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: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: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: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: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: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: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: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: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/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/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/RetryPolicy.swift:329:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
327 | guard let httpMethod = request.request?.method, retryableHTTPMethods.contains(httpMethod) else { return false }
328 |
329 | if let statusCode = request.response?.statusCode, retryableHTTPStatusCodes.contains(statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
330 | return true
331 | } else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:105:35: error: cannot find type 'SecTrust' in scope
103 | }
104 |
105 | public func evaluate(_ trust: SecTrust, forHost host: String) throws {
| `- error: cannot find type 'SecTrust' in scope
106 | if validateHost {
107 | try trust.af.performValidation(forHost: host)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:124:51: error: cannot find 'kSecRevocationCRLMethod' in scope
122 | public struct Options: OptionSet {
123 | /// Perform revocation checking using the CRL (Certification Revocation List) method.
124 | public static let crl = Options(rawValue: kSecRevocationCRLMethod)
| `- error: cannot find 'kSecRevocationCRLMethod' in scope
125 | /// Consult only locally cached replies; do not use network access.
126 | public static let networkAccessDisabled = Options(rawValue: kSecRevocationNetworkAccessDisabled)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:144:31: error: cannot find type 'CFOptionFlags' in scope
142 | ///
143 | /// - Parameter rawValue: The `CFOptionFlags` value to initialize with.
144 | public init(rawValue: CFOptionFlags) {
| `- error: cannot find type 'CFOptionFlags' in scope
145 | self.rawValue = rawValue
146 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:139:30: error: cannot find type 'CFOptionFlags' in scope
137 |
138 | /// The raw value of the option.
139 | public let rawValue: CFOptionFlags
| `- error: cannot find type 'CFOptionFlags' in scope
140 |
141 | /// Creates an `Options` value with the given `CFOptionFlags`.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:124:40: error: extraneous argument label 'rawValue:' in call
122 | public struct Options: OptionSet {
123 | /// Perform revocation checking using the CRL (Certification Revocation List) method.
124 | public static let crl = Options(rawValue: kSecRevocationCRLMethod)
| `- error: extraneous argument label 'rawValue:' in call
125 | /// Consult only locally cached replies; do not use network access.
126 | public static let networkAccessDisabled = Options(rawValue: kSecRevocationNetworkAccessDisabled)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:126:69: error: cannot find 'kSecRevocationNetworkAccessDisabled' in scope
124 | public static let crl = Options(rawValue: kSecRevocationCRLMethod)
125 | /// Consult only locally cached replies; do not use network access.
126 | public static let networkAccessDisabled = Options(rawValue: kSecRevocationNetworkAccessDisabled)
| `- error: cannot find 'kSecRevocationNetworkAccessDisabled' in scope
127 | /// Perform revocation checking using OCSP (Online Certificate Status Protocol).
128 | public static let ocsp = Options(rawValue: kSecRevocationOCSPMethod)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:126:58: error: extraneous argument label 'rawValue:' in call
124 | public static let crl = Options(rawValue: kSecRevocationCRLMethod)
125 | /// Consult only locally cached replies; do not use network access.
126 | public static let networkAccessDisabled = Options(rawValue: kSecRevocationNetworkAccessDisabled)
| `- error: extraneous argument label 'rawValue:' in call
127 | /// Perform revocation checking using OCSP (Online Certificate Status Protocol).
128 | public static let ocsp = Options(rawValue: kSecRevocationOCSPMethod)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:128:52: error: cannot find 'kSecRevocationOCSPMethod' in scope
126 | public static let networkAccessDisabled = Options(rawValue: kSecRevocationNetworkAccessDisabled)
127 | /// Perform revocation checking using OCSP (Online Certificate Status Protocol).
128 | public static let ocsp = Options(rawValue: kSecRevocationOCSPMethod)
| `- error: cannot find 'kSecRevocationOCSPMethod' in scope
129 | /// Prefer CRL revocation checking over OCSP; by default, OCSP is preferred.
130 | public static let preferCRL = Options(rawValue: kSecRevocationPreferCRL)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:128:41: error: extraneous argument label 'rawValue:' in call
126 | public static let networkAccessDisabled = Options(rawValue: kSecRevocationNetworkAccessDisabled)
127 | /// Perform revocation checking using OCSP (Online Certificate Status Protocol).
128 | public static let ocsp = Options(rawValue: kSecRevocationOCSPMethod)
| `- error: extraneous argument label 'rawValue:' in call
129 | /// Prefer CRL revocation checking over OCSP; by default, OCSP is preferred.
130 | public static let preferCRL = Options(rawValue: kSecRevocationPreferCRL)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:130:57: error: cannot find 'kSecRevocationPreferCRL' in scope
128 | public static let ocsp = Options(rawValue: kSecRevocationOCSPMethod)
129 | /// Prefer CRL revocation checking over OCSP; by default, OCSP is preferred.
130 | public static let preferCRL = Options(rawValue: kSecRevocationPreferCRL)
| `- error: cannot find 'kSecRevocationPreferCRL' in scope
131 | /// Require a positive response to pass the policy. If the flag is not set, revocation checking is done on a
132 | /// "best attempt" basis, where failure to reach the server is not considered fatal.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:130:46: error: extraneous argument label 'rawValue:' in call
128 | public static let ocsp = Options(rawValue: kSecRevocationOCSPMethod)
129 | /// Prefer CRL revocation checking over OCSP; by default, OCSP is preferred.
130 | public static let preferCRL = Options(rawValue: kSecRevocationPreferCRL)
| `- error: extraneous argument label 'rawValue:' in call
131 | /// Require a positive response to pass the policy. If the flag is not set, revocation checking is done on a
132 | /// "best attempt" basis, where failure to reach the server is not considered fatal.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:133:71: error: cannot find 'kSecRevocationRequirePositiveResponse' in scope
131 | /// Require a positive response to pass the policy. If the flag is not set, revocation checking is done on a
132 | /// "best attempt" basis, where failure to reach the server is not considered fatal.
133 | public static let requirePositiveResponse = Options(rawValue: kSecRevocationRequirePositiveResponse)
| `- error: cannot find 'kSecRevocationRequirePositiveResponse' in scope
134 | /// Perform either OCSP or CRL checking. The checking is performed according to the method(s) specified in the
135 | /// certificate and the value of `preferCRL`.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:133:60: error: extraneous argument label 'rawValue:' in call
131 | /// Require a positive response to pass the policy. If the flag is not set, revocation checking is done on a
132 | /// "best attempt" basis, where failure to reach the server is not considered fatal.
133 | public static let requirePositiveResponse = Options(rawValue: kSecRevocationRequirePositiveResponse)
| `- error: extraneous argument label 'rawValue:' in call
134 | /// Perform either OCSP or CRL checking. The checking is performed according to the method(s) specified in the
135 | /// certificate and the value of `preferCRL`.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:136:51: error: cannot find 'kSecRevocationUseAnyAvailableMethod' in scope
134 | /// Perform either OCSP or CRL checking. The checking is performed according to the method(s) specified in the
135 | /// certificate and the value of `preferCRL`.
136 | public static let any = Options(rawValue: kSecRevocationUseAnyAvailableMethod)
| `- error: cannot find 'kSecRevocationUseAnyAvailableMethod' in scope
137 |
138 | /// The raw value of the option.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:136:40: error: extraneous argument label 'rawValue:' in call
134 | /// Perform either OCSP or CRL checking. The checking is performed according to the method(s) specified in the
135 | /// certificate and the value of `preferCRL`.
136 | public static let any = Options(rawValue: kSecRevocationUseAnyAvailableMethod)
| `- error: extraneous argument label 'rawValue:' in call
137 |
138 | /// The raw value of the option.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:122:19: error: type 'RevocationTrustEvaluator.Options' does not conform to protocol 'SetAlgebra'
120 | /// Represents the options to be use when evaluating the status of a certificate.
121 | /// Only Revocation Policy Constants are valid, and can be found in [Apple's documentation](https://developer.apple.com/documentation/security/certificate_key_and_trust_services/policies/1563600-revocation_policy_constants).
122 | public struct Options: OptionSet {
| `- error: type 'RevocationTrustEvaluator.Options' does not conform to protocol 'SetAlgebra'
123 | /// Perform revocation checking using the CRL (Certification Revocation List) method.
124 | public static let crl = Options(rawValue: kSecRevocationCRLMethod)
Swift.OptionSet:2:23: note: candidate would match if 'RevocationTrustEvaluator.Options.RawValue' conformed to 'FixedWidthInteger'
1 | extension OptionSet where Self.RawValue : FixedWidthInteger {
2 | @inlinable public init()
| `- note: candidate would match if 'RevocationTrustEvaluator.Options.RawValue' conformed to 'FixedWidthInteger'
3 | @inlinable public mutating func formUnion(_ other: Self)
| `- note: candidate would match if 'RevocationTrustEvaluator.Options.RawValue' conformed to 'FixedWidthInteger'
4 | @inlinable public mutating func formIntersection(_ other: Self)
| `- note: candidate would match if 'RevocationTrustEvaluator.Options.RawValue' conformed to 'FixedWidthInteger'
5 | @inlinable public mutating func formSymmetricDifference(_ other: Self)
| `- note: candidate would match if 'RevocationTrustEvaluator.Options.RawValue' conformed to 'FixedWidthInteger'
6 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:122:19: error: type 'RevocationTrustEvaluator.Options' does not conform to protocol 'RawRepresentable'
120 | /// Represents the options to be use when evaluating the status of a certificate.
121 | /// Only Revocation Policy Constants are valid, and can be found in [Apple's documentation](https://developer.apple.com/documentation/security/certificate_key_and_trust_services/policies/1563600-revocation_policy_constants).
122 | public struct Options: OptionSet {
| `- error: type 'RevocationTrustEvaluator.Options' does not conform to protocol 'RawRepresentable'
123 | /// Perform revocation checking using the CRL (Certification Revocation List) method.
124 | public static let crl = Options(rawValue: kSecRevocationCRLMethod)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:122:19: error: type 'RevocationTrustEvaluator.Options' does not conform to protocol 'Equatable'
120 | /// Represents the options to be use when evaluating the status of a certificate.
121 | /// Only Revocation Policy Constants are valid, and can be found in [Apple's documentation](https://developer.apple.com/documentation/security/certificate_key_and_trust_services/policies/1563600-revocation_policy_constants).
122 | public struct Options: OptionSet {
| `- error: type 'RevocationTrustEvaluator.Options' does not conform to protocol 'Equatable'
123 | /// Perform revocation checking using the CRL (Certification Revocation List) method.
124 | public static let crl = Options(rawValue: kSecRevocationCRLMethod)
:
137 |
138 | /// The raw value of the option.
139 | public let rawValue: CFOptionFlags
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'RevocationTrustEvaluator.Options' to 'Equatable'
140 |
141 | /// Creates an `Options` value with the given `CFOptionFlags`.
Swift.==:1:24: note: candidate would match if 'RevocationTrustEvaluator.Options.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'RevocationTrustEvaluator.Options.RawValue' conformed to 'Equatable'
Swift.FloatingPoint:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'FloatingPoint'
1 | extension FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'FloatingPoint'
3 | public static func < (lhs: Self, rhs: Self) -> Bool
4 | public static func <= (lhs: Self, rhs: Self) -> Bool
Swift.BinaryInteger:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'BinaryInteger'
1 | extension BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
| `- note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'BinaryInteger'
3 | public static func != <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
4 | public static func < <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
Swift._Pointer:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '_Pointer'
1 | extension _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '_Pointer'
3 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
| `- note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '_Pointer'
4 | @inlinable public static func != <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
5 | }
Swift.Strideable:3:35: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'Strideable'
1 | extension Strideable {
2 | @inlinable public static func < (x: Self, y: Self) -> Bool
3 | @inlinable public static func == (x: Self, y: Self) -> Bool
| `- note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'Strideable'
4 | }
Swift.StringProtocol:2:35: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'StringProtocol'
1 | extension StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
| `- note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'StringProtocol'
3 | @inlinable public static func != <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
4 | @inlinable public static func < <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
Swift.SIMD:4:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'SIMD'
2 | public var indices: Range<Int> { get }
3 | public init(repeating value: Self.Scalar)
4 | public static func == (a: Self, b: Self) -> Bool
| `- note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'SIMD'
5 | @inlinable public func hash(into hasher: inout Hasher)
6 | public func encode(to encoder: any Encoder) throws
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'AttributedStringProtocol'
3 | public var description: String { get }
4 | public func hash(into hasher: inout Hasher)
5 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
| `- note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to 'AttributedStringProtocol'
6 | }
Foundation.__BridgedNSError:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '__BridgedNSError'
1 | extension __BridgedNSError where Self : RawRepresentable, Self.RawValue : FixedWidthInteger {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '__BridgedNSError'
3 | }
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '_BridgedStoredNSError'
1 | extension _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool
| `- note: candidate would match if 'RevocationTrustEvaluator.Options' conformed to '_BridgedStoredNSError'
3 | }
Swift.SetAlgebra:3:5: note: protocol requires initializer 'init()' with type '()'
1 | public protocol SetAlgebra<Element> : Equatable, ExpressibleByArrayLiteral {
2 | associatedtype Element
3 | init()
| `- note: protocol requires initializer 'init()' with type '()'
4 | func contains(_ member: Self.Element) -> Bool
5 | __consuming func union(_ other: __owned Self) -> Self
:
12 | @discardableResult
13 | mutating func update(with newMember: __owned Self.Element) -> Self.Element?
14 | mutating func formUnion(_ other: __owned Self)
| `- note: protocol requires function 'formUnion' with type '(__owned RevocationTrustEvaluator.Options) -> ()'
15 | mutating func formIntersection(_ other: Self)
| `- note: protocol requires function 'formIntersection' with type '(RevocationTrustEvaluator.Options) -> ()'
16 | mutating func formSymmetricDifference(_ other: __owned Self)
| `- note: protocol requires function 'formSymmetricDifference' with type '(__owned RevocationTrustEvaluator.Options) -> ()'
17 | __consuming func subtracting(_ other: Self) -> Self
18 | func isSubset(of other: Self) -> Bool
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
1 | public protocol RawRepresentable<RawValue> {
2 | associatedtype RawValue
| `- note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
3 | init?(rawValue: Self.RawValue)
4 | var rawValue: Self.RawValue { get }
Swift.Equatable:2:17: note: protocol requires function '==' with type '(RevocationTrustEvaluator.Options, RevocationTrustEvaluator.Options) -> Bool'
1 | public protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool
| `- note: protocol requires function '==' with type '(RevocationTrustEvaluator.Options, RevocationTrustEvaluator.Options) -> Bool'
3 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:172:35: error: cannot find type 'SecTrust' in scope
170 | }
171 |
172 | public func evaluate(_ trust: SecTrust, forHost host: String) throws {
| `- error: cannot find type 'SecTrust' in scope
173 | if performDefaultValidation {
174 | try trust.af.performDefaultValidation(forHost: host)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:197:32: error: cannot find type 'SecCertificate' in scope
195 | /// environments.
196 | public final class PinnedCertificatesTrustEvaluator: ServerTrustEvaluating {
197 | private let certificates: [SecCertificate]
| `- error: cannot find type 'SecCertificate' in scope
198 | private let acceptSelfSignedCertificates: Bool
199 | private let performDefaultValidation: Bool
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:215:32: error: cannot find type 'SecCertificate' in scope
213 | /// to performing the default evaluation, even if `performDefaultValidation` is
214 | /// `false`. `true` by default.
215 | public init(certificates: [SecCertificate] = Bundle.main.af.certificates,
| `- error: cannot find type 'SecCertificate' in scope
216 | acceptSelfSignedCertificates: Bool = false,
217 | performDefaultValidation: Bool = true,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:225:35: error: cannot find type 'SecTrust' in scope
223 | }
224 |
225 | public func evaluate(_ trust: SecTrust, forHost host: String) throws {
| `- error: cannot find type 'SecTrust' in scope
226 | guard !certificates.isEmpty else {
227 | throw AFError.serverTrustEvaluationFailed(reason: .noCertificatesFound)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:260:24: error: cannot find type 'SecKey' in scope
258 | /// environments.
259 | public final class PublicKeysTrustEvaluator: ServerTrustEvaluating {
260 | private let keys: [SecKey]
| `- error: cannot find type 'SecKey' in scope
261 | private let performDefaultValidation: Bool
262 | private let validateHost: Bool
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:277:24: error: cannot find type 'SecKey' in scope
275 | /// performing the default evaluation, even if `performDefaultValidation` is `false`.
276 | /// `true` by default.
277 | public init(keys: [SecKey] = Bundle.main.af.publicKeys,
| `- error: cannot find type 'SecKey' in scope
278 | performDefaultValidation: Bool = true,
279 | validateHost: Bool = true) {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:285:35: error: cannot find type 'SecTrust' in scope
283 | }
284 |
285 | public func evaluate(_ trust: SecTrust, forHost host: String) throws {
| `- error: cannot find type 'SecTrust' in scope
286 | guard !keys.isEmpty else {
287 | throw AFError.serverTrustEvaluationFailed(reason: .noPublicKeysFound)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:330:35: error: cannot find type 'SecTrust' in scope
328 | }
329 |
330 | public func evaluate(_ trust: SecTrust, forHost host: String) throws {
| `- error: cannot find type 'SecTrust' in scope
331 | try evaluators.evaluate(trust, forHost: host)
332 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:355:35: error: cannot find type 'SecTrust' in scope
353 | public init() {}
354 |
355 | public func evaluate(_ trust: SecTrust, forHost host: String) throws {}
| `- error: cannot find type 'SecTrust' in scope
356 | }
357 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:382:31: error: cannot find type 'SecCertificate' in scope
380 | extension AlamofireExtension where ExtendedType: Bundle {
381 | /// Returns all valid `cer`, `crt`, and `der` certificates in the bundle.
382 | public var certificates: [SecCertificate] {
| `- error: cannot find type 'SecCertificate' in scope
383 | paths(forResourcesOfTypes: [".cer", ".CER", ".crt", ".CRT", ".der", ".DER"]).compactMap { path in
384 | guard
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:393:29: error: cannot find type 'SecKey' in scope
391 |
392 | /// Returns all public keys for the valid certificates in the bundle.
393 | public var publicKeys: [SecKey] {
| `- error: cannot find type 'SecKey' in scope
394 | certificates.af.publicKeys
395 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:407:11: error: cannot find type 'SecTrust' in scope
405 | }
406 |
407 | extension SecTrust: AlamofireExtended {}
| `- error: cannot find type 'SecTrust' in scope
408 | extension AlamofireExtension where ExtendedType == SecTrust {
409 | /// Evaluates `self` after applying the `SecPolicy` value provided.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:408:52: error: cannot find type 'SecTrust' in scope
406 |
407 | extension SecTrust: AlamofireExtended {}
408 | extension AlamofireExtension where ExtendedType == SecTrust {
| `- error: cannot find type 'SecTrust' in scope
409 | /// Evaluates `self` after applying the `SecPolicy` value provided.
410 | ///
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:415:48: error: cannot find type 'SecPolicy' in scope
413 | /// - Throws: Any `Error` from applying the `SecPolicy` or from evaluation.
414 | @available(iOS 12, macOS 10.14, tvOS 12, watchOS 5, *)
415 | public func evaluate(afterApplying policy: SecPolicy) throws {
| `- error: cannot find type 'SecPolicy' in scope
416 | try apply(policy: policy).af.evaluate()
417 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:429:34: error: cannot find type 'SecPolicy' in scope
427 | @available(tvOS, introduced: 10, deprecated: 12, renamed: "evaluate(afterApplying:)")
428 | @available(watchOS, introduced: 3, deprecated: 5, renamed: "evaluate(afterApplying:)")
429 | public func validate(policy: SecPolicy, errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
| `- error: cannot find type 'SecPolicy' in scope
430 | try apply(policy: policy).af.validate(errorProducer: errorProducer)
431 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:429:71: error: cannot find type 'OSStatus' in scope
427 | @available(tvOS, introduced: 10, deprecated: 12, renamed: "evaluate(afterApplying:)")
428 | @available(watchOS, introduced: 3, deprecated: 5, renamed: "evaluate(afterApplying:)")
429 | public func validate(policy: SecPolicy, errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
| `- error: cannot find type 'OSStatus' in scope
430 | try apply(policy: policy).af.validate(errorProducer: errorProducer)
431 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:429:91: error: cannot find type 'SecTrustResultType' in scope
427 | @available(tvOS, introduced: 10, deprecated: 12, renamed: "evaluate(afterApplying:)")
428 | @available(watchOS, introduced: 3, deprecated: 5, renamed: "evaluate(afterApplying:)")
429 | public func validate(policy: SecPolicy, errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
| `- error: cannot find type 'SecTrustResultType' in scope
430 | try apply(policy: policy).af.validate(errorProducer: errorProducer)
431 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:439:52: error: cannot find type 'SecTrust' in scope
437 | /// - Returns: `self`, with the policy applied.
438 | /// - Throws: An `AFError.serverTrustEvaluationFailed` instance with a `.policyApplicationFailed` reason.
439 | public func apply(policy: SecPolicy) throws -> SecTrust {
| `- error: cannot find type 'SecTrust' in scope
440 | let status = SecTrustSetPolicies(type, policy)
441 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:439:31: error: cannot find type 'SecPolicy' in scope
437 | /// - Returns: `self`, with the policy applied.
438 | /// - Throws: An `AFError.serverTrustEvaluationFailed` instance with a `.policyApplicationFailed` reason.
439 | public func apply(policy: SecPolicy) throws -> SecTrust {
| `- error: cannot find type 'SecPolicy' in scope
440 | let status = SecTrustSetPolicies(type, policy)
441 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:474:52: error: cannot find type 'OSStatus' in scope
472 | @available(tvOS, introduced: 10, deprecated: 12, renamed: "evaluate()")
473 | @available(watchOS, introduced: 3, deprecated: 5, renamed: "evaluate()")
474 | public func validate(errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
| `- error: cannot find type 'OSStatus' in scope
475 | var result = SecTrustResultType.invalid
476 | let status = SecTrustEvaluate(type, &result)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:474:72: error: cannot find type 'SecTrustResultType' in scope
472 | @available(tvOS, introduced: 10, deprecated: 12, renamed: "evaluate()")
473 | @available(watchOS, introduced: 3, deprecated: 5, renamed: "evaluate()")
474 | public func validate(errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
| `- error: cannot find type 'SecTrustResultType' in scope
475 | var result = SecTrustResultType.invalid
476 | let status = SecTrustEvaluate(type, &result)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:487:56: error: cannot find type 'SecCertificate' in scope
485 | /// - Parameter certificates: The `SecCertificate`s to add to the chain.
486 | /// - Throws: Any error produced when applying the new certificate chain.
487 | public func setAnchorCertificates(_ certificates: [SecCertificate]) throws {
| `- error: cannot find type 'SecCertificate' in scope
488 | // Add additional anchor certificates.
489 | let status = SecTrustSetAnchorCertificates(type, certificates as CFArray)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:504:29: error: cannot find type 'SecKey' in scope
502 |
503 | /// The public keys contained in `self`.
504 | public var publicKeys: [SecKey] {
| `- error: cannot find type 'SecKey' in scope
505 | certificates.af.publicKeys
506 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:509:31: error: cannot find type 'SecCertificate' in scope
507 |
508 | /// The `SecCertificate`s contained i `self`.
509 | public var certificates: [SecCertificate] {
| `- error: cannot find type 'SecCertificate' in scope
510 | (0..<SecTrustGetCertificateCount(type)).compactMap { index in
511 | SecTrustGetCertificateAtIndex(type, index)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:550:11: error: cannot find type 'SecPolicy' in scope
548 | }
549 |
550 | extension SecPolicy: AlamofireExtended {}
| `- error: cannot find type 'SecPolicy' in scope
551 | extension AlamofireExtension where ExtendedType == SecPolicy {
552 | /// Creates a `SecPolicy` instance which will validate server certificates but not require a host name match.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:551:52: error: cannot find type 'SecPolicy' in scope
549 |
550 | extension SecPolicy: AlamofireExtended {}
551 | 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 | public static let `default` = SecPolicyCreateSSL(true, nil)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:553:35: error: cannot find 'SecPolicyCreateSSL' in scope
551 | extension AlamofireExtension where ExtendedType == SecPolicy {
552 | /// Creates a `SecPolicy` instance which will validate server certificates but not require a host name match.
553 | public 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:60: error: 'nil' requires a contextual type
551 | extension AlamofireExtension where ExtendedType == SecPolicy {
552 | /// Creates a `SecPolicy` instance which will validate server certificates but not require a host name match.
553 | public 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:560:56: error: cannot find type 'SecPolicy' in scope
558 | ///
559 | /// - Returns: The `SecPolicy`.
560 | public static func hostname(_ hostname: String) -> SecPolicy {
| `- error: cannot find type 'SecPolicy' in scope
561 | SecPolicyCreateSSL(true, hostname as CFString)
562 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:571:88: error: cannot find type 'SecPolicy' in scope
569 | /// - Throws: An `AFError.serverTrustEvaluationFailed` error with reason `.revocationPolicyCreationFailed`
570 | /// if the policy cannot be created.
571 | public static func revocation(options: RevocationTrustEvaluator.Options) throws -> SecPolicy {
| `- error: cannot find type 'SecPolicy' in scope
572 | guard let policy = SecPolicyCreateRevocation(options.rawValue) else {
573 | throw AFError.serverTrustEvaluationFailed(reason: .revocationPolicyCreationFailed)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:581:53: error: cannot find type 'SecCertificate' in scope
579 |
580 | extension Array: AlamofireExtended {}
581 | extension AlamofireExtension where ExtendedType == [SecCertificate] {
| `- error: cannot find type 'SecCertificate' in scope
582 | /// All `Data` values for the contained `SecCertificate`s.
583 | public var data: [Data] {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:588:29: error: cannot find type 'SecKey' in scope
586 |
587 | /// All public `SecKey` values for the contained `SecCertificate`s.
588 | public var publicKeys: [SecKey] {
| `- error: cannot find type 'SecKey' in scope
589 | type.compactMap { $0.af.publicKey }
590 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:593:11: error: cannot find type 'SecCertificate' in scope
591 | }
592 |
593 | extension SecCertificate: AlamofireExtended {}
| `- error: cannot find type 'SecCertificate' in scope
594 | extension AlamofireExtension where ExtendedType == SecCertificate {
595 | /// The public key for `self`, if it can be extracted.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:594:52: error: cannot find type 'SecCertificate' in scope
592 |
593 | extension SecCertificate: AlamofireExtended {}
594 | extension AlamofireExtension where ExtendedType == SecCertificate {
| `- error: cannot find type 'SecCertificate' in scope
595 | /// The public key for `self`, if it can be extracted.
596 | public var publicKey: SecKey? {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:596:27: error: cannot find type 'SecKey' in scope
594 | extension AlamofireExtension where ExtendedType == SecCertificate {
595 | /// The public key for `self`, if it can be extracted.
596 | public var publicKey: SecKey? {
| `- error: cannot find type 'SecKey' in scope
597 | let policy = SecPolicyCreateBasicX509()
598 | var trust: SecTrust?
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:607:11: error: cannot find type 'OSStatus' in scope
605 | }
606 |
607 | extension OSStatus: AlamofireExtended {}
| `- error: cannot find type 'OSStatus' in scope
608 | extension AlamofireExtension where ExtendedType == OSStatus {
609 | /// Returns whether `self` is `errSecSuccess`.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:608:52: error: cannot find type 'OSStatus' in scope
606 |
607 | extension OSStatus: AlamofireExtended {}
608 | extension AlamofireExtension where ExtendedType == OSStatus {
| `- error: cannot find type 'OSStatus' in scope
609 | /// Returns whether `self` is `errSecSuccess`.
610 | public var isSuccess: Bool { type == errSecSuccess }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:613:11: error: cannot find type 'SecTrustResultType' in scope
611 | }
612 |
613 | extension SecTrustResultType: AlamofireExtended {}
| `- error: cannot find type 'SecTrustResultType' in scope
614 | extension AlamofireExtension where ExtendedType == SecTrustResultType {
615 | /// Returns whether `self is `.unspecified` or `.proceed`.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:614:52: error: cannot find type 'SecTrustResultType' in scope
612 |
613 | extension SecTrustResultType: AlamofireExtended {}
614 | extension AlamofireExtension where ExtendedType == SecTrustResultType {
| `- error: cannot find type 'SecTrustResultType' in scope
615 | /// Returns whether `self is `.unspecified` or `.proceed`.
616 | public var isSuccess: Bool {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:616:16: error: invalid redeclaration of 'isSuccess'
614 | extension AlamofireExtension where ExtendedType == SecTrustResultType {
615 | /// Returns whether `self is `.unspecified` or `.proceed`.
616 | public var isSuccess: Bool {
| `- error: invalid redeclaration of 'isSuccess'
617 | (type == .unspecified || type == .proceed)
618 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:182:50: error: cannot find 'SecPolicy' in scope
180 |
181 | if #available(iOS 12, macOS 10.14, tvOS 12, watchOS 5, *) {
182 | try trust.af.evaluate(afterApplying: SecPolicy.af.revocation(options: options))
| `- error: cannot find 'SecPolicy' in scope
183 | } else {
184 | try trust.af.validate(policy: SecPolicy.af.revocation(options: options)) { status, result in
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:184:43: error: cannot find 'SecPolicy' in scope
182 | try trust.af.evaluate(afterApplying: SecPolicy.af.revocation(options: options))
183 | } else {
184 | try trust.af.validate(policy: SecPolicy.af.revocation(options: options)) { status, result in
| `- error: cannot find 'SecPolicy' in scope
185 | AFError.serverTrustEvaluationFailed(reason: .revocationCheckFailed(output: .init(host, trust, status, result), options: options))
186 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:137:43: error: cannot find type 'SecTrust' in scope
135 |
136 | /// Creates an `Output` value from the provided values.
137 | init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
| `- error: cannot find type 'SecTrust' in scope
138 | self.host = host
139 | self.trust = trust
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:137:63: error: cannot find type 'OSStatus' in scope
135 |
136 | /// Creates an `Output` value from the provided values.
137 | init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
| `- error: cannot find type 'OSStatus' in scope
138 | self.host = host
139 | self.trust = trust
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:137:83: error: cannot find type 'SecTrustResultType' in scope
135 |
136 | /// Creates an `Output` value from the provided values.
137 | init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
| `- error: cannot find type 'SecTrustResultType' in scope
138 | self.host = host
139 | self.trust = trust
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:60: error: cannot find type 'SecTrust' in scope
164 | case revocationCheckFailed(output: Output, options: RevocationTrustEvaluator.Options)
165 | /// Certificate pinning failed.
166 | case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
| `- error: cannot find type 'SecTrust' in scope
167 | /// Public key pinning failed.
168 | case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:91: error: cannot find type 'SecCertificate' in scope
164 | case revocationCheckFailed(output: Output, options: RevocationTrustEvaluator.Options)
165 | /// Certificate pinning failed.
166 | case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
| `- error: cannot find type 'SecCertificate' in scope
167 | /// Public key pinning failed.
168 | case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:129: error: cannot find type 'SecCertificate' in scope
164 | case revocationCheckFailed(output: Output, options: RevocationTrustEvaluator.Options)
165 | /// Certificate pinning failed.
166 | case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
| `- error: cannot find type 'SecCertificate' in scope
167 | /// Public key pinning failed.
168 | case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:168:58: error: cannot find type 'SecTrust' in scope
166 | case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
167 | /// Public key pinning failed.
168 | case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
| `- error: cannot find type 'SecTrust' in scope
169 | /// Custom server trust evaluation failed due to the associated `Error`.
170 | case customEvaluationFailed(error: Error)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:168:81: error: cannot find type 'SecKey' in scope
166 | case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
167 | /// Public key pinning failed.
168 | case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
| `- error: cannot find type 'SecKey' in scope
169 | /// Custom server trust evaluation failed due to the associated `Error`.
170 | case customEvaluationFailed(error: Error)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:168:103: error: cannot find type 'SecKey' in scope
166 | case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
167 | /// Public key pinning failed.
168 | case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
| `- error: cannot find type 'SecKey' in scope
169 | /// Custom server trust evaluation failed due to the associated `Error`.
170 | case customEvaluationFailed(error: Error)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:331:24: error: value of type '[any ServerTrustEvaluating]' has no member 'evaluate'
329 |
330 | public func evaluate(_ trust: SecTrust, forHost host: String) throws {
331 | try evaluators.evaluate(trust, forHost: host)
| `- error: value of type '[any ServerTrustEvaluating]' has no member 'evaluate'
332 | }
333 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:440:22: error: cannot find 'SecTrustSetPolicies' in scope
438 | /// - Throws: An `AFError.serverTrustEvaluationFailed` instance with a `.policyApplicationFailed` reason.
439 | public func apply(policy: SecPolicy) throws -> SecTrust {
440 | let status = SecTrustSetPolicies(type, policy)
| `- error: cannot find 'SecTrustSetPolicies' in scope
441 |
442 | guard status.af.isSuccess else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:152:45: error: cannot find type 'SecTrust' in scope
150 | case noPublicKeysFound
151 | /// During evaluation, application of the associated `SecPolicy` failed.
152 | case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
| `- error: cannot find type 'SecTrust' in scope
153 | /// During evaluation, setting the associated anchor certificates failed.
154 | case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:152:63: error: cannot find type 'SecPolicy' in scope
150 | case noPublicKeysFound
151 | /// During evaluation, application of the associated `SecPolicy` failed.
152 | case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
| `- error: cannot find type 'SecPolicy' in scope
153 | /// During evaluation, setting the associated anchor certificates failed.
154 | case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:152:82: error: cannot find type 'OSStatus' in scope
150 | case noPublicKeysFound
151 | /// During evaluation, application of the associated `SecPolicy` failed.
152 | case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
| `- error: cannot find type 'OSStatus' in scope
153 | /// During evaluation, setting the associated anchor certificates failed.
154 | case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:457:20: error: cannot find type 'CFError' in scope
455 | @available(iOS 12, macOS 10.14, tvOS 12, watchOS 5, *)
456 | public func evaluate() throws {
457 | var error: CFError?
| `- error: cannot find type 'CFError' in scope
458 | let evaluationSucceeded = SecTrustEvaluateWithError(type, &error)
459 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:458:35: error: cannot find 'SecTrustEvaluateWithError' in scope
456 | public func evaluate() throws {
457 | var error: CFError?
458 | let evaluationSucceeded = SecTrustEvaluateWithError(type, &error)
| `- error: cannot find 'SecTrustEvaluateWithError' in scope
459 |
460 | if !evaluationSucceeded {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:475:22: error: cannot find 'SecTrustResultType' in scope
473 | @available(watchOS, introduced: 3, deprecated: 5, renamed: "evaluate()")
474 | public func validate(errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
475 | var result = SecTrustResultType.invalid
| `- error: cannot find 'SecTrustResultType' in scope
476 | let status = SecTrustEvaluate(type, &result)
477 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:476:22: error: cannot find 'SecTrustEvaluate' in scope
474 | public func validate(errorProducer: (_ status: OSStatus, _ result: SecTrustResultType) -> Error) throws {
475 | var result = SecTrustResultType.invalid
476 | let status = SecTrustEvaluate(type, &result)
| `- error: cannot find 'SecTrustEvaluate' in scope
477 |
478 | guard status.af.isSuccess && result.af.isSuccess else {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:489:22: error: cannot find 'SecTrustSetAnchorCertificates' in scope
487 | public func setAnchorCertificates(_ certificates: [SecCertificate]) throws {
488 | // Add additional anchor certificates.
489 | let status = SecTrustSetAnchorCertificates(type, certificates as CFArray)
| `- error: cannot find 'SecTrustSetAnchorCertificates' in scope
490 | guard status.af.isSuccess else {
491 | throw AFError.serverTrustEvaluationFailed(reason: .settingAnchorCertificatesFailed(status: status,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:489:74: error: cannot find type 'CFArray' in scope
487 | public func setAnchorCertificates(_ certificates: [SecCertificate]) throws {
488 | // Add additional anchor certificates.
489 | let status = SecTrustSetAnchorCertificates(type, certificates as CFArray)
| `- error: cannot find type 'CFArray' in scope
490 | guard status.af.isSuccess else {
491 | throw AFError.serverTrustEvaluationFailed(reason: .settingAnchorCertificatesFailed(status: status,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:154:54: error: cannot find type 'OSStatus' in scope
152 | case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
153 | /// During evaluation, setting the associated anchor certificates failed.
154 | case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
| `- error: cannot find type 'OSStatus' in scope
155 | /// During evaluation, creation of the revocation policy failed.
156 | case revocationPolicyCreationFailed
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:154:79: error: cannot find type 'SecCertificate' in scope
152 | case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
153 | /// During evaluation, setting the associated anchor certificates failed.
154 | case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
| `- error: cannot find type 'SecCertificate' in scope
155 | /// During evaluation, creation of the revocation policy failed.
156 | case revocationPolicyCreationFailed
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:496:26: error: cannot find 'SecTrustSetAnchorCertificatesOnly' in scope
494 |
495 | // Trust only the set anchor certs.
496 | let onlyStatus = SecTrustSetAnchorCertificatesOnly(type, true)
| `- error: cannot find 'SecTrustSetAnchorCertificatesOnly' in scope
497 | guard onlyStatus.af.isSuccess else {
498 | throw AFError.serverTrustEvaluationFailed(reason: .settingAnchorCertificatesFailed(status: onlyStatus,
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:526:41: error: cannot find 'SecPolicy' in scope
524 | public func performDefaultValidation(forHost host: String) throws {
525 | if #available(iOS 12, macOS 10.14, tvOS 12, watchOS 5, *) {
526 | try evaluate(afterApplying: SecPolicy.af.default)
| `- error: cannot find 'SecPolicy' in scope
527 | } else {
528 | try validate(policy: SecPolicy.af.default) { status, result in
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:528:34: error: cannot find 'SecPolicy' in scope
526 | try evaluate(afterApplying: SecPolicy.af.default)
527 | } else {
528 | try validate(policy: SecPolicy.af.default) { status, result in
| `- error: cannot find 'SecPolicy' in scope
529 | AFError.serverTrustEvaluationFailed(reason: .defaultEvaluationFailed(output: .init(host, type, status, result)))
530 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:541:41: error: cannot find 'SecPolicy' in scope
539 | public func performValidation(forHost host: String) throws {
540 | if #available(iOS 12, macOS 10.14, tvOS 12, watchOS 5, *) {
541 | try evaluate(afterApplying: SecPolicy.af.hostname(host))
| `- error: cannot find 'SecPolicy' in scope
542 | } else {
543 | try validate(policy: SecPolicy.af.hostname(host)) { status, result in
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:543:34: error: cannot find 'SecPolicy' in scope
541 | try evaluate(afterApplying: SecPolicy.af.hostname(host))
542 | } else {
543 | try validate(policy: SecPolicy.af.hostname(host)) { status, result in
| `- error: cannot find 'SecPolicy' in scope
544 | AFError.serverTrustEvaluationFailed(reason: .hostValidationFailed(output: .init(host, type, status, result)))
545 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:572:28: error: cannot find 'SecPolicyCreateRevocation' in scope
570 | /// if the policy cannot be created.
571 | public static func revocation(options: RevocationTrustEvaluator.Options) throws -> SecPolicy {
572 | guard let policy = SecPolicyCreateRevocation(options.rawValue) else {
| `- error: cannot find 'SecPolicyCreateRevocation' in scope
573 | throw AFError.serverTrustEvaluationFailed(reason: .revocationPolicyCreationFailed)
574 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:584:20: error: cannot find 'SecCertificateCopyData' in scope
582 | /// All `Data` values for the contained `SecCertificate`s.
583 | public var data: [Data] {
584 | type.map { SecCertificateCopyData($0) as Data }
| `- error: cannot find 'SecCertificateCopyData' in scope
585 | }
586 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:597:22: error: cannot find 'SecPolicyCreateBasicX509' in scope
595 | /// The public key for `self`, if it can be extracted.
596 | public var publicKey: SecKey? {
597 | let policy = SecPolicyCreateBasicX509()
| `- error: cannot find 'SecPolicyCreateBasicX509' in scope
598 | var trust: SecTrust?
599 | let trustCreationStatus = SecTrustCreateWithCertificates(type, policy, &trust)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:598:20: error: cannot find type 'SecTrust' in scope
596 | public var publicKey: SecKey? {
597 | let policy = SecPolicyCreateBasicX509()
598 | var trust: SecTrust?
| `- error: cannot find type 'SecTrust' in scope
599 | let trustCreationStatus = SecTrustCreateWithCertificates(type, policy, &trust)
600 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:599:35: error: cannot find 'SecTrustCreateWithCertificates' in scope
597 | let policy = SecPolicyCreateBasicX509()
598 | var trust: SecTrust?
599 | let trustCreationStatus = SecTrustCreateWithCertificates(type, policy, &trust)
| `- error: cannot find 'SecTrustCreateWithCertificates' in scope
600 |
601 | guard let createdTrust = trust, trustCreationStatus == errSecSuccess else { return nil }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:601:64: error: cannot find 'errSecSuccess' in scope
599 | let trustCreationStatus = SecTrustCreateWithCertificates(type, policy, &trust)
600 |
601 | guard let createdTrust = trust, trustCreationStatus == errSecSuccess else { return nil }
| `- error: cannot find 'errSecSuccess' in scope
602 |
603 | return SecTrustCopyPublicKey(createdTrust)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:610:42: error: cannot find 'errSecSuccess' in scope
608 | extension AlamofireExtension where ExtendedType == OSStatus {
609 | /// Returns whether `self` is `errSecSuccess`.
610 | public var isSuccess: Bool { type == errSecSuccess }
| `- error: cannot find 'errSecSuccess' in scope
611 | }
612 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:617:43: error: cannot infer contextual base in reference to member 'proceed'
615 | /// Returns whether `self is `.unspecified` or `.proceed`.
616 | public var isSuccess: Bool {
617 | (type == .unspecified || type == .proceed)
| `- error: cannot infer contextual base in reference to member 'proceed'
618 | }
619 | }
[31/39] Compiling Alamofire ParameterEncoder.swift
/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/ParameterEncoder.swift:76:59: error: cannot find type 'URLRequest' in scope
74 |
75 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
76 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
77 | guard let parameters = parameters else { return request }
78 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:76:81: error: cannot find type 'URLRequest' in scope
74 |
75 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
76 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
77 | guard let parameters = parameters else { return request }
78 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:147:59: error: cannot find type 'URLRequest' in scope
145 |
146 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
147 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
148 | guard let parameters = parameters else { return request }
149 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:147:81: error: cannot find type 'URLRequest' in scope
145 |
146 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
147 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
148 | guard let parameters = parameters else { return request }
149 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:85:41: error: cannot infer contextual base in reference to member 'contentType'
83 | request.httpBody = data
84 | if request.headers["Content-Type"] == nil {
85 | request.headers.update(.contentType("application/json"))
| `- error: cannot infer contextual base in reference to member 'contentType'
86 | }
87 | } catch {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:175:41: error: cannot infer contextual base in reference to member 'contentType'
173 | } else {
174 | if request.headers["Content-Type"] == nil {
175 | request.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
| `- error: cannot infer contextual base in reference to member 'contentType'
176 | }
177 |
/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/ParameterEncoding.swift:155:101: error: cannot find type 'URLRequest' in scope
153 | // MARK: Encoding
154 |
155 | public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
156 | var urlRequest = try urlRequest.asURLRequest()
157 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:260:101: error: cannot find type 'URLRequest' in scope
258 | // MARK: Encoding
259 |
260 | public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
261 | var urlRequest = try urlRequest.asURLRequest()
262 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:288:110: error: cannot find type 'URLRequest' in scope
286 | /// - Returns: The encoded `URLRequest`.
287 | /// - Throws: Any `Error` produced during encoding.
288 | public func encode(_ urlRequest: URLRequestConvertible, withJSONObject jsonObject: Any? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
289 | var urlRequest = try urlRequest.asURLRequest()
290 |
/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/ParameterEncoding.swift:172:44: error: cannot infer contextual base in reference to member 'contentType'
170 | } else {
171 | if urlRequest.headers["Content-Type"] == nil {
172 | urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
| `- error: cannot infer contextual base in reference to member 'contentType'
173 | }
174 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:269:44: error: cannot infer contextual base in reference to member 'contentType'
267 |
268 | if urlRequest.headers["Content-Type"] == nil {
269 | urlRequest.headers.update(.contentType("application/json"))
| `- error: cannot infer contextual base in reference to member 'contentType'
270 | }
271 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:297:44: error: cannot infer contextual base in reference to member 'contentType'
295 |
296 | if urlRequest.headers["Content-Type"] == nil {
297 | urlRequest.headers.update(.contentType("application/json"))
| `- error: cannot infer contextual base in reference to member 'contentType'
298 | }
299 |
/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/RedirectHandler.swift:42:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - response: The `HTTPURLResponse` containing the server's response to the original request.
41 | /// - completion: The closure to execute containing the new `URLRequest`, a modified `URLRequest`, or `nil`.
42 | func task(_ task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | willBeRedirectedTo request: URLRequest,
44 | for response: HTTPURLResponse,
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/RedirectHandler.swift:44:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | func task(_ task: URLSessionTask,
43 | willBeRedirectedTo request: URLRequest,
44 | for response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completion: @escaping (URLRequest?) -> Void)
46 | }
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/RedirectHandler.swift:59:38: error: cannot find type 'URLRequest' in scope
57 | case doNotFollow
58 | /// Modify the redirect request defined in the response.
59 | case modify((URLSessionTask, URLRequest, HTTPURLResponse) -> URLRequest?)
| `- error: cannot find type 'URLRequest' in scope
60 | }
61 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:59:70: error: cannot find type 'URLRequest' in scope
57 | case doNotFollow
58 | /// Modify the redirect request defined in the response.
59 | case modify((URLSessionTask, URLRequest, HTTPURLResponse) -> URLRequest?)
| `- error: cannot find type 'URLRequest' in scope
60 | }
61 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:82:50: error: cannot find type 'URLRequest' in scope
80 | extension Redirector: RedirectHandler {
81 | public func task(_ task: URLSessionTask,
82 | willBeRedirectedTo request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
83 | for response: HTTPURLResponse,
84 | completion: @escaping (URLRequest?) -> Void) {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:84:45: error: cannot find type 'URLRequest' in scope
82 | willBeRedirectedTo request: URLRequest,
83 | for response: HTTPURLResponse,
84 | completion: @escaping (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
85 | switch behavior {
86 | case .follow:
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:81:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 |
80 | extension Redirector: RedirectHandler {
81 | public func task(_ task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | willBeRedirectedTo request: URLRequest,
83 | for response: HTTPURLResponse,
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/RedirectHandler.swift:83:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 | public func task(_ task: URLSessionTask,
82 | willBeRedirectedTo request: URLRequest,
83 | for response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | completion: @escaping (URLRequest?) -> Void) {
85 | switch behavior {
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/RedirectHandler.swift:89:24: error: 'nil' requires a contextual type
87 | completion(request)
88 | case .doNotFollow:
89 | completion(nil)
| `- error: 'nil' requires a contextual type
90 | case let .modify(closure):
91 | let request = closure(task, request, response)
[32/39] Compiling Alamofire ParameterEncoding.swift
/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/ParameterEncoder.swift:76:59: error: cannot find type 'URLRequest' in scope
74 |
75 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
76 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
77 | guard let parameters = parameters else { return request }
78 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:76:81: error: cannot find type 'URLRequest' in scope
74 |
75 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
76 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
77 | guard let parameters = parameters else { return request }
78 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:147:59: error: cannot find type 'URLRequest' in scope
145 |
146 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
147 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
148 | guard let parameters = parameters else { return request }
149 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:147:81: error: cannot find type 'URLRequest' in scope
145 |
146 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
147 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
148 | guard let parameters = parameters else { return request }
149 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:85:41: error: cannot infer contextual base in reference to member 'contentType'
83 | request.httpBody = data
84 | if request.headers["Content-Type"] == nil {
85 | request.headers.update(.contentType("application/json"))
| `- error: cannot infer contextual base in reference to member 'contentType'
86 | }
87 | } catch {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:175:41: error: cannot infer contextual base in reference to member 'contentType'
173 | } else {
174 | if request.headers["Content-Type"] == nil {
175 | request.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
| `- error: cannot infer contextual base in reference to member 'contentType'
176 | }
177 |
/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/ParameterEncoding.swift:155:101: error: cannot find type 'URLRequest' in scope
153 | // MARK: Encoding
154 |
155 | public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
156 | var urlRequest = try urlRequest.asURLRequest()
157 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:260:101: error: cannot find type 'URLRequest' in scope
258 | // MARK: Encoding
259 |
260 | public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
261 | var urlRequest = try urlRequest.asURLRequest()
262 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:288:110: error: cannot find type 'URLRequest' in scope
286 | /// - Returns: The encoded `URLRequest`.
287 | /// - Throws: Any `Error` produced during encoding.
288 | public func encode(_ urlRequest: URLRequestConvertible, withJSONObject jsonObject: Any? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
289 | var urlRequest = try urlRequest.asURLRequest()
290 |
/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/ParameterEncoding.swift:172:44: error: cannot infer contextual base in reference to member 'contentType'
170 | } else {
171 | if urlRequest.headers["Content-Type"] == nil {
172 | urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
| `- error: cannot infer contextual base in reference to member 'contentType'
173 | }
174 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:269:44: error: cannot infer contextual base in reference to member 'contentType'
267 |
268 | if urlRequest.headers["Content-Type"] == nil {
269 | urlRequest.headers.update(.contentType("application/json"))
| `- error: cannot infer contextual base in reference to member 'contentType'
270 | }
271 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:297:44: error: cannot infer contextual base in reference to member 'contentType'
295 |
296 | if urlRequest.headers["Content-Type"] == nil {
297 | urlRequest.headers.update(.contentType("application/json"))
| `- error: cannot infer contextual base in reference to member 'contentType'
298 | }
299 |
/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/RedirectHandler.swift:42:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - response: The `HTTPURLResponse` containing the server's response to the original request.
41 | /// - completion: The closure to execute containing the new `URLRequest`, a modified `URLRequest`, or `nil`.
42 | func task(_ task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | willBeRedirectedTo request: URLRequest,
44 | for response: HTTPURLResponse,
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/RedirectHandler.swift:44:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | func task(_ task: URLSessionTask,
43 | willBeRedirectedTo request: URLRequest,
44 | for response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completion: @escaping (URLRequest?) -> Void)
46 | }
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/RedirectHandler.swift:59:38: error: cannot find type 'URLRequest' in scope
57 | case doNotFollow
58 | /// Modify the redirect request defined in the response.
59 | case modify((URLSessionTask, URLRequest, HTTPURLResponse) -> URLRequest?)
| `- error: cannot find type 'URLRequest' in scope
60 | }
61 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:59:70: error: cannot find type 'URLRequest' in scope
57 | case doNotFollow
58 | /// Modify the redirect request defined in the response.
59 | case modify((URLSessionTask, URLRequest, HTTPURLResponse) -> URLRequest?)
| `- error: cannot find type 'URLRequest' in scope
60 | }
61 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:82:50: error: cannot find type 'URLRequest' in scope
80 | extension Redirector: RedirectHandler {
81 | public func task(_ task: URLSessionTask,
82 | willBeRedirectedTo request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
83 | for response: HTTPURLResponse,
84 | completion: @escaping (URLRequest?) -> Void) {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:84:45: error: cannot find type 'URLRequest' in scope
82 | willBeRedirectedTo request: URLRequest,
83 | for response: HTTPURLResponse,
84 | completion: @escaping (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
85 | switch behavior {
86 | case .follow:
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:81:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 |
80 | extension Redirector: RedirectHandler {
81 | public func task(_ task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | willBeRedirectedTo request: URLRequest,
83 | for response: HTTPURLResponse,
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/RedirectHandler.swift:83:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 | public func task(_ task: URLSessionTask,
82 | willBeRedirectedTo request: URLRequest,
83 | for response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | completion: @escaping (URLRequest?) -> Void) {
85 | switch behavior {
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/RedirectHandler.swift:89:24: error: 'nil' requires a contextual type
87 | completion(request)
88 | case .doNotFollow:
89 | completion(nil)
| `- error: 'nil' requires a contextual type
90 | case let .modify(closure):
91 | let request = closure(task, request, response)
[33/39] Compiling Alamofire Protected.swift
/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/ParameterEncoder.swift:76:59: error: cannot find type 'URLRequest' in scope
74 |
75 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
76 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
77 | guard let parameters = parameters else { return request }
78 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:76:81: error: cannot find type 'URLRequest' in scope
74 |
75 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
76 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
77 | guard let parameters = parameters else { return request }
78 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:147:59: error: cannot find type 'URLRequest' in scope
145 |
146 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
147 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
148 | guard let parameters = parameters else { return request }
149 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:147:81: error: cannot find type 'URLRequest' in scope
145 |
146 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
147 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
148 | guard let parameters = parameters else { return request }
149 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:85:41: error: cannot infer contextual base in reference to member 'contentType'
83 | request.httpBody = data
84 | if request.headers["Content-Type"] == nil {
85 | request.headers.update(.contentType("application/json"))
| `- error: cannot infer contextual base in reference to member 'contentType'
86 | }
87 | } catch {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:175:41: error: cannot infer contextual base in reference to member 'contentType'
173 | } else {
174 | if request.headers["Content-Type"] == nil {
175 | request.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
| `- error: cannot infer contextual base in reference to member 'contentType'
176 | }
177 |
/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/ParameterEncoding.swift:155:101: error: cannot find type 'URLRequest' in scope
153 | // MARK: Encoding
154 |
155 | public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
156 | var urlRequest = try urlRequest.asURLRequest()
157 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:260:101: error: cannot find type 'URLRequest' in scope
258 | // MARK: Encoding
259 |
260 | public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
261 | var urlRequest = try urlRequest.asURLRequest()
262 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:288:110: error: cannot find type 'URLRequest' in scope
286 | /// - Returns: The encoded `URLRequest`.
287 | /// - Throws: Any `Error` produced during encoding.
288 | public func encode(_ urlRequest: URLRequestConvertible, withJSONObject jsonObject: Any? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
289 | var urlRequest = try urlRequest.asURLRequest()
290 |
/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/ParameterEncoding.swift:172:44: error: cannot infer contextual base in reference to member 'contentType'
170 | } else {
171 | if urlRequest.headers["Content-Type"] == nil {
172 | urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
| `- error: cannot infer contextual base in reference to member 'contentType'
173 | }
174 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:269:44: error: cannot infer contextual base in reference to member 'contentType'
267 |
268 | if urlRequest.headers["Content-Type"] == nil {
269 | urlRequest.headers.update(.contentType("application/json"))
| `- error: cannot infer contextual base in reference to member 'contentType'
270 | }
271 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:297:44: error: cannot infer contextual base in reference to member 'contentType'
295 |
296 | if urlRequest.headers["Content-Type"] == nil {
297 | urlRequest.headers.update(.contentType("application/json"))
| `- error: cannot infer contextual base in reference to member 'contentType'
298 | }
299 |
/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/RedirectHandler.swift:42:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - response: The `HTTPURLResponse` containing the server's response to the original request.
41 | /// - completion: The closure to execute containing the new `URLRequest`, a modified `URLRequest`, or `nil`.
42 | func task(_ task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | willBeRedirectedTo request: URLRequest,
44 | for response: HTTPURLResponse,
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/RedirectHandler.swift:44:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | func task(_ task: URLSessionTask,
43 | willBeRedirectedTo request: URLRequest,
44 | for response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completion: @escaping (URLRequest?) -> Void)
46 | }
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/RedirectHandler.swift:59:38: error: cannot find type 'URLRequest' in scope
57 | case doNotFollow
58 | /// Modify the redirect request defined in the response.
59 | case modify((URLSessionTask, URLRequest, HTTPURLResponse) -> URLRequest?)
| `- error: cannot find type 'URLRequest' in scope
60 | }
61 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:59:70: error: cannot find type 'URLRequest' in scope
57 | case doNotFollow
58 | /// Modify the redirect request defined in the response.
59 | case modify((URLSessionTask, URLRequest, HTTPURLResponse) -> URLRequest?)
| `- error: cannot find type 'URLRequest' in scope
60 | }
61 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:82:50: error: cannot find type 'URLRequest' in scope
80 | extension Redirector: RedirectHandler {
81 | public func task(_ task: URLSessionTask,
82 | willBeRedirectedTo request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
83 | for response: HTTPURLResponse,
84 | completion: @escaping (URLRequest?) -> Void) {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:84:45: error: cannot find type 'URLRequest' in scope
82 | willBeRedirectedTo request: URLRequest,
83 | for response: HTTPURLResponse,
84 | completion: @escaping (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
85 | switch behavior {
86 | case .follow:
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:81:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 |
80 | extension Redirector: RedirectHandler {
81 | public func task(_ task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | willBeRedirectedTo request: URLRequest,
83 | for response: HTTPURLResponse,
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/RedirectHandler.swift:83:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 | public func task(_ task: URLSessionTask,
82 | willBeRedirectedTo request: URLRequest,
83 | for response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | completion: @escaping (URLRequest?) -> Void) {
85 | switch behavior {
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/RedirectHandler.swift:89:24: error: 'nil' requires a contextual type
87 | completion(request)
88 | case .doNotFollow:
89 | completion(nil)
| `- error: 'nil' requires a contextual type
90 | case let .modify(closure):
91 | let request = closure(task, request, response)
[34/39] Compiling Alamofire RedirectHandler.swift
/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/ParameterEncoder.swift:76:59: error: cannot find type 'URLRequest' in scope
74 |
75 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
76 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
77 | guard let parameters = parameters else { return request }
78 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:76:81: error: cannot find type 'URLRequest' in scope
74 |
75 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
76 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
77 | guard let parameters = parameters else { return request }
78 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:147:59: error: cannot find type 'URLRequest' in scope
145 |
146 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
147 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
148 | guard let parameters = parameters else { return request }
149 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:147:81: error: cannot find type 'URLRequest' in scope
145 |
146 | open func encode<Parameters: Encodable>(_ parameters: Parameters?,
147 | into request: URLRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
148 | guard let parameters = parameters else { return request }
149 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:85:41: error: cannot infer contextual base in reference to member 'contentType'
83 | request.httpBody = data
84 | if request.headers["Content-Type"] == nil {
85 | request.headers.update(.contentType("application/json"))
| `- error: cannot infer contextual base in reference to member 'contentType'
86 | }
87 | } catch {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift:175:41: error: cannot infer contextual base in reference to member 'contentType'
173 | } else {
174 | if request.headers["Content-Type"] == nil {
175 | request.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
| `- error: cannot infer contextual base in reference to member 'contentType'
176 | }
177 |
/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/ParameterEncoding.swift:155:101: error: cannot find type 'URLRequest' in scope
153 | // MARK: Encoding
154 |
155 | public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
156 | var urlRequest = try urlRequest.asURLRequest()
157 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:260:101: error: cannot find type 'URLRequest' in scope
258 | // MARK: Encoding
259 |
260 | public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
261 | var urlRequest = try urlRequest.asURLRequest()
262 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:288:110: error: cannot find type 'URLRequest' in scope
286 | /// - Returns: The encoded `URLRequest`.
287 | /// - Throws: Any `Error` produced during encoding.
288 | public func encode(_ urlRequest: URLRequestConvertible, withJSONObject jsonObject: Any? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
289 | var urlRequest = try urlRequest.asURLRequest()
290 |
/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/ParameterEncoding.swift:172:44: error: cannot infer contextual base in reference to member 'contentType'
170 | } else {
171 | if urlRequest.headers["Content-Type"] == nil {
172 | urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
| `- error: cannot infer contextual base in reference to member 'contentType'
173 | }
174 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:269:44: error: cannot infer contextual base in reference to member 'contentType'
267 |
268 | if urlRequest.headers["Content-Type"] == nil {
269 | urlRequest.headers.update(.contentType("application/json"))
| `- error: cannot infer contextual base in reference to member 'contentType'
270 | }
271 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift:297:44: error: cannot infer contextual base in reference to member 'contentType'
295 |
296 | if urlRequest.headers["Content-Type"] == nil {
297 | urlRequest.headers.update(.contentType("application/json"))
| `- error: cannot infer contextual base in reference to member 'contentType'
298 | }
299 |
/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/RedirectHandler.swift:42:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - response: The `HTTPURLResponse` containing the server's response to the original request.
41 | /// - completion: The closure to execute containing the new `URLRequest`, a modified `URLRequest`, or `nil`.
42 | func task(_ task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | willBeRedirectedTo request: URLRequest,
44 | for response: HTTPURLResponse,
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/RedirectHandler.swift:44:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | func task(_ task: URLSessionTask,
43 | willBeRedirectedTo request: URLRequest,
44 | for response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | completion: @escaping (URLRequest?) -> Void)
46 | }
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/RedirectHandler.swift:59:38: error: cannot find type 'URLRequest' in scope
57 | case doNotFollow
58 | /// Modify the redirect request defined in the response.
59 | case modify((URLSessionTask, URLRequest, HTTPURLResponse) -> URLRequest?)
| `- error: cannot find type 'URLRequest' in scope
60 | }
61 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:59:70: error: cannot find type 'URLRequest' in scope
57 | case doNotFollow
58 | /// Modify the redirect request defined in the response.
59 | case modify((URLSessionTask, URLRequest, HTTPURLResponse) -> URLRequest?)
| `- error: cannot find type 'URLRequest' in scope
60 | }
61 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:82:50: error: cannot find type 'URLRequest' in scope
80 | extension Redirector: RedirectHandler {
81 | public func task(_ task: URLSessionTask,
82 | willBeRedirectedTo request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
83 | for response: HTTPURLResponse,
84 | completion: @escaping (URLRequest?) -> Void) {
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:84:45: error: cannot find type 'URLRequest' in scope
82 | willBeRedirectedTo request: URLRequest,
83 | for response: HTTPURLResponse,
84 | completion: @escaping (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
85 | switch behavior {
86 | case .follow:
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift:81:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 |
80 | extension Redirector: RedirectHandler {
81 | public func task(_ task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | willBeRedirectedTo request: URLRequest,
83 | for response: HTTPURLResponse,
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/RedirectHandler.swift:83:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 | public func task(_ task: URLSessionTask,
82 | willBeRedirectedTo request: URLRequest,
83 | for response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | completion: @escaping (URLRequest?) -> Void) {
85 | switch behavior {
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/RedirectHandler.swift:89:24: error: 'nil' requires a contextual type
87 | completion(request)
88 | case .doNotFollow:
89 | completion(nil)
| `- error: 'nil' requires a contextual type
90 | case let .modify(closure):
91 | let request = closure(task, request, response)
error: compile command failed due to signal 6 (use -v to see invocation)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:130:31: error: cannot find type 'SecTrust' in scope
128 | public let host: String
129 | /// The `SecTrust` value which was evaluated.
130 | public let trust: SecTrust
| `- error: cannot find type 'SecTrust' in scope
131 | /// The `OSStatus` of evaluation operation.
132 | public let status: OSStatus
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:132:32: error: cannot find type 'OSStatus' in scope
130 | public let trust: SecTrust
131 | /// The `OSStatus` of evaluation operation.
132 | public let status: OSStatus
| `- error: cannot find type 'OSStatus' in scope
133 | /// The result of the evaluation operation.
134 | public let result: SecTrustResultType
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:134:32: error: cannot find type 'SecTrustResultType' in scope
132 | public let status: OSStatus
133 | /// The result of the evaluation operation.
134 | public let result: SecTrustResultType
| `- error: cannot find type 'SecTrustResultType' in scope
135 |
136 | /// Creates an `Output` value from the provided values.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:137:43: error: cannot find type 'SecTrust' in scope
135 |
136 | /// Creates an `Output` value from the provided values.
137 | init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
| `- error: cannot find type 'SecTrust' in scope
138 | self.host = host
139 | self.trust = trust
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:137:63: error: cannot find type 'OSStatus' in scope
135 |
136 | /// Creates an `Output` value from the provided values.
137 | init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
| `- error: cannot find type 'OSStatus' in scope
138 | self.host = host
139 | self.trust = trust
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:137:83: error: cannot find type 'SecTrustResultType' in scope
135 |
136 | /// Creates an `Output` value from the provided values.
137 | init(_ host: String, _ trust: SecTrust, _ status: OSStatus, _ result: SecTrustResultType) {
| `- error: cannot find type 'SecTrustResultType' in scope
138 | self.host = host
139 | self.trust = trust
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:152:45: error: cannot find type 'SecTrust' in scope
150 | case noPublicKeysFound
151 | /// During evaluation, application of the associated `SecPolicy` failed.
152 | case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
| `- error: cannot find type 'SecTrust' in scope
153 | /// During evaluation, setting the associated anchor certificates failed.
154 | case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:152:63: error: cannot find type 'SecPolicy' in scope
150 | case noPublicKeysFound
151 | /// During evaluation, application of the associated `SecPolicy` failed.
152 | case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
| `- error: cannot find type 'SecPolicy' in scope
153 | /// During evaluation, setting the associated anchor certificates failed.
154 | case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:152:82: error: cannot find type 'OSStatus' in scope
150 | case noPublicKeysFound
151 | /// During evaluation, application of the associated `SecPolicy` failed.
152 | case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
| `- error: cannot find type 'OSStatus' in scope
153 | /// During evaluation, setting the associated anchor certificates failed.
154 | case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:154:54: error: cannot find type 'OSStatus' in scope
152 | case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
153 | /// During evaluation, setting the associated anchor certificates failed.
154 | case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
| `- error: cannot find type 'OSStatus' in scope
155 | /// During evaluation, creation of the revocation policy failed.
156 | case revocationPolicyCreationFailed
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:154:79: error: cannot find type 'SecCertificate' in scope
152 | case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus)
153 | /// During evaluation, setting the associated anchor certificates failed.
154 | case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate])
| `- error: cannot find type 'SecCertificate' in scope
155 | /// During evaluation, creation of the revocation policy failed.
156 | case revocationPolicyCreationFailed
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:60: error: cannot find type 'SecTrust' in scope
164 | case revocationCheckFailed(output: Output, options: RevocationTrustEvaluator.Options)
165 | /// Certificate pinning failed.
166 | case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
| `- error: cannot find type 'SecTrust' in scope
167 | /// Public key pinning failed.
168 | case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:91: error: cannot find type 'SecCertificate' in scope
164 | case revocationCheckFailed(output: Output, options: RevocationTrustEvaluator.Options)
165 | /// Certificate pinning failed.
166 | case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
| `- error: cannot find type 'SecCertificate' in scope
167 | /// Public key pinning failed.
168 | case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:129: error: cannot find type 'SecCertificate' in scope
164 | case revocationCheckFailed(output: Output, options: RevocationTrustEvaluator.Options)
165 | /// Certificate pinning failed.
166 | case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
| `- error: cannot find type 'SecCertificate' in scope
167 | /// Public key pinning failed.
168 | case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:168:58: error: cannot find type 'SecTrust' in scope
166 | case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
167 | /// Public key pinning failed.
168 | case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
| `- error: cannot find type 'SecTrust' in scope
169 | /// Custom server trust evaluation failed due to the associated `Error`.
170 | case customEvaluationFailed(error: Error)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:168:81: error: cannot find type 'SecKey' in scope
166 | case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
167 | /// Public key pinning failed.
168 | case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
| `- error: cannot find type 'SecKey' in scope
169 | /// Custom server trust evaluation failed due to the associated `Error`.
170 | case customEvaluationFailed(error: Error)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:168:103: error: cannot find type 'SecKey' in scope
166 | case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate])
167 | /// Public key pinning failed.
168 | case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey])
| `- error: cannot find type 'SecKey' in scope
169 | /// Custom server trust evaluation failed due to the associated `Error`.
170 | case customEvaluationFailed(error: Error)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift:139:30: error: cannot find type 'CFOptionFlags' in scope
137 |
138 | /// The raw value of the option.
139 | public let rawValue: CFOptionFlags
| `- error: cannot find type 'CFOptionFlags' in scope
140 |
141 | /// Creates an `Options` value with the given `CFOptionFlags`.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AuthenticationInterceptor.swift:59:63: error: cannot find type 'URLRequest' in scope
57 | /// - credential: The `Credential`.
58 | /// - urlRequest: The `URLRequest`.
59 | func apply(_ credential: Credential, to urlRequest: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
60 |
61 | /// Refreshes the `Credential` and executes the `completion` closure with the `Result` once complete.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AuthenticationInterceptor.swift:109:35: error: cannot find type 'URLRequest' in scope
107 | ///
108 | /// - Returns: `true` if the `URLRequest` failed due to an authentication error, `false` otherwise.
109 | func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse, failDueToAuthenticationError error: Error) -> Bool
| `- error: cannot find type 'URLRequest' in scope
110 |
111 | /// Determines whether the `URLRequest` is authenticated with the `Credential`.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AuthenticationInterceptor.swift:109:62: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | ///
108 | /// - Returns: `true` if the `URLRequest` failed due to an authentication error, `false` otherwise.
109 | func didRequest(_ urlRequest: URLRequest, with response: HTTPURLResponse, failDueToAuthenticationError error: Error) -> Bool
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |
111 | /// Determines whether the `URLRequest` is authenticated with the `Credential`.
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/AuthenticationInterceptor.swift:141:34: error: cannot find type 'URLRequest' in scope
139 | ///
140 | /// - Returns: `true` if the `URLRequest` is authenticated with the `Credential`, `false` otherwise.
141 | func isRequest(_ urlRequest: URLRequest, authenticatedWith credential: Credential) -> Bool
| `- error: cannot find type 'URLRequest' in scope
142 | }
143 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AuthenticationInterceptor.swift:194:25: error: cannot find type 'URLRequest' in scope
192 |
193 | private struct AdaptOperation {
194 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
195 | let session: Session
196 | let completion: (Result<URLRequest, Error>) -> Void
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AuthenticationInterceptor.swift:196:33: error: cannot find type 'URLRequest' in scope
194 | let urlRequest: URLRequest
195 | let session: Session
196 | let completion: (Result<URLRequest, Error>) -> Void
| `- error: cannot find type 'URLRequest' in scope
197 | }
198 |
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AuthenticationInterceptor.swift:251:37: error: cannot find type 'URLRequest' in scope
249 | // MARK: Adapt
250 |
251 | public func adapt(_ urlRequest: URLRequest, for session: Session, completion: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
252 | let adaptResult: AdaptResult = $mutableState.write { mutableState in
253 | // Queue the adapt operation if a refresh is already in place.
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AuthenticationInterceptor.swift:251:101: error: cannot find type 'URLRequest' in scope
249 | // MARK: Adapt
250 |
251 | public func adapt(_ urlRequest: URLRequest, for session: Session, completion: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
252 | let adaptResult: AdaptResult = $mutableState.write { mutableState in
253 | // Queue the adapt operation if a refresh is already in place.
/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/AuthenticationInterceptor.swift:281:25: error: cannot infer contextual base in reference to member 'success'
279 | var authenticatedRequest = urlRequest
280 | authenticator.apply(credential, to: &authenticatedRequest)
281 | completion(.success(authenticatedRequest))
| `- error: cannot infer contextual base in reference to member 'success'
282 |
283 | case let .doNotAdapt(adaptError):
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AuthenticationInterceptor.swift:284:25: error: cannot infer contextual base in reference to member 'failure'
282 |
283 | case let .doNotAdapt(adaptError):
284 | completion(.failure(adaptError))
| `- error: cannot infer contextual base in reference to member 'failure'
285 |
286 | case .adaptDeferred:
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:202:25: error: cannot find type 'URLRequest' in scope
200 | public var lastRequest: URLRequest? { requests.last }
201 | /// Current `URLRequest` created on behalf of the `Request`.
202 | public var request: URLRequest? { lastRequest }
| `- error: cannot find type 'URLRequest' in scope
203 |
204 | /// `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/RequestInterceptor.swift:96:37: error: cannot find type 'URLRequest' in scope
94 |
95 | extension RequestInterceptor {
96 | public func adapt(_ urlRequest: URLRequest, for session: Session, completion: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
97 | completion(.success(urlRequest))
98 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestInterceptor.swift:96:101: error: cannot find type 'URLRequest' in scope
94 |
95 | extension RequestInterceptor {
96 | public func adapt(_ urlRequest: URLRequest, for session: Session, completion: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
97 | completion(.success(urlRequest))
98 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AuthenticationInterceptor.swift:383:21: error: trailing closure passed to parameter of type 'DispatchWorkItem' that does not accept a closure
381 |
382 | // Dispatch to queue to hop out of the mutable state lock
383 | queue.async {
| `- error: trailing closure passed to parameter of type 'DispatchWorkItem' that does not accept a closure
384 | adaptOperations.forEach { self.adapt($0.urlRequest, for: $0.session, completion: $0.completion) }
385 | requestsToRetry.forEach { $0(.retry) }
Dispatch.DispatchQueue:62:17: note: 'async(execute:)' declared here
60 | public func sync(execute workItem: DispatchWorkItem)
61 | @available(macOS 10.10, iOS 8.0, *)
62 | public func async(execute workItem: DispatchWorkItem)
| `- note: 'async(execute:)' declared here
63 | @available(macOS 10.10, iOS 8.0, *)
64 | public func async(group: DispatchGroup, execute workItem: DispatchWorkItem)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AuthenticationInterceptor.swift:400:54: error: cannot infer contextual base in reference to member 'failure'
398 | // Dispatch to queue to hop out of the mutable state lock
399 | queue.async {
400 | adaptOperations.forEach { $0.completion(.failure(error)) }
| `- error: cannot infer contextual base in reference to member 'failure'
401 | requestsToRetry.forEach { $0(.doNotRetryWithError(error)) }
402 | }
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/CachedResponseHandler.swift:41:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | /// - response: The cached response to potentially store in the cache.
40 | /// - completion: The closure to execute containing cached response, a modified response, or `nil`.
41 | func dataTask(_ task: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | willCacheResponse response: CachedURLResponse,
43 | completion: @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/CachedResponseHandler.swift:42:47: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// - completion: The closure to execute containing cached response, a modified response, or `nil`.
41 | func dataTask(_ task: URLSessionDataTask,
42 | willCacheResponse response: CachedURLResponse,
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | completion: @escaping (CachedURLResponse?) -> Void)
44 | }
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/CachedResponseHandler.swift:43:42: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | func dataTask(_ task: URLSessionDataTask,
42 | willCacheResponse response: CachedURLResponse,
43 | completion: @escaping (CachedURLResponse?) -> Void)
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | }
45 |
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/CachedResponseHandler.swift:58:22: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | case doNotCache
57 | /// Modifies the cached response before storing it in the cache.
58 | case modify((URLSessionDataTask, CachedURLResponse) -> CachedURLResponse?)
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | }
60 |
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/CachedResponseHandler.swift:58:42: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | case doNotCache
57 | /// Modifies the cached response before storing it in the cache.
58 | case modify((URLSessionDataTask, CachedURLResponse) -> CachedURLResponse?)
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | }
60 |
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/CachedResponseHandler.swift:58:64: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | case doNotCache
57 | /// Modifies the cached response before storing it in the cache.
58 | case modify((URLSessionDataTask, CachedURLResponse) -> CachedURLResponse?)
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | }
60 |
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/CachedResponseHandler.swift:78:34: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 |
77 | extension ResponseCacher: CachedResponseHandler {
78 | public func dataTask(_ task: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | willCacheResponse response: CachedURLResponse,
80 | completion: @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/CachedResponseHandler.swift:79:54: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | extension ResponseCacher: CachedResponseHandler {
78 | public func dataTask(_ task: URLSessionDataTask,
79 | willCacheResponse response: CachedURLResponse,
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | completion: @escaping (CachedURLResponse?) -> Void) {
81 | switch behavior {
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
Can't demangle: $s9Alamofire7AFErrorO24ServerTrustFailureReasonO24certificatePinningFailed33_E6FE27F77E4165F94EC7579EB4CCE715LLXeF4hostL_SSvp
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift -primary-file /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift -primary-file /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AlamofireExtended.swift -primary-file /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AuthenticationInterceptor.swift -primary-file /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/CachedResponseHandler.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Combine.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/DispatchQueue+Alamofire.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/EventMonitor.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPHeaders.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/HTTPMethod.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/MultipartFormData.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/MultipartUpload.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/NetworkReachabilityManager.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Notifications.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/OperationQueue+Alamofire.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoder.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ParameterEncoding.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Protected.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RedirectHandler.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestInterceptor.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RequestTaskMap.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Response.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Result+Alamofire.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/RetryPolicy.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ServerTrustEvaluation.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Session.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/SessionDelegate.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/StringEncoding+Alamofire.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLConvertible+URLRequestConvertible.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLEncodedFormEncoder.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLRequest+Alamofire.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/URLSessionConfiguration+Alamofire.swift /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Validation.swift -supplementary-output-file-map /tmp/TemporaryDirectory.2en40i/supplementaryOutputs-1 -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Modules -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -suppress-warnings -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -stats-output-dir .stats -strict-concurrency=complete -empty-abi-descriptor -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /host/spi-builder-workspace -Xcc -fPIC -Xcc -g -Xcc -fno-omit-frame-pointer -module-name Alamofire -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Alamofire.build/AFError.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Alamofire.build/Alamofire.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Alamofire.build/AlamofireExtended.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Alamofire.build/AuthenticationInterceptor.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Alamofire.build/CachedResponseHandler.swift.o -index-store-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1. Swift version 6.0-dev (LLVM 4b0b1f9e1a69523, Swift 91a3abcf816bc36)
2. Compiling with effective version 5.10
3. While walking into 'AFError' (at /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:29:8)
4. While walking into 'ServerTrustFailureReason' (at /host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:124:12)
5. While evaluating request USRGenerationRequest(Alamofire.(file).AFError.ServerTrustFailureReason.certificatePinningFailed(host:trust:pinnedCertificates:serverCertificates:).host@/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/AFError.swift:166:39)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x000055bfcf95c497
1 swift-frontend 0x000055bfcf95a1ee
2 swift-frontend 0x000055bfcf95cb0a
3 libc.so.6 0x00007f74aa282520
4 libc.so.6 0x00007f74aa2d69fc pthread_kill + 300
5 libc.so.6 0x00007f74aa282476 raise + 22
6 libc.so.6 0x00007f74aa2687f3 abort + 211
7 swift-frontend 0x000055bfcaa8c055
8 swift-frontend 0x000055bfca6d9934
9 swift-frontend 0x000055bfcaa4e66f
10 swift-frontend 0x000055bfca25254c
11 swift-frontend 0x000055bfc8e389ce
12 swift-frontend 0x000055bfc8e3867a
13 swift-frontend 0x000055bfc8e378d2
14 swift-frontend 0x000055bfcaa4f19a
15 swift-frontend 0x000055bfc8e06dab
16 swift-frontend 0x000055bfc8e062f7
17 swift-frontend 0x000055bfc8e03c29
18 swift-frontend 0x000055bfc9b80226
19 swift-frontend 0x000055bfca73889c
20 swift-frontend 0x000055bfca73a38c
21 swift-frontend 0x000055bfca73d240
22 swift-frontend 0x000055bfca7388ba
23 swift-frontend 0x000055bfca73dd5f
24 swift-frontend 0x000055bfca73c98f
25 swift-frontend 0x000055bfca7388ba
26 swift-frontend 0x000055bfca73dd5f
27 swift-frontend 0x000055bfca73c98f
28 swift-frontend 0x000055bfca7388ba
29 swift-frontend 0x000055bfca7387b3
30 swift-frontend 0x000055bfca91e81f
31 swift-frontend 0x000055bfc9b7dbd4
32 swift-frontend 0x000055bfc8e02c51
33 swift-frontend 0x000055bfc8e02afa
34 swift-frontend 0x000055bfc8df712c
35 swift-frontend 0x000055bfc8df6b15
36 swift-frontend 0x000055bfc8ba9572
37 swift-frontend 0x000055bfc8ba767c
38 swift-frontend 0x000055bfc8ba2198
39 swift-frontend 0x000055bfc8ba04fc
40 swift-frontend 0x000055bfc895cdde
41 libc.so.6 0x00007f74aa269d90
42 libc.so.6 0x00007f74aa269e40 __libc_start_main + 128
43 swift-frontend 0x000055bfc895be85
BUILD FAILURE 6.0 linux