The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build AsyncMoya, reference 1.1.8 (d92027), with Swift 6.1 for Linux on 24 Nov 2025 07:40:25 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

 97 |                 stubClosure: @escaping StubClosure = MoyaProvider.neverStub,
 98 |                 callbackQueue: DispatchQueue? = nil,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
131 |     /// Note: this was previously in an extension, however it must be in the original class declaration to allow subclasses to override.
132 |     @discardableResult
133 |     open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
    |                                                      `- error: cannot find type 'URLRequest' in scope
134 |         let callbackQueue = callbackQueue ?? self.callbackQueue
135 |         let cancellableToken = CancellableToken { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                                            `- error: cannot find type 'URLRequest' in scope
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
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/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                          `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
105 |
106 |     /// Creates a function which, when called, executes the appropriate stubbing behavior for the given parameters.
107 |     final func createStubFunction(_ token: CancellableToken, forTarget target: Target, withCompletion completion: @escaping Moya.Completion, endpoint: Endpoint, plugins: [PluginType], request: URLRequest) -> (() -> Void) { // swiftlint:disable:this function_parameter_count
    |                                                                                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
108 |         return {
109 |             if token.isCancelled {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:148:65: error: cannot find 'NSEC_PER_SEC' in scope
146 |             }
147 |         case .delayed(let delay):
148 |             let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
    |                                                                 `- error: cannot find 'NSEC_PER_SEC' in scope
149 |             let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
150 |             (callbackQueue ?? DispatchQueue.main).asyncAfter(deadline: killTime) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:149:81: error: cannot find 'NSEC_PER_SEC' in scope
147 |         case .delayed(let delay):
148 |             let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
149 |             let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
    |                                                                                 `- error: cannot find 'NSEC_PER_SEC' in scope
150 |             (callbackQueue ?? DispatchQueue.main).asyncAfter(deadline: killTime) {
151 |                 stub()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 19 |         self.statusCode = statusCode
 20 |         self.data = data
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:199:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
197 |         switch (response, data, error) {
198 |         case let (.some(response), data, .none):
199 |             let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200 |             return .success(response)
201 |         case let (.some(response), _, .some(error)):
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:202:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200 |             return .success(response)
201 |         case let (.some(response), _, .some(error)):
202 |             let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
203 |             let error = MoyaError.underlying(error, response)
204 |             return .failure(error)
[270/360] Compiling Moya URL+Moya.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:3:20: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | internal extension URLRequest {
   |                    `- error: cannot find type 'URLRequest' in scope
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:5:97: error: cannot find type 'URLRequest' in scope
 3 | internal extension URLRequest {
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
   |                                                                                                 `- error: cannot find type 'URLRequest' in scope
 6 |         do {
 7 |             let encodable = AnyEncodable(encodable)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:21:93: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     func encoded(parameters: [String: Any], parameterEncoding: ParameterEncoding) throws -> URLRequest {
   |                                                                                             `- error: cannot find type 'URLRequest' in scope
22 |         do {
23 |             return try parameterEncoding.encode(self, with: parameters)
[271/360] Compiling Moya URLRequest+Encoding.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:3:20: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | internal extension URLRequest {
   |                    `- error: cannot find type 'URLRequest' in scope
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:5:97: error: cannot find type 'URLRequest' in scope
 3 | internal extension URLRequest {
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
   |                                                                                                 `- error: cannot find type 'URLRequest' in scope
 6 |         do {
 7 |             let encodable = AnyEncodable(encodable)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:21:93: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     func encoded(parameters: [String: Any], parameterEncoding: ParameterEncoding) throws -> URLRequest {
   |                                                                                             `- error: cannot find type 'URLRequest' in scope
22 |         do {
23 |             return try parameterEncoding.encode(self, with: parameters)
[272/360] Compiling Moya ValidationType.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:3:20: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | internal extension URLRequest {
   |                    `- error: cannot find type 'URLRequest' in scope
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:5:97: error: cannot find type 'URLRequest' in scope
 3 | internal extension URLRequest {
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
   |                                                                                                 `- error: cannot find type 'URLRequest' in scope
 6 |         do {
 7 |             let encodable = AnyEncodable(encodable)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:21:93: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     func encoded(parameters: [String: Any], parameterEncoding: ParameterEncoding) throws -> URLRequest {
   |                                                                                             `- error: cannot find type 'URLRequest' in scope
22 |         do {
23 |             return try parameterEncoding.encode(self, with: parameters)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4d72617259f6eef9908440c49a67b79bc4f973ae19f78187418ddfb5b178d4ec
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/20] Write swift-version-24593BA9C3E375BF.txt
[4/26] Compiling SwiftSyntax600 Empty.swift
[5/26] Compiling SwiftSyntax510 Empty.swift
[6/33] Emitting module SwiftSyntax600
[7/46] Emitting module SwiftSyntax510
[8/67] Compiling SwiftSyntax509 Empty.swift
[9/67] Emitting module SwiftSyntax509
[13/273] Compiling SwiftSyntax SyntaxCollection.swift
[14/273] Compiling SwiftSyntax SyntaxHashable.swift
[15/273] Compiling SwiftSyntax SyntaxIdentifier.swift
[16/273] Compiling SwiftSyntax Utils.swift
[17/273] Compiling SwiftSyntax ChildNameForKeyPath.swift
[18/278] Emitting module RxSwift
[19/298] Compiling SwiftSyntax MemoryLayout.swift
[20/298] Compiling SwiftSyntax MissingNodeInitializers.swift
[21/298] Compiling SwiftSyntax RawSyntax.swift
[22/298] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[23/298] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[24/298] Compiling SwiftSyntax RawSyntaxTokenView.swift
[25/298] Emitting module Alamofire
[26/298] Compiling Alamofire RetryPolicy.swift
[27/298] Compiling Alamofire ServerTrustEvaluation.swift
[28/298] Compiling Alamofire URLEncodedFormEncoder.swift
[29/298] Compiling Alamofire Validation.swift
[30/298] Compiling Alamofire resource_bundle_accessor.swift
[31/298] Compiling RxSwift Producer.swift
[32/298] Compiling RxSwift PublishSubject.swift
[33/298] Compiling RxSwift Queue.swift
[34/298] Compiling RxSwift Range.swift
[35/298] Compiling RxSwift Reactive.swift
[36/298] Compiling RxSwift RecursiveLock.swift
[37/298] Compiling RxSwift RecursiveScheduler.swift
[38/298] Compiling RxSwift Reduce.swift
[39/298] Compiling RxSwift RefCountDisposable.swift
[40/298] Compiling RxSwift Repeat.swift
[41/298] Compiling RxSwift ReplaySubject.swift
[42/298] Compiling RxSwift RetryWhen.swift
[43/298] Compiling RxSwift Rx.swift
[44/298] Compiling RxSwift RxMutableBox.swift
[45/298] Compiling RxSwift Sample.swift
[46/298] Compiling RxSwift Scan.swift
[47/298] Compiling RxSwift ScheduledDisposable.swift
[48/298] Compiling RxSwift ScheduledItem.swift
[49/298] Compiling RxSwift ScheduledItemType.swift
[50/298] Compiling RxSwift SchedulerServices+Emulation.swift
[52/298] Compiling SwiftSyntax SyntaxCollections.swift
[53/298] Compiling SwiftSyntax SyntaxEnum.swift
[54/298] Compiling SwiftSyntax SyntaxKind.swift
[55/298] Compiling SwiftSyntax SyntaxRewriter.swift
[56/298] Compiling SwiftSyntax SyntaxTraits.swift
[57/298] Compiling SwiftSyntax SyntaxVisitor.swift
[58/298] Compiling SwiftSyntax TokenKind.swift
[59/298] Compiling SwiftSyntax Tokens.swift
[60/298] Compiling SwiftSyntax TriviaPieces.swift
[61/298] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[62/298] Compiling SwiftSyntax RawSyntaxNodesC.swift
[63/298] Compiling SwiftSyntax RawSyntaxNodesD.swift
[64/298] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[65/298] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[66/298] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[67/298] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[68/298] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[69/298] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[70/298] Compiling SwiftSyntax RawSyntaxValidation.swift
[71/298] Compiling RxSwift SchedulerType.swift
[72/298] Compiling RxSwift Sequence.swift
[73/298] Compiling RxSwift SerialDispatchQueueScheduler.swift
[74/298] Compiling RxSwift SerialDisposable.swift
[75/298] Compiling RxSwift ShareReplayScope.swift
[76/298] Compiling RxSwift Single.swift
[77/298] Compiling RxSwift SingleAssignmentDisposable.swift
[78/298] Compiling RxSwift SingleAsync.swift
[79/298] Compiling RxSwift Sink.swift
[80/298] Compiling RxSwift Skip.swift
[81/298] Compiling RxSwift SkipUntil.swift
[82/298] Compiling RxSwift SkipWhile.swift
[83/298] Compiling RxSwift StartWith.swift
[84/298] Compiling RxSwift SubjectType.swift
[85/298] Compiling RxSwift SubscribeOn.swift
[86/298] Compiling RxSwift SubscriptionDisposable.swift
[87/298] Compiling RxSwift SwiftSupport.swift
[88/298] Compiling RxSwift Switch.swift
[89/298] Compiling RxSwift SwitchIfEmpty.swift
[90/298] Compiling RxSwift SynchronizedDisposeType.swift
[91/298] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[92/298] Compiling SwiftSyntax Syntax.swift
[93/298] Compiling SwiftSyntax SyntaxArena.swift
[94/298] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[95/298] Compiling SwiftSyntax SyntaxChildren.swift
[96/298] Compiling SwiftSyntax TokenDiagnostic.swift
[97/298] Compiling SwiftSyntax TokenSequence.swift
[98/298] Compiling SwiftSyntax TokenSyntax.swift
[99/298] Compiling SwiftSyntax Trivia.swift
[100/298] Compiling SwiftSyntax SourcePresence.swift
[101/298] Compiling SwiftSyntax SyntaxNodeFactory.swift
[102/298] Compiling SwiftSyntax SyntaxNodeStructure.swift
[103/298] Compiling SwiftSyntax SyntaxProtocol.swift
[104/298] Compiling SwiftSyntax SyntaxText.swift
[105/298] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[112/298] Compiling SwiftSyntax SourceEdit.swift
[113/298] Compiling SwiftSyntax SourceLength.swift
[114/298] Compiling SwiftSyntax SourceLocation.swift
[115/298] Compiling SwiftSyntax AbsolutePosition.swift
[116/298] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[117/298] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[118/298] Compiling SwiftSyntax Assert.swift
[119/298] Compiling SwiftSyntax BumpPtrAllocator.swift
[120/298] Compiling SwiftSyntax CommonAncestor.swift
[121/298] Compiling SwiftSyntax Convenience.swift
[122/298] Compiling SwiftSyntax CustomTraits.swift
[123/298] Compiling SwiftSyntax Identifier.swift
[136/306] Compiling RxSwift Infallible+CombineLatest+Collection.swift
[137/306] Compiling RxSwift Infallible+CombineLatest+arity.swift
[138/306] Compiling RxSwift Infallible+Concurrency.swift
[139/306] Compiling RxSwift Infallible+Create.swift
[140/306] Compiling RxSwift Infallible+Debug.swift
[141/306] Compiling RxSwift Infallible+Operators.swift
[142/306] Compiling RxSwift Infallible+Zip+arity.swift
[143/306] Compiling RxSwift Infallible.swift
[144/306] Compiling RxSwift InfiniteSequence.swift
[145/306] Compiling RxSwift InvocableScheduledItem.swift
[146/306] Compiling RxSwift InvocableType.swift
[147/306] Compiling RxSwift Just.swift
[148/306] Compiling RxSwift Lock.swift
[149/306] Compiling RxSwift LockOwnerType.swift
[150/306] Compiling RxSwift MainScheduler.swift
[151/306] Compiling RxSwift Map.swift
[152/306] Compiling RxSwift Materialize.swift
[153/306] Compiling RxSwift Maybe.swift
[154/306] Compiling RxSwift Merge.swift
[155/306] Compiling RxSwift Multicast.swift
[156/306] Compiling SwiftSyntax SyntaxNodesAB.swift
[157/306] Compiling SwiftSyntax SyntaxNodesC.swift
[158/306] Compiling SwiftSyntax SyntaxNodesD.swift
[159/306] Compiling SwiftSyntax SyntaxNodesEF.swift
[160/306] Compiling SwiftSyntax SyntaxNodesGHI.swift
[161/306] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[162/306] Compiling SwiftSyntax SyntaxNodesOP.swift
[163/306] Compiling SwiftSyntax SyntaxNodesQRS.swift
[164/306] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[165/306] Compiling RxSwift Enumerated.swift
[166/306] Compiling RxSwift Error.swift
[167/306] Compiling RxSwift Errors.swift
[168/306] Compiling RxSwift Event.swift
[169/306] Compiling RxSwift Filter.swift
[170/306] Compiling RxSwift First.swift
[171/306] Compiling RxSwift Generate.swift
[172/306] Compiling RxSwift GroupBy.swift
[173/306] Compiling RxSwift GroupedObservable.swift
[174/306] Compiling RxSwift HistoricalScheduler.swift
[175/306] Compiling RxSwift HistoricalSchedulerTimeConverter.swift
[176/306] Compiling RxSwift ImmediateSchedulerType.swift
[229/329] Compiling Moya Plugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
37 |
38 |     /// Retrieve an `NSURLRequest` representation.
39 |     var request: URLRequest? { get }
   |                  `- error: cannot find type 'URLRequest' in scope
40 |
41 |     ///  Additional headers appended to the request when added to the session.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:45:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
43 |
44 |     /// Authenticates the request with a username and password.
45 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                                                                `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                             `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:48:40: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
48 |     func authenticate(with credential: URLCredential) -> Self
   |                                        `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |
50 |     /// cURL representation of the instance.
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:71: error: cannot find type 'URLRequest' in scope
 86 |      - returns: The modified `URLRequest`.
 87 |      */
 88 |     public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
    |                                                                       `- error: cannot find type 'URLRequest' in scope
 89 |
 90 |         guard let authorizable = target as? AccessTokenAuthorizable,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:36: error: cannot find type 'URLRequest' in scope
 86 |      - returns: The modified `URLRequest`.
 87 |      */
 88 |     public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
    |                                    `- error: cannot find type 'URLRequest' in scope
 89 |
 90 |         guard let authorizable = target as? AccessTokenAuthorizable,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/CredentialsPlugin.swift:6:58: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | public final class CredentialsPlugin: PluginType {
 5 |
 6 |     public typealias CredentialClosure = (TargetType) -> URLCredential?
   |                                                          `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     let credentialsClosure: CredentialClosure
 8 |
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
[230/329] Compiling Moya AccessTokenPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
37 |
38 |     /// Retrieve an `NSURLRequest` representation.
39 |     var request: URLRequest? { get }
   |                  `- error: cannot find type 'URLRequest' in scope
40 |
41 |     ///  Additional headers appended to the request when added to the session.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:45:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
43 |
44 |     /// Authenticates the request with a username and password.
45 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                                                                `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                             `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:48:40: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
48 |     func authenticate(with credential: URLCredential) -> Self
   |                                        `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |
50 |     /// cURL representation of the instance.
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:71: error: cannot find type 'URLRequest' in scope
 86 |      - returns: The modified `URLRequest`.
 87 |      */
 88 |     public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
    |                                                                       `- error: cannot find type 'URLRequest' in scope
 89 |
 90 |         guard let authorizable = target as? AccessTokenAuthorizable,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:36: error: cannot find type 'URLRequest' in scope
 86 |      - returns: The modified `URLRequest`.
 87 |      */
 88 |     public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
    |                                    `- error: cannot find type 'URLRequest' in scope
 89 |
 90 |         guard let authorizable = target as? AccessTokenAuthorizable,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/CredentialsPlugin.swift:6:58: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | public final class CredentialsPlugin: PluginType {
 5 |
 6 |     public typealias CredentialClosure = (TargetType) -> URLCredential?
   |                                                          `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     let credentialsClosure: CredentialClosure
 8 |
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
[231/329] Compiling Moya CredentialsPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
37 |
38 |     /// Retrieve an `NSURLRequest` representation.
39 |     var request: URLRequest? { get }
   |                  `- error: cannot find type 'URLRequest' in scope
40 |
41 |     ///  Additional headers appended to the request when added to the session.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:45:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
43 |
44 |     /// Authenticates the request with a username and password.
45 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                                                                `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                             `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:48:40: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
48 |     func authenticate(with credential: URLCredential) -> Self
   |                                        `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |
50 |     /// cURL representation of the instance.
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:71: error: cannot find type 'URLRequest' in scope
 86 |      - returns: The modified `URLRequest`.
 87 |      */
 88 |     public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
    |                                                                       `- error: cannot find type 'URLRequest' in scope
 89 |
 90 |         guard let authorizable = target as? AccessTokenAuthorizable,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:36: error: cannot find type 'URLRequest' in scope
 86 |      - returns: The modified `URLRequest`.
 87 |      */
 88 |     public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
    |                                    `- error: cannot find type 'URLRequest' in scope
 89 |
 90 |         guard let authorizable = target as? AccessTokenAuthorizable,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/CredentialsPlugin.swift:6:58: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | public final class CredentialsPlugin: PluginType {
 5 |
 6 |     public typealias CredentialClosure = (TargetType) -> URLCredential?
   |                                                          `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     let credentialsClosure: CredentialClosure
 8 |
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
error: emit-module command failed with exit code 1 (use -v to see invocation)
[232/332] Emitting module Moya
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     /// The network returned response which can be fully customized.
 10 |     case response(HTTPURLResponse, Data)
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 |     /// The network failed to send the request, or failed to retrieve a response (eg a timeout).
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/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
 76 |     // swiftlint:disable cyclomatic_complexity
 77 |     /// Returns the `Endpoint` converted to a `URLRequest` if valid. Throws an error otherwise.
 78 |     func urlRequest() throws -> URLRequest {
    |                                 `- error: cannot find type 'URLRequest' in scope
 79 |         guard let requestURL = Foundation.URL(string: url) else {
 80 |             throw MoyaError.requestMapping(url)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
 8 |
 9 | /// An alias for the SDK's image type.
10 | public typealias Image = ImageType
   |                          `- error: cannot find type 'ImageType' in scope
11 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
37 |
38 |     /// Retrieve an `NSURLRequest` representation.
39 |     var request: URLRequest? { get }
   |                  `- error: cannot find type 'URLRequest' in scope
40 |
41 |     ///  Additional headers appended to the request when added to the session.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:45:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
43 |
44 |     /// Authenticates the request with a username and password.
45 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Moya+Alamofire.swift:27:1: error: type 'Request' does not conform to protocol 'RequestType'
 25 |
 26 | /// Make the Alamofire Request type conform to our type, to prevent leaking Alamofire to plugins.
 27 | extension Request: RequestType {
    | |- error: type 'Request' does not conform to protocol 'RequestType'
    | `- note: add stubs for conformance
 28 |     public var sessionHeaders: [String: String] {
 29 |         delegate?.sessionConfiguration.httpAdditionalHeaders as? [String: String] ?? [:]
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Core/Request.swift:759:17: note: candidate has non-matching type '(URLCredential) -> Self'
 757 |     /// - Returns:              The instance.
 758 |     @discardableResult
 759 |     public func authenticate(with credential: URLCredential) -> Self {
     |                 `- note: candidate has non-matching type '(URLCredential) -> Self'
 760 |         mutableState.credential = credential
 761 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:48:10: note: protocol requires function 'authenticate(with:)' with type '(URLCredential) -> Self' (aka '(AnyObject) -> Self')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
48 |     func authenticate(with credential: URLCredential) -> Self
   |          `- note: protocol requires function 'authenticate(with:)' with type '(URLCredential) -> Self' (aka '(AnyObject) -> Self')
49 |
50 |     /// cURL representation of the instance.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
 56 |
 57 |     /// Closure that decides if and what request should be performed.
 58 |     public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
    |                                                     `- error: cannot find type 'URLRequest' in scope
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:79:60: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     // swiftlint:disable:next function_parameter_count
 79 |     private func performRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> Cancellable {
    |                                                            `- error: cannot find type 'URLRequest' in scope
 80 |         switch stubBehavior {
 81 |         case .never:
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
105 |
106 |     /// Creates a function which, when called, executes the appropriate stubbing behavior for the given parameters.
107 |     final func createStubFunction(_ token: CancellableToken, forTarget target: Target, withCompletion completion: @escaping Moya.Completion, endpoint: Endpoint, plugins: [PluginType], request: URLRequest) -> (() -> Void) { // swiftlint:disable:this function_parameter_count
    |                                                                                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
108 |         return {
109 |             if token.isCancelled {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                          `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:175:57: error: cannot find type 'URLRequest' in scope
173 |     }
174 |
175 |     func sendUploadMultipart(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, multipartBody: [MultipartFormData], progress: Moya.ProgressBlock? = nil, completion: @escaping Moya.Completion) -> CancellableToken {
    |                                                         `- error: cannot find type 'URLRequest' in scope
176 |         let formData = RequestMultipartFormData()
177 |         formData.applyMoyaMultipartFormData(multipartBody)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:192:52: error: cannot find type 'URLRequest' in scope
190 |     }
191 |
192 |     func sendUploadFile(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, file: URL, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
    |                                                    `- error: cannot find type 'URLRequest' in scope
193 |         let interceptor = self.interceptor(target: target)
194 |         let uploadRequest: UploadRequest = session.requestQueue.sync {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:206:57: error: cannot find type 'URLRequest' in scope
204 |     }
205 |
206 |     func sendDownloadRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, destination: @escaping DownloadDestination, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
    |                                                         `- error: cannot find type 'URLRequest' in scope
207 |         let interceptor = self.interceptor(target: target)
208 |         let downloadRequest: DownloadRequest = session.requestQueue.sync {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:220:49: error: cannot find type 'URLRequest' in scope
218 |     }
219 |
220 |     func sendRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion) -> CancellableToken {
    |                                                 `- error: cannot find type 'URLRequest' in scope
221 |         let interceptor = self.interceptor(target: target)
222 |         let initialRequest: DataRequest = session.requestQueue.sync {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:61:50: error: @escaping attribute only applies to function types
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
 61 |     public typealias RequestClosure = (Endpoint, @escaping RequestResultClosure) -> Void
    |                                                  `- error: @escaping attribute only applies to function types
 62 |
 63 |     /// Closure that decides if/how a request should be stubbed.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:96:33: error: @escaping attribute only applies to function types
 94 |     /// Initializes a provider.
 95 |     public init(endpointClosure: @escaping EndpointClosure = MoyaProvider.defaultEndpointMapping,
 96 |                 requestClosure: @escaping RequestClosure = MoyaProvider.defaultRequestMapping,
    |                                 `- error: @escaping attribute only applies to function types
 97 |                 stubClosure: @escaping StubClosure = MoyaProvider.neverStub,
 98 |                 callbackQueue: DispatchQueue? = nil,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
131 |     /// Note: this was previously in an extension, however it must be in the original class declaration to allow subclasses to override.
132 |     @discardableResult
133 |     open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
    |                                                      `- error: cannot find type 'URLRequest' in scope
134 |         let callbackQueue = callbackQueue ?? self.callbackQueue
135 |         let cancellableToken = CancellableToken { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                                            `- error: cannot find type 'URLRequest' in scope
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
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/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                                                                `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                             `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:48:40: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
48 |     func authenticate(with credential: URLCredential) -> Self
   |                                        `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |
50 |     /// cURL representation of the instance.
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:71: error: cannot find type 'URLRequest' in scope
 86 |      - returns: The modified `URLRequest`.
 87 |      */
 88 |     public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
    |                                                                       `- error: cannot find type 'URLRequest' in scope
 89 |
 90 |         guard let authorizable = target as? AccessTokenAuthorizable,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:36: error: cannot find type 'URLRequest' in scope
 86 |      - returns: The modified `URLRequest`.
 87 |      */
 88 |     public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
    |                                    `- error: cannot find type 'URLRequest' in scope
 89 |
 90 |         guard let authorizable = target as? AccessTokenAuthorizable,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/CredentialsPlugin.swift:6:58: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | public final class CredentialsPlugin: PluginType {
 5 |
 6 |     public typealias CredentialClosure = (TargetType) -> URLCredential?
   |                                                          `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     let credentialsClosure: CredentialClosure
 8 |
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:6:18: error: cannot find type 'URLRequest' in scope
 4 | struct RequestTypeWrapper: RequestType {
 5 |
 6 |     var request: URLRequest? { _urlRequest }
   |                  `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     var sessionHeaders: [String: String] { _request.sessionHeaders }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:11:30: error: cannot find type 'URLRequest' in scope
 9 |
10 |     private var _request: Request
11 |     private var _urlRequest: URLRequest?
   |                              `- error: cannot find type 'URLRequest' in scope
12 |
13 |     init(request: Request, urlRequest: URLRequest?) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
11 |     private var _urlRequest: URLRequest?
12 |
13 |     init(request: Request, urlRequest: URLRequest?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
14 |         self._request = request
15 |         self._urlRequest = urlRequest
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:18:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
16 |     }
17 |
18 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
19 |         let newRequest = _request.authenticate(username: username, password: password, persistence: persistence)
20 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:23:40: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     }
22 |
23 |     func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
   |                                        `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         let newRequest = _request.authenticate(with: credential)
25 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:13:25: error: cannot find type 'URLRequest' in scope
 11 |
 12 |     /// The original URLRequest for the response.
 13 |     public let request: URLRequest?
    |                         `- error: cannot find type 'URLRequest' in scope
 14 |
 15 |     /// The HTTPURLResponse object.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:16:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     /// The HTTPURLResponse object.
 16 |     public let response: HTTPURLResponse?
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
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/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 19 |         self.statusCode = statusCode
 20 |         self.data = data
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:84: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         self.statusCode = statusCode
 20 |         self.data = data
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/Moya/Sources/Moya/URLRequest+Encoding.swift:3:20: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | internal extension URLRequest {
   |                    `- error: cannot find type 'URLRequest' in scope
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
[233/332] Compiling Moya NetworkActivityPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
37 |
38 |     /// Retrieve an `NSURLRequest` representation.
39 |     var request: URLRequest? { get }
   |                  `- error: cannot find type 'URLRequest' in scope
40 |
41 |     ///  Additional headers appended to the request when added to the session.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:45:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
43 |
44 |     /// Authenticates the request with a username and password.
45 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/NetworkLoggerPlugin.swift:90:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 88 |         //Response presence check
 89 |         if let httpResponse = response.response {
 90 |             output.append(configuration.formatter.entry("Response", httpResponse.description, target))
    |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 91 |         } else {
 92 |             output.append(configuration.formatter.entry("Response", "Received empty network response for \(target).", target))
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:6:18: error: cannot find type 'URLRequest' in scope
 4 | struct RequestTypeWrapper: RequestType {
 5 |
 6 |     var request: URLRequest? { _urlRequest }
   |                  `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     var sessionHeaders: [String: String] { _request.sessionHeaders }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:11:30: error: cannot find type 'URLRequest' in scope
 9 |
10 |     private var _request: Request
11 |     private var _urlRequest: URLRequest?
   |                              `- error: cannot find type 'URLRequest' in scope
12 |
13 |     init(request: Request, urlRequest: URLRequest?) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
11 |     private var _urlRequest: URLRequest?
12 |
13 |     init(request: Request, urlRequest: URLRequest?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
14 |         self._request = request
15 |         self._urlRequest = urlRequest
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:18:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
16 |     }
17 |
18 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
19 |         let newRequest = _request.authenticate(username: username, password: password, persistence: persistence)
20 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:23:40: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     }
22 |
23 |     func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
   |                                        `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         let newRequest = _request.authenticate(with: credential)
25 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:19:9: error: type 'Request' does not conform to protocol 'RequestType'
17 |
18 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
19 |         let newRequest = _request.authenticate(username: username, password: password, persistence: persistence)
   |         `- error: type 'Request' does not conform to protocol 'RequestType'
20 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
21 |     }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: error: 'Foundation.URLCredential' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLCredential'
22 |
23 |     func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
24 |         let newRequest = _request.authenticate(with: credential)
   |                                                      |- error: 'Foundation.URLCredential' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLCredential'
   |                                                      `- note: did you mean to use 'as!' to force downcast?
25 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
26 |     }
[234/332] Compiling Moya NetworkLoggerPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
37 |
38 |     /// Retrieve an `NSURLRequest` representation.
39 |     var request: URLRequest? { get }
   |                  `- error: cannot find type 'URLRequest' in scope
40 |
41 |     ///  Additional headers appended to the request when added to the session.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:45:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
43 |
44 |     /// Authenticates the request with a username and password.
45 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/NetworkLoggerPlugin.swift:90:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 88 |         //Response presence check
 89 |         if let httpResponse = response.response {
 90 |             output.append(configuration.formatter.entry("Response", httpResponse.description, target))
    |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 91 |         } else {
 92 |             output.append(configuration.formatter.entry("Response", "Received empty network response for \(target).", target))
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:6:18: error: cannot find type 'URLRequest' in scope
 4 | struct RequestTypeWrapper: RequestType {
 5 |
 6 |     var request: URLRequest? { _urlRequest }
   |                  `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     var sessionHeaders: [String: String] { _request.sessionHeaders }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:11:30: error: cannot find type 'URLRequest' in scope
 9 |
10 |     private var _request: Request
11 |     private var _urlRequest: URLRequest?
   |                              `- error: cannot find type 'URLRequest' in scope
12 |
13 |     init(request: Request, urlRequest: URLRequest?) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
11 |     private var _urlRequest: URLRequest?
12 |
13 |     init(request: Request, urlRequest: URLRequest?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
14 |         self._request = request
15 |         self._urlRequest = urlRequest
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:18:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
16 |     }
17 |
18 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
19 |         let newRequest = _request.authenticate(username: username, password: password, persistence: persistence)
20 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:23:40: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     }
22 |
23 |     func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
   |                                        `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         let newRequest = _request.authenticate(with: credential)
25 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:19:9: error: type 'Request' does not conform to protocol 'RequestType'
17 |
18 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
19 |         let newRequest = _request.authenticate(username: username, password: password, persistence: persistence)
   |         `- error: type 'Request' does not conform to protocol 'RequestType'
20 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
21 |     }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: error: 'Foundation.URLCredential' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLCredential'
22 |
23 |     func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
24 |         let newRequest = _request.authenticate(with: credential)
   |                                                      |- error: 'Foundation.URLCredential' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLCredential'
   |                                                      `- note: did you mean to use 'as!' to force downcast?
25 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
26 |     }
[235/332] Compiling Moya RequestTypeWrapper.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
37 |
38 |     /// Retrieve an `NSURLRequest` representation.
39 |     var request: URLRequest? { get }
   |                  `- error: cannot find type 'URLRequest' in scope
40 |
41 |     ///  Additional headers appended to the request when added to the session.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:45:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
43 |
44 |     /// Authenticates the request with a username and password.
45 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/NetworkLoggerPlugin.swift:90:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 88 |         //Response presence check
 89 |         if let httpResponse = response.response {
 90 |             output.append(configuration.formatter.entry("Response", httpResponse.description, target))
    |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'description'
 91 |         } else {
 92 |             output.append(configuration.formatter.entry("Response", "Received empty network response for \(target).", target))
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:6:18: error: cannot find type 'URLRequest' in scope
 4 | struct RequestTypeWrapper: RequestType {
 5 |
 6 |     var request: URLRequest? { _urlRequest }
   |                  `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     var sessionHeaders: [String: String] { _request.sessionHeaders }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:11:30: error: cannot find type 'URLRequest' in scope
 9 |
10 |     private var _request: Request
11 |     private var _urlRequest: URLRequest?
   |                              `- error: cannot find type 'URLRequest' in scope
12 |
13 |     init(request: Request, urlRequest: URLRequest?) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
11 |     private var _urlRequest: URLRequest?
12 |
13 |     init(request: Request, urlRequest: URLRequest?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
14 |         self._request = request
15 |         self._urlRequest = urlRequest
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:18:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
16 |     }
17 |
18 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
19 |         let newRequest = _request.authenticate(username: username, password: password, persistence: persistence)
20 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:23:40: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     }
22 |
23 |     func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
   |                                        `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         let newRequest = _request.authenticate(with: credential)
25 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:19:9: error: type 'Request' does not conform to protocol 'RequestType'
17 |
18 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
19 |         let newRequest = _request.authenticate(username: username, password: password, persistence: persistence)
   |         `- error: type 'Request' does not conform to protocol 'RequestType'
20 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
21 |     }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: error: 'Foundation.URLCredential' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLCredential'
22 |
23 |     func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
24 |         let newRequest = _request.authenticate(with: credential)
   |                                                      |- error: 'Foundation.URLCredential' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLCredential'
   |                                                      `- note: did you mean to use 'as!' to force downcast?
25 |         return RequestTypeWrapper(request: newRequest, urlRequest: _urlRequest)
26 |     }
[236/332] Compiling Moya Response.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:13:25: error: cannot find type 'URLRequest' in scope
 11 |
 12 |     /// The original URLRequest for the response.
 13 |     public let request: URLRequest?
    |                         `- error: cannot find type 'URLRequest' in scope
 14 |
 15 |     /// The HTTPURLResponse object.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:16:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     /// The HTTPURLResponse object.
 16 |     public let response: HTTPURLResponse?
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
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/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 19 |         self.statusCode = statusCode
 20 |         self.data = data
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:84: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         self.statusCode = statusCode
 20 |         self.data = data
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/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
 8 |
 9 | /// An alias for the SDK's image type.
10 | public typealias Image = ImageType
   |                          `- error: cannot find type 'ImageType' in scope
11 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:36:20: error: cannot convert value of type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to expected argument type '(any Any.Type)?'
 34 |         lhs.statusCode == rhs.statusCode
 35 |             && lhs.data == rhs.data
 36 |             && lhs.response == rhs.response
    |                    `- error: cannot convert value of type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to expected argument type '(any Any.Type)?'
 37 |     }
 38 | }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:36:36: error: cannot convert value of type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to expected argument type '(any Any.Type)?'
 34 |         lhs.statusCode == rhs.statusCode
 35 |             && lhs.data == rhs.data
 36 |             && lhs.response == rhs.response
    |                                    `- error: cannot convert value of type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to expected argument type '(any Any.Type)?'
 37 |     }
 38 | }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:115:50: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
113 |             // Key path was provided, try to parse string at key path
114 |             guard let jsonDictionary = try mapJSON() as? NSDictionary,
115 |                 let string = jsonDictionary.value(forKeyPath: keyPath) as? String else {
    |                                                  `- error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
116 |                     throw MoyaError.stringMapping(self)
117 |             }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:145:109: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
143 |         let jsonData: Data
144 |         keyPathCheck: if let keyPath = keyPath {
145 |             guard let jsonObject = (try mapJSON(failsOnEmptyData: failsOnEmptyData) as? NSDictionary)?.value(forKeyPath: keyPath) else {
    |                                                                                                             `- error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
146 |                 if failsOnEmptyData {
147 |                     throw MoyaError.jsonMapping(self)
[237/332] Compiling Moya TargetType.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:13:25: error: cannot find type 'URLRequest' in scope
 11 |
 12 |     /// The original URLRequest for the response.
 13 |     public let request: URLRequest?
    |                         `- error: cannot find type 'URLRequest' in scope
 14 |
 15 |     /// The HTTPURLResponse object.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:16:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     /// The HTTPURLResponse object.
 16 |     public let response: HTTPURLResponse?
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
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/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 19 |         self.statusCode = statusCode
 20 |         self.data = data
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:84: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         self.statusCode = statusCode
 20 |         self.data = data
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/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
 8 |
 9 | /// An alias for the SDK's image type.
10 | public typealias Image = ImageType
   |                          `- error: cannot find type 'ImageType' in scope
11 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:36:20: error: cannot convert value of type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to expected argument type '(any Any.Type)?'
 34 |         lhs.statusCode == rhs.statusCode
 35 |             && lhs.data == rhs.data
 36 |             && lhs.response == rhs.response
    |                    `- error: cannot convert value of type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to expected argument type '(any Any.Type)?'
 37 |     }
 38 | }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:36:36: error: cannot convert value of type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to expected argument type '(any Any.Type)?'
 34 |         lhs.statusCode == rhs.statusCode
 35 |             && lhs.data == rhs.data
 36 |             && lhs.response == rhs.response
    |                                    `- error: cannot convert value of type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to expected argument type '(any Any.Type)?'
 37 |     }
 38 | }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:115:50: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
113 |             // Key path was provided, try to parse string at key path
114 |             guard let jsonDictionary = try mapJSON() as? NSDictionary,
115 |                 let string = jsonDictionary.value(forKeyPath: keyPath) as? String else {
    |                                                  `- error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
116 |                     throw MoyaError.stringMapping(self)
117 |             }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:145:109: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
143 |         let jsonData: Data
144 |         keyPathCheck: if let keyPath = keyPath {
145 |             guard let jsonObject = (try mapJSON(failsOnEmptyData: failsOnEmptyData) as? NSDictionary)?.value(forKeyPath: keyPath) else {
    |                                                                                                             `- error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
146 |                 if failsOnEmptyData {
147 |                     throw MoyaError.jsonMapping(self)
[238/332] Compiling Moya Task.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:13:25: error: cannot find type 'URLRequest' in scope
 11 |
 12 |     /// The original URLRequest for the response.
 13 |     public let request: URLRequest?
    |                         `- error: cannot find type 'URLRequest' in scope
 14 |
 15 |     /// The HTTPURLResponse object.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:16:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     /// The HTTPURLResponse object.
 16 |     public let response: HTTPURLResponse?
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
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/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 19 |         self.statusCode = statusCode
 20 |         self.data = data
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:84: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         self.statusCode = statusCode
 20 |         self.data = data
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/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
 8 |
 9 | /// An alias for the SDK's image type.
10 | public typealias Image = ImageType
   |                          `- error: cannot find type 'ImageType' in scope
11 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:36:20: error: cannot convert value of type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to expected argument type '(any Any.Type)?'
 34 |         lhs.statusCode == rhs.statusCode
 35 |             && lhs.data == rhs.data
 36 |             && lhs.response == rhs.response
    |                    `- error: cannot convert value of type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to expected argument type '(any Any.Type)?'
 37 |     }
 38 | }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:36:36: error: cannot convert value of type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to expected argument type '(any Any.Type)?'
 34 |         lhs.statusCode == rhs.statusCode
 35 |             && lhs.data == rhs.data
 36 |             && lhs.response == rhs.response
    |                                    `- error: cannot convert value of type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to expected argument type '(any Any.Type)?'
 37 |     }
 38 | }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:115:50: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
113 |             // Key path was provided, try to parse string at key path
114 |             guard let jsonDictionary = try mapJSON() as? NSDictionary,
115 |                 let string = jsonDictionary.value(forKeyPath: keyPath) as? String else {
    |                                                  `- error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
116 |                     throw MoyaError.stringMapping(self)
117 |             }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:145:109: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
143 |         let jsonData: Data
144 |         keyPathCheck: if let keyPath = keyPath {
145 |             guard let jsonObject = (try mapJSON(failsOnEmptyData: failsOnEmptyData) as? NSDictionary)?.value(forKeyPath: keyPath) else {
    |                                                                                                             `- error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
146 |                 if failsOnEmptyData {
147 |                     throw MoyaError.jsonMapping(self)
[239/332] Compiling Moya Endpoint.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     /// The network returned response which can be fully customized.
 10 |     case response(HTTPURLResponse, Data)
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 |     /// The network failed to send the request, or failed to retrieve a response (eg a timeout).
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/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
 76 |     // swiftlint:disable cyclomatic_complexity
 77 |     /// Returns the `Endpoint` converted to a `URLRequest` if valid. Throws an error otherwise.
 78 |     func urlRequest() throws -> URLRequest {
    |                                 `- error: cannot find type 'URLRequest' in scope
 79 |         guard let requestURL = Foundation.URL(string: url) else {
 80 |             throw MoyaError.requestMapping(url)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:83:23: error: cannot find 'URLRequest' in scope
 81 |         }
 82 |
 83 |         var request = URLRequest(url: requestURL)
    |                       `- error: cannot find 'URLRequest' in scope
 84 |         request.httpMethod = method.rawValue
 85 |         request.allHTTPHeaderFields = httpHeaderFields
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
 8 |
 9 | /// An alias for the SDK's image type.
10 | public typealias Image = ImageType
   |                          `- error: cannot find type 'ImageType' in scope
11 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
37 |
38 |     /// Retrieve an `NSURLRequest` representation.
39 |     var request: URLRequest? { get }
   |                  `- error: cannot find type 'URLRequest' in scope
40 |
41 |     ///  Additional headers appended to the request when added to the session.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:45:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
43 |
44 |     /// Authenticates the request with a username and password.
45 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Moya+Alamofire.swift:27:1: error: type 'Request' does not conform to protocol 'RequestType'
 25 |
 26 | /// Make the Alamofire Request type conform to our type, to prevent leaking Alamofire to plugins.
 27 | extension Request: RequestType {
    | |- error: type 'Request' does not conform to protocol 'RequestType'
    | `- note: add stubs for conformance
 28 |     public var sessionHeaders: [String: String] {
 29 |         delegate?.sessionConfiguration.httpAdditionalHeaders as? [String: String] ?? [:]
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Core/Request.swift:759:17: note: candidate has non-matching type '(URLCredential) -> Self'
 757 |     /// - Returns:              The instance.
 758 |     @discardableResult
 759 |     public func authenticate(with credential: URLCredential) -> Self {
     |                 `- note: candidate has non-matching type '(URLCredential) -> Self'
 760 |         mutableState.credential = credential
 761 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:48:10: note: protocol requires function 'authenticate(with:)' with type '(URLCredential) -> Self' (aka '(AnyObject) -> Self')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
48 |     func authenticate(with credential: URLCredential) -> Self
   |          `- note: protocol requires function 'authenticate(with:)' with type '(URLCredential) -> Self' (aka '(AnyObject) -> Self')
49 |
50 |     /// cURL representation of the instance.
[240/332] Compiling Moya Image.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     /// The network returned response which can be fully customized.
 10 |     case response(HTTPURLResponse, Data)
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 |     /// The network failed to send the request, or failed to retrieve a response (eg a timeout).
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/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
 76 |     // swiftlint:disable cyclomatic_complexity
 77 |     /// Returns the `Endpoint` converted to a `URLRequest` if valid. Throws an error otherwise.
 78 |     func urlRequest() throws -> URLRequest {
    |                                 `- error: cannot find type 'URLRequest' in scope
 79 |         guard let requestURL = Foundation.URL(string: url) else {
 80 |             throw MoyaError.requestMapping(url)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:83:23: error: cannot find 'URLRequest' in scope
 81 |         }
 82 |
 83 |         var request = URLRequest(url: requestURL)
    |                       `- error: cannot find 'URLRequest' in scope
 84 |         request.httpMethod = method.rawValue
 85 |         request.allHTTPHeaderFields = httpHeaderFields
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
 8 |
 9 | /// An alias for the SDK's image type.
10 | public typealias Image = ImageType
   |                          `- error: cannot find type 'ImageType' in scope
11 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
37 |
38 |     /// Retrieve an `NSURLRequest` representation.
39 |     var request: URLRequest? { get }
   |                  `- error: cannot find type 'URLRequest' in scope
40 |
41 |     ///  Additional headers appended to the request when added to the session.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:45:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
43 |
44 |     /// Authenticates the request with a username and password.
45 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Moya+Alamofire.swift:27:1: error: type 'Request' does not conform to protocol 'RequestType'
 25 |
 26 | /// Make the Alamofire Request type conform to our type, to prevent leaking Alamofire to plugins.
 27 | extension Request: RequestType {
    | |- error: type 'Request' does not conform to protocol 'RequestType'
    | `- note: add stubs for conformance
 28 |     public var sessionHeaders: [String: String] {
 29 |         delegate?.sessionConfiguration.httpAdditionalHeaders as? [String: String] ?? [:]
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Core/Request.swift:759:17: note: candidate has non-matching type '(URLCredential) -> Self'
 757 |     /// - Returns:              The instance.
 758 |     @discardableResult
 759 |     public func authenticate(with credential: URLCredential) -> Self {
     |                 `- note: candidate has non-matching type '(URLCredential) -> Self'
 760 |         mutableState.credential = credential
 761 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:48:10: note: protocol requires function 'authenticate(with:)' with type '(URLCredential) -> Self' (aka '(AnyObject) -> Self')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
48 |     func authenticate(with credential: URLCredential) -> Self
   |          `- note: protocol requires function 'authenticate(with:)' with type '(URLCredential) -> Self' (aka '(AnyObject) -> Self')
49 |
50 |     /// cURL representation of the instance.
[241/332] Compiling Moya Moya+Alamofire.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 |     /// The network returned response which can be fully customized.
 10 |     case response(HTTPURLResponse, Data)
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 |     /// The network failed to send the request, or failed to retrieve a response (eg a timeout).
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/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
 76 |     // swiftlint:disable cyclomatic_complexity
 77 |     /// Returns the `Endpoint` converted to a `URLRequest` if valid. Throws an error otherwise.
 78 |     func urlRequest() throws -> URLRequest {
    |                                 `- error: cannot find type 'URLRequest' in scope
 79 |         guard let requestURL = Foundation.URL(string: url) else {
 80 |             throw MoyaError.requestMapping(url)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:83:23: error: cannot find 'URLRequest' in scope
 81 |         }
 82 |
 83 |         var request = URLRequest(url: requestURL)
    |                       `- error: cannot find 'URLRequest' in scope
 84 |         request.httpMethod = method.rawValue
 85 |         request.allHTTPHeaderFields = httpHeaderFields
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
 8 |
 9 | /// An alias for the SDK's image type.
10 | public typealias Image = ImageType
   |                          `- error: cannot find type 'ImageType' in scope
11 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
37 |
38 |     /// Retrieve an `NSURLRequest` representation.
39 |     var request: URLRequest? { get }
   |                  `- error: cannot find type 'URLRequest' in scope
40 |
41 |     ///  Additional headers appended to the request when added to the session.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:45:86: error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
43 |
44 |     /// Authenticates the request with a username and password.
45 |     func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
   |                                                                                      `- error: 'Persistence' is not a member type of type 'Foundation.URLCredential' (aka 'AnyObject')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Moya+Alamofire.swift:27:1: error: type 'Request' does not conform to protocol 'RequestType'
 25 |
 26 | /// Make the Alamofire Request type conform to our type, to prevent leaking Alamofire to plugins.
 27 | extension Request: RequestType {
    | |- error: type 'Request' does not conform to protocol 'RequestType'
    | `- note: add stubs for conformance
 28 |     public var sessionHeaders: [String: String] {
 29 |         delegate?.sessionConfiguration.httpAdditionalHeaders as? [String: String] ?? [:]
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Core/Request.swift:759:17: note: candidate has non-matching type '(URLCredential) -> Self'
 757 |     /// - Returns:              The instance.
 758 |     @discardableResult
 759 |     public func authenticate(with credential: URLCredential) -> Self {
     |                 `- note: candidate has non-matching type '(URLCredential) -> Self'
 760 |         mutableState.credential = credential
 761 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:48:10: note: protocol requires function 'authenticate(with:)' with type '(URLCredential) -> Self' (aka '(AnyObject) -> Self')
46 |
47 |     /// Authenticates the request with an `NSURLCredential` instance.
48 |     func authenticate(with credential: URLCredential) -> Self
   |          `- note: protocol requires function 'authenticate(with:)' with type '(URLCredential) -> Self' (aka '(AnyObject) -> Self')
49 |
50 |     /// cURL representation of the instance.
[242/332] Compiling Moya MoyaError.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
 56 |
 57 |     /// Closure that decides if and what request should be performed.
 58 |     public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
    |                                                     `- error: cannot find type 'URLRequest' in scope
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
 76 |     // swiftlint:disable cyclomatic_complexity
 77 |     /// Returns the `Endpoint` converted to a `URLRequest` if valid. Throws an error otherwise.
 78 |     func urlRequest() throws -> URLRequest {
    |                                 `- error: cannot find type 'URLRequest' in scope
 79 |         guard let requestURL = Foundation.URL(string: url) else {
 80 |             throw MoyaError.requestMapping(url)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:18:22: error: cannot infer contextual base in reference to member 'success'
16 |         do {
17 |             let urlRequest = try endpoint.urlRequest()
18 |             closure(.success(urlRequest))
   |                      `- error: cannot infer contextual base in reference to member 'success'
19 |         } catch MoyaError.requestMapping(let url) {
20 |             closure(.failure(MoyaError.requestMapping(url)))
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:20:22: error: cannot infer contextual base in reference to member 'failure'
18 |             closure(.success(urlRequest))
19 |         } catch MoyaError.requestMapping(let url) {
20 |             closure(.failure(MoyaError.requestMapping(url)))
   |                      `- error: cannot infer contextual base in reference to member 'failure'
21 |         } catch MoyaError.parameterEncoding(let error) {
22 |             closure(.failure(MoyaError.parameterEncoding(error)))
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:22:22: error: cannot infer contextual base in reference to member 'failure'
20 |             closure(.failure(MoyaError.requestMapping(url)))
21 |         } catch MoyaError.parameterEncoding(let error) {
22 |             closure(.failure(MoyaError.parameterEncoding(error)))
   |                      `- error: cannot infer contextual base in reference to member 'failure'
23 |         } catch {
24 |             closure(.failure(MoyaError.underlying(error, nil)))
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:24:22: error: cannot infer contextual base in reference to member 'failure'
22 |             closure(.failure(MoyaError.parameterEncoding(error)))
23 |         } catch {
24 |             closure(.failure(MoyaError.underlying(error, nil)))
   |                      `- error: cannot infer contextual base in reference to member 'failure'
25 |         }
26 |     }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:29:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
27 |
28 |     final class func defaultAlamofireSession() -> Session {
29 |         let configuration = URLSessionConfiguration.default
   |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
30 |         configuration.headers = .default
31 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:30:34: error: cannot infer contextual base in reference to member 'default'
28 |     final class func defaultAlamofireSession() -> Session {
29 |         let configuration = URLSessionConfiguration.default
30 |         configuration.headers = .default
   |                                  `- error: cannot infer contextual base in reference to member 'default'
31 |
32 |         return Session(configuration: configuration, startRequestsImmediately: false)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:79:60: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     // swiftlint:disable:next function_parameter_count
 79 |     private func performRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> Cancellable {
    |                                                            `- error: cannot find type 'URLRequest' in scope
 80 |         switch stubBehavior {
 81 |         case .never:
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
105 |
106 |     /// Creates a function which, when called, executes the appropriate stubbing behavior for the given parameters.
107 |     final func createStubFunction(_ token: CancellableToken, forTarget target: Target, withCompletion completion: @escaping Moya.Completion, endpoint: Endpoint, plugins: [PluginType], request: URLRequest) -> (() -> Void) { // swiftlint:disable:this function_parameter_count
    |                                                                                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
108 |         return {
109 |             if token.isCancelled {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                          `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:175:57: error: cannot find type 'URLRequest' in scope
173 |     }
174 |
175 |     func sendUploadMultipart(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, multipartBody: [MultipartFormData], progress: Moya.ProgressBlock? = nil, completion: @escaping Moya.Completion) -> CancellableToken {
    |                                                         `- error: cannot find type 'URLRequest' in scope
176 |         let formData = RequestMultipartFormData()
177 |         formData.applyMoyaMultipartFormData(multipartBody)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:192:52: error: cannot find type 'URLRequest' in scope
190 |     }
191 |
192 |     func sendUploadFile(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, file: URL, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
    |                                                    `- error: cannot find type 'URLRequest' in scope
193 |         let interceptor = self.interceptor(target: target)
194 |         let uploadRequest: UploadRequest = session.requestQueue.sync {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:206:57: error: cannot find type 'URLRequest' in scope
204 |     }
205 |
206 |     func sendDownloadRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, destination: @escaping DownloadDestination, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
    |                                                         `- error: cannot find type 'URLRequest' in scope
207 |         let interceptor = self.interceptor(target: target)
208 |         let downloadRequest: DownloadRequest = session.requestQueue.sync {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:220:49: error: cannot find type 'URLRequest' in scope
218 |     }
219 |
220 |     func sendRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion) -> CancellableToken {
    |                                                 `- error: cannot find type 'URLRequest' in scope
221 |         let interceptor = self.interceptor(target: target)
222 |         let initialRequest: DataRequest = session.requestQueue.sync {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:58: error: cannot find type 'URLRequest' in scope
 43 |         }
 44 |
 45 |         let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
    |                                                          `- error: cannot find type 'URLRequest' in scope
 46 |             if cancellableToken.isCancelled {
 47 |                 self.cancelCompletion(pluginsWithCompletion, target: target)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:51:26: error: cannot find type 'URLRequest' in scope
 49 |             }
 50 |
 51 |             var request: URLRequest!
    |                          `- error: cannot find type 'URLRequest' in scope
 52 |
 53 |             switch requestResult {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:33: error: unable to infer closure type without a type annotation
 43 |         }
 44 |
 45 |         let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
    |                                 `- error: unable to infer closure type without a type annotation
 46 |             if cancellableToken.isCancelled {
 47 |                 self.cancelCompletion(pluginsWithCompletion, target: target)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:61:50: error: @escaping attribute only applies to function types
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
 61 |     public typealias RequestClosure = (Endpoint, @escaping RequestResultClosure) -> Void
    |                                                  `- error: @escaping attribute only applies to function types
 62 |
 63 |     /// Closure that decides if/how a request should be stubbed.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
131 |     /// Note: this was previously in an extension, however it must be in the original class declaration to allow subclasses to override.
132 |     @discardableResult
133 |     open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
    |                                                      `- error: cannot find type 'URLRequest' in scope
134 |         let callbackQueue = callbackQueue ?? self.callbackQueue
135 |         let cancellableToken = CancellableToken { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 19 |         self.statusCode = statusCode
 20 |         self.data = data
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
126 |             switch endpoint.sampleResponseClosure() {
127 |             case .networkResponse(let statusCode, let data):
128 |                 let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
    |                                                                                                              `- error: 'nil' requires a contextual type
129 |                 let result = validate(response)
130 |                 plugins.forEach { $0.didReceive(result, target: target) }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                                                                `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                             `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
11 |     private var _urlRequest: URLRequest?
12 |
13 |     init(request: Request, urlRequest: URLRequest?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
14 |         self._request = request
15 |         self._urlRequest = urlRequest
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                                            `- error: cannot find type 'URLRequest' in scope
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
[243/332] Compiling Moya MoyaProvider+Defaults.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
 56 |
 57 |     /// Closure that decides if and what request should be performed.
 58 |     public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
    |                                                     `- error: cannot find type 'URLRequest' in scope
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
 76 |     // swiftlint:disable cyclomatic_complexity
 77 |     /// Returns the `Endpoint` converted to a `URLRequest` if valid. Throws an error otherwise.
 78 |     func urlRequest() throws -> URLRequest {
    |                                 `- error: cannot find type 'URLRequest' in scope
 79 |         guard let requestURL = Foundation.URL(string: url) else {
 80 |             throw MoyaError.requestMapping(url)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:18:22: error: cannot infer contextual base in reference to member 'success'
16 |         do {
17 |             let urlRequest = try endpoint.urlRequest()
18 |             closure(.success(urlRequest))
   |                      `- error: cannot infer contextual base in reference to member 'success'
19 |         } catch MoyaError.requestMapping(let url) {
20 |             closure(.failure(MoyaError.requestMapping(url)))
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:20:22: error: cannot infer contextual base in reference to member 'failure'
18 |             closure(.success(urlRequest))
19 |         } catch MoyaError.requestMapping(let url) {
20 |             closure(.failure(MoyaError.requestMapping(url)))
   |                      `- error: cannot infer contextual base in reference to member 'failure'
21 |         } catch MoyaError.parameterEncoding(let error) {
22 |             closure(.failure(MoyaError.parameterEncoding(error)))
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:22:22: error: cannot infer contextual base in reference to member 'failure'
20 |             closure(.failure(MoyaError.requestMapping(url)))
21 |         } catch MoyaError.parameterEncoding(let error) {
22 |             closure(.failure(MoyaError.parameterEncoding(error)))
   |                      `- error: cannot infer contextual base in reference to member 'failure'
23 |         } catch {
24 |             closure(.failure(MoyaError.underlying(error, nil)))
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:24:22: error: cannot infer contextual base in reference to member 'failure'
22 |             closure(.failure(MoyaError.parameterEncoding(error)))
23 |         } catch {
24 |             closure(.failure(MoyaError.underlying(error, nil)))
   |                      `- error: cannot infer contextual base in reference to member 'failure'
25 |         }
26 |     }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:29:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
27 |
28 |     final class func defaultAlamofireSession() -> Session {
29 |         let configuration = URLSessionConfiguration.default
   |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
30 |         configuration.headers = .default
31 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:30:34: error: cannot infer contextual base in reference to member 'default'
28 |     final class func defaultAlamofireSession() -> Session {
29 |         let configuration = URLSessionConfiguration.default
30 |         configuration.headers = .default
   |                                  `- error: cannot infer contextual base in reference to member 'default'
31 |
32 |         return Session(configuration: configuration, startRequestsImmediately: false)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:79:60: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     // swiftlint:disable:next function_parameter_count
 79 |     private func performRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> Cancellable {
    |                                                            `- error: cannot find type 'URLRequest' in scope
 80 |         switch stubBehavior {
 81 |         case .never:
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
105 |
106 |     /// Creates a function which, when called, executes the appropriate stubbing behavior for the given parameters.
107 |     final func createStubFunction(_ token: CancellableToken, forTarget target: Target, withCompletion completion: @escaping Moya.Completion, endpoint: Endpoint, plugins: [PluginType], request: URLRequest) -> (() -> Void) { // swiftlint:disable:this function_parameter_count
    |                                                                                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
108 |         return {
109 |             if token.isCancelled {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                          `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:175:57: error: cannot find type 'URLRequest' in scope
173 |     }
174 |
175 |     func sendUploadMultipart(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, multipartBody: [MultipartFormData], progress: Moya.ProgressBlock? = nil, completion: @escaping Moya.Completion) -> CancellableToken {
    |                                                         `- error: cannot find type 'URLRequest' in scope
176 |         let formData = RequestMultipartFormData()
177 |         formData.applyMoyaMultipartFormData(multipartBody)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:192:52: error: cannot find type 'URLRequest' in scope
190 |     }
191 |
192 |     func sendUploadFile(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, file: URL, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
    |                                                    `- error: cannot find type 'URLRequest' in scope
193 |         let interceptor = self.interceptor(target: target)
194 |         let uploadRequest: UploadRequest = session.requestQueue.sync {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:206:57: error: cannot find type 'URLRequest' in scope
204 |     }
205 |
206 |     func sendDownloadRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, destination: @escaping DownloadDestination, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
    |                                                         `- error: cannot find type 'URLRequest' in scope
207 |         let interceptor = self.interceptor(target: target)
208 |         let downloadRequest: DownloadRequest = session.requestQueue.sync {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:220:49: error: cannot find type 'URLRequest' in scope
218 |     }
219 |
220 |     func sendRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion) -> CancellableToken {
    |                                                 `- error: cannot find type 'URLRequest' in scope
221 |         let interceptor = self.interceptor(target: target)
222 |         let initialRequest: DataRequest = session.requestQueue.sync {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:58: error: cannot find type 'URLRequest' in scope
 43 |         }
 44 |
 45 |         let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
    |                                                          `- error: cannot find type 'URLRequest' in scope
 46 |             if cancellableToken.isCancelled {
 47 |                 self.cancelCompletion(pluginsWithCompletion, target: target)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:51:26: error: cannot find type 'URLRequest' in scope
 49 |             }
 50 |
 51 |             var request: URLRequest!
    |                          `- error: cannot find type 'URLRequest' in scope
 52 |
 53 |             switch requestResult {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:33: error: unable to infer closure type without a type annotation
 43 |         }
 44 |
 45 |         let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
    |                                 `- error: unable to infer closure type without a type annotation
 46 |             if cancellableToken.isCancelled {
 47 |                 self.cancelCompletion(pluginsWithCompletion, target: target)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:61:50: error: @escaping attribute only applies to function types
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
 61 |     public typealias RequestClosure = (Endpoint, @escaping RequestResultClosure) -> Void
    |                                                  `- error: @escaping attribute only applies to function types
 62 |
 63 |     /// Closure that decides if/how a request should be stubbed.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
131 |     /// Note: this was previously in an extension, however it must be in the original class declaration to allow subclasses to override.
132 |     @discardableResult
133 |     open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
    |                                                      `- error: cannot find type 'URLRequest' in scope
134 |         let callbackQueue = callbackQueue ?? self.callbackQueue
135 |         let cancellableToken = CancellableToken { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 19 |         self.statusCode = statusCode
 20 |         self.data = data
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
126 |             switch endpoint.sampleResponseClosure() {
127 |             case .networkResponse(let statusCode, let data):
128 |                 let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
    |                                                                                                              `- error: 'nil' requires a contextual type
129 |                 let result = validate(response)
130 |                 plugins.forEach { $0.didReceive(result, target: target) }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                                                                `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                             `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
11 |     private var _urlRequest: URLRequest?
12 |
13 |     init(request: Request, urlRequest: URLRequest?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
14 |         self._request = request
15 |         self._urlRequest = urlRequest
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                                            `- error: cannot find type 'URLRequest' in scope
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
[244/332] Compiling Moya MoyaProvider+Internal.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
 56 |
 57 |     /// Closure that decides if and what request should be performed.
 58 |     public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
    |                                                     `- error: cannot find type 'URLRequest' in scope
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
 76 |     // swiftlint:disable cyclomatic_complexity
 77 |     /// Returns the `Endpoint` converted to a `URLRequest` if valid. Throws an error otherwise.
 78 |     func urlRequest() throws -> URLRequest {
    |                                 `- error: cannot find type 'URLRequest' in scope
 79 |         guard let requestURL = Foundation.URL(string: url) else {
 80 |             throw MoyaError.requestMapping(url)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:18:22: error: cannot infer contextual base in reference to member 'success'
16 |         do {
17 |             let urlRequest = try endpoint.urlRequest()
18 |             closure(.success(urlRequest))
   |                      `- error: cannot infer contextual base in reference to member 'success'
19 |         } catch MoyaError.requestMapping(let url) {
20 |             closure(.failure(MoyaError.requestMapping(url)))
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:20:22: error: cannot infer contextual base in reference to member 'failure'
18 |             closure(.success(urlRequest))
19 |         } catch MoyaError.requestMapping(let url) {
20 |             closure(.failure(MoyaError.requestMapping(url)))
   |                      `- error: cannot infer contextual base in reference to member 'failure'
21 |         } catch MoyaError.parameterEncoding(let error) {
22 |             closure(.failure(MoyaError.parameterEncoding(error)))
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:22:22: error: cannot infer contextual base in reference to member 'failure'
20 |             closure(.failure(MoyaError.requestMapping(url)))
21 |         } catch MoyaError.parameterEncoding(let error) {
22 |             closure(.failure(MoyaError.parameterEncoding(error)))
   |                      `- error: cannot infer contextual base in reference to member 'failure'
23 |         } catch {
24 |             closure(.failure(MoyaError.underlying(error, nil)))
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:24:22: error: cannot infer contextual base in reference to member 'failure'
22 |             closure(.failure(MoyaError.parameterEncoding(error)))
23 |         } catch {
24 |             closure(.failure(MoyaError.underlying(error, nil)))
   |                      `- error: cannot infer contextual base in reference to member 'failure'
25 |         }
26 |     }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:29:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
27 |
28 |     final class func defaultAlamofireSession() -> Session {
29 |         let configuration = URLSessionConfiguration.default
   |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
30 |         configuration.headers = .default
31 |
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:30:34: error: cannot infer contextual base in reference to member 'default'
28 |     final class func defaultAlamofireSession() -> Session {
29 |         let configuration = URLSessionConfiguration.default
30 |         configuration.headers = .default
   |                                  `- error: cannot infer contextual base in reference to member 'default'
31 |
32 |         return Session(configuration: configuration, startRequestsImmediately: false)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:79:60: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     // swiftlint:disable:next function_parameter_count
 79 |     private func performRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> Cancellable {
    |                                                            `- error: cannot find type 'URLRequest' in scope
 80 |         switch stubBehavior {
 81 |         case .never:
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
105 |
106 |     /// Creates a function which, when called, executes the appropriate stubbing behavior for the given parameters.
107 |     final func createStubFunction(_ token: CancellableToken, forTarget target: Target, withCompletion completion: @escaping Moya.Completion, endpoint: Endpoint, plugins: [PluginType], request: URLRequest) -> (() -> Void) { // swiftlint:disable:this function_parameter_count
    |                                                                                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
108 |         return {
109 |             if token.isCancelled {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                          `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:175:57: error: cannot find type 'URLRequest' in scope
173 |     }
174 |
175 |     func sendUploadMultipart(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, multipartBody: [MultipartFormData], progress: Moya.ProgressBlock? = nil, completion: @escaping Moya.Completion) -> CancellableToken {
    |                                                         `- error: cannot find type 'URLRequest' in scope
176 |         let formData = RequestMultipartFormData()
177 |         formData.applyMoyaMultipartFormData(multipartBody)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:192:52: error: cannot find type 'URLRequest' in scope
190 |     }
191 |
192 |     func sendUploadFile(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, file: URL, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
    |                                                    `- error: cannot find type 'URLRequest' in scope
193 |         let interceptor = self.interceptor(target: target)
194 |         let uploadRequest: UploadRequest = session.requestQueue.sync {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:206:57: error: cannot find type 'URLRequest' in scope
204 |     }
205 |
206 |     func sendDownloadRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, destination: @escaping DownloadDestination, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
    |                                                         `- error: cannot find type 'URLRequest' in scope
207 |         let interceptor = self.interceptor(target: target)
208 |         let downloadRequest: DownloadRequest = session.requestQueue.sync {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:220:49: error: cannot find type 'URLRequest' in scope
218 |     }
219 |
220 |     func sendRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion) -> CancellableToken {
    |                                                 `- error: cannot find type 'URLRequest' in scope
221 |         let interceptor = self.interceptor(target: target)
222 |         let initialRequest: DataRequest = session.requestQueue.sync {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:58: error: cannot find type 'URLRequest' in scope
 43 |         }
 44 |
 45 |         let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
    |                                                          `- error: cannot find type 'URLRequest' in scope
 46 |             if cancellableToken.isCancelled {
 47 |                 self.cancelCompletion(pluginsWithCompletion, target: target)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:51:26: error: cannot find type 'URLRequest' in scope
 49 |             }
 50 |
 51 |             var request: URLRequest!
    |                          `- error: cannot find type 'URLRequest' in scope
 52 |
 53 |             switch requestResult {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:33: error: unable to infer closure type without a type annotation
 43 |         }
 44 |
 45 |         let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
    |                                 `- error: unable to infer closure type without a type annotation
 46 |             if cancellableToken.isCancelled {
 47 |                 self.cancelCompletion(pluginsWithCompletion, target: target)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:61:50: error: @escaping attribute only applies to function types
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
 61 |     public typealias RequestClosure = (Endpoint, @escaping RequestResultClosure) -> Void
    |                                                  `- error: @escaping attribute only applies to function types
 62 |
 63 |     /// Closure that decides if/how a request should be stubbed.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
131 |     /// Note: this was previously in an extension, however it must be in the original class declaration to allow subclasses to override.
132 |     @discardableResult
133 |     open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
    |                                                      `- error: cannot find type 'URLRequest' in scope
134 |         let callbackQueue = callbackQueue ?? self.callbackQueue
135 |         let cancellableToken = CancellableToken { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 19 |         self.statusCode = statusCode
 20 |         self.data = data
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
126 |             switch endpoint.sampleResponseClosure() {
127 |             case .networkResponse(let statusCode, let data):
128 |                 let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
    |                                                                                                              `- error: 'nil' requires a contextual type
129 |                 let result = validate(response)
130 |                 plugins.forEach { $0.didReceive(result, target: target) }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                                                                `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
22 |
23 | public extension PluginType {
24 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
   |                             `- error: cannot find type 'URLRequest' in scope
25 |     func willSend(_ request: RequestType, target: TargetType) { }
26 |     func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
11 |     private var _urlRequest: URLRequest?
12 |
13 |     init(request: Request, urlRequest: URLRequest?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
14 |         self._request = request
15 |         self._urlRequest = urlRequest
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                                            `- error: cannot find type 'URLRequest' in scope
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
[245/332] Compiling Moya AnyEncodable.swift
[246/332] Compiling Moya Atomic.swift
[247/332] Compiling Moya Cancellable.swift
[248/332] Compiling Moya MoyaProvider.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
 56 |
 57 |     /// Closure that decides if and what request should be performed.
 58 |     public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
    |                                                     `- error: cannot find type 'URLRequest' in scope
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:61:50: error: @escaping attribute only applies to function types
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
 61 |     public typealias RequestClosure = (Endpoint, @escaping RequestResultClosure) -> Void
    |                                                  `- error: @escaping attribute only applies to function types
 62 |
 63 |     /// Closure that decides if/how a request should be stubbed.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:96:33: error: @escaping attribute only applies to function types
 94 |     /// Initializes a provider.
 95 |     public init(endpointClosure: @escaping EndpointClosure = MoyaProvider.defaultEndpointMapping,
 96 |                 requestClosure: @escaping RequestClosure = MoyaProvider.defaultRequestMapping,
    |                                 `- error: @escaping attribute only applies to function types
 97 |                 stubClosure: @escaping StubClosure = MoyaProvider.neverStub,
 98 |                 callbackQueue: DispatchQueue? = nil,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
131 |     /// Note: this was previously in an extension, however it must be in the original class declaration to allow subclasses to override.
132 |     @discardableResult
133 |     open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
    |                                                      `- error: cannot find type 'URLRequest' in scope
134 |         let callbackQueue = callbackQueue ?? self.callbackQueue
135 |         let cancellableToken = CancellableToken { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                                            `- error: cannot find type 'URLRequest' in scope
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
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/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                          `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
105 |
106 |     /// Creates a function which, when called, executes the appropriate stubbing behavior for the given parameters.
107 |     final func createStubFunction(_ token: CancellableToken, forTarget target: Target, withCompletion completion: @escaping Moya.Completion, endpoint: Endpoint, plugins: [PluginType], request: URLRequest) -> (() -> Void) { // swiftlint:disable:this function_parameter_count
    |                                                                                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
108 |         return {
109 |             if token.isCancelled {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:148:65: error: cannot find 'NSEC_PER_SEC' in scope
146 |             }
147 |         case .delayed(let delay):
148 |             let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
    |                                                                 `- error: cannot find 'NSEC_PER_SEC' in scope
149 |             let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
150 |             (callbackQueue ?? DispatchQueue.main).asyncAfter(deadline: killTime) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:149:81: error: cannot find 'NSEC_PER_SEC' in scope
147 |         case .delayed(let delay):
148 |             let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
149 |             let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
    |                                                                                 `- error: cannot find 'NSEC_PER_SEC' in scope
150 |             (callbackQueue ?? DispatchQueue.main).asyncAfter(deadline: killTime) {
151 |                 stub()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 19 |         self.statusCode = statusCode
 20 |         self.data = data
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:199:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
197 |         switch (response, data, error) {
198 |         case let (.some(response), data, .none):
199 |             let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200 |             return .success(response)
201 |         case let (.some(response), _, .some(error)):
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:202:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200 |             return .success(response)
201 |         case let (.some(response), _, .some(error)):
202 |             let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
203 |             let error = MoyaError.underlying(error, response)
204 |             return .failure(error)
[249/332] Compiling Moya MultiTarget.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
 56 |
 57 |     /// Closure that decides if and what request should be performed.
 58 |     public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
    |                                                     `- error: cannot find type 'URLRequest' in scope
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:61:50: error: @escaping attribute only applies to function types
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
 61 |     public typealias RequestClosure = (Endpoint, @escaping RequestResultClosure) -> Void
    |                                                  `- error: @escaping attribute only applies to function types
 62 |
 63 |     /// Closure that decides if/how a request should be stubbed.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:96:33: error: @escaping attribute only applies to function types
 94 |     /// Initializes a provider.
 95 |     public init(endpointClosure: @escaping EndpointClosure = MoyaProvider.defaultEndpointMapping,
 96 |                 requestClosure: @escaping RequestClosure = MoyaProvider.defaultRequestMapping,
    |                                 `- error: @escaping attribute only applies to function types
 97 |                 stubClosure: @escaping StubClosure = MoyaProvider.neverStub,
 98 |                 callbackQueue: DispatchQueue? = nil,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
131 |     /// Note: this was previously in an extension, however it must be in the original class declaration to allow subclasses to override.
132 |     @discardableResult
133 |     open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
    |                                                      `- error: cannot find type 'URLRequest' in scope
134 |         let callbackQueue = callbackQueue ?? self.callbackQueue
135 |         let cancellableToken = CancellableToken { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                                            `- error: cannot find type 'URLRequest' in scope
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
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/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                          `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
105 |
106 |     /// Creates a function which, when called, executes the appropriate stubbing behavior for the given parameters.
107 |     final func createStubFunction(_ token: CancellableToken, forTarget target: Target, withCompletion completion: @escaping Moya.Completion, endpoint: Endpoint, plugins: [PluginType], request: URLRequest) -> (() -> Void) { // swiftlint:disable:this function_parameter_count
    |                                                                                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
108 |         return {
109 |             if token.isCancelled {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:148:65: error: cannot find 'NSEC_PER_SEC' in scope
146 |             }
147 |         case .delayed(let delay):
148 |             let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
    |                                                                 `- error: cannot find 'NSEC_PER_SEC' in scope
149 |             let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
150 |             (callbackQueue ?? DispatchQueue.main).asyncAfter(deadline: killTime) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:149:81: error: cannot find 'NSEC_PER_SEC' in scope
147 |         case .delayed(let delay):
148 |             let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
149 |             let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
    |                                                                                 `- error: cannot find 'NSEC_PER_SEC' in scope
150 |             (callbackQueue ?? DispatchQueue.main).asyncAfter(deadline: killTime) {
151 |                 stub()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 19 |         self.statusCode = statusCode
 20 |         self.data = data
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:199:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
197 |         switch (response, data, error) {
198 |         case let (.some(response), data, .none):
199 |             let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200 |             return .success(response)
201 |         case let (.some(response), _, .some(error)):
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:202:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200 |             return .success(response)
201 |         case let (.some(response), _, .some(error)):
202 |             let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
203 |             let error = MoyaError.underlying(error, response)
204 |             return .failure(error)
[250/332] Compiling Moya MultipartFormData.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
 56 |
 57 |     /// Closure that decides if and what request should be performed.
 58 |     public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
    |                                                     `- error: cannot find type 'URLRequest' in scope
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:61:50: error: @escaping attribute only applies to function types
 59 |
 60 |     /// Closure that resolves an `Endpoint` into a `RequestResult`.
 61 |     public typealias RequestClosure = (Endpoint, @escaping RequestResultClosure) -> Void
    |                                                  `- error: @escaping attribute only applies to function types
 62 |
 63 |     /// Closure that decides if/how a request should be stubbed.
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                                                                `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
 9 | public protocol PluginType {
10 |     /// Called to modify a request before sending.
11 |     func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
   |                             `- error: cannot find type 'URLRequest' in scope
12 |
13 |     /// Called immediately before a request is sent over the network (or stubbed).
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:96:33: error: @escaping attribute only applies to function types
 94 |     /// Initializes a provider.
 95 |     public init(endpointClosure: @escaping EndpointClosure = MoyaProvider.defaultEndpointMapping,
 96 |                 requestClosure: @escaping RequestClosure = MoyaProvider.defaultRequestMapping,
    |                                 `- error: @escaping attribute only applies to function types
 97 |                 stubClosure: @escaping StubClosure = MoyaProvider.neverStub,
 98 |                 callbackQueue: DispatchQueue? = nil,
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
131 |     /// Note: this was previously in an extension, however it must be in the original class declaration to allow subclasses to override.
132 |     @discardableResult
133 |     open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
    |                                                      `- error: cannot find type 'URLRequest' in scope
134 |         let callbackQueue = callbackQueue ?? self.callbackQueue
135 |         let cancellableToken = CancellableToken { }
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                                            `- error: cannot find type 'URLRequest' in scope
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |
194 | /// A public function responsible for converting the result of a `URLRequest` to a Result<Moya.Response, MoyaError>.
195 | public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     Result<Moya.Response, MoyaError> {
197 |         switch (response, data, error) {
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/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
144 |
145 |     /// Notify all plugins that a stub is about to be performed. You must call this if overriding `stubRequest`.
146 |     final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
    |                                                          `- error: cannot find type 'URLRequest' in scope
147 |         let alamoRequest = session.request(request)
148 |         alamoRequest.cancel()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
105 |
106 |     /// Creates a function which, when called, executes the appropriate stubbing behavior for the given parameters.
107 |     final func createStubFunction(_ token: CancellableToken, forTarget target: Target, withCompletion completion: @escaping Moya.Completion, endpoint: Endpoint, plugins: [PluginType], request: URLRequest) -> (() -> Void) { // swiftlint:disable:this function_parameter_count
    |                                                                                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
108 |         return {
109 |             if token.isCancelled {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:148:65: error: cannot find 'NSEC_PER_SEC' in scope
146 |             }
147 |         case .delayed(let delay):
148 |             let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
    |                                                                 `- error: cannot find 'NSEC_PER_SEC' in scope
149 |             let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
150 |             (callbackQueue ?? DispatchQueue.main).asyncAfter(deadline: killTime) {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:149:81: error: cannot find 'NSEC_PER_SEC' in scope
147 |         case .delayed(let delay):
148 |             let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
149 |             let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
    |                                                                                 `- error: cannot find 'NSEC_PER_SEC' in scope
150 |             (callbackQueue ?? DispatchQueue.main).asyncAfter(deadline: killTime) {
151 |                 stub()
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
 16 |     public let response: HTTPURLResponse?
 17 |
 18 |     public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 19 |         self.statusCode = statusCode
 20 |         self.data = data
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:199:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
197 |         switch (response, data, error) {
198 |         case let (.some(response), data, .none):
199 |             let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200 |             return .success(response)
201 |         case let (.some(response), _, .some(error)):
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:202:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
200 |             return .success(response)
201 |         case let (.some(response), _, .some(error)):
202 |             let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
203 |             let error = MoyaError.underlying(error, response)
204 |             return .failure(error)
[251/332] Compiling Moya URL+Moya.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:3:20: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | internal extension URLRequest {
   |                    `- error: cannot find type 'URLRequest' in scope
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:5:97: error: cannot find type 'URLRequest' in scope
 3 | internal extension URLRequest {
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
   |                                                                                                 `- error: cannot find type 'URLRequest' in scope
 6 |         do {
 7 |             let encodable = AnyEncodable(encodable)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:21:93: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     func encoded(parameters: [String: Any], parameterEncoding: ParameterEncoding) throws -> URLRequest {
   |                                                                                             `- error: cannot find type 'URLRequest' in scope
22 |         do {
23 |             return try parameterEncoding.encode(self, with: parameters)
[252/332] Compiling Moya URLRequest+Encoding.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:3:20: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | internal extension URLRequest {
   |                    `- error: cannot find type 'URLRequest' in scope
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:5:97: error: cannot find type 'URLRequest' in scope
 3 | internal extension URLRequest {
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
   |                                                                                                 `- error: cannot find type 'URLRequest' in scope
 6 |         do {
 7 |             let encodable = AnyEncodable(encodable)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:21:93: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     func encoded(parameters: [String: Any], parameterEncoding: ParameterEncoding) throws -> URLRequest {
   |                                                                                             `- error: cannot find type 'URLRequest' in scope
22 |         do {
23 |             return try parameterEncoding.encode(self, with: parameters)
[253/332] Compiling Moya ValidationType.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:3:20: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | internal extension URLRequest {
   |                    `- error: cannot find type 'URLRequest' in scope
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:5:97: error: cannot find type 'URLRequest' in scope
 3 | internal extension URLRequest {
 4 |
 5 |     mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
   |                                                                                                 `- error: cannot find type 'URLRequest' in scope
 6 |         do {
 7 |             let encodable = AnyEncodable(encodable)
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:21:93: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     func encoded(parameters: [String: Any], parameterEncoding: ParameterEncoding) throws -> URLRequest {
   |                                                                                             `- error: cannot find type 'URLRequest' in scope
22 |         do {
23 |             return try parameterEncoding.encode(self, with: parameters)
BUILD FAILURE 6.1 linux