The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SnabblePay, reference main (94e61a), with Swift 6.2 for macOS (SPM) on 21 Jun 2025 01:46:15 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

 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
[26/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
[27/50] Compiling SnabblePayNetwork Credentials.swift
[28/50] Compiling SnabblePayNetwork Customer.swift
[29/50] Compiling SnabblePayNetwork HTTPMethod.swift
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:33:85: error: 'AnyPublisher' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 |                                                                   `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:35:14: error: 'map' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   |              |- error: 'map' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
36 |                 var endpoint = endpoint
37 |                 endpoint.token = token
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:40:14: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   :
38 |                 return endpoint
39 |             }
40 |             .flatMap { [self] endpoint in
   |              |- error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
41 |                 urlSession.publisher(for: endpoint)
42 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:43:14: 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
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   :
41 |                 urlSession.publisher(for: endpoint)
42 |             }
43 |             .retryOnce(if: { apiError 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
44 |                 switch apiError {
45 |                 case .validationError(let httpStatusCode, _):
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:43:14: 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
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   :
41 |                 urlSession.publisher(for: endpoint)
42 |             }
43 |             .retryOnce(if: { apiError 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
44 |                 switch apiError {
45 |                 case .validationError(let httpStatusCode, _):
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:53:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   :
51 |                 self?.authenticator.invalidateToken()
52 |             })
53 |             .eraseToAnyPublisher()
   |              |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
54 |     }
55 | }
[30/50] Compiling SnabblePayNetwork HTTPStatusCode.swift
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:33:85: error: 'AnyPublisher' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 |                                                                   `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:35:14: error: 'map' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   |              |- error: 'map' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
36 |                 var endpoint = endpoint
37 |                 endpoint.token = token
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:40:14: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   :
38 |                 return endpoint
39 |             }
40 |             .flatMap { [self] endpoint in
   |              |- error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
41 |                 urlSession.publisher(for: endpoint)
42 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:43:14: 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
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   :
41 |                 urlSession.publisher(for: endpoint)
42 |             }
43 |             .retryOnce(if: { apiError 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
44 |                 switch apiError {
45 |                 case .validationError(let httpStatusCode, _):
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:43:14: 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
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   :
41 |                 urlSession.publisher(for: endpoint)
42 |             }
43 |             .retryOnce(if: { apiError 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
44 |                 switch apiError {
45 |                 case .validationError(let httpStatusCode, _):
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:53:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   :
51 |                 self?.authenticator.invalidateToken()
52 |             })
53 |             .eraseToAnyPublisher()
   |              |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
54 |     }
55 | }
[31/50] Compiling SnabblePayNetwork NetworkManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:33:85: error: 'AnyPublisher' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 |                                                                   `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:35:14: error: 'map' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   |              |- error: 'map' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
36 |                 var endpoint = endpoint
37 |                 endpoint.token = token
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:40:14: error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   :
38 |                 return endpoint
39 |             }
40 |             .flatMap { [self] endpoint in
   |              |- error: 'flatMap(maxPublishers:_:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
41 |                 urlSession.publisher(for: endpoint)
42 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:43:14: 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
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   :
41 |                 urlSession.publisher(for: endpoint)
42 |             }
43 |             .retryOnce(if: { apiError 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
44 |                 switch apiError {
45 |                 case .validationError(let httpStatusCode, _):
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:43:14: 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
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   :
41 |                 urlSession.publisher(for: endpoint)
42 |             }
43 |             .retryOnce(if: { apiError 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
44 |                 switch apiError {
45 |                 case .validationError(let httpStatusCode, _):
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/NetworkManager.swift:53:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
13 | }
14 |
15 | public class NetworkManager {
   |              `- note: add @available attribute to enclosing class
16 |     public let urlSession: URLSession
17 |
   :
31 |     }
32 |
33 |     public func publisher<Response: Decodable>(for endpoint: Endpoint<Response>) -> AnyPublisher<Response, APIError> {
   |                 `- note: add @available attribute to enclosing instance method
34 |         return authenticator.validToken(onEnvironment: endpoint.environment)
35 |             .map { token in
   :
51 |                 self?.authenticator.invalidateToken()
52 |             })
53 |             .eraseToAnyPublisher()
   |              |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
54 |     }
55 | }
[32/50] Compiling SnabblePayNetwork URL+StringLliteral.swift
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URL+StringLliteral.swift:10:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 8 | import Foundation
 9 |
10 | extension URL: ExpressibleByStringLiteral {
   | |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
11 |     public init(stringLiteral value: StaticString) {
12 |         self = URL(string: "\(value)")!
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:27:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | private extension Publisher where Output == (data: Data, response: URLResponse), Failure == URLError {
   |         `- note: add @available attribute to enclosing extension
27 |     func tryVerifyResponse() -> AnyPublisher<Output, Swift.Error> {
   |          |                      `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
28 |         tryMap { (data, response) throws -> Output in
29 |             try response.verify(with: data)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:26:19: error: 'Publisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | private extension Publisher where Output == (data: Data, response: URLResponse), Failure == URLError {
   |         |         `- error: 'Publisher' is only available in macOS 10.15 or newer
   |         `- note: add @available attribute to enclosing extension
27 |     func tryVerifyResponse() -> AnyPublisher<Output, Swift.Error> {
28 |         tryMap { (data, response) throws -> Output in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:39:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   |          `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
40 |         let urlRequest: URLRequest
41 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:28:9: error: 'tryMap' is only available in macOS 10.15 or newer
24 | }
25 |
26 | private extension Publisher where Output == (data: Data, response: URLResponse), Failure == URLError {
   |         `- note: add @available attribute to enclosing extension
27 |     func tryVerifyResponse() -> AnyPublisher<Output, Swift.Error> {
   |          `- note: add @available attribute to enclosing instance method
28 |         tryMap { (data, response) throws -> Output in
   |         |- error: 'tryMap' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
29 |             try response.verify(with: data)
30 |             return (data, response)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:32:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
24 | }
25 |
26 | private extension Publisher where Output == (data: Data, response: URLResponse), Failure == URLError {
   |         `- note: add @available attribute to enclosing extension
27 |     func tryVerifyResponse() -> AnyPublisher<Output, Swift.Error> {
   |          `- note: add @available attribute to enclosing instance method
28 |         tryMap { (data, response) throws -> Output in
29 |             try response.verify(with: data)
30 |             return (data, response)
31 |         }
32 |         .eraseToAnyPublisher()
   |          |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
33 |     }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:45:20: error: 'Fail' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
43 |         } catch let error as APIError {
44 |             Logger.shared.error("APIError \(error)")
45 |             return Fail(error: error).eraseToAnyPublisher()
   |                    |- error: 'Fail' is only available in macOS 10.15 or newer
   |                    `- note: add 'if #available' version check
46 |         } catch {
47 |             Logger.shared.error("APIError unexpected \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:45:39: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
43 |         } catch let error as APIError {
44 |             Logger.shared.error("APIError \(error)")
45 |             return Fail(error: error).eraseToAnyPublisher()
   |                                       |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                                       `- note: add 'if #available' version check
46 |         } catch {
47 |             Logger.shared.error("APIError unexpected \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:48:20: error: 'Fail' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
46 |         } catch {
47 |             Logger.shared.error("APIError unexpected \(error)")
48 |             return Fail(error: APIError.unexpected(error)).eraseToAnyPublisher()
   |                    |- error: 'Fail' is only available in macOS 10.15 or newer
   |                    `- note: add 'if #available' version check
49 |         }
50 |         Logger.shared.debug("Start URLRequest: \(urlRequest)")
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:48:60: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
46 |         } catch {
47 |             Logger.shared.error("APIError unexpected \(error)")
48 |             return Fail(error: APIError.unexpected(error)).eraseToAnyPublisher()
   |                                                            |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                                                            `- note: add 'if #available' version check
49 |         }
50 |         Logger.shared.debug("Start URLRequest: \(urlRequest)")
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:51:16: error: 'dataTaskPublisher(for:)' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
49 |         }
50 |         Logger.shared.debug("Start URLRequest: \(urlRequest)")
51 |         return dataTaskPublisher(for: urlRequest)
   |                |- error: 'dataTaskPublisher(for:)' is only available in macOS 10.15 or newer
   |                `- note: add 'if #available' version check
52 |             .tryVerifyResponse()
53 |             .map(\.data)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:53:14: error: 'map' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
51 |         return dataTaskPublisher(for: urlRequest)
52 |             .tryVerifyResponse()
53 |             .map(\.data)
   |              |- error: 'map' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
54 |             .decode(type: Response.self, decoder: endpoint.jsonDecoder)
55 |             .mapError { error -> APIError in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:54:14: error: 'decode(type:decoder:)' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
52 |             .tryVerifyResponse()
53 |             .map(\.data)
54 |             .decode(type: Response.self, decoder: endpoint.jsonDecoder)
   |              |- error: 'decode(type:decoder:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
55 |             .mapError { error -> APIError in
56 |                 switch error {
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:55:14: error: 'mapError' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
53 |             .map(\.data)
54 |             .decode(type: Response.self, decoder: endpoint.jsonDecoder)
55 |             .mapError { error -> APIError in
   |              |- error: 'mapError' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
56 |                 switch error {
57 |                 case let urlError as URLError:
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:76:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
74 |                 }
75 |             }
76 |             .eraseToAnyPublisher()
   |              |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
77 |     }
78 | }
[33/50] Compiling SnabblePayNetwork URLSession+Endpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URL+StringLliteral.swift:10:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 8 | import Foundation
 9 |
10 | extension URL: ExpressibleByStringLiteral {
   | |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
11 |     public init(stringLiteral value: StaticString) {
12 |         self = URL(string: "\(value)")!
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:27:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | private extension Publisher where Output == (data: Data, response: URLResponse), Failure == URLError {
   |         `- note: add @available attribute to enclosing extension
27 |     func tryVerifyResponse() -> AnyPublisher<Output, Swift.Error> {
   |          |                      `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
28 |         tryMap { (data, response) throws -> Output in
29 |             try response.verify(with: data)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:26:19: error: 'Publisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | private extension Publisher where Output == (data: Data, response: URLResponse), Failure == URLError {
   |         |         `- error: 'Publisher' is only available in macOS 10.15 or newer
   |         `- note: add @available attribute to enclosing extension
27 |     func tryVerifyResponse() -> AnyPublisher<Output, Swift.Error> {
28 |         tryMap { (data, response) throws -> Output in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:39:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   |          `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
40 |         let urlRequest: URLRequest
41 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:28:9: error: 'tryMap' is only available in macOS 10.15 or newer
24 | }
25 |
26 | private extension Publisher where Output == (data: Data, response: URLResponse), Failure == URLError {
   |         `- note: add @available attribute to enclosing extension
27 |     func tryVerifyResponse() -> AnyPublisher<Output, Swift.Error> {
   |          `- note: add @available attribute to enclosing instance method
28 |         tryMap { (data, response) throws -> Output in
   |         |- error: 'tryMap' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
29 |             try response.verify(with: data)
30 |             return (data, response)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:32:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
24 | }
25 |
26 | private extension Publisher where Output == (data: Data, response: URLResponse), Failure == URLError {
   |         `- note: add @available attribute to enclosing extension
27 |     func tryVerifyResponse() -> AnyPublisher<Output, Swift.Error> {
   |          `- note: add @available attribute to enclosing instance method
28 |         tryMap { (data, response) throws -> Output in
29 |             try response.verify(with: data)
30 |             return (data, response)
31 |         }
32 |         .eraseToAnyPublisher()
   |          |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
33 |     }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:45:20: error: 'Fail' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
43 |         } catch let error as APIError {
44 |             Logger.shared.error("APIError \(error)")
45 |             return Fail(error: error).eraseToAnyPublisher()
   |                    |- error: 'Fail' is only available in macOS 10.15 or newer
   |                    `- note: add 'if #available' version check
46 |         } catch {
47 |             Logger.shared.error("APIError unexpected \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:45:39: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
43 |         } catch let error as APIError {
44 |             Logger.shared.error("APIError \(error)")
45 |             return Fail(error: error).eraseToAnyPublisher()
   |                                       |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                                       `- note: add 'if #available' version check
46 |         } catch {
47 |             Logger.shared.error("APIError unexpected \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:48:20: error: 'Fail' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
46 |         } catch {
47 |             Logger.shared.error("APIError unexpected \(error)")
48 |             return Fail(error: APIError.unexpected(error)).eraseToAnyPublisher()
   |                    |- error: 'Fail' is only available in macOS 10.15 or newer
   |                    `- note: add 'if #available' version check
49 |         }
50 |         Logger.shared.debug("Start URLRequest: \(urlRequest)")
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:48:60: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
46 |         } catch {
47 |             Logger.shared.error("APIError unexpected \(error)")
48 |             return Fail(error: APIError.unexpected(error)).eraseToAnyPublisher()
   |                                                            |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                                                            `- note: add 'if #available' version check
49 |         }
50 |         Logger.shared.debug("Start URLRequest: \(urlRequest)")
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:51:16: error: 'dataTaskPublisher(for:)' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
49 |         }
50 |         Logger.shared.debug("Start URLRequest: \(urlRequest)")
51 |         return dataTaskPublisher(for: urlRequest)
   |                |- error: 'dataTaskPublisher(for:)' is only available in macOS 10.15 or newer
   |                `- note: add 'if #available' version check
52 |             .tryVerifyResponse()
53 |             .map(\.data)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:53:14: error: 'map' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
51 |         return dataTaskPublisher(for: urlRequest)
52 |             .tryVerifyResponse()
53 |             .map(\.data)
   |              |- error: 'map' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
54 |             .decode(type: Response.self, decoder: endpoint.jsonDecoder)
55 |             .mapError { error -> APIError in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:54:14: error: 'decode(type:decoder:)' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
52 |             .tryVerifyResponse()
53 |             .map(\.data)
54 |             .decode(type: Response.self, decoder: endpoint.jsonDecoder)
   |              |- error: 'decode(type:decoder:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
55 |             .mapError { error -> APIError in
56 |                 switch error {
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:55:14: error: 'mapError' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
53 |             .map(\.data)
54 |             .decode(type: Response.self, decoder: endpoint.jsonDecoder)
55 |             .mapError { error -> APIError in
   |              |- error: 'mapError' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
56 |                 switch error {
57 |                 case let urlError as URLError:
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:76:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
74 |                 }
75 |             }
76 |             .eraseToAnyPublisher()
   |              |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
77 |     }
78 | }
[34/50] Compiling SnabblePayNetwork AccountsEndpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URL+StringLliteral.swift:10:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 8 | import Foundation
 9 |
10 | extension URL: ExpressibleByStringLiteral {
   | |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
11 |     public init(stringLiteral value: StaticString) {
12 |         self = URL(string: "\(value)")!
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:27:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | private extension Publisher where Output == (data: Data, response: URLResponse), Failure == URLError {
   |         `- note: add @available attribute to enclosing extension
27 |     func tryVerifyResponse() -> AnyPublisher<Output, Swift.Error> {
   |          |                      `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
28 |         tryMap { (data, response) throws -> Output in
29 |             try response.verify(with: data)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:26:19: error: 'Publisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | private extension Publisher where Output == (data: Data, response: URLResponse), Failure == URLError {
   |         |         `- error: 'Publisher' is only available in macOS 10.15 or newer
   |         `- note: add @available attribute to enclosing extension
27 |     func tryVerifyResponse() -> AnyPublisher<Output, Swift.Error> {
28 |         tryMap { (data, response) throws -> Output in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:39:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   |          `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
40 |         let urlRequest: URLRequest
41 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:28:9: error: 'tryMap' is only available in macOS 10.15 or newer
24 | }
25 |
26 | private extension Publisher where Output == (data: Data, response: URLResponse), Failure == URLError {
   |         `- note: add @available attribute to enclosing extension
27 |     func tryVerifyResponse() -> AnyPublisher<Output, Swift.Error> {
   |          `- note: add @available attribute to enclosing instance method
28 |         tryMap { (data, response) throws -> Output in
   |         |- error: 'tryMap' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
29 |             try response.verify(with: data)
30 |             return (data, response)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:32:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
24 | }
25 |
26 | private extension Publisher where Output == (data: Data, response: URLResponse), Failure == URLError {
   |         `- note: add @available attribute to enclosing extension
27 |     func tryVerifyResponse() -> AnyPublisher<Output, Swift.Error> {
   |          `- note: add @available attribute to enclosing instance method
28 |         tryMap { (data, response) throws -> Output in
29 |             try response.verify(with: data)
30 |             return (data, response)
31 |         }
32 |         .eraseToAnyPublisher()
   |          |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
33 |     }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:45:20: error: 'Fail' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
43 |         } catch let error as APIError {
44 |             Logger.shared.error("APIError \(error)")
45 |             return Fail(error: error).eraseToAnyPublisher()
   |                    |- error: 'Fail' is only available in macOS 10.15 or newer
   |                    `- note: add 'if #available' version check
46 |         } catch {
47 |             Logger.shared.error("APIError unexpected \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:45:39: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
43 |         } catch let error as APIError {
44 |             Logger.shared.error("APIError \(error)")
45 |             return Fail(error: error).eraseToAnyPublisher()
   |                                       |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                                       `- note: add 'if #available' version check
46 |         } catch {
47 |             Logger.shared.error("APIError unexpected \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:48:20: error: 'Fail' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
46 |         } catch {
47 |             Logger.shared.error("APIError unexpected \(error)")
48 |             return Fail(error: APIError.unexpected(error)).eraseToAnyPublisher()
   |                    |- error: 'Fail' is only available in macOS 10.15 or newer
   |                    `- note: add 'if #available' version check
49 |         }
50 |         Logger.shared.debug("Start URLRequest: \(urlRequest)")
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:48:60: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
46 |         } catch {
47 |             Logger.shared.error("APIError unexpected \(error)")
48 |             return Fail(error: APIError.unexpected(error)).eraseToAnyPublisher()
   |                                                            |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                                                            `- note: add 'if #available' version check
49 |         }
50 |         Logger.shared.debug("Start URLRequest: \(urlRequest)")
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:51:16: error: 'dataTaskPublisher(for:)' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
49 |         }
50 |         Logger.shared.debug("Start URLRequest: \(urlRequest)")
51 |         return dataTaskPublisher(for: urlRequest)
   |                |- error: 'dataTaskPublisher(for:)' is only available in macOS 10.15 or newer
   |                `- note: add 'if #available' version check
52 |             .tryVerifyResponse()
53 |             .map(\.data)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:53:14: error: 'map' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
51 |         return dataTaskPublisher(for: urlRequest)
52 |             .tryVerifyResponse()
53 |             .map(\.data)
   |              |- error: 'map' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
54 |             .decode(type: Response.self, decoder: endpoint.jsonDecoder)
55 |             .mapError { error -> APIError in
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:54:14: error: 'decode(type:decoder:)' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
52 |             .tryVerifyResponse()
53 |             .map(\.data)
54 |             .decode(type: Response.self, decoder: endpoint.jsonDecoder)
   |              |- error: 'decode(type:decoder:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
55 |             .mapError { error -> APIError in
56 |                 switch error {
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:55:14: error: 'mapError' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
53 |             .map(\.data)
54 |             .decode(type: Response.self, decoder: endpoint.jsonDecoder)
55 |             .mapError { error -> APIError in
   |              |- error: 'mapError' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
56 |                 switch error {
57 |                 case let urlError as URLError:
/Users/admin/builder/spi-builder-workspace/Sources/Network/Core/URLSession+Endpoint.swift:76:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
34 | }
35 |
36 | extension URLSession {
   | `- note: add @available attribute to enclosing extension
37 |     func publisher<Response: Decodable>(
   |          `- note: add @available attribute to enclosing instance method
38 |         for endpoint: Endpoint<Response>
39 |     ) -> AnyPublisher<Response, APIError> {
   :
74 |                 }
75 |             }
76 |             .eraseToAnyPublisher()
   |              |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
77 |     }
78 | }
[35/50] Compiling SnabblePayNetwork CustomerEndpoint.swift
[36/50] Compiling SnabblePayNetwork MandateEndpoint.swift
[37/50] Compiling SnabblePayNetwork RegisterEndpoint.swift
[38/50] Compiling SnabblePayNetwork Endpoint.swift
[39/50] Compiling SnabblePayNetwork Environment.swift
[40/50] Compiling SnabblePayNetwork HTTPError.swift
[41/50] Compiling SnabblePayNetwork Mandate.swift
[42/50] Compiling SnabblePayNetwork Session.swift
[43/50] Compiling SnabblePayNetwork Sequence+KeyPathSorted.swift
[44/50] Compiling SnabblePayNetwork Account.swift
[45/50] Compiling SnabblePayNetwork AccountCheck.swift
[46/50] Compiling SnabblePayNetwork SessionEndpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:21:49: error: 'Subscriber' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              |                                  `- error: 'Subscriber' is only available in macOS 10.15 or newer
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:12:27: error: 'Publisher' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            |              `- error: 'Publisher' is only available in macOS 10.15 or newer
   |            |- note: add @available attribute to enclosing generic struct
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:11:11: error: 'Publishers' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | extension Publishers {
   | |         `- error: 'Publishers' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
13 |         typealias Output = P.Output
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:45:98: error: 'Publishers' is only available in macOS 10.15 or newer
42 | }
43 |
44 | extension Publisher {
   | `- note: add @available attribute to enclosing extension
45 |     func retryOnce(if condition: @escaping (Failure) -> Bool, doBefore: @escaping () -> Void) -> Publishers.RetryOnceIf<Self> {
   |          |                                                                                       `- error: 'Publishers' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
46 |         Publishers.RetryOnceIf(publisher: self, times: 1, condition: condition, doBefore: doBefore)
47 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:44:11: error: 'Publisher' is only available in macOS 10.15 or newer
42 | }
43 |
44 | extension Publisher {
   | |         `- error: 'Publisher' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
45 |     func retryOnce(if condition: @escaping (Failure) -> Bool, doBefore: @escaping () -> Void) -> Publishers.RetryOnceIf<Self> {
46 |         Publishers.RetryOnceIf(publisher: self, times: 1, condition: condition, doBefore: doBefore)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:26:23: error: 'catch' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
24 |             }
25 |
26 |             publisher.catch { (error: P.Failure) -> AnyPublisher<Output, Failure> in
   |                       |- error: 'catch' is only available in macOS 10.15 or newer
   |                       `- note: add 'if #available' version check
27 |                 if condition(error) {
28 |                     doBefore()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:26:53: error: 'AnyPublisher' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
24 |             }
25 |
26 |             publisher.catch { (error: P.Failure) -> AnyPublisher<Output, Failure> in
   |                                                     |- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                                                     `- note: add 'if #available' version check
27 |                 if condition(error) {
28 |                     doBefore()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:34:23: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
   :
32 |                         condition: condition,
33 |                         doBefore: doBefore
34 |                     ).eraseToAnyPublisher()
   |                       |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                       `- note: add 'if #available' version check
35 |                 } else {
36 |                     return Fail(error: error).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:36:28: error: 'Fail' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
   :
34 |                     ).eraseToAnyPublisher()
35 |                 } else {
36 |                     return Fail(error: error).eraseToAnyPublisher()
   |                            |- error: 'Fail' is only available in macOS 10.15 or newer
   |                            `- note: add 'if #available' version check
37 |                 }
38 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:36:47: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
   :
34 |                     ).eraseToAnyPublisher()
35 |                 } else {
36 |                     return Fail(error: error).eraseToAnyPublisher()
   |                                               |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                                               `- note: add 'if #available' version check
37 |                 }
38 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:39:14: 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
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
   :
37 |                 }
38 |             }
39 |             .receive(subscriber: subscriber)
   |              |- 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
40 |         }
41 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:46:9: error: 'Publishers' is only available in macOS 10.15 or newer
42 | }
43 |
44 | extension Publisher {
   | `- note: add @available attribute to enclosing extension
45 |     func retryOnce(if condition: @escaping (Failure) -> Bool, doBefore: @escaping () -> Void) -> Publishers.RetryOnceIf<Self> {
   |          `- note: add @available attribute to enclosing instance method
46 |         Publishers.RetryOnceIf(publisher: self, times: 1, condition: condition, doBefore: doBefore)
   |         |- error: 'Publishers' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
47 |     }
48 | }
[47/50] Compiling SnabblePayNetwork TokenEndpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:21:49: error: 'Subscriber' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              |                                  `- error: 'Subscriber' is only available in macOS 10.15 or newer
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:12:27: error: 'Publisher' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            |              `- error: 'Publisher' is only available in macOS 10.15 or newer
   |            |- note: add @available attribute to enclosing generic struct
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:11:11: error: 'Publishers' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | extension Publishers {
   | |         `- error: 'Publishers' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
13 |         typealias Output = P.Output
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:45:98: error: 'Publishers' is only available in macOS 10.15 or newer
42 | }
43 |
44 | extension Publisher {
   | `- note: add @available attribute to enclosing extension
45 |     func retryOnce(if condition: @escaping (Failure) -> Bool, doBefore: @escaping () -> Void) -> Publishers.RetryOnceIf<Self> {
   |          |                                                                                       `- error: 'Publishers' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
46 |         Publishers.RetryOnceIf(publisher: self, times: 1, condition: condition, doBefore: doBefore)
47 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:44:11: error: 'Publisher' is only available in macOS 10.15 or newer
42 | }
43 |
44 | extension Publisher {
   | |         `- error: 'Publisher' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
45 |     func retryOnce(if condition: @escaping (Failure) -> Bool, doBefore: @escaping () -> Void) -> Publishers.RetryOnceIf<Self> {
46 |         Publishers.RetryOnceIf(publisher: self, times: 1, condition: condition, doBefore: doBefore)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:26:23: error: 'catch' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
24 |             }
25 |
26 |             publisher.catch { (error: P.Failure) -> AnyPublisher<Output, Failure> in
   |                       |- error: 'catch' is only available in macOS 10.15 or newer
   |                       `- note: add 'if #available' version check
27 |                 if condition(error) {
28 |                     doBefore()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:26:53: error: 'AnyPublisher' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
24 |             }
25 |
26 |             publisher.catch { (error: P.Failure) -> AnyPublisher<Output, Failure> in
   |                                                     |- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                                                     `- note: add 'if #available' version check
27 |                 if condition(error) {
28 |                     doBefore()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:34:23: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
   :
32 |                         condition: condition,
33 |                         doBefore: doBefore
34 |                     ).eraseToAnyPublisher()
   |                       |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                       `- note: add 'if #available' version check
35 |                 } else {
36 |                     return Fail(error: error).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:36:28: error: 'Fail' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
   :
34 |                     ).eraseToAnyPublisher()
35 |                 } else {
36 |                     return Fail(error: error).eraseToAnyPublisher()
   |                            |- error: 'Fail' is only available in macOS 10.15 or newer
   |                            `- note: add 'if #available' version check
37 |                 }
38 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:36:47: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
   :
34 |                     ).eraseToAnyPublisher()
35 |                 } else {
36 |                     return Fail(error: error).eraseToAnyPublisher()
   |                                               |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                                               `- note: add 'if #available' version check
37 |                 }
38 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:39:14: 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
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
   :
37 |                 }
38 |             }
39 |             .receive(subscriber: subscriber)
   |              |- 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
40 |         }
41 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:46:9: error: 'Publishers' is only available in macOS 10.15 or newer
42 | }
43 |
44 | extension Publisher {
   | `- note: add @available attribute to enclosing extension
45 |     func retryOnce(if condition: @escaping (Failure) -> Bool, doBefore: @escaping () -> Void) -> Publishers.RetryOnceIf<Self> {
   |          `- note: add @available attribute to enclosing instance method
46 |         Publishers.RetryOnceIf(publisher: self, times: 1, condition: condition, doBefore: doBefore)
   |         |- error: 'Publishers' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
47 |     }
48 | }
[48/50] Compiling SnabblePayNetwork Publisher+RetryWhenDoBefore.swift
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:21:49: error: 'Subscriber' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              |                                  `- error: 'Subscriber' is only available in macOS 10.15 or newer
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:12:27: error: 'Publisher' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            |              `- error: 'Publisher' is only available in macOS 10.15 or newer
   |            |- note: add @available attribute to enclosing generic struct
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:11:11: error: 'Publishers' is only available in macOS 10.15 or newer
 9 | import Combine
10 |
11 | extension Publishers {
   | |         `- error: 'Publishers' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
13 |         typealias Output = P.Output
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:45:98: error: 'Publishers' is only available in macOS 10.15 or newer
42 | }
43 |
44 | extension Publisher {
   | `- note: add @available attribute to enclosing extension
45 |     func retryOnce(if condition: @escaping (Failure) -> Bool, doBefore: @escaping () -> Void) -> Publishers.RetryOnceIf<Self> {
   |          |                                                                                       `- error: 'Publishers' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
46 |         Publishers.RetryOnceIf(publisher: self, times: 1, condition: condition, doBefore: doBefore)
47 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:44:11: error: 'Publisher' is only available in macOS 10.15 or newer
42 | }
43 |
44 | extension Publisher {
   | |         `- error: 'Publisher' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
45 |     func retryOnce(if condition: @escaping (Failure) -> Bool, doBefore: @escaping () -> Void) -> Publishers.RetryOnceIf<Self> {
46 |         Publishers.RetryOnceIf(publisher: self, times: 1, condition: condition, doBefore: doBefore)
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:26:23: error: 'catch' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
24 |             }
25 |
26 |             publisher.catch { (error: P.Failure) -> AnyPublisher<Output, Failure> in
   |                       |- error: 'catch' is only available in macOS 10.15 or newer
   |                       `- note: add 'if #available' version check
27 |                 if condition(error) {
28 |                     doBefore()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:26:53: error: 'AnyPublisher' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
24 |             }
25 |
26 |             publisher.catch { (error: P.Failure) -> AnyPublisher<Output, Failure> in
   |                                                     |- error: 'AnyPublisher' is only available in macOS 10.15 or newer
   |                                                     `- note: add 'if #available' version check
27 |                 if condition(error) {
28 |                     doBefore()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:34:23: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
   :
32 |                         condition: condition,
33 |                         doBefore: doBefore
34 |                     ).eraseToAnyPublisher()
   |                       |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                       `- note: add 'if #available' version check
35 |                 } else {
36 |                     return Fail(error: error).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:36:28: error: 'Fail' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
   :
34 |                     ).eraseToAnyPublisher()
35 |                 } else {
36 |                     return Fail(error: error).eraseToAnyPublisher()
   |                            |- error: 'Fail' is only available in macOS 10.15 or newer
   |                            `- note: add 'if #available' version check
37 |                 }
38 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:36:47: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
   :
34 |                     ).eraseToAnyPublisher()
35 |                 } else {
36 |                     return Fail(error: error).eraseToAnyPublisher()
   |                                               |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                                               `- note: add 'if #available' version check
37 |                 }
38 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:39:14: 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
10 |
11 | extension Publishers {
12 |     struct RetryOnceIf<P: Publisher>: Publisher {
   |            `- note: add @available attribute to enclosing generic struct
13 |         typealias Output = P.Output
14 |         typealias Failure = P.Failure
   :
19 |         let doBefore: () -> Void
20 |
21 |         func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
   |              `- note: add @available attribute to enclosing instance method
22 |             guard times > 0 else {
23 |                 return publisher.receive(subscriber: subscriber)
   :
37 |                 }
38 |             }
39 |             .receive(subscriber: subscriber)
   |              |- 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
40 |         }
41 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Network/Helper/Publisher+RetryWhenDoBefore.swift:46:9: error: 'Publishers' is only available in macOS 10.15 or newer
42 | }
43 |
44 | extension Publisher {
   | `- note: add @available attribute to enclosing extension
45 |     func retryOnce(if condition: @escaping (Failure) -> Bool, doBefore: @escaping () -> Void) -> Publishers.RetryOnceIf<Self> {
   |          `- note: add @available attribute to enclosing instance method
46 |         Publishers.RetryOnceIf(publisher: self, times: 1, condition: condition, doBefore: doBefore)
   |         |- error: 'Publishers' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
47 |     }
48 | }
[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/1162] Fetching swift-tagged
[431/4998] Fetching swift-tagged, swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.10s)
Fetched https://github.com/pointfreeco/swift-tagged from cache (1.10s)
Computing version for https://github.com/pointfreeco/swift-tagged
Computed https://github.com/pointfreeco/swift-tagged at 0.10.0 (1.60s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.37s)
Creating working copy for https://github.com/pointfreeco/swift-tagged
Working copy of https://github.com/pointfreeco/swift-tagged resolved at 0.10.0
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
BUILD FAILURE 6.2 macosSpm