Build Information
Failed to build MoyaAPIClient with Swift 5.8 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.21.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fummicc1/MoyaAPIClient.git
Reference: 1.1.1
Cloned https://github.com/fummicc1/MoyaAPIClient.git into spi-builder-workspace
SUCCESS checkout https://github.com/fummicc1/MoyaAPIClient.git at 1.1.1
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/Alamofire/Alamofire.git
Fetching https://github.com/Moya/Moya.git
Fetching https://github.com/ReactiveX/RxSwift.git
[1/25128] Fetching moya
[4022/75862] Fetching moya, rxswift
[31072/102733] Fetching moya, rxswift, alamofire
Fetching https://github.com/ReactiveCocoa/ReactiveSwift.git
Fetched https://github.com/ReactiveX/RxSwift.git (3.31s)
Fetched https://github.com/Moya/Moya.git (3.32s)
Computing version for https://github.com/Moya/Moya.git
Fetched https://github.com/Alamofire/Alamofire.git (3.33s)
[1/52322] Fetching reactiveswift
Computed https://github.com/Moya/Moya.git at 15.0.3 (2.42s)
Fetched https://github.com/ReactiveCocoa/ReactiveSwift.git (2.46s)
Computing version for https://github.com/ReactiveX/RxSwift.git
Computed https://github.com/ReactiveX/RxSwift.git at 6.6.0 (0.36s)
Computing version for https://github.com/ReactiveCocoa/ReactiveSwift.git
Computed https://github.com/ReactiveCocoa/ReactiveSwift.git at 6.7.0 (0.27s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.7.1 (0.22s)
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/Moya/Moya.git
Working copy of https://github.com/Moya/Moya.git resolved at 15.0.3
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/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.7.1
Building for debugging...
[1/34] Emitting module Alamofire
[2/38] Compiling Alamofire AFError.swift
[3/38] Compiling Alamofire Alamofire.swift
[4/38] Compiling Alamofire AlamofireExtended.swift
[5/38] Compiling Alamofire AuthenticationInterceptor.swift
[6/38] Compiling Alamofire CachedResponseHandler.swift
[7/38] Compiling Alamofire HTTPMethod.swift
[8/38] Compiling Alamofire MultipartFormData.swift
[9/38] Compiling Alamofire MultipartUpload.swift
[10/38] Compiling Alamofire NetworkReachabilityManager.swift
[11/38] Compiling Alamofire Notifications.swift
[12/38] Compiling Alamofire OperationQueue+Alamofire.swift
[13/38] Compiling Alamofire ParameterEncoder.swift
[14/38] Compiling Alamofire ParameterEncoding.swift
[15/38] Compiling Alamofire Protected.swift
[16/38] Compiling Alamofire RedirectHandler.swift
[17/38] Compiling Alamofire Request.swift
[18/38] Compiling Alamofire RequestCompression.swift
[19/38] Compiling Alamofire RequestInterceptor.swift
[20/38] Compiling Alamofire RequestTaskMap.swift
[21/38] Compiling Alamofire Response.swift
[22/38] Compiling Alamofire ResponseSerialization.swift
[23/38] Compiling Alamofire Result+Alamofire.swift
[24/38] Compiling Alamofire RetryPolicy.swift
[25/38] Compiling Alamofire ServerTrustEvaluation.swift
[26/38] Compiling Alamofire Session.swift
[27/38] Compiling Alamofire SessionDelegate.swift
[28/38] Compiling Alamofire StringEncoding+Alamofire.swift
[29/38] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[30/38] Compiling Alamofire Combine.swift
[31/38] Compiling Alamofire Concurrency.swift
[32/38] Compiling Alamofire DispatchQueue+Alamofire.swift
[33/38] Compiling Alamofire EventMonitor.swift
[34/38] Compiling Alamofire HTTPHeaders.swift
[35/38] Compiling Alamofire URLEncodedFormEncoder.swift
[36/38] Compiling Alamofire URLRequest+Alamofire.swift
[37/38] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[38/38] Compiling Alamofire Validation.swift
[41/62] Compiling Moya AnyEncodable.swift
[42/62] Compiling Moya Atomic.swift
[43/62] Compiling Moya Cancellable.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 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
^
[46/65] 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
^
[47/65] 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
^
[48/65] 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
[49/65] 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
[50/65] 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
[51/65] 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 in the current context
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)
~~~~~~~~~~~~~~ ^~~~~~~~~~
[52/65] 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 in the current context
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)
~~~~~~~~~~~~~~ ^~~~~~~~~~
[53/65] 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 in the current context
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)
~~~~~~~~~~~~~~ ^~~~~~~~~~
[54/65] 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: 'HTTPURLResponse' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Equatable' because 'Equatable' has static requirements
&& 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
[55/65] 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: 'HTTPURLResponse' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Equatable' because 'Equatable' has static requirements
&& 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
[56/65] 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: 'HTTPURLResponse' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Equatable' because 'Equatable' has static requirements
&& 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
[57/65] 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 {
^~~~~~~~~~
[58/65] 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 {
^~~~~~~~~~
[59/65] 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 {
^~~~~~~~~~
[60/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
^
[61/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
^
[62/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
^
[63/65] 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)
~~~~~~~~ ^~~~~~~~~~
[64/65] 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)
~~~~~~~~ ^~~~~~~~~~
[65/65] 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)
~~~~~~~~ ^~~~~~~~~~
BUILD FAILURE 5.8 linux
Build Machine: Linux 1