Build Information
Failed to build ReduxUI, reference 1.0.0 (187f4b
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 00:52:05 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gre4ixin/ReduxUI.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/gre4ixin/ReduxUI
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 187f4b3 Merge remote-tracking branch 'origin/main' into main
Cloned https://github.com/gre4ixin/ReduxUI.git
Revision (git rev-parse @):
187f4b3e279c9eef9a2e4474e79f9781d41ab94a
SUCCESS checkout https://github.com/gre4ixin/ReduxUI.git at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "reduxui",
"name": "ReduxUI",
"url": "https://github.com/gre4ixin/ReduxUI.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ReduxUI",
"dependencies": [
]
}
]
}
Fetching https://github.com/gre4ixin/ReduxUI.git
[1/276] Fetching reduxui
Fetched https://github.com/gre4ixin/ReduxUI.git from cache (1.13s)
Creating working copy for https://github.com/gre4ixin/ReduxUI.git
Working copy of https://github.com/gre4ixin/ReduxUI.git resolved at 1.0.0 (187f4b3)
warning: '.resolve-product-dependencies': dependency 'reduxui' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/gre4ixin/ReduxUI.git
https://github.com/gre4ixin/ReduxUI.git
{
"dependencies" : [
],
"manifest_display_name" : "ReduxUI",
"name" : "ReduxUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "ReduxUI",
"targets" : [
"ReduxUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ReduxUITests",
"module_type" : "SwiftTarget",
"name" : "ReduxUITests",
"path" : "Tests/ReduxUITests",
"sources" : [
"ReduxUITests.swift"
],
"target_dependencies" : [
"ReduxUI"
],
"type" : "test"
},
{
"c99name" : "ReduxUI",
"module_type" : "SwiftTarget",
"name" : "ReduxUI",
"path" : "Sources/ReduxUI",
"product_memberships" : [
"ReduxUI"
],
"sources" : [
"Action.swift",
"Coordinator.swift",
"Middleware.swift",
"Reducer.swift",
"ReduxUI.swift",
"Route.swift",
"State.swift",
"Store.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/11] Compiling ReduxUI State.swift
[4/11] Compiling ReduxUI Coordinator.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/11] Compiling ReduxUI ReduxUI.swift
[6/11] Emitting module ReduxUI
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:15:23: error: 'AnyPublisher' is only available in macOS 10.15 or newer
11 | public protocol AnyAction { }
12 |
13 | public protocol DeferredAction {
| `- note: add @available attribute to enclosing protocol
14 | associatedtype Action: AnyAction
15 | func observe() -> AnyPublisher<Action, Never>?
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 |
17 | func eraseToAnyDeferredAction() -> AnyDeferredAction<Action>
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:29:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public class AnyDeferredAction<ActionType: AnyAction>: DeferredAction {
| `- note: add @available attribute to enclosing generic class
27 | public typealias Action = ActionType
28 |
29 | private let _observe: () -> AnyPublisher<ActionType, Never>?
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
30 |
31 | public init<U: DeferredAction>(base: U) where U.Action == ActionType {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:35:30: error: 'AnyPublisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public class AnyDeferredAction<ActionType: AnyAction>: DeferredAction {
| `- note: add @available attribute to enclosing generic class
27 | public typealias Action = ActionType
28 |
:
33 | }
34 |
35 | public func observe() -> AnyPublisher<ActionType, Never>? {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
36 | return _observe()
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:29:53: error: 'AnyPublisher' is only available in macOS 10.15 or newer
20 |
21 | /// Middleware protocol for process your action in background thread
22 | public protocol Middleware {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype State: AnyState
24 | associatedtype Action: AnyAction
:
27 | /// Return `AnyPublisher` if you want process current action or `nil` if you don't want process it
28 | /// - Returns: `AnyPublisher` with `MiddlewareAction`
29 | func execute(_ state: State, action: Action) -> AnyPublisher<MiddlewareAction<Action, Router>, Never>?
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 |
31 | /// `TypeErasure`
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:48:46: error: 'AnyPublisher' is only available in macOS 10.15 or newer
41 |
42 | /// TypeErasure Middleware
43 | public class AnyMiddleware<State: AnyState, Action: AnyAction, Route: AnyRoute>: Middleware {
| `- note: add @available attribute to enclosing generic class
44 | public typealias State = State
45 | public typealias Action = Action
46 | public typealias Router = Route
47 |
48 | private var _execute: (State, Action) -> AnyPublisher<MiddlewareAction<Action, Router>, Never>?
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
49 |
50 | public init<U: Middleware>(base: U) where U.Action == Action, U.State == State, U.Router == Route {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:54:60: error: 'AnyPublisher' is only available in macOS 10.15 or newer
41 |
42 | /// TypeErasure Middleware
43 | public class AnyMiddleware<State: AnyState, Action: AnyAction, Route: AnyRoute>: Middleware {
| `- note: add @available attribute to enclosing generic class
44 | public typealias State = State
45 | public typealias Action = Action
:
52 | }
53 |
54 | public func execute(_ state: State, action: Action) -> AnyPublisher<MiddlewareAction<Action, Route>, Never>? {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | return _execute(state, action)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:12:35: error: 'AnyCancellable' is only available in macOS 10.15 or newer
10 | import Foundation
11 |
12 | public typealias CombineBag = Set<AnyCancellable>
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:19:6: error: 'Published' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
17 | ///
18 | /// public func dispatch(_ action: Action)
19 | @Published public private(set) var state: State
| `- error: 'Published' is only available in macOS 10.15 or newer
20 |
21 | public var outputReducer: AnyReducerWrapper<Action> {
[7/11] Compiling ReduxUI Action.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:15:23: error: 'AnyPublisher' is only available in macOS 10.15 or newer
11 | public protocol AnyAction { }
12 |
13 | public protocol DeferredAction {
| `- note: add @available attribute to enclosing protocol
14 | associatedtype Action: AnyAction
15 | func observe() -> AnyPublisher<Action, Never>?
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 |
17 | func eraseToAnyDeferredAction() -> AnyDeferredAction<Action>
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:29:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public class AnyDeferredAction<ActionType: AnyAction>: DeferredAction {
| `- note: add @available attribute to enclosing generic class
27 | public typealias Action = ActionType
28 |
29 | private let _observe: () -> AnyPublisher<ActionType, Never>?
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
30 |
31 | public init<U: DeferredAction>(base: U) where U.Action == ActionType {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:35:30: error: 'AnyPublisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public class AnyDeferredAction<ActionType: AnyAction>: DeferredAction {
| `- note: add @available attribute to enclosing generic class
27 | public typealias Action = ActionType
28 |
:
33 | }
34 |
35 | public func observe() -> AnyPublisher<ActionType, Never>? {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
36 | return _observe()
37 | }
[8/11] Compiling ReduxUI Middleware.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:29:53: error: 'AnyPublisher' is only available in macOS 10.15 or newer
20 |
21 | /// Middleware protocol for process your action in background thread
22 | public protocol Middleware {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype State: AnyState
24 | associatedtype Action: AnyAction
:
27 | /// Return `AnyPublisher` if you want process current action or `nil` if you don't want process it
28 | /// - Returns: `AnyPublisher` with `MiddlewareAction`
29 | func execute(_ state: State, action: Action) -> AnyPublisher<MiddlewareAction<Action, Router>, Never>?
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 |
31 | /// `TypeErasure`
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:48:46: error: 'AnyPublisher' is only available in macOS 10.15 or newer
41 |
42 | /// TypeErasure Middleware
43 | public class AnyMiddleware<State: AnyState, Action: AnyAction, Route: AnyRoute>: Middleware {
| `- note: add @available attribute to enclosing generic class
44 | public typealias State = State
45 | public typealias Action = Action
46 | public typealias Router = Route
47 |
48 | private var _execute: (State, Action) -> AnyPublisher<MiddlewareAction<Action, Router>, Never>?
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
49 |
50 | public init<U: Middleware>(base: U) where U.Action == Action, U.State == State, U.Router == Route {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:54:60: error: 'AnyPublisher' is only available in macOS 10.15 or newer
41 |
42 | /// TypeErasure Middleware
43 | public class AnyMiddleware<State: AnyState, Action: AnyAction, Route: AnyRoute>: Middleware {
| `- note: add @available attribute to enclosing generic class
44 | public typealias State = State
45 | public typealias Action = Action
:
52 | }
53 |
54 | public func execute(_ state: State, action: Action) -> AnyPublisher<MiddlewareAction<Action, Route>, Never>? {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | return _execute(state, action)
56 | }
[9/11] Compiling ReduxUI Reducer.swift
[10/11] Compiling ReduxUI Route.swift
[11/11] Compiling ReduxUI Store.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:12:35: error: 'AnyCancellable' is only available in macOS 10.15 or newer
10 | import Foundation
11 |
12 | public typealias CombineBag = Set<AnyCancellable>
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
<unknown>:0: error: cannot convert value of type 'any KeyPath<Store<State, Action, Router>, State> & Sendable' to expected argument type 'ReferenceWritableKeyPath<Store<State, Action, Router>, State>'
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:19:6: error: 'Published' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
17 | ///
18 | /// public func dispatch(_ action: Action)
19 | @Published public private(set) var state: State
| `- error: 'Published' is only available in macOS 10.15 or newer
20 |
21 | public var outputReducer: AnyReducerWrapper<Action> {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:43:9: error: setter for 'state' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
40 | /// - coordinator:
41 | /// - reducer: AnyReducer
42 | public init(initialState: State, coordinator: AnyCoordinator<Router>, reducer: StoreReducer) {
| `- note: add @available attribute to enclosing initializer
43 | self.state = initialState
| |- error: setter for 'state' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | self.coordinator = coordinator
45 | self.reducer = reducer
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:73:25: error: cannot pass as inout because setter for 'state' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
69 | /// Calling dispatch with action for processing State
70 | /// - Parameter action: AnyAction
71 | public func dispatch(_ action: Action) {
| `- note: add @available attribute to enclosing instance method
72 | os_unfair_lock_lock(&lock)
73 | reducer.reduce(&state, action: action, performRoute: performRoute)
| |- error: cannot pass as inout because setter for 'state' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | os_unfair_lock_unlock(&lock)
75 |
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:94:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
89 | /// Deferred action runner
90 | /// - Parameter action: Erase deferred action and execute them
91 | private func runDeferredAction(_ action: AnyDeferredAction<Action>) {
| `- note: add @available attribute to enclosing instance method
92 | guard let _action = action.observe() else { return }
93 | _action
94 | .sink { [weak self] action in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | guard let self = self else { return }
96 | self.dispatch(action)
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:97:15: error: 'store(in:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
89 | /// Deferred action runner
90 | /// - Parameter action: Erase deferred action and execute them
91 | private func runDeferredAction(_ action: AnyDeferredAction<Action>) {
| `- note: add @available attribute to enclosing instance method
92 | guard let _action = action.observe() else { return }
93 | _action
:
95 | guard let self = self else { return }
96 | self.dispatch(action)
97 | }.store(in: &middlewareCancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 |
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:106:18: error: 'subscribe(on:options:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
98 | }
99 |
100 | private func performAnyMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
101 | /// Check if any middlewares can perform current action
102 | for middleware in middlewares {
:
104 |
105 | future
106 | .subscribe(on: queue)
| |- error: 'subscribe(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | .receive(on: DispatchQueue.main)
108 | .sink(receiveValue: { [weak self] middlewareAction in
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:107:18: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
98 | }
99 |
100 | private func performAnyMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
101 | /// Check if any middlewares can perform current action
102 | for middleware in middlewares {
:
105 | future
106 | .subscribe(on: queue)
107 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | .sink(receiveValue: { [weak self] middlewareAction in
109 | guard let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:108:18: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
98 | }
99 |
100 | private func performAnyMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
101 | /// Check if any middlewares can perform current action
102 | for middleware in middlewares {
:
106 | .subscribe(on: queue)
107 | .receive(on: DispatchQueue.main)
108 | .sink(receiveValue: { [weak self] middlewareAction in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | guard let self = self else { return }
110 | switch middlewareAction {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:133:18: error: 'store(in:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
98 | }
99 |
100 | private func performAnyMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
101 | /// Check if any middlewares can perform current action
102 | for middleware in middlewares {
:
131 | }
132 | })
133 | .store(in: &middlewareCancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:139:13: error: 'Task' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | guard let middlewareAction = await asyncMiddleware.execute(state, action: action) else { return }
141 | switch middlewareAction {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:139:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | guard let middlewareAction = await asyncMiddleware.execute(state, action: action) else { return }
141 | switch middlewareAction {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:144:27: error: 'MainActor' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
142 | case .none: break
143 | case .performAction(let action):
144 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | self.dispatch(action)
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:144:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
142 | case .none: break
143 | case .performAction(let action):
144 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | self.dispatch(action)
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:148:27: error: 'MainActor' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
146 | }
147 | case .performRoute(let route):
148 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
149 | self.route(route)
150 | })
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:148:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
146 | }
147 | case .performRoute(let route):
148 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
149 | self.route(route)
150 | })
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:152:27: error: 'MainActor' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
150 | })
151 | case .performDeferredAction(let anyDeferredAction):
152 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | self.runDeferredAction(anyDeferredAction)
154 | })
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:152:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
150 | })
151 | case .performDeferredAction(let anyDeferredAction):
152 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | self.runDeferredAction(anyDeferredAction)
154 | })
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:156:27: error: 'MainActor' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
154 | })
155 | case .multiple(let actionArray):
156 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | actionArray.forEach({
158 | switch $0 {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:156:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
154 | })
155 | case .multiple(let actionArray):
156 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | actionArray.forEach({
158 | switch $0 {
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/10] Compiling ReduxUI State.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/10] Compiling ReduxUI Route.swift
[4/10] Compiling ReduxUI Reducer.swift
[5/10] Compiling ReduxUI ReduxUI.swift
[6/10] Compiling ReduxUI Coordinator.swift
[7/10] Compiling ReduxUI Middleware.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:29:53: error: 'AnyPublisher' is only available in macOS 10.15 or newer
20 |
21 | /// Middleware protocol for process your action in background thread
22 | public protocol Middleware {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype State: AnyState
24 | associatedtype Action: AnyAction
:
27 | /// Return `AnyPublisher` if you want process current action or `nil` if you don't want process it
28 | /// - Returns: `AnyPublisher` with `MiddlewareAction`
29 | func execute(_ state: State, action: Action) -> AnyPublisher<MiddlewareAction<Action, Router>, Never>?
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 |
31 | /// `TypeErasure`
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:48:46: error: 'AnyPublisher' is only available in macOS 10.15 or newer
41 |
42 | /// TypeErasure Middleware
43 | public class AnyMiddleware<State: AnyState, Action: AnyAction, Route: AnyRoute>: Middleware {
| `- note: add @available attribute to enclosing generic class
44 | public typealias State = State
45 | public typealias Action = Action
46 | public typealias Router = Route
47 |
48 | private var _execute: (State, Action) -> AnyPublisher<MiddlewareAction<Action, Router>, Never>?
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
49 |
50 | public init<U: Middleware>(base: U) where U.Action == Action, U.State == State, U.Router == Route {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:54:60: error: 'AnyPublisher' is only available in macOS 10.15 or newer
41 |
42 | /// TypeErasure Middleware
43 | public class AnyMiddleware<State: AnyState, Action: AnyAction, Route: AnyRoute>: Middleware {
| `- note: add @available attribute to enclosing generic class
44 | public typealias State = State
45 | public typealias Action = Action
:
52 | }
53 |
54 | public func execute(_ state: State, action: Action) -> AnyPublisher<MiddlewareAction<Action, Route>, Never>? {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | return _execute(state, action)
56 | }
[8/10] Compiling ReduxUI Action.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:15:23: error: 'AnyPublisher' is only available in macOS 10.15 or newer
11 | public protocol AnyAction { }
12 |
13 | public protocol DeferredAction {
| `- note: add @available attribute to enclosing protocol
14 | associatedtype Action: AnyAction
15 | func observe() -> AnyPublisher<Action, Never>?
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 |
17 | func eraseToAnyDeferredAction() -> AnyDeferredAction<Action>
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:29:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public class AnyDeferredAction<ActionType: AnyAction>: DeferredAction {
| `- note: add @available attribute to enclosing generic class
27 | public typealias Action = ActionType
28 |
29 | private let _observe: () -> AnyPublisher<ActionType, Never>?
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
30 |
31 | public init<U: DeferredAction>(base: U) where U.Action == ActionType {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:35:30: error: 'AnyPublisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public class AnyDeferredAction<ActionType: AnyAction>: DeferredAction {
| `- note: add @available attribute to enclosing generic class
27 | public typealias Action = ActionType
28 |
:
33 | }
34 |
35 | public func observe() -> AnyPublisher<ActionType, Never>? {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
36 | return _observe()
37 | }
[9/10] Emitting module ReduxUI
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:15:23: error: 'AnyPublisher' is only available in macOS 10.15 or newer
11 | public protocol AnyAction { }
12 |
13 | public protocol DeferredAction {
| `- note: add @available attribute to enclosing protocol
14 | associatedtype Action: AnyAction
15 | func observe() -> AnyPublisher<Action, Never>?
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 |
17 | func eraseToAnyDeferredAction() -> AnyDeferredAction<Action>
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:29:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public class AnyDeferredAction<ActionType: AnyAction>: DeferredAction {
| `- note: add @available attribute to enclosing generic class
27 | public typealias Action = ActionType
28 |
29 | private let _observe: () -> AnyPublisher<ActionType, Never>?
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
30 |
31 | public init<U: DeferredAction>(base: U) where U.Action == ActionType {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:35:30: error: 'AnyPublisher' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public class AnyDeferredAction<ActionType: AnyAction>: DeferredAction {
| `- note: add @available attribute to enclosing generic class
27 | public typealias Action = ActionType
28 |
:
33 | }
34 |
35 | public func observe() -> AnyPublisher<ActionType, Never>? {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
36 | return _observe()
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:29:53: error: 'AnyPublisher' is only available in macOS 10.15 or newer
20 |
21 | /// Middleware protocol for process your action in background thread
22 | public protocol Middleware {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype State: AnyState
24 | associatedtype Action: AnyAction
:
27 | /// Return `AnyPublisher` if you want process current action or `nil` if you don't want process it
28 | /// - Returns: `AnyPublisher` with `MiddlewareAction`
29 | func execute(_ state: State, action: Action) -> AnyPublisher<MiddlewareAction<Action, Router>, Never>?
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 |
31 | /// `TypeErasure`
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:48:46: error: 'AnyPublisher' is only available in macOS 10.15 or newer
41 |
42 | /// TypeErasure Middleware
43 | public class AnyMiddleware<State: AnyState, Action: AnyAction, Route: AnyRoute>: Middleware {
| `- note: add @available attribute to enclosing generic class
44 | public typealias State = State
45 | public typealias Action = Action
46 | public typealias Router = Route
47 |
48 | private var _execute: (State, Action) -> AnyPublisher<MiddlewareAction<Action, Router>, Never>?
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
49 |
50 | public init<U: Middleware>(base: U) where U.Action == Action, U.State == State, U.Router == Route {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:54:60: error: 'AnyPublisher' is only available in macOS 10.15 or newer
41 |
42 | /// TypeErasure Middleware
43 | public class AnyMiddleware<State: AnyState, Action: AnyAction, Route: AnyRoute>: Middleware {
| `- note: add @available attribute to enclosing generic class
44 | public typealias State = State
45 | public typealias Action = Action
:
52 | }
53 |
54 | public func execute(_ state: State, action: Action) -> AnyPublisher<MiddlewareAction<Action, Route>, Never>? {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | return _execute(state, action)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:12:35: error: 'AnyCancellable' is only available in macOS 10.15 or newer
10 | import Foundation
11 |
12 | public typealias CombineBag = Set<AnyCancellable>
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:19:6: error: 'Published' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
17 | ///
18 | /// public func dispatch(_ action: Action)
19 | @Published public private(set) var state: State
| `- error: 'Published' is only available in macOS 10.15 or newer
20 |
21 | public var outputReducer: AnyReducerWrapper<Action> {
[10/10] Compiling ReduxUI Store.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:12:35: error: 'AnyCancellable' is only available in macOS 10.15 or newer
10 | import Foundation
11 |
12 | public typealias CombineBag = Set<AnyCancellable>
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
<unknown>:0: error: cannot convert value of type 'KeyPath<Store<State, Action, Router>, State>' to expected argument type 'ReferenceWritableKeyPath<Store<State, Action, Router>, State>'
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:19:6: error: 'Published' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
17 | ///
18 | /// public func dispatch(_ action: Action)
19 | @Published public private(set) var state: State
| `- error: 'Published' is only available in macOS 10.15 or newer
20 |
21 | public var outputReducer: AnyReducerWrapper<Action> {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:43:9: error: setter for 'state' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
40 | /// - coordinator:
41 | /// - reducer: AnyReducer
42 | public init(initialState: State, coordinator: AnyCoordinator<Router>, reducer: StoreReducer) {
| `- note: add @available attribute to enclosing initializer
43 | self.state = initialState
| |- error: setter for 'state' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | self.coordinator = coordinator
45 | self.reducer = reducer
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:73:25: error: cannot pass as inout because setter for 'state' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
69 | /// Calling dispatch with action for processing State
70 | /// - Parameter action: AnyAction
71 | public func dispatch(_ action: Action) {
| `- note: add @available attribute to enclosing instance method
72 | os_unfair_lock_lock(&lock)
73 | reducer.reduce(&state, action: action, performRoute: performRoute)
| |- error: cannot pass as inout because setter for 'state' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | os_unfair_lock_unlock(&lock)
75 |
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:94:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
89 | /// Deferred action runner
90 | /// - Parameter action: Erase deferred action and execute them
91 | private func runDeferredAction(_ action: AnyDeferredAction<Action>) {
| `- note: add @available attribute to enclosing instance method
92 | guard let _action = action.observe() else { return }
93 | _action
94 | .sink { [weak self] action in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | guard let self = self else { return }
96 | self.dispatch(action)
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:97:15: error: 'store(in:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
89 | /// Deferred action runner
90 | /// - Parameter action: Erase deferred action and execute them
91 | private func runDeferredAction(_ action: AnyDeferredAction<Action>) {
| `- note: add @available attribute to enclosing instance method
92 | guard let _action = action.observe() else { return }
93 | _action
:
95 | guard let self = self else { return }
96 | self.dispatch(action)
97 | }.store(in: &middlewareCancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 |
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:106:18: error: 'subscribe(on:options:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
98 | }
99 |
100 | private func performAnyMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
101 | /// Check if any middlewares can perform current action
102 | for middleware in middlewares {
:
104 |
105 | future
106 | .subscribe(on: queue)
| |- error: 'subscribe(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | .receive(on: DispatchQueue.main)
108 | .sink(receiveValue: { [weak self] middlewareAction in
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:107:18: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
98 | }
99 |
100 | private func performAnyMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
101 | /// Check if any middlewares can perform current action
102 | for middleware in middlewares {
:
105 | future
106 | .subscribe(on: queue)
107 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | .sink(receiveValue: { [weak self] middlewareAction in
109 | guard let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:108:18: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
98 | }
99 |
100 | private func performAnyMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
101 | /// Check if any middlewares can perform current action
102 | for middleware in middlewares {
:
106 | .subscribe(on: queue)
107 | .receive(on: DispatchQueue.main)
108 | .sink(receiveValue: { [weak self] middlewareAction in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | guard let self = self else { return }
110 | switch middlewareAction {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:133:18: error: 'store(in:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
98 | }
99 |
100 | private func performAnyMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
101 | /// Check if any middlewares can perform current action
102 | for middleware in middlewares {
:
131 | }
132 | })
133 | .store(in: &middlewareCancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | }
135 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:139:13: error: 'Task' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | guard let middlewareAction = await asyncMiddleware.execute(state, action: action) else { return }
141 | switch middlewareAction {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:139:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | guard let middlewareAction = await asyncMiddleware.execute(state, action: action) else { return }
141 | switch middlewareAction {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:144:27: error: 'MainActor' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
142 | case .none: break
143 | case .performAction(let action):
144 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | self.dispatch(action)
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:144:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
142 | case .none: break
143 | case .performAction(let action):
144 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | self.dispatch(action)
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:148:27: error: 'MainActor' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
146 | }
147 | case .performRoute(let route):
148 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
149 | self.route(route)
150 | })
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:148:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
146 | }
147 | case .performRoute(let route):
148 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
149 | self.route(route)
150 | })
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:152:27: error: 'MainActor' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
150 | })
151 | case .performDeferredAction(let anyDeferredAction):
152 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | self.runDeferredAction(anyDeferredAction)
154 | })
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:152:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
150 | })
151 | case .performDeferredAction(let anyDeferredAction):
152 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | self.runDeferredAction(anyDeferredAction)
154 | })
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:156:27: error: 'MainActor' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
154 | })
155 | case .multiple(let actionArray):
156 | await MainActor.run(body: {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | actionArray.forEach({
158 | switch $0 {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:156:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
15 |
16 | /// Change State from
:
135 | }
136 |
137 | private func performAsyncMiddlewares(for action: Action) {
| `- note: add @available attribute to enclosing instance method
138 | for asyncMiddleware in asyncMiddlewares {
139 | Task {
:
154 | })
155 | case .multiple(let actionArray):
156 | await MainActor.run(body: {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | actionArray.forEach({
158 | switch $0 {
BUILD FAILURE 6.1 macosSpm