Build Information
Failed to build Cobalt, reference master (7bdd62
), with Swift 5.10 for macOS (SPM) on 2 Jun 2025 16:48:44 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/e-sites/Cobalt.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/e-sites/Cobalt
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 7bdd62f Redirect Authorization headers
Cloned https://github.com/e-sites/Cobalt.git
Revision (git rev-parse @):
7bdd62f6ad06ca3e27911fc04113f0ceaa421bb9
SUCCESS checkout https://github.com/e-sites/Cobalt.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $PWD
https://github.com/e-sites/Cobalt.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/10] Write sources
[3/10] Copying PrivacyInfo.xcprivacy
[9/10] Write swift-version-33747A42983211AE.txt
[11/61] Emitting module Logging
[12/61] Compiling Logging Locks.swift
[13/61] Compiling Logging MetadataProvider.swift
[14/61] Compiling Logging LogHandler.swift
[15/61] Compiling Logging Logging.swift
[16/61] Emitting module Alamofire
[17/65] Compiling Alamofire RequestCompression.swift
[18/65] Compiling Alamofire RequestInterceptor.swift
[19/65] Compiling Alamofire ResponseSerialization.swift
[20/65] Compiling Alamofire RetryPolicy.swift
[21/65] Compiling DebugMasking DebugMasking.Config.swift
[22/65] Compiling DebugMasking DebugMasking.MaskOption.swift
[23/65] Compiling Alamofire HTTPHeaders.swift
[24/65] Compiling Alamofire HTTPMethod.swift
[25/65] Compiling Alamofire Notifications.swift
[26/65] Compiling Alamofire ParameterEncoder.swift
[27/65] Compiling Alamofire ParameterEncoding.swift
[28/65] Emitting module DebugMasking
[29/65] Compiling DebugMasking DebugMasking.swift
[30/65] Compiling Alamofire SessionDelegate.swift
[31/65] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[32/65] Compiling Alamofire UploadRequest.swift
[33/65] Compiling Alamofire WebSocketRequest.swift
[34/65] Compiling Alamofire MultipartFormData.swift
[35/65] Compiling Alamofire MultipartUpload.swift
[36/65] Compiling Alamofire NetworkReachabilityManager.swift
[37/65] Compiling Alamofire RedirectHandler.swift
[38/65] Compiling Alamofire DispatchQueue+Alamofire.swift
[39/65] Compiling Alamofire OperationQueue+Alamofire.swift
[40/65] Compiling Alamofire Result+Alamofire.swift
[41/65] Compiling Alamofire StringEncoding+Alamofire.swift
[42/65] Compiling Alamofire CachedResponseHandler.swift
[43/65] Compiling Alamofire Combine.swift
[44/65] Compiling Alamofire Concurrency.swift
[45/65] Compiling Alamofire EventMonitor.swift
[46/65] Compiling Alamofire URLRequest+Alamofire.swift
[47/65] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[48/65] Compiling Alamofire AlamofireExtended.swift
[49/65] Compiling Alamofire AuthenticationInterceptor.swift
[50/65] Compiling Alamofire Protected.swift
[51/65] Compiling Alamofire Request.swift
[52/65] Compiling Alamofire RequestTaskMap.swift
[53/65] Compiling Alamofire Response.swift
[54/65] Compiling Alamofire Session.swift
[55/65] Compiling KeychainAccess Keychain.swift
[56/65] Emitting module KeychainAccess
[57/65] Compiling Alamofire Alamofire.swift
[58/65] Compiling Alamofire AFError.swift
[59/65] Compiling Alamofire DataRequest.swift
[60/65] Compiling Alamofire DataStreamRequest.swift
[61/65] Compiling Alamofire DownloadRequest.swift
[62/65] Compiling Alamofire ServerTrustEvaluation.swift
[63/65] Compiling Alamofire URLEncodedFormEncoder.swift
[64/65] Compiling Alamofire Validation.swift
[65/65] Compiling Alamofire resource_bundle_accessor.swift
[66/80] Compiling Cobalt LoggingOption.swift
[67/81] Compiling Cobalt RequestQueue.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:15:39: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
private var _map: [CobaltRequest: PassthroughSubject<CobaltResponse, CobaltError>] = [:]
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:12:7: note: add @available attribute to enclosing class
class RequestQueue {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:57:50: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func publisher(of request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:57:10: note: add @available attribute to enclosing instance method
func publisher(of request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:12:7: note: add @available attribute to enclosing class
class RequestQueue {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:33:25: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
_map[request] = PassthroughSubject<CobaltResponse, CobaltError>()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:33:25: note: add 'if #available' version check
_map[request] = PassthroughSubject<CobaltResponse, CobaltError>()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:29:10: note: add @available attribute to enclosing instance method
func add(_ request: CobaltRequest) {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:12:7: note: add @available attribute to enclosing class
class RequestQueue {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:58:31: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return _map[request]?.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:58:31: note: add 'if #available' version check
return _map[request]?.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:57:10: note: add @available attribute to enclosing instance method
func publisher(of request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:12:7: note: add @available attribute to enclosing class
class RequestQueue {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:36:28: error: 'AnyCancellable' is only available in macOS 10.15 or newer
var cancellables = Set<AnyCancellable>()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:68:36: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
apiClient.request(request).sink(receiveCompletion: { event in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:68:36: note: add 'if #available' version check
apiClient.request(request).sink(receiveCompletion: { event in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:61:10: note: add @available attribute to enclosing instance method
func handle(request: CobaltRequest) {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:12:7: note: add @available attribute to enclosing class
class RequestQueue {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:78:12: error: 'store(in:)' is only available in macOS 10.15 or newer
}).store(in: &apiClient.cancellables)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:78:12: note: add 'if #available' version check
}).store(in: &apiClient.cancellables)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:61:10: note: add @available attribute to enclosing instance method
func handle(request: CobaltRequest) {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:12:7: note: add @available attribute to enclosing class
class RequestQueue {
^
[68/81] Compiling Cobalt String+Extension.swift
[69/81] Compiling Cobalt Optional.swift
[70/81] Compiling Cobalt CobaltConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:165:48: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func asPublisher<T>(outputType: T.Type) -> AnyPublisher<T, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:165:10: note: add @available attribute to enclosing instance method
func asPublisher<T>(outputType: T.Type) -> AnyPublisher<T, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:164:1: note: add @available attribute to enclosing extension
extension CobaltError {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:166:16: error: 'Fail' is only available in macOS 10.15 or newer
return Fail<T, CobaltError>(error: self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:166:16: note: add 'if #available' version check
return Fail<T, CobaltError>(error: self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:165:10: note: add @available attribute to enclosing instance method
func asPublisher<T>(outputType: T.Type) -> AnyPublisher<T, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:164:1: note: add @available attribute to enclosing extension
extension CobaltError {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:166:50: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Fail<T, CobaltError>(error: self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:166:50: note: add 'if #available' version check
return Fail<T, CobaltError>(error: self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:165:10: note: add @available attribute to enclosing instance method
func asPublisher<T>(outputType: T.Type) -> AnyPublisher<T, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:164:1: note: add @available attribute to enclosing extension
extension CobaltError {
^
[71/81] Compiling Cobalt CobaltError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:165:48: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func asPublisher<T>(outputType: T.Type) -> AnyPublisher<T, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:165:10: note: add @available attribute to enclosing instance method
func asPublisher<T>(outputType: T.Type) -> AnyPublisher<T, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:164:1: note: add @available attribute to enclosing extension
extension CobaltError {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:166:16: error: 'Fail' is only available in macOS 10.15 or newer
return Fail<T, CobaltError>(error: self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:166:16: note: add 'if #available' version check
return Fail<T, CobaltError>(error: self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:165:10: note: add @available attribute to enclosing instance method
func asPublisher<T>(outputType: T.Type) -> AnyPublisher<T, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:164:1: note: add @available attribute to enclosing extension
extension CobaltError {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:166:50: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Fail<T, CobaltError>(error: self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:166:50: note: add 'if #available' version check
return Fail<T, CobaltError>(error: self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:165:10: note: add @available attribute to enclosing instance method
func asPublisher<T>(outputType: T.Type) -> AnyPublisher<T, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:164:1: note: add @available attribute to enclosing extension
extension CobaltError {
^
[72/81] Compiling Cobalt resource_bundle_accessor.swift
[73/81] Compiling Cobalt CobaltRequest.swift
[74/81] Compiling Cobalt CobaltResponse.swift
[75/81] Compiling Cobalt AccessToken.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[76/81] Compiling Cobalt Authentication.swift
[77/81] Emitting module Cobalt
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:29:47: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func authorize(request: CobaltRequest) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:29:10: note: add @available attribute to enclosing instance method
func authorize(request: CobaltRequest) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:102:74: error: 'AnyPublisher' is only available in macOS 10.15 or newer
grantType: OAuthenticationGrantType) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:136: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:204:82: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func createAuthorizationCodeRequest(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:204:10: note: add @available attribute to enclosing instance method
func createAuthorizationCodeRequest(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:257:111: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func requestTokenFromAuthorizationCode(initialRequest request: AuthorizationCodeRequest, code: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:257:10: note: add @available attribute to enclosing instance method
func requestTokenFromAuthorizationCode(initialRequest request: AuthorizationCodeRequest, code: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:322:64: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func recover(from error: Error, request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:322:10: note: add @available attribute to enclosing instance method
func recover(from error: Error, request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:348:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
static func never() -> AnyPublisher<Output, Failure> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:348:17: note: add @available attribute to enclosing static method
static func never() -> AnyPublisher<Output, Failure> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:1: note: add @available attribute to enclosing extension
extension AnyPublisher {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:11: error: 'AnyPublisher' is only available in macOS 10.15 or newer
extension AnyPublisher {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:1: note: add @available attribute to enclosing extension
extension AnyPublisher {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:17:44: error: 'AnyPublisher' is only available in macOS 10.15 or newer
var stubbedPublishers: [CobaltRequest: AnyPublisher<CobaltResponse, CobaltError>] = [:]
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:13:20: note: add @available attribute to enclosing class
public final class ClientService: NSObject {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:29:72: error: 'AnyPublisher' is only available in macOS 10.15 or newer
public func addStubbedPublisher(request: CobaltRequest, publisher: AnyPublisher<CobaltResponse, CobaltError>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:29:17: note: add @available attribute to enclosing instance method
public func addStubbedPublisher(request: CobaltRequest, publisher: AnyPublisher<CobaltResponse, CobaltError>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:13:20: note: add @available attribute to enclosing class
public final class ClientService: NSObject {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:34:6: error: 'Published' is only available in macOS 10.15 or newer
@Published public var authorizationGrantType: OAuthenticationGrantType?
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:36:28: error: 'AnyCancellable' is only available in macOS 10.15 or newer
var cancellables = Set<AnyCancellable>()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:52: error: 'AnyPublisher' is only available in macOS 10.15 or newer
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:56: error: 'AnyPublisher' is only available in macOS 10.15 or newer
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:136: error: 'AnyPublisher' is only available in macOS 10.15 or newer
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:366:60: error: 'AnyPublisher' is only available in macOS 10.15 or newer
open func login(username: String, password: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:366:15: note: add @available attribute to enclosing instance method
open func login(username: String, password: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:375:79: error: 'AnyPublisher' is only available in macOS 10.15 or newer
open func startAuthorizationFlow(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:375:15: note: add @available attribute to enclosing instance method
open func startAuthorizationFlow(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:379:116: error: 'AnyPublisher' is only available in macOS 10.15 or newer
open func requestTokenFromAuthorizationCode(initialRequest request: AuthorizationCodeRequest, code: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:379:15: note: add @available attribute to enclosing instance method
open func requestTokenFromAuthorizationCode(initialRequest request: AuthorizationCodeRequest, code: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
<unknown>:0: error: key path value type 'KeyPath<CobaltClient, OAuthenticationGrantType?>' cannot be converted to contextual type 'ReferenceWritableKeyPath<CobaltClient, OAuthenticationGrantType?>'
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:165:48: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func asPublisher<T>(outputType: T.Type) -> AnyPublisher<T, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:165:10: note: add @available attribute to enclosing instance method
func asPublisher<T>(outputType: T.Type) -> AnyPublisher<T, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltError.swift:164:1: note: add @available attribute to enclosing extension
extension CobaltError {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:15:39: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
private var _map: [CobaltRequest: PassthroughSubject<CobaltResponse, CobaltError>] = [:]
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:12:7: note: add @available attribute to enclosing class
class RequestQueue {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:57:50: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func publisher(of request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:57:10: note: add @available attribute to enclosing instance method
func publisher(of request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/RequestQueue.swift:12:7: note: add @available attribute to enclosing class
class RequestQueue {
^
[78/81] Compiling Cobalt AuthenticationProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:29:47: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func authorize(request: CobaltRequest) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:29:10: note: add @available attribute to enclosing instance method
func authorize(request: CobaltRequest) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:102:74: error: 'AnyPublisher' is only available in macOS 10.15 or newer
grantType: OAuthenticationGrantType) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:136: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:204:82: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func createAuthorizationCodeRequest(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:204:10: note: add @available attribute to enclosing instance method
func createAuthorizationCodeRequest(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:257:111: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func requestTokenFromAuthorizationCode(initialRequest request: AuthorizationCodeRequest, code: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:257:10: note: add @available attribute to enclosing instance method
func requestTokenFromAuthorizationCode(initialRequest request: AuthorizationCodeRequest, code: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:322:64: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func recover(from error: Error, request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:322:10: note: add @available attribute to enclosing instance method
func recover(from error: Error, request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:348:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
static func never() -> AnyPublisher<Output, Failure> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:348:17: note: add @available attribute to enclosing static method
static func never() -> AnyPublisher<Output, Failure> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:1: note: add @available attribute to enclosing extension
extension AnyPublisher {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:11: error: 'AnyPublisher' is only available in macOS 10.15 or newer
extension AnyPublisher {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:1: note: add @available attribute to enclosing extension
extension AnyPublisher {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:93:16: error: 'Just' is only available in macOS 10.15 or newer
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:93:16: note: add 'if #available' version check
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:29:10: note: add @available attribute to enclosing instance method
func authorize(request: CobaltRequest) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:93:30: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:93:30: note: add 'if #available' version check
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:29:10: note: add @available attribute to enclosing instance method
func authorize(request: CobaltRequest) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:93:67: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:93:67: note: add 'if #available' version check
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:29:10: note: add @available attribute to enclosing instance method
func authorize(request: CobaltRequest) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:116:24: error: 'Just' is only available in macOS 10.15 or newer
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:116:24: note: add 'if #available' version check
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:116:38: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:116:38: note: add 'if #available' version check
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:116:75: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:116:75: note: add 'if #available' version check
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:133:14: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
.flatMap { [weak self] _ -> AnyPublisher<CobaltRequest, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:133:14: note: add 'if #available' version check
.flatMap { [weak self] _ -> AnyPublisher<CobaltRequest, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:133:41: error: 'AnyPublisher' is only available in macOS 10.15 or newer
.flatMap { [weak self] _ -> AnyPublisher<CobaltRequest, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:133:41: note: add 'if #available' version check
.flatMap { [weak self] _ -> AnyPublisher<CobaltRequest, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:135:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
return AnyPublisher<CobaltRequest, CobaltError>.never()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:135:28: note: add 'if #available' version check
return AnyPublisher<CobaltRequest, CobaltError>.never()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:138:15: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:138:15: note: add 'if #available' version check
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:173:40: error: 'tryMap' is only available in macOS 10.15 or newer
return client.request(request).tryMap { [weak self, client] response -> Void in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:173:40: note: add 'if #available' version check
return client.request(request).tryMap { [weak self, client] response -> Void in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:180:13: error: setter for 'authorizationGrantType' is only available in macOS 10.15 or newer
client?.authorizationGrantType = accessToken.grantType
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:180:13: note: add 'if #available' version check
client?.authorizationGrantType = accessToken.grantType
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:183:11: error: 'tryCatch' is only available in macOS 10.15 or newer
}.tryCatch { [weak self, client] error -> AnyPublisher<Void, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:183:11: note: add 'if #available' version check
}.tryCatch { [weak self, client] error -> AnyPublisher<Void, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:183:51: error: 'AnyPublisher' is only available in macOS 10.15 or newer
}.tryCatch { [weak self, client] error -> AnyPublisher<Void, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:183:51: note: add 'if #available' version check
}.tryCatch { [weak self, client] error -> AnyPublisher<Void, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:197:11: error: 'mapError' is only available in macOS 10.15 or newer
}.mapError { error in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:197:11: note: add 'if #available' version check
}.mapError { error in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:199:11: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:199:11: note: add 'if #available' version check
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:205:16: error: 'Deferred' is only available in macOS 10.15 or newer
return Deferred { [weak self] in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:205:16: note: add 'if #available' version check
return Deferred { [weak self] in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:204:10: note: add @available attribute to enclosing instance method
func createAuthorizationCodeRequest(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:206:13: error: 'Future' is only available in macOS 10.15 or newer
Future { promise in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:206:13: note: add 'if #available' version check
Future { promise in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:204:10: note: add @available attribute to enclosing instance method
func createAuthorizationCodeRequest(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:254:11: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:254:11: note: add 'if #available' version check
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:204:10: note: add @available attribute to enclosing instance method
func createAuthorizationCodeRequest(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:316:9: error: setter for 'authorizationGrantType' is only available in macOS 10.15 or newer
client.authorizationGrantType = grantType
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:316:9: note: add 'if #available' version check
client.authorizationGrantType = grantType
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:307:10: note: add @available attribute to enclosing instance method
func handleManualOAuthRequest(grantType: OAuthenticationGrantType,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:343:16: error: 'Fail' is only available in macOS 10.15 or newer
return Fail(error: CobaltError(from: error)).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:343:16: note: add 'if #available' version check
return Fail(error: CobaltError(from: error)).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:322:10: note: add @available attribute to enclosing instance method
func recover(from error: Error, request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:343:54: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Fail(error: CobaltError(from: error)).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:343:54: note: add 'if #available' version check
return Fail(error: CobaltError(from: error)).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:322:10: note: add @available attribute to enclosing instance method
func recover(from error: Error, request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:349:16: error: 'Empty' is only available in macOS 10.15 or newer
return Empty(completeImmediately: false, outputType: Output.self, failureType: Failure.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:349:16: note: add 'if #available' version check
return Empty(completeImmediately: false, outputType: Output.self, failureType: Failure.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:348:17: note: add @available attribute to enclosing static method
static func never() -> AnyPublisher<Output, Failure> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:1: note: add @available attribute to enclosing extension
extension AnyPublisher {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:349:102: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Empty(completeImmediately: false, outputType: Output.self, failureType: Failure.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:349:102: note: add 'if #available' version check
return Empty(completeImmediately: false, outputType: Output.self, failureType: Failure.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:348:17: note: add @available attribute to enclosing static method
static func never() -> AnyPublisher<Output, Failure> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:1: note: add @available attribute to enclosing extension
extension AnyPublisher {
^
[79/81] Compiling Cobalt AuthorizationCodeRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:29:47: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func authorize(request: CobaltRequest) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:29:10: note: add @available attribute to enclosing instance method
func authorize(request: CobaltRequest) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:102:74: error: 'AnyPublisher' is only available in macOS 10.15 or newer
grantType: OAuthenticationGrantType) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:136: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:204:82: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func createAuthorizationCodeRequest(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:204:10: note: add @available attribute to enclosing instance method
func createAuthorizationCodeRequest(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:257:111: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func requestTokenFromAuthorizationCode(initialRequest request: AuthorizationCodeRequest, code: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:257:10: note: add @available attribute to enclosing instance method
func requestTokenFromAuthorizationCode(initialRequest request: AuthorizationCodeRequest, code: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:322:64: error: 'AnyPublisher' is only available in macOS 10.15 or newer
func recover(from error: Error, request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:322:10: note: add @available attribute to enclosing instance method
func recover(from error: Error, request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:348:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
static func never() -> AnyPublisher<Output, Failure> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:348:17: note: add @available attribute to enclosing static method
static func never() -> AnyPublisher<Output, Failure> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:1: note: add @available attribute to enclosing extension
extension AnyPublisher {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:11: error: 'AnyPublisher' is only available in macOS 10.15 or newer
extension AnyPublisher {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:1: note: add @available attribute to enclosing extension
extension AnyPublisher {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:93:16: error: 'Just' is only available in macOS 10.15 or newer
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:93:16: note: add 'if #available' version check
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:29:10: note: add @available attribute to enclosing instance method
func authorize(request: CobaltRequest) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:93:30: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:93:30: note: add 'if #available' version check
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:29:10: note: add @available attribute to enclosing instance method
func authorize(request: CobaltRequest) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:93:67: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:93:67: note: add 'if #available' version check
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:29:10: note: add @available attribute to enclosing instance method
func authorize(request: CobaltRequest) -> AnyPublisher<CobaltRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:116:24: error: 'Just' is only available in macOS 10.15 or newer
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:116:24: note: add 'if #available' version check
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:116:38: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:116:38: note: add 'if #available' version check
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:116:75: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:116:75: note: add 'if #available' version check
return Just(request).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:133:14: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
.flatMap { [weak self] _ -> AnyPublisher<CobaltRequest, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:133:14: note: add 'if #available' version check
.flatMap { [weak self] _ -> AnyPublisher<CobaltRequest, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:133:41: error: 'AnyPublisher' is only available in macOS 10.15 or newer
.flatMap { [weak self] _ -> AnyPublisher<CobaltRequest, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:133:41: note: add 'if #available' version check
.flatMap { [weak self] _ -> AnyPublisher<CobaltRequest, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:135:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
return AnyPublisher<CobaltRequest, CobaltError>.never()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:135:28: note: add 'if #available' version check
return AnyPublisher<CobaltRequest, CobaltError>.never()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:138:15: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:138:15: note: add 'if #available' version check
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:101:18: note: add @available attribute to enclosing instance method
private func _authorizeOAuth(request: CobaltRequest,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:173:40: error: 'tryMap' is only available in macOS 10.15 or newer
return client.request(request).tryMap { [weak self, client] response -> Void in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:173:40: note: add 'if #available' version check
return client.request(request).tryMap { [weak self, client] response -> Void in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:180:13: error: setter for 'authorizationGrantType' is only available in macOS 10.15 or newer
client?.authorizationGrantType = accessToken.grantType
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:180:13: note: add 'if #available' version check
client?.authorizationGrantType = accessToken.grantType
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:183:11: error: 'tryCatch' is only available in macOS 10.15 or newer
}.tryCatch { [weak self, client] error -> AnyPublisher<Void, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:183:11: note: add 'if #available' version check
}.tryCatch { [weak self, client] error -> AnyPublisher<Void, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:183:51: error: 'AnyPublisher' is only available in macOS 10.15 or newer
}.tryCatch { [weak self, client] error -> AnyPublisher<Void, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:183:51: note: add 'if #available' version check
}.tryCatch { [weak self, client] error -> AnyPublisher<Void, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:197:11: error: 'mapError' is only available in macOS 10.15 or newer
}.mapError { error in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:197:11: note: add 'if #available' version check
}.mapError { error in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:199:11: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:199:11: note: add 'if #available' version check
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:141:10: note: add @available attribute to enclosing instance method
func sendOAuthRequest(initialRequest: CobaltRequest? = nil, grantType: OAuthenticationGrantType, parameters: Parameters? = nil) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:205:16: error: 'Deferred' is only available in macOS 10.15 or newer
return Deferred { [weak self] in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:205:16: note: add 'if #available' version check
return Deferred { [weak self] in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:204:10: note: add @available attribute to enclosing instance method
func createAuthorizationCodeRequest(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:206:13: error: 'Future' is only available in macOS 10.15 or newer
Future { promise in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:206:13: note: add 'if #available' version check
Future { promise in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:204:10: note: add @available attribute to enclosing instance method
func createAuthorizationCodeRequest(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:254:11: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:254:11: note: add 'if #available' version check
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:204:10: note: add @available attribute to enclosing instance method
func createAuthorizationCodeRequest(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:316:9: error: setter for 'authorizationGrantType' is only available in macOS 10.15 or newer
client.authorizationGrantType = grantType
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:316:9: note: add 'if #available' version check
client.authorizationGrantType = grantType
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:307:10: note: add @available attribute to enclosing instance method
func handleManualOAuthRequest(grantType: OAuthenticationGrantType,
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:343:16: error: 'Fail' is only available in macOS 10.15 or newer
return Fail(error: CobaltError(from: error)).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:343:16: note: add 'if #available' version check
return Fail(error: CobaltError(from: error)).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:322:10: note: add @available attribute to enclosing instance method
func recover(from error: Error, request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:343:54: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Fail(error: CobaltError(from: error)).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:343:54: note: add 'if #available' version check
return Fail(error: CobaltError(from: error)).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:322:10: note: add @available attribute to enclosing instance method
func recover(from error: Error, request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:15:7: note: add @available attribute to enclosing class
class AuthenticationProvider {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:349:16: error: 'Empty' is only available in macOS 10.15 or newer
return Empty(completeImmediately: false, outputType: Output.self, failureType: Failure.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:349:16: note: add 'if #available' version check
return Empty(completeImmediately: false, outputType: Output.self, failureType: Failure.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:348:17: note: add @available attribute to enclosing static method
static func never() -> AnyPublisher<Output, Failure> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:1: note: add @available attribute to enclosing extension
extension AnyPublisher {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:349:102: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Empty(completeImmediately: false, outputType: Output.self, failureType: Failure.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:349:102: note: add 'if #available' version check
return Empty(completeImmediately: false, outputType: Output.self, failureType: Failure.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:348:17: note: add @available attribute to enclosing static method
static func never() -> AnyPublisher<Output, Failure> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Authentication/AuthenticationProvider.swift:347:1: note: add @available attribute to enclosing extension
extension AnyPublisher {
^
[80/81] Compiling Cobalt ClientService.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:17:44: error: 'AnyPublisher' is only available in macOS 10.15 or newer
var stubbedPublishers: [CobaltRequest: AnyPublisher<CobaltResponse, CobaltError>] = [:]
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:13:20: note: add @available attribute to enclosing class
public final class ClientService: NSObject {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:29:72: error: 'AnyPublisher' is only available in macOS 10.15 or newer
public func addStubbedPublisher(request: CobaltRequest, publisher: AnyPublisher<CobaltResponse, CobaltError>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:29:17: note: add @available attribute to enclosing instance method
public func addStubbedPublisher(request: CobaltRequest, publisher: AnyPublisher<CobaltResponse, CobaltError>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:13:20: note: add @available attribute to enclosing class
public final class ClientService: NSObject {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:34:6: error: 'Published' is only available in macOS 10.15 or newer
@Published public var authorizationGrantType: OAuthenticationGrantType?
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:36:28: error: 'AnyCancellable' is only available in macOS 10.15 or newer
var cancellables = Set<AnyCancellable>()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:52: error: 'AnyPublisher' is only available in macOS 10.15 or newer
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:56: error: 'AnyPublisher' is only available in macOS 10.15 or newer
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:136: error: 'AnyPublisher' is only available in macOS 10.15 or newer
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:366:60: error: 'AnyPublisher' is only available in macOS 10.15 or newer
open func login(username: String, password: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:366:15: note: add @available attribute to enclosing instance method
open func login(username: String, password: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:375:79: error: 'AnyPublisher' is only available in macOS 10.15 or newer
open func startAuthorizationFlow(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:375:15: note: add @available attribute to enclosing instance method
open func startAuthorizationFlow(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:379:116: error: 'AnyPublisher' is only available in macOS 10.15 or newer
open func requestTokenFromAuthorizationCode(initialRequest request: AuthorizationCodeRequest, code: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:379:15: note: add @available attribute to enclosing instance method
open func requestTokenFromAuthorizationCode(initialRequest request: AuthorizationCodeRequest, code: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
<unknown>:0: error: key path value type 'KeyPath<CobaltClient, OAuthenticationGrantType?>' cannot be converted to contextual type 'ReferenceWritableKeyPath<CobaltClient, OAuthenticationGrantType?>'
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:111:16: error: 'Just' is only available in macOS 10.15 or newer
return Just(request)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:111:16: note: add 'if #available' version check
return Just(request)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:112:14: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
.setFailureType(to: CobaltError.self)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:112:14: note: add 'if #available' version check
.setFailureType(to: CobaltError.self)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:113:14: error: 'subscribe(on:options:)' is only available in macOS 10.15 or newer
.subscribe(on: DispatchQueue.main)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:113:14: note: add 'if #available' version check
.subscribe(on: DispatchQueue.main)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:114:14: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
.flatMap { [authProvider] aRequest in authProvider.authorize(request: aRequest) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:114:14: note: add 'if #available' version check
.flatMap { [authProvider] aRequest in authProvider.authorize(request: aRequest) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:115:14: error: 'prefix' is only available in macOS 10.15 or newer
.prefix(1)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:115:14: note: add 'if #available' version check
.prefix(1)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:117:14: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
.flatMap { [weak self] newRequest -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:117:14: note: add 'if #available' version check
.flatMap { [weak self] newRequest -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:117:50: error: 'AnyPublisher' is only available in macOS 10.15 or newer
.flatMap { [weak self] newRequest -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:117:50: note: add 'if #available' version check
.flatMap { [weak self] newRequest -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:119:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
return AnyPublisher<CobaltResponse, CobaltError>.never()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:119:28: note: add 'if #available' version check
return AnyPublisher<CobaltResponse, CobaltError>.never()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:122:22: error: 'tryMap' is only available in macOS 10.15 or newer
.tryMap { [weak self] response -> any CobaltResponse in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:122:22: note: add 'if #available' version check
.tryMap { [weak self] response -> any CobaltResponse in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:125:22: error: 'mapError' is only available in macOS 10.15 or newer
.mapError { ($0 as? CobaltError) ?? CobaltError(from: $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:125:22: note: add 'if #available' version check
.mapError { ($0 as? CobaltError) ?? CobaltError(from: $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:126:22: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:126:22: note: add 'if #available' version check
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:129:14: error: 'catch' is only available in macOS 10.15 or newer
.catch { [queue, weak self, authProvider] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:129:14: note: add 'if #available' version check
.catch { [queue, weak self, authProvider] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:129:64: error: 'AnyPublisher' is only available in macOS 10.15 or newer
.catch { [queue, weak self, authProvider] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:129:64: note: add 'if #available' version check
.catch { [queue, weak self, authProvider] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:131:22: error: 'tryCatch' is only available in macOS 10.15 or newer
.tryCatch { authError -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:131:22: note: add 'if #available' version check
.tryCatch { authError -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:131:46: error: 'AnyPublisher' is only available in macOS 10.15 or newer
.tryCatch { authError -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:131:46: note: add 'if #available' version check
.tryCatch { authError -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:138:22: error: 'mapError' is only available in macOS 10.15 or newer
.mapError { CobaltError(from: $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:138:22: note: add 'if #available' version check
.mapError { CobaltError(from: $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:139:22: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:139:22: note: add 'if #available' version check
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:142:15: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
}.flatMap { [queue, weak self] response -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:142:15: note: add 'if #available' version check
}.flatMap { [queue, weak self] response -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:142:56: error: 'AnyPublisher' is only available in macOS 10.15 or newer
}.flatMap { [queue, weak self] response -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:142:56: note: add 'if #available' version check
}.flatMap { [queue, weak self] response -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:149:24: error: 'Just' is only available in macOS 10.15 or newer
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:149:24: note: add 'if #available' version check
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:149:39: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:149:39: note: add 'if #available' version check
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:149:76: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:149:76: note: add 'if #available' version check
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:151:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
.receive(on: DispatchQueue.main)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:151:14: note: add 'if #available' version check
.receive(on: DispatchQueue.main)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:152:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:152:14: note: add 'if #available' version check
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:214:20: error: 'Just' is only available in macOS 10.15 or newer
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:214:20: note: add 'if #available' version check
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:214:35: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:214:35: note: add 'if #available' version check
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:214:72: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:214:72: note: add 'if #available' version check
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:231:16: error: 'Deferred' is only available in macOS 10.15 or newer
return Deferred { [weak self, session] in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:231:16: note: add 'if #available' version check
return Deferred { [weak self, session] in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:232:13: error: 'Future' is only available in macOS 10.15 or newer
Future { promise in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:232:13: note: add 'if #available' version check
Future { promise in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:259:11: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:259:11: note: add 'if #available' version check
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:270:14: error: 'tryCatch' is only available in macOS 10.15 or newer
.tryCatch { [weak self] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:270:14: note: add 'if #available' version check
.tryCatch { [weak self] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:270:46: error: 'AnyPublisher' is only available in macOS 10.15 or newer
.tryCatch { [weak self] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:270:46: note: add 'if #available' version check
.tryCatch { [weak self] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:285:15: error: 'tryMap' is only available in macOS 10.15 or newer
}.tryMap { [weak self] response -> CobaltResponse in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:285:15: note: add 'if #available' version check
}.tryMap { [weak self] response -> CobaltResponse in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:303:14: error: 'map' is only available in macOS 10.15 or newer
.map { response in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:303:14: note: add 'if #available' version check
.map { response in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:307:14: error: 'mapError' is only available in macOS 10.15 or newer
.mapError { CobaltError(from: $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:307:14: note: add 'if #available' version check
.mapError { CobaltError(from: $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:308:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:308:14: note: add 'if #available' version check
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:405:9: error: setter for 'authorizationGrantType' is only available in macOS 10.15 or newer
authorizationGrantType = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:405:9: note: add 'if #available' version check
authorizationGrantType = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:404:17: note: add @available attribute to enclosing instance method
public func clearAccessToken(forHost host: String? = nil) {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
[81/81] Compiling Cobalt CobaltClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:17:44: error: 'AnyPublisher' is only available in macOS 10.15 or newer
var stubbedPublishers: [CobaltRequest: AnyPublisher<CobaltResponse, CobaltError>] = [:]
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:13:20: note: add @available attribute to enclosing class
public final class ClientService: NSObject {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:29:72: error: 'AnyPublisher' is only available in macOS 10.15 or newer
public func addStubbedPublisher(request: CobaltRequest, publisher: AnyPublisher<CobaltResponse, CobaltError>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:29:17: note: add @available attribute to enclosing instance method
public func addStubbedPublisher(request: CobaltRequest, publisher: AnyPublisher<CobaltResponse, CobaltError>) {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/ClientService.swift:13:20: note: add @available attribute to enclosing class
public final class ClientService: NSObject {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:34:6: error: 'Published' is only available in macOS 10.15 or newer
@Published public var authorizationGrantType: OAuthenticationGrantType?
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:36:28: error: 'AnyCancellable' is only available in macOS 10.15 or newer
var cancellables = Set<AnyCancellable>()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:52: error: 'AnyPublisher' is only available in macOS 10.15 or newer
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:56: error: 'AnyPublisher' is only available in macOS 10.15 or newer
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:136: error: 'AnyPublisher' is only available in macOS 10.15 or newer
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:366:60: error: 'AnyPublisher' is only available in macOS 10.15 or newer
open func login(username: String, password: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:366:15: note: add @available attribute to enclosing instance method
open func login(username: String, password: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:375:79: error: 'AnyPublisher' is only available in macOS 10.15 or newer
open func startAuthorizationFlow(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:375:15: note: add @available attribute to enclosing instance method
open func startAuthorizationFlow(scope: [String], redirectUri: String) -> AnyPublisher<AuthorizationCodeRequest, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:379:116: error: 'AnyPublisher' is only available in macOS 10.15 or newer
open func requestTokenFromAuthorizationCode(initialRequest request: AuthorizationCodeRequest, code: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:379:15: note: add @available attribute to enclosing instance method
open func requestTokenFromAuthorizationCode(initialRequest request: AuthorizationCodeRequest, code: String) -> AnyPublisher<Void, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
<unknown>:0: error: key path value type 'KeyPath<CobaltClient, OAuthenticationGrantType?>' cannot be converted to contextual type 'ReferenceWritableKeyPath<CobaltClient, OAuthenticationGrantType?>'
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:111:16: error: 'Just' is only available in macOS 10.15 or newer
return Just(request)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:111:16: note: add 'if #available' version check
return Just(request)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:112:14: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
.setFailureType(to: CobaltError.self)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:112:14: note: add 'if #available' version check
.setFailureType(to: CobaltError.self)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:113:14: error: 'subscribe(on:options:)' is only available in macOS 10.15 or newer
.subscribe(on: DispatchQueue.main)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:113:14: note: add 'if #available' version check
.subscribe(on: DispatchQueue.main)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:114:14: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
.flatMap { [authProvider] aRequest in authProvider.authorize(request: aRequest) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:114:14: note: add 'if #available' version check
.flatMap { [authProvider] aRequest in authProvider.authorize(request: aRequest) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:115:14: error: 'prefix' is only available in macOS 10.15 or newer
.prefix(1)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:115:14: note: add 'if #available' version check
.prefix(1)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:117:14: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
.flatMap { [weak self] newRequest -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:117:14: note: add 'if #available' version check
.flatMap { [weak self] newRequest -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:117:50: error: 'AnyPublisher' is only available in macOS 10.15 or newer
.flatMap { [weak self] newRequest -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:117:50: note: add 'if #available' version check
.flatMap { [weak self] newRequest -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:119:28: error: 'AnyPublisher' is only available in macOS 10.15 or newer
return AnyPublisher<CobaltResponse, CobaltError>.never()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:119:28: note: add 'if #available' version check
return AnyPublisher<CobaltResponse, CobaltError>.never()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:122:22: error: 'tryMap' is only available in macOS 10.15 or newer
.tryMap { [weak self] response -> any CobaltResponse in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:122:22: note: add 'if #available' version check
.tryMap { [weak self] response -> any CobaltResponse in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:125:22: error: 'mapError' is only available in macOS 10.15 or newer
.mapError { ($0 as? CobaltError) ?? CobaltError(from: $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:125:22: note: add 'if #available' version check
.mapError { ($0 as? CobaltError) ?? CobaltError(from: $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:126:22: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:126:22: note: add 'if #available' version check
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:129:14: error: 'catch' is only available in macOS 10.15 or newer
.catch { [queue, weak self, authProvider] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:129:14: note: add 'if #available' version check
.catch { [queue, weak self, authProvider] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:129:64: error: 'AnyPublisher' is only available in macOS 10.15 or newer
.catch { [queue, weak self, authProvider] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:129:64: note: add 'if #available' version check
.catch { [queue, weak self, authProvider] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:131:22: error: 'tryCatch' is only available in macOS 10.15 or newer
.tryCatch { authError -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:131:22: note: add 'if #available' version check
.tryCatch { authError -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:131:46: error: 'AnyPublisher' is only available in macOS 10.15 or newer
.tryCatch { authError -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:131:46: note: add 'if #available' version check
.tryCatch { authError -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:138:22: error: 'mapError' is only available in macOS 10.15 or newer
.mapError { CobaltError(from: $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:138:22: note: add 'if #available' version check
.mapError { CobaltError(from: $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:139:22: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:139:22: note: add 'if #available' version check
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:142:15: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
}.flatMap { [queue, weak self] response -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:142:15: note: add 'if #available' version check
}.flatMap { [queue, weak self] response -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:142:56: error: 'AnyPublisher' is only available in macOS 10.15 or newer
}.flatMap { [queue, weak self] response -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:142:56: note: add 'if #available' version check
}.flatMap { [queue, weak self] response -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:149:24: error: 'Just' is only available in macOS 10.15 or newer
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:149:24: note: add 'if #available' version check
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:149:39: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:149:39: note: add 'if #available' version check
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:149:76: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:149:76: note: add 'if #available' version check
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:151:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
.receive(on: DispatchQueue.main)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:151:14: note: add 'if #available' version check
.receive(on: DispatchQueue.main)
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:152:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:152:14: note: add 'if #available' version check
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:73:15: note: add @available attribute to enclosing instance method
open func request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:214:20: error: 'Just' is only available in macOS 10.15 or newer
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:214:20: note: add 'if #available' version check
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:214:35: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:214:35: note: add 'if #available' version check
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:214:72: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:214:72: note: add 'if #available' version check
return Just(response).setFailureType(to: CobaltError.self).eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:231:16: error: 'Deferred' is only available in macOS 10.15 or newer
return Deferred { [weak self, session] in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:231:16: note: add 'if #available' version check
return Deferred { [weak self, session] in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:232:13: error: 'Future' is only available in macOS 10.15 or newer
Future { promise in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:232:13: note: add 'if #available' version check
Future { promise in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:259:11: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:259:11: note: add 'if #available' version check
}.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:167:18: note: add @available attribute to enclosing instance method
private func _request(_ request: CobaltRequest) -> AnyPublisher<CobaltResponse, CobaltError> {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:270:14: error: 'tryCatch' is only available in macOS 10.15 or newer
.tryCatch { [weak self] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:270:14: note: add 'if #available' version check
.tryCatch { [weak self] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:270:46: error: 'AnyPublisher' is only available in macOS 10.15 or newer
.tryCatch { [weak self] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:270:46: note: add 'if #available' version check
.tryCatch { [weak self] error -> AnyPublisher<CobaltResponse, CobaltError> in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:285:15: error: 'tryMap' is only available in macOS 10.15 or newer
}.tryMap { [weak self] response -> CobaltResponse in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:285:15: note: add 'if #available' version check
}.tryMap { [weak self] response -> CobaltResponse in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:303:14: error: 'map' is only available in macOS 10.15 or newer
.map { response in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:303:14: note: add 'if #available' version check
.map { response in
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:307:14: error: 'mapError' is only available in macOS 10.15 or newer
.mapError { CobaltError(from: $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:307:14: note: add 'if #available' version check
.mapError { CobaltError(from: $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:308:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:308:14: note: add 'if #available' version check
.eraseToAnyPublisher()
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:262:18: note: add @available attribute to enclosing instance method
private func stub(request: CobaltRequest, requestID useRequestID: Int, ignoreLoggingRequest: Bool, ignoreLoggingResponse: Bool) -> AnyPublisher<CobaltResponse, CobaltError>? {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:405:9: error: setter for 'authorizationGrantType' is only available in macOS 10.15 or newer
authorizationGrantType = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:405:9: note: add 'if #available' version check
authorizationGrantType = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:404:17: note: add @available attribute to enclosing instance method
public func clearAccessToken(forHost host: String? = nil) {
^
/Users/admin/builder/spi-builder-workspace/Sources/Core/Base/CobaltClient.swift:15:12: note: add @available attribute to enclosing class
open class CobaltClient {
^
error: fatalError
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/kishikawakatsumi/KeychainAccess.git
Fetching https://github.com/UnlockAgency/DebugMasking.git
Fetching https://github.com/Alamofire/Alamofire.git
[1/19] Fetching debugmasking
[20/4405] Fetching debugmasking, keychainaccess
[635/8241] Fetching debugmasking, keychainaccess, swift-log
[914/27825] Fetching debugmasking, keychainaccess, swift-log, nimble
[992/57966] Fetching debugmasking, keychainaccess, swift-log, nimble, alamofire
Fetched https://github.com/apple/swift-log.git from cache (2.52s)
[34840/54130] Fetching debugmasking, keychainaccess, nimble, alamofire
Fetched https://github.com/Quick/Nimble.git from cache (3.37s)
Fetched https://github.com/Alamofire/Alamofire.git from cache (3.37s)
Fetched https://github.com/kishikawakatsumi/KeychainAccess.git from cache (3.37s)
Fetched https://github.com/UnlockAgency/DebugMasking.git from cache (3.37s)
Computing version for https://github.com/UnlockAgency/DebugMasking.git
Computed https://github.com/UnlockAgency/DebugMasking.git at 1.0.1 (0.48s)
Computing version for https://github.com/kishikawakatsumi/KeychainAccess.git
Computed https://github.com/kishikawakatsumi/KeychainAccess.git at 4.2.2 (0.48s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 11.2.2 (0.48s)
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
[1/1257] Fetching cwlpreconditiontesting
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.86s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.2.2 (0.47s)
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/455] Fetching cwlcatchexception
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.73s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.2.1 (0.46s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.37s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.2 (0.38s)
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.2.2
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.2.1
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.10.2
Creating working copy for https://github.com/UnlockAgency/DebugMasking.git
Working copy of https://github.com/UnlockAgency/DebugMasking.git resolved at 1.0.1
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 11.2.2
Creating working copy for https://github.com/kishikawakatsumi/KeychainAccess.git
Working copy of https://github.com/kishikawakatsumi/KeychainAccess.git resolved at 4.2.2
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/CobaltTests/Info.plist
BUILD FAILURE 5.10 macosSpm