Build Information
Failed to build SnabblePay, reference 1.1.2 (071bb3), with Swift 6.2 for macOS (SPM) on 21 Jun 2025 01:47:57 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:82:24: error: 'Fail' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
80 | guard let self = self else {
81 | Logger.shared.error("Unexpected: Authenticator is missing")
82 | return Fail(
| |- error: 'Fail' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | outputType: Token.self,
84 | failure: APIError.unexpected(Error.missingAuthenticator)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:85:19: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
83 | outputType: Token.self,
84 | failure: APIError.unexpected(Error.missingAuthenticator)
85 | ).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 |
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:96:24: error: 'Just' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
94 | if let token = self.token, token.isValid(), !forceRefresh {
95 | Logger.shared.debug("Uses Token: \(token)")
96 | return Just(token)
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | .setFailureType(to: APIError.self)
98 | .eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:97:22: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
95 | Logger.shared.debug("Uses Token: \(token)")
96 | return Just(token)
97 | .setFailureType(to: APIError.self)
| |- error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | .eraseToAnyPublisher()
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:98:22: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
96 | return Just(token)
97 | .setFailureType(to: APIError.self)
98 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:104:18: error: 'map' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
104 | .map { credentials -> Endpoint<Token> in
| |- error: 'map' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | return Endpoints.Token.get(
106 | withCredentials: credentials,
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:110:18: error: 'tryMap' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
108 | )
109 | }
110 | .tryMap { tokenEndpoint -> (URLSession, Endpoint<Token>) in
| |- error: 'tryMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | return (self.urlSession, tokenEndpoint)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:113:18: error: 'mapError' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
111 | return (self.urlSession, tokenEndpoint)
112 | }
113 | .mapError { $0 as? APIError ?? .unexpected($0) }
| |- error: 'mapError' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | .flatMap { urlSession, endpoint in
115 | return urlSession.publisher(for: endpoint)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:114:18: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
112 | }
113 | .mapError { $0 as? APIError ?? .unexpected($0) }
114 | .flatMap { urlSession, endpoint in
| |- error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | return urlSession.publisher(for: endpoint)
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:117:18: error: 'share()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
115 | return urlSession.publisher(for: endpoint)
116 | }
117 | .share()
| |- error: 'share()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:18: error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:125:18: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
123 | }
124 | })
125 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 |
127 | self.refreshPublisher = publisher
[47/50] Compiling SnabblePayNetwork Authenticator.swift
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:41:35: error: 'AnyPublisher' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
39 | private let queue: DispatchQueue = .init(label: "io.snabble.pay.authenticator.\(UUID().uuidString)")
40 |
41 | private var refreshPublisher: AnyPublisher<Token, APIError>?
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
42 |
43 | init(apiKey: String, credentials: Credentials?, urlSession: URLSession) {
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:53:95: error: 'AnyPublisher' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:78:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
78 | ) -> AnyPublisher<Token, APIError> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
79 | return queue.sync { [weak self] in
80 | guard let self = self else {
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:57:20: error: 'Just' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
56 | Logger.shared.debug("Uses Credentials: \(credentials)")
57 | return Just(credentials)
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | .setFailureType(to: APIError.self)
59 | .eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:58:18: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
56 | Logger.shared.debug("Uses Credentials: \(credentials)")
57 | return Just(credentials)
58 | .setFailureType(to: APIError.self)
| |- error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .eraseToAnyPublisher()
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:59:18: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
57 | return Just(credentials)
58 | .setFailureType(to: APIError.self)
59 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:68:14: error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
66 | )
67 | let publisher = urlSession.publisher(for: endpoint)
68 | .handleEvents(receiveOutput: { [weak self] credentials in
| |- error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | self?.credentials = credentials
70 | }, receiveCompletion: { _ in })
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:71:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
69 | self?.credentials = credentials
70 | }, receiveCompletion: { _ in })
71 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | return publisher
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:67:13: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
65 | onEnvironment: environment
66 | )
67 | let publisher = urlSession.publisher(for: endpoint)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
68 | .handleEvents(receiveOutput: { [weak self] credentials in
69 | self?.credentials = credentials
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:67:13: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
65 | onEnvironment: environment
66 | )
67 | let publisher = urlSession.publisher(for: endpoint)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
68 | .handleEvents(receiveOutput: { [weak self] credentials in
69 | self?.credentials = credentials
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:67:13: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
65 | onEnvironment: environment
66 | )
67 | let publisher = urlSession.publisher(for: endpoint)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
68 | .handleEvents(receiveOutput: { [weak self] credentials in
69 | self?.credentials = credentials
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:67:13: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
65 | onEnvironment: environment
66 | )
67 | let publisher = urlSession.publisher(for: endpoint)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
68 | .handleEvents(receiveOutput: { [weak self] credentials in
69 | self?.credentials = credentials
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:82:24: error: 'Fail' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
80 | guard let self = self else {
81 | Logger.shared.error("Unexpected: Authenticator is missing")
82 | return Fail(
| |- error: 'Fail' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | outputType: Token.self,
84 | failure: APIError.unexpected(Error.missingAuthenticator)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:85:19: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
83 | outputType: Token.self,
84 | failure: APIError.unexpected(Error.missingAuthenticator)
85 | ).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 |
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:96:24: error: 'Just' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
94 | if let token = self.token, token.isValid(), !forceRefresh {
95 | Logger.shared.debug("Uses Token: \(token)")
96 | return Just(token)
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | .setFailureType(to: APIError.self)
98 | .eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:97:22: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
95 | Logger.shared.debug("Uses Token: \(token)")
96 | return Just(token)
97 | .setFailureType(to: APIError.self)
| |- error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | .eraseToAnyPublisher()
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:98:22: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
96 | return Just(token)
97 | .setFailureType(to: APIError.self)
98 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:104:18: error: 'map' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
104 | .map { credentials -> Endpoint<Token> in
| |- error: 'map' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | return Endpoints.Token.get(
106 | withCredentials: credentials,
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:110:18: error: 'tryMap' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
108 | )
109 | }
110 | .tryMap { tokenEndpoint -> (URLSession, Endpoint<Token>) in
| |- error: 'tryMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | return (self.urlSession, tokenEndpoint)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:113:18: error: 'mapError' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
111 | return (self.urlSession, tokenEndpoint)
112 | }
113 | .mapError { $0 as? APIError ?? .unexpected($0) }
| |- error: 'mapError' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | .flatMap { urlSession, endpoint in
115 | return urlSession.publisher(for: endpoint)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:114:18: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
112 | }
113 | .mapError { $0 as? APIError ?? .unexpected($0) }
114 | .flatMap { urlSession, endpoint in
| |- error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | return urlSession.publisher(for: endpoint)
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:117:18: error: 'share()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
115 | return urlSession.publisher(for: endpoint)
116 | }
117 | .share()
| |- error: 'share()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:18: error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:125:18: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
123 | }
124 | })
125 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 |
127 | self.refreshPublisher = publisher
[48/50] Compiling SnabblePayNetwork Endpoint+Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:41:35: error: 'AnyPublisher' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
39 | private let queue: DispatchQueue = .init(label: "io.snabble.pay.authenticator.\(UUID().uuidString)")
40 |
41 | private var refreshPublisher: AnyPublisher<Token, APIError>?
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
42 |
43 | init(apiKey: String, credentials: Credentials?, urlSession: URLSession) {
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:53:95: error: 'AnyPublisher' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:78:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
78 | ) -> AnyPublisher<Token, APIError> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
79 | return queue.sync { [weak self] in
80 | guard let self = self else {
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:57:20: error: 'Just' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
56 | Logger.shared.debug("Uses Credentials: \(credentials)")
57 | return Just(credentials)
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | .setFailureType(to: APIError.self)
59 | .eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:58:18: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
56 | Logger.shared.debug("Uses Credentials: \(credentials)")
57 | return Just(credentials)
58 | .setFailureType(to: APIError.self)
| |- error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .eraseToAnyPublisher()
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:59:18: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
57 | return Just(credentials)
58 | .setFailureType(to: APIError.self)
59 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:68:14: error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
66 | )
67 | let publisher = urlSession.publisher(for: endpoint)
68 | .handleEvents(receiveOutput: { [weak self] credentials in
| |- error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | self?.credentials = credentials
70 | }, receiveCompletion: { _ in })
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:71:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
69 | self?.credentials = credentials
70 | }, receiveCompletion: { _ in })
71 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | return publisher
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:67:13: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
65 | onEnvironment: environment
66 | )
67 | let publisher = urlSession.publisher(for: endpoint)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
68 | .handleEvents(receiveOutput: { [weak self] credentials in
69 | self?.credentials = credentials
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:67:13: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
65 | onEnvironment: environment
66 | )
67 | let publisher = urlSession.publisher(for: endpoint)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
68 | .handleEvents(receiveOutput: { [weak self] credentials in
69 | self?.credentials = credentials
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:67:13: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
65 | onEnvironment: environment
66 | )
67 | let publisher = urlSession.publisher(for: endpoint)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
68 | .handleEvents(receiveOutput: { [weak self] credentials in
69 | self?.credentials = credentials
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:67:13: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
51 | }
52 |
53 | private func validateCredentials(onEnvironment environment: Environment = .production) -> AnyPublisher<Credentials, APIError> {
| `- note: add @available attribute to enclosing instance method
54 | // scenario 1: app instance is registered
55 | if let credentials = self.credentials {
:
65 | onEnvironment: environment
66 | )
67 | let publisher = urlSession.publisher(for: endpoint)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
68 | .handleEvents(receiveOutput: { [weak self] credentials in
69 | self?.credentials = credentials
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:103:17: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
101 | // scenario 3: we need a new token
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
104 | .map { credentials -> Endpoint<Token> in
105 | return Endpoints.Token.get(
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:82:24: error: 'Fail' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
80 | guard let self = self else {
81 | Logger.shared.error("Unexpected: Authenticator is missing")
82 | return Fail(
| |- error: 'Fail' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | outputType: Token.self,
84 | failure: APIError.unexpected(Error.missingAuthenticator)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:85:19: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
83 | outputType: Token.self,
84 | failure: APIError.unexpected(Error.missingAuthenticator)
85 | ).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 |
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:96:24: error: 'Just' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
94 | if let token = self.token, token.isValid(), !forceRefresh {
95 | Logger.shared.debug("Uses Token: \(token)")
96 | return Just(token)
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | .setFailureType(to: APIError.self)
98 | .eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:97:22: error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
95 | Logger.shared.debug("Uses Token: \(token)")
96 | return Just(token)
97 | .setFailureType(to: APIError.self)
| |- error: 'setFailureType(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | .eraseToAnyPublisher()
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:98:22: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
96 | return Just(token)
97 | .setFailureType(to: APIError.self)
98 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:104:18: error: 'map' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
102 | Logger.shared.debug("Token is refreshed")
103 | let publisher = self.validateCredentials(onEnvironment: environment)
104 | .map { credentials -> Endpoint<Token> in
| |- error: 'map' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | return Endpoints.Token.get(
106 | withCredentials: credentials,
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:110:18: error: 'tryMap' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
108 | )
109 | }
110 | .tryMap { tokenEndpoint -> (URLSession, Endpoint<Token>) in
| |- error: 'tryMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | return (self.urlSession, tokenEndpoint)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:113:18: error: 'mapError' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
111 | return (self.urlSession, tokenEndpoint)
112 | }
113 | .mapError { $0 as? APIError ?? .unexpected($0) }
| |- error: 'mapError' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | .flatMap { urlSession, endpoint in
115 | return urlSession.publisher(for: endpoint)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:114:18: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
112 | }
113 | .mapError { $0 as? APIError ?? .unexpected($0) }
114 | .flatMap { urlSession, endpoint in
| |- error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | return urlSession.publisher(for: endpoint)
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:117:18: error: 'share()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
115 | return urlSession.publisher(for: endpoint)
116 | }
117 | .share()
| |- error: 'share()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:18: error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- error: 'handleEvents(receiveSubscription:receiveOutput:receiveCompletion:receiveCancel:receiveRequest:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:118:46: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
116 | }
117 | .share()
118 | .handleEvents(receiveOutput: { token in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
119 | self.token = token
120 | }, receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:120:39: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
118 | .handleEvents(receiveOutput: { token in
119 | self.token = token
120 | }, receiveCompletion: { _ in
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
121 | self.queue.sync {
122 | self.refreshPublisher = nil
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/Authenticator.swift:125:18: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public class Authenticator {
| `- note: add @available attribute to enclosing class
18 | public let urlSession: URLSession
19 | public let apiKey: String
:
73 | }
74 |
75 | func validToken(
| `- note: add @available attribute to enclosing instance method
76 | forceRefresh: Bool = false,
77 | onEnvironment environment: Environment = .production
:
123 | }
124 | })
125 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 |
127 | self.refreshPublisher = publisher
[49/50] Compiling SnabblePayNetwork Token.swift
[50/50] Compiling SnabblePayNetwork Transaction.swift
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/pointfreeco/swift-tagged
[1/3836] Fetching swift-log
[117/4998] Fetching swift-log, swift-tagged
Fetched https://github.com/apple/swift-log.git from cache (0.95s)
Fetched https://github.com/pointfreeco/swift-tagged from cache (0.95s)
Computing version for https://github.com/pointfreeco/swift-tagged
Computed https://github.com/pointfreeco/swift-tagged at 0.10.0 (1.49s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.39s)
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
Creating working copy for https://github.com/pointfreeco/swift-tagged
Working copy of https://github.com/pointfreeco/swift-tagged resolved at 0.10.0
BUILD FAILURE 6.2 macosSpm