Build Information
Failed to build MoyaAPIClient with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fummicc1/MoyaAPIClient.git
Reference: 1.1.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/fummicc1/MoyaAPIClient
* tag 1.1.1 -> FETCH_HEAD
HEAD is now at 49f00a0 fix: APIClient
Cloned https://github.com/fummicc1/MoyaAPIClient.git
Revision (git rev-parse @):
49f00a0fcaa64bac86aa19e51c291da00430be5d
SUCCESS checkout https://github.com/fummicc1/MoyaAPIClient.git at 1.1.1
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/fummicc1/MoyaAPIClient.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/Moya/Moya.git
Fetching https://github.com/ReactiveCocoa/ReactiveSwift.git
Fetching https://github.com/ReactiveX/RxSwift.git
Fetching https://github.com/Alamofire/Alamofire.git
[1/25178] Fetching moya
[253/77535] Fetching moya, reactiveswift
[7967/128549] Fetching moya, reactiveswift, rxswift
[44297/156617] Fetching moya, reactiveswift, rxswift, alamofire
Fetched https://github.com/ReactiveX/RxSwift.git from cache (3.93s)
Fetched https://github.com/ReactiveCocoa/ReactiveSwift.git from cache (3.94s)
Fetched https://github.com/Moya/Moya.git from cache (3.96s)
Computing version for https://github.com/Moya/Moya.git
Fetched https://github.com/Alamofire/Alamofire.git from cache (3.96s)
Computed https://github.com/Moya/Moya.git at 15.0.3 (1.58s)
Computing version for https://github.com/ReactiveX/RxSwift.git
Computed https://github.com/ReactiveX/RxSwift.git at 6.6.0 (0.59s)
Computing version for https://github.com/ReactiveCocoa/ReactiveSwift.git
Computed https://github.com/ReactiveCocoa/ReactiveSwift.git at 6.7.0 (0.43s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.7.1 (0.36s)
Creating working copy for https://github.com/ReactiveCocoa/ReactiveSwift.git
Working copy of https://github.com/ReactiveCocoa/ReactiveSwift.git resolved at 6.7.0
Creating working copy for https://github.com/ReactiveX/RxSwift.git
Working copy of https://github.com/ReactiveX/RxSwift.git resolved at 6.6.0
Creating working copy for https://github.com/Moya/Moya.git
Working copy of https://github.com/Moya/Moya.git resolved at 15.0.3
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.7.1
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/38] Emitting module Alamofire
[6/42] Compiling Alamofire Request.swift
[7/42] Compiling Alamofire RequestCompression.swift
[8/42] Compiling Alamofire RequestInterceptor.swift
[9/42] Compiling Alamofire RequestTaskMap.swift
[10/42] Compiling Alamofire Response.swift
[11/42] Compiling Alamofire HTTPMethod.swift
[12/42] Compiling Alamofire MultipartFormData.swift
[13/42] Compiling Alamofire MultipartUpload.swift
[14/42] Compiling Alamofire NetworkReachabilityManager.swift
[15/42] Compiling Alamofire Notifications.swift
[16/42] Compiling Alamofire URLEncodedFormEncoder.swift
[17/42] Compiling Alamofire URLRequest+Alamofire.swift
[18/42] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[19/42] Compiling Alamofire Validation.swift
[20/42] Compiling Alamofire Session.swift
[21/42] Compiling Alamofire SessionDelegate.swift
[22/42] Compiling Alamofire StringEncoding+Alamofire.swift
[23/42] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[24/42] Compiling Alamofire OperationQueue+Alamofire.swift
[25/42] Compiling Alamofire ParameterEncoder.swift
[26/42] Compiling Alamofire ParameterEncoding.swift
[27/42] Compiling Alamofire Protected.swift
[28/42] Compiling Alamofire RedirectHandler.swift
[29/42] Compiling Alamofire Combine.swift
[30/42] Compiling Alamofire Concurrency.swift
[31/42] Compiling Alamofire DispatchQueue+Alamofire.swift
[32/42] Compiling Alamofire EventMonitor.swift
[33/42] Compiling Alamofire HTTPHeaders.swift
[34/42] Compiling Alamofire ResponseSerialization.swift
[35/42] Compiling Alamofire Result+Alamofire.swift
[36/42] Compiling Alamofire RetryPolicy.swift
[37/42] Compiling Alamofire ServerTrustEvaluation.swift
[38/42] Compiling Alamofire AFError.swift
[39/42] Compiling Alamofire Alamofire.swift
[40/42] Compiling Alamofire AlamofireExtended.swift
[41/42] Compiling Alamofire AuthenticationInterceptor.swift
[42/42] Compiling Alamofire CachedResponseHandler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[44/65] 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.
case response(HTTPURLResponse, Data)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Moya+Alamofire.swift:27:1: error: type 'Request' does not conform to protocol 'RequestType'
extension Request: RequestType {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:756:17: note: candidate has non-matching type '(URLCredential) -> Self'
public func authenticate(with credential: URLCredential) -> Self {
^
/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')
func authenticate(with credential: URLCredential) -> Self
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:79:60: error: cannot find type 'URLRequest' in scope
private func performRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> Cancellable {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:175:57: error: cannot find type 'URLRequest' in scope
func sendUploadMultipart(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, multipartBody: [MultipartFormData], progress: Moya.ProgressBlock? = nil, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:192:52: error: cannot find type 'URLRequest' in scope
func sendUploadFile(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, file: URL, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:206:57: error: cannot find type 'URLRequest' in scope
func sendDownloadRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, destination: @escaping DownloadDestination, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:220:49: error: cannot find type 'URLRequest' in scope
func sendRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.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.
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/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.
func authenticate(with credential: URLCredential) -> Self
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:71: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:36: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/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.
public typealias CredentialClosure = (TargetType) -> URLCredential?
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:6:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { _urlRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:11:30: error: cannot find type 'URLRequest' in scope
private var _urlRequest: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, 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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
~~~~~~~~~~~~~ ^
/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.
func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:13:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/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.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/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.
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:3:20: error: cannot find type 'URLRequest' in scope
internal extension URLRequest {
^~~~~~~~~~
[45/65] Compiling Moya Plugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/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.
func authenticate(with credential: URLCredential) -> Self
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:71: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:36: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/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.
public typealias CredentialClosure = (TargetType) -> URLCredential?
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
[46/65] Compiling Moya AccessTokenPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/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.
func authenticate(with credential: URLCredential) -> Self
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:71: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:36: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/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.
public typealias CredentialClosure = (TargetType) -> URLCredential?
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
[47/65] Compiling Moya CredentialsPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/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.
func authenticate(with credential: URLCredential) -> Self
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:71: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:36: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/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.
public typealias CredentialClosure = (TargetType) -> URLCredential?
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
[48/68] 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.
case response(HTTPURLResponse, Data)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:83:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: requestURL)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Moya+Alamofire.swift:27:1: error: type 'Request' does not conform to protocol 'RequestType'
extension Request: RequestType {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:756:17: note: candidate has non-matching type '(URLCredential) -> Self'
public func authenticate(with credential: URLCredential) -> Self {
^
/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')
func authenticate(with credential: URLCredential) -> Self
^
[49/68] 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.
case response(HTTPURLResponse, Data)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:83:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: requestURL)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Moya+Alamofire.swift:27:1: error: type 'Request' does not conform to protocol 'RequestType'
extension Request: RequestType {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:756:17: note: candidate has non-matching type '(URLCredential) -> Self'
public func authenticate(with credential: URLCredential) -> Self {
^
/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')
func authenticate(with credential: URLCredential) -> Self
^
[50/68] 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.
case response(HTTPURLResponse, Data)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:83:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: requestURL)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Moya+Alamofire.swift:27:1: error: type 'Request' does not conform to protocol 'RequestType'
extension Request: RequestType {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:756:17: note: candidate has non-matching type '(URLCredential) -> Self'
public func authenticate(with credential: URLCredential) -> Self {
^
/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')
func authenticate(with credential: URLCredential) -> Self
^
[51/68] Compiling Moya AnyEncodable.swift
[52/68] Compiling Moya Atomic.swift
[53/68] Compiling Moya Cancellable.swift
[54/68] Compiling Moya MoyaError.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:18:22: error: cannot infer contextual base in reference to member 'success'
closure(.success(urlRequest))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:20:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.requestMapping(url)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:22:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.parameterEncoding(error)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:24:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.underlying(error, nil)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:29:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let configuration = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:30:34: error: cannot infer contextual base in reference to member 'default'
configuration.headers = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:79:60: error: cannot find type 'URLRequest' in scope
private func performRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> Cancellable {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:175:57: error: cannot find type 'URLRequest' in scope
func sendUploadMultipart(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, multipartBody: [MultipartFormData], progress: Moya.ProgressBlock? = nil, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:192:52: error: cannot find type 'URLRequest' in scope
func sendUploadFile(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, file: URL, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:206:57: error: cannot find type 'URLRequest' in scope
func sendDownloadRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, destination: @escaping DownloadDestination, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:220:49: error: cannot find type 'URLRequest' in scope
func sendRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:58: error: cannot find type 'URLRequest' in scope
let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:51:26: error: cannot find type 'URLRequest' in scope
var request: URLRequest!
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:33: error: unable to infer closure type without a type annotation
let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, urlRequest: URLRequest?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:133:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: customResponse.statusCode, data: data, request: request, response: customResponse)
~~~~~~~~~~~~~~ ^~~~~~~~~~
[55/68] 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
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:18:22: error: cannot infer contextual base in reference to member 'success'
closure(.success(urlRequest))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:20:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.requestMapping(url)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:22:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.parameterEncoding(error)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:24:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.underlying(error, nil)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:29:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let configuration = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:30:34: error: cannot infer contextual base in reference to member 'default'
configuration.headers = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:79:60: error: cannot find type 'URLRequest' in scope
private func performRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> Cancellable {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:175:57: error: cannot find type 'URLRequest' in scope
func sendUploadMultipart(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, multipartBody: [MultipartFormData], progress: Moya.ProgressBlock? = nil, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:192:52: error: cannot find type 'URLRequest' in scope
func sendUploadFile(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, file: URL, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:206:57: error: cannot find type 'URLRequest' in scope
func sendDownloadRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, destination: @escaping DownloadDestination, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:220:49: error: cannot find type 'URLRequest' in scope
func sendRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:58: error: cannot find type 'URLRequest' in scope
let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:51:26: error: cannot find type 'URLRequest' in scope
var request: URLRequest!
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:33: error: unable to infer closure type without a type annotation
let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, urlRequest: URLRequest?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:133:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: customResponse.statusCode, data: data, request: request, response: customResponse)
~~~~~~~~~~~~~~ ^~~~~~~~~~
[56/68] 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
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:18:22: error: cannot infer contextual base in reference to member 'success'
closure(.success(urlRequest))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:20:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.requestMapping(url)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:22:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.parameterEncoding(error)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:24:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.underlying(error, nil)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:29:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let configuration = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:30:34: error: cannot infer contextual base in reference to member 'default'
configuration.headers = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:79:60: error: cannot find type 'URLRequest' in scope
private func performRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> Cancellable {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:175:57: error: cannot find type 'URLRequest' in scope
func sendUploadMultipart(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, multipartBody: [MultipartFormData], progress: Moya.ProgressBlock? = nil, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:192:52: error: cannot find type 'URLRequest' in scope
func sendUploadFile(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, file: URL, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:206:57: error: cannot find type 'URLRequest' in scope
func sendDownloadRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, destination: @escaping DownloadDestination, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:220:49: error: cannot find type 'URLRequest' in scope
func sendRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:58: error: cannot find type 'URLRequest' in scope
let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:51:26: error: cannot find type 'URLRequest' in scope
var request: URLRequest!
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:33: error: unable to infer closure type without a type annotation
let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, urlRequest: URLRequest?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:133:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: customResponse.statusCode, data: data, request: request, response: customResponse)
~~~~~~~~~~~~~~ ^~~~~~~~~~
[57/68] Compiling Moya Response.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:13:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/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.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/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.
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:36:29: error: binary operator '==' cannot be applied to two 'HTTPURLResponse?' (aka 'Optional<AnyObject>') operands
&& lhs.response == rhs.response
~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:115:50: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
let string = jsonDictionary.value(forKeyPath: keyPath) as? String else {
^~~~~~~~~~~
forKey
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:145:109: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
guard let jsonObject = (try mapJSON(failsOnEmptyData: failsOnEmptyData) as? NSDictionary)?.value(forKeyPath: keyPath) else {
^~~~~~~~~~~
forKey
[58/68] Compiling Moya TargetType.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:13:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/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.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/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.
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:36:29: error: binary operator '==' cannot be applied to two 'HTTPURLResponse?' (aka 'Optional<AnyObject>') operands
&& lhs.response == rhs.response
~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:115:50: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
let string = jsonDictionary.value(forKeyPath: keyPath) as? String else {
^~~~~~~~~~~
forKey
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:145:109: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
guard let jsonObject = (try mapJSON(failsOnEmptyData: failsOnEmptyData) as? NSDictionary)?.value(forKeyPath: keyPath) else {
^~~~~~~~~~~
forKey
[59/68] Compiling Moya Task.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:13:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/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.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/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.
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:36:29: error: binary operator '==' cannot be applied to two 'HTTPURLResponse?' (aka 'Optional<AnyObject>') operands
&& lhs.response == rhs.response
~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:115:50: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
let string = jsonDictionary.value(forKeyPath: keyPath) as? String else {
^~~~~~~~~~~
forKey
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:145:109: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
guard let jsonObject = (try mapJSON(failsOnEmptyData: failsOnEmptyData) as? NSDictionary)?.value(forKeyPath: keyPath) else {
^~~~~~~~~~~
forKey
[60/68] Compiling Moya NetworkActivityPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/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'
output.append(configuration.formatter.entry("Response", httpResponse.description, target))
~~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:6:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { _urlRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:11:30: error: cannot find type 'URLRequest' in scope
private var _urlRequest: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, 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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
~~~~~~~~~~~~~ ^
/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.
func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: error: 'Foundation.URLCredential' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLCredential'
let newRequest = _request.authenticate(with: credential)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: note: did you mean to use 'as!' to force downcast?
let newRequest = _request.authenticate(with: credential)
^
as! URLCredential
[61/68] Compiling Moya NetworkLoggerPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/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'
output.append(configuration.formatter.entry("Response", httpResponse.description, target))
~~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:6:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { _urlRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:11:30: error: cannot find type 'URLRequest' in scope
private var _urlRequest: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, 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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
~~~~~~~~~~~~~ ^
/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.
func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: error: 'Foundation.URLCredential' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLCredential'
let newRequest = _request.authenticate(with: credential)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: note: did you mean to use 'as!' to force downcast?
let newRequest = _request.authenticate(with: credential)
^
as! URLCredential
[62/68] Compiling Moya RequestTypeWrapper.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/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'
output.append(configuration.formatter.entry("Response", httpResponse.description, target))
~~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:6:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { _urlRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:11:30: error: cannot find type 'URLRequest' in scope
private var _urlRequest: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, 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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
~~~~~~~~~~~~~ ^
/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.
func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: error: 'Foundation.URLCredential' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLCredential'
let newRequest = _request.authenticate(with: credential)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: note: did you mean to use 'as!' to force downcast?
let newRequest = _request.authenticate(with: credential)
^
as! URLCredential
[63/68] 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
internal extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:5:97: error: cannot find type 'URLRequest' in scope
mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:21:93: error: cannot find type 'URLRequest' in scope
func encoded(parameters: [String: Any], parameterEncoding: ParameterEncoding) throws -> URLRequest {
^~~~~~~~~~
[64/68] 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
internal extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:5:97: error: cannot find type 'URLRequest' in scope
mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:21:93: error: cannot find type 'URLRequest' in scope
func encoded(parameters: [String: Any], parameterEncoding: ParameterEncoding) throws -> URLRequest {
^~~~~~~~~~
[65/68] 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
internal extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:5:97: error: cannot find type 'URLRequest' in scope
mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:21:93: error: cannot find type 'URLRequest' in scope
func encoded(parameters: [String: Any], parameterEncoding: ParameterEncoding) throws -> URLRequest {
^~~~~~~~~~
[66/68] Compiling Moya MoyaProvider.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.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.
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:148:65: error: cannot find 'NSEC_PER_SEC' in scope
let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:149:81: error: cannot find 'NSEC_PER_SEC' in scope
let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:199:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:202:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
~~~~~~~~ ^~~~~~~~~~
[67/68] Compiling Moya MultiTarget.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.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.
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:148:65: error: cannot find 'NSEC_PER_SEC' in scope
let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:149:81: error: cannot find 'NSEC_PER_SEC' in scope
let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:199:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:202:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
~~~~~~~~ ^~~~~~~~~~
[68/68] Compiling Moya MultipartFormData.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.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.
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:148:65: error: cannot find 'NSEC_PER_SEC' in scope
let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:149:81: error: cannot find 'NSEC_PER_SEC' in scope
let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:199:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:202:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
~~~~~~~~ ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/21] Compiling Moya Task.swift
[3/21] Compiling Moya URL+Moya.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/23] 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.
case response(HTTPURLResponse, Data)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Moya+Alamofire.swift:27:1: error: type 'Request' does not conform to protocol 'RequestType'
extension Request: RequestType {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:756:17: note: candidate has non-matching type '(URLCredential) -> Self'
public func authenticate(with credential: URLCredential) -> Self {
^
/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')
func authenticate(with credential: URLCredential) -> Self
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:79:60: error: cannot find type 'URLRequest' in scope
private func performRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> Cancellable {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:175:57: error: cannot find type 'URLRequest' in scope
func sendUploadMultipart(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, multipartBody: [MultipartFormData], progress: Moya.ProgressBlock? = nil, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:192:52: error: cannot find type 'URLRequest' in scope
func sendUploadFile(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, file: URL, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:206:57: error: cannot find type 'URLRequest' in scope
func sendDownloadRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, destination: @escaping DownloadDestination, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:220:49: error: cannot find type 'URLRequest' in scope
func sendRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.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.
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/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.
func authenticate(with credential: URLCredential) -> Self
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:71: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:36: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/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.
public typealias CredentialClosure = (TargetType) -> URLCredential?
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:6:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { _urlRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:11:30: error: cannot find type 'URLRequest' in scope
private var _urlRequest: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, 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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
~~~~~~~~~~~~~ ^
/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.
func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:13:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/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.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/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.
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:3:20: error: cannot find type 'URLRequest' in scope
internal extension URLRequest {
^~~~~~~~~~
[5/23] 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.
case response(HTTPURLResponse, Data)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:83:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: requestURL)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Moya+Alamofire.swift:27:1: error: type 'Request' does not conform to protocol 'RequestType'
extension Request: RequestType {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:756:17: note: candidate has non-matching type '(URLCredential) -> Self'
public func authenticate(with credential: URLCredential) -> Self {
^
/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')
func authenticate(with credential: URLCredential) -> Self
^
[6/23] 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.
case response(HTTPURLResponse, Data)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:83:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: requestURL)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Moya+Alamofire.swift:27:1: error: type 'Request' does not conform to protocol 'RequestType'
extension Request: RequestType {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:756:17: note: candidate has non-matching type '(URLCredential) -> Self'
public func authenticate(with credential: URLCredential) -> Self {
^
/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')
func authenticate(with credential: URLCredential) -> Self
^
[7/23] 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.
case response(HTTPURLResponse, Data)
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:83:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: requestURL)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Moya+Alamofire.swift:27:1: error: type 'Request' does not conform to protocol 'RequestType'
extension Request: RequestType {
^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Request.swift:756:17: note: candidate has non-matching type '(URLCredential) -> Self'
public func authenticate(with credential: URLCredential) -> Self {
^
/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')
func authenticate(with credential: URLCredential) -> Self
^
[8/23] Compiling Moya Response.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:13:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/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.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/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.
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:36:29: error: binary operator '==' cannot be applied to two 'HTTPURLResponse?' (aka 'Optional<AnyObject>') operands
&& lhs.response == rhs.response
~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:115:50: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
let string = jsonDictionary.value(forKeyPath: keyPath) as? String else {
^~~~~~~~~~~
forKey
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:145:109: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
guard let jsonObject = (try mapJSON(failsOnEmptyData: failsOnEmptyData) as? NSDictionary)?.value(forKeyPath: keyPath) else {
^~~~~~~~~~~
forKey
[9/23] Compiling Moya TargetType.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:13:25: error: cannot find type 'URLRequest' in scope
public let request: URLRequest?
^~~~~~~~~~
/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.
public let response: HTTPURLResponse?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/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.
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Image.swift:10:26: error: cannot find type 'ImageType' in scope
public typealias Image = ImageType
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:36:29: error: binary operator '==' cannot be applied to two 'HTTPURLResponse?' (aka 'Optional<AnyObject>') operands
&& lhs.response == rhs.response
~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:115:50: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
let string = jsonDictionary.value(forKeyPath: keyPath) as? String else {
^~~~~~~~~~~
forKey
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:145:109: error: incorrect argument label in call (have 'forKeyPath:', expected 'forKey:')
guard let jsonObject = (try mapJSON(failsOnEmptyData: failsOnEmptyData) as? NSDictionary)?.value(forKeyPath: keyPath) else {
^~~~~~~~~~~
forKey
[10/23] Compiling Moya NetworkActivityPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/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'
output.append(configuration.formatter.entry("Response", httpResponse.description, target))
~~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:6:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { _urlRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:11:30: error: cannot find type 'URLRequest' in scope
private var _urlRequest: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, 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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
~~~~~~~~~~~~~ ^
/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.
func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: error: 'Foundation.URLCredential' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLCredential'
let newRequest = _request.authenticate(with: credential)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: note: did you mean to use 'as!' to force downcast?
let newRequest = _request.authenticate(with: credential)
^
as! URLCredential
[11/23] Compiling Moya NetworkLoggerPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/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'
output.append(configuration.formatter.entry("Response", httpResponse.description, target))
~~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:6:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { _urlRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:11:30: error: cannot find type 'URLRequest' in scope
private var _urlRequest: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, 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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
~~~~~~~~~~~~~ ^
/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.
func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: error: 'Foundation.URLCredential' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLCredential'
let newRequest = _request.authenticate(with: credential)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: note: did you mean to use 'as!' to force downcast?
let newRequest = _request.authenticate(with: credential)
^
as! URLCredential
[12/23] Compiling Moya RequestTypeWrapper.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/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'
output.append(configuration.formatter.entry("Response", httpResponse.description, target))
~~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:6:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { _urlRequest }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:11:30: error: cannot find type 'URLRequest' in scope
private var _urlRequest: URLRequest?
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, 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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> RequestTypeWrapper {
~~~~~~~~~~~~~ ^
/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.
func authenticate(with credential: URLCredential) -> RequestTypeWrapper {
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: error: 'Foundation.URLCredential' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLCredential'
let newRequest = _request.authenticate(with: credential)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:24:54: note: did you mean to use 'as!' to force downcast?
let newRequest = _request.authenticate(with: credential)
^
as! URLCredential
[13/23] Compiling Moya Plugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/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.
func authenticate(with credential: URLCredential) -> Self
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:71: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:36: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/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.
public typealias CredentialClosure = (TargetType) -> URLCredential?
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
[14/23] Compiling Moya AccessTokenPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/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.
func authenticate(with credential: URLCredential) -> Self
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:71: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:36: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/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.
public typealias CredentialClosure = (TargetType) -> URLCredential?
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
[15/23] Compiling Moya CredentialsPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:39:18: error: cannot find type 'URLRequest' in scope
var request: URLRequest? { get }
^~~~~~~~~~
/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')
func authenticate(username: String, password: String, persistence: URLCredential.Persistence) -> Self
~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/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.
func authenticate(with credential: URLCredential) -> Self
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:71: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugins/AccessTokenPlugin.swift:88:36: error: cannot find type 'URLRequest' in scope
public func prepare(_ request: URLRequest, target: TargetType) -> URLRequest {
^~~~~~~~~~
/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.
public typealias CredentialClosure = (TargetType) -> URLCredential?
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
[16/23] 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
internal extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:5:97: error: cannot find type 'URLRequest' in scope
mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:21:93: error: cannot find type 'URLRequest' in scope
func encoded(parameters: [String: Any], parameterEncoding: ParameterEncoding) throws -> URLRequest {
^~~~~~~~~~
[17/23] 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
internal extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:5:97: error: cannot find type 'URLRequest' in scope
mutating func encoded(encodable: Encodable, encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/URLRequest+Encoding.swift:21:93: error: cannot find type 'URLRequest' in scope
func encoded(parameters: [String: Any], parameterEncoding: ParameterEncoding) throws -> URLRequest {
^~~~~~~~~~
[18/23] Compiling Moya MoyaError.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:18:22: error: cannot infer contextual base in reference to member 'success'
closure(.success(urlRequest))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:20:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.requestMapping(url)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:22:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.parameterEncoding(error)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:24:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.underlying(error, nil)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:29:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let configuration = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:30:34: error: cannot infer contextual base in reference to member 'default'
configuration.headers = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:79:60: error: cannot find type 'URLRequest' in scope
private func performRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> Cancellable {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:175:57: error: cannot find type 'URLRequest' in scope
func sendUploadMultipart(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, multipartBody: [MultipartFormData], progress: Moya.ProgressBlock? = nil, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:192:52: error: cannot find type 'URLRequest' in scope
func sendUploadFile(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, file: URL, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:206:57: error: cannot find type 'URLRequest' in scope
func sendDownloadRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, destination: @escaping DownloadDestination, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:220:49: error: cannot find type 'URLRequest' in scope
func sendRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:58: error: cannot find type 'URLRequest' in scope
let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:51:26: error: cannot find type 'URLRequest' in scope
var request: URLRequest!
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:33: error: unable to infer closure type without a type annotation
let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, urlRequest: URLRequest?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:133:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: customResponse.statusCode, data: data, request: request, response: customResponse)
~~~~~~~~~~~~~~ ^~~~~~~~~~
[19/23] 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
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:18:22: error: cannot infer contextual base in reference to member 'success'
closure(.success(urlRequest))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:20:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.requestMapping(url)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:22:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.parameterEncoding(error)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:24:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.underlying(error, nil)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:29:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let configuration = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:30:34: error: cannot infer contextual base in reference to member 'default'
configuration.headers = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:79:60: error: cannot find type 'URLRequest' in scope
private func performRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> Cancellable {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:175:57: error: cannot find type 'URLRequest' in scope
func sendUploadMultipart(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, multipartBody: [MultipartFormData], progress: Moya.ProgressBlock? = nil, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:192:52: error: cannot find type 'URLRequest' in scope
func sendUploadFile(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, file: URL, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:206:57: error: cannot find type 'URLRequest' in scope
func sendDownloadRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, destination: @escaping DownloadDestination, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:220:49: error: cannot find type 'URLRequest' in scope
func sendRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:58: error: cannot find type 'URLRequest' in scope
let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:51:26: error: cannot find type 'URLRequest' in scope
var request: URLRequest!
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:33: error: unable to infer closure type without a type annotation
let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, urlRequest: URLRequest?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:133:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: customResponse.statusCode, data: data, request: request, response: customResponse)
~~~~~~~~~~~~~~ ^~~~~~~~~~
[20/23] 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
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Endpoint.swift:78:33: error: cannot find type 'URLRequest' in scope
func urlRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:18:22: error: cannot infer contextual base in reference to member 'success'
closure(.success(urlRequest))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:20:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.requestMapping(url)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:22:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.parameterEncoding(error)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:24:22: error: cannot infer contextual base in reference to member 'failure'
closure(.failure(MoyaError.underlying(error, nil)))
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:29:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let configuration = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Defaults.swift:30:34: error: cannot infer contextual base in reference to member 'default'
configuration.headers = .default
~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:79:60: error: cannot find type 'URLRequest' in scope
private func performRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> Cancellable {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:175:57: error: cannot find type 'URLRequest' in scope
func sendUploadMultipart(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, multipartBody: [MultipartFormData], progress: Moya.ProgressBlock? = nil, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:192:52: error: cannot find type 'URLRequest' in scope
func sendUploadFile(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, file: URL, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:206:57: error: cannot find type 'URLRequest' in scope
func sendDownloadRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, destination: @escaping DownloadDestination, progress: ProgressBlock? = nil, completion: @escaping Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:220:49: error: cannot find type 'URLRequest' in scope
func sendRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, progress: Moya.ProgressBlock?, completion: @escaping Moya.Completion) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:58: error: cannot find type 'URLRequest' in scope
let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:51:26: error: cannot find type 'URLRequest' in scope
var request: URLRequest!
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:45:33: error: unable to infer closure type without a type annotation
let performNetworking = { (requestResult: Result<URLRequest, MoyaError>) in
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:24:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest { request }
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/RequestTypeWrapper.swift:13:40: error: cannot find type 'URLRequest' in scope
init(request: Request, urlRequest: URLRequest?) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:128:110: error: 'nil' requires a contextual type
let response = Moya.Response(statusCode: statusCode, data: data, request: request, response: nil)
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:133:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: customResponse.statusCode, data: data, request: request, response: customResponse)
~~~~~~~~~~~~~~ ^~~~~~~~~~
[21/23] Compiling Moya MoyaProvider.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.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.
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:148:65: error: cannot find 'NSEC_PER_SEC' in scope
let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:149:81: error: cannot find 'NSEC_PER_SEC' in scope
let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:199:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:202:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
~~~~~~~~ ^~~~~~~~~~
[22/23] Compiling Moya MultiTarget.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.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.
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:148:65: error: cannot find 'NSEC_PER_SEC' in scope
let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:149:81: error: cannot find 'NSEC_PER_SEC' in scope
let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:199:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:202:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
~~~~~~~~ ^~~~~~~~~~
[23/23] Compiling Moya MultipartFormData.swift
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:58:53: error: cannot find type 'URLRequest' in scope
public typealias RequestResultClosure = (Result<URLRequest, MoyaError>) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:64: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Plugin.swift:11:29: error: cannot find type 'URLRequest' in scope
func prepare(_ request: URLRequest, target: TargetType) -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:133:54: error: cannot find type 'URLRequest' in scope
open func stubRequest(_ target: Target, request: URLRequest, callbackQueue: DispatchQueue?, completion: @escaping Moya.Completion, endpoint: Endpoint, stubBehavior: Moya.StubBehavior) -> CancellableToken {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:195:76: error: cannot find type 'URLRequest' in scope
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.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.
public func convertResponseToResult(_ response: HTTPURLResponse?, request: URLRequest?, data: Data?, error: Swift.Error?) ->
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:89: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:146:58: error: cannot find type 'URLRequest' in scope
final func notifyPluginsOfImpendingStub(for request: URLRequest, target: Target) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider+Internal.swift:107:194: error: cannot find type 'URLRequest' in scope
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
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:148:65: error: cannot find 'NSEC_PER_SEC' in scope
let killTimeOffset = Int64(CDouble(delay) * CDouble(NSEC_PER_SEC))
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:149:81: error: cannot find 'NSEC_PER_SEC' in scope
let killTime = DispatchTime.now() + Double(killTimeOffset) / Double(NSEC_PER_SEC)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/Response.swift:18:55: error: cannot find type 'URLRequest' in scope
public init(statusCode: Int, data: Data, request: URLRequest? = nil, response: HTTPURLResponse? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:199:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Moya/Sources/Moya/MoyaProvider.swift:202:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let response = Moya.Response(statusCode: response.statusCode, data: data ?? Data(), request: request, response: response)
~~~~~~~~ ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux