Build Information
Failed to build ReduxUI, reference 1.0.0 (187f4b
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 11:53:22 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.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.29s)
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.0
Building package at path: $PWD
https://github.com/gre4ixin/ReduxUI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/11] Compiling ReduxUI State.swift
[4/11] Compiling ReduxUI ReduxUI.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/11] Compiling ReduxUI Coordinator.swift
[6/11] Compiling ReduxUI Reducer.swift
[7/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> {
[8/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 | }
[9/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 | }
[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 '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 {
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:145:25: warning: capture of 'self' with non-sendable type 'Store<State, Action, Router>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: generic class 'Store' does not conform to the 'Sendable' protocol
15 |
16 | /// Change State from
:
143 | case .performAction(let action):
144 | await MainActor.run {
145 | self.dispatch(action)
| `- warning: capture of 'self' with non-sendable type 'Store<State, Action, Router>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | case .performRoute(let route):
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:145:39: warning: capture of 'action' with non-sendable type 'Action' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: consider making generic parameter 'Action' conform to the 'Sendable' protocol
15 |
16 | /// Change State from
:
143 | case .performAction(let action):
144 | await MainActor.run {
145 | self.dispatch(action)
| `- warning: capture of 'action' with non-sendable type 'Action' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | }
147 | case .performRoute(let route):
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:149:25: warning: capture of 'self' with non-sendable type 'Store<State, Action, Router>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: generic class 'Store' does not conform to the 'Sendable' protocol
15 |
16 | /// Change State from
:
147 | case .performRoute(let route):
148 | await MainActor.run(body: {
149 | self.route(route)
| `- warning: capture of 'self' with non-sendable type 'Store<State, Action, Router>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | })
151 | case .performDeferredAction(let anyDeferredAction):
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:149:36: warning: capture of 'route' with non-sendable type 'Router' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: consider making generic parameter 'Router' conform to the 'Sendable' protocol
15 |
16 | /// Change State from
:
147 | case .performRoute(let route):
148 | await MainActor.run(body: {
149 | self.route(route)
| `- warning: capture of 'route' with non-sendable type 'Router' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | })
151 | case .performDeferredAction(let anyDeferredAction):
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:153:25: warning: capture of 'self' with non-sendable type 'Store<State, Action, Router>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: generic class 'Store' does not conform to the 'Sendable' protocol
15 |
16 | /// Change State from
:
151 | case .performDeferredAction(let anyDeferredAction):
152 | await MainActor.run(body: {
153 | self.runDeferredAction(anyDeferredAction)
| `- warning: capture of 'self' with non-sendable type 'Store<State, Action, Router>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | })
155 | case .multiple(let actionArray):
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:153:48: warning: capture of 'anyDeferredAction' with non-sendable type 'AnyDeferredAction<Action>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | case .performDeferredAction(let anyDeferredAction):
152 | await MainActor.run(body: {
153 | self.runDeferredAction(anyDeferredAction)
| `- warning: capture of 'anyDeferredAction' with non-sendable type 'AnyDeferredAction<Action>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | })
155 | case .multiple(let actionArray):
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Action.swift:26:14: note: generic class 'AnyDeferredAction' does not conform to the 'Sendable' protocol
24 | }
25 |
26 | public class AnyDeferredAction<ActionType: AnyAction>: DeferredAction {
| `- note: generic class 'AnyDeferredAction' does not conform to the 'Sendable' protocol
27 | public typealias Action = ActionType
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:157:25: warning: capture of 'actionArray' with non-sendable type '[MiddlewareAction<Action, Router>]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | case .multiple(let actionArray):
156 | await MainActor.run(body: {
157 | actionArray.forEach({
| `- warning: capture of 'actionArray' with non-sendable type '[MiddlewareAction<Action, Router>]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | switch $0 {
159 | case .performDeferredAction(let anyDeferredAction):
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Middleware.swift:13:13: note: consider making generic enum 'MiddlewareAction' conform to the 'Sendable' protocol
11 |
12 | /// Returnable type from middleware
13 | public enum MiddlewareAction<Action: AnyAction, Router: AnyRoute> {
| `- note: consider making generic enum 'MiddlewareAction' conform to the 'Sendable' protocol
14 | case performAction(Action)
15 | case performRoute(Router)
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:160:33: warning: capture of 'self' with non-sendable type 'Store<State, Action, Router>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: generic class 'Store' does not conform to the 'Sendable' protocol
15 |
16 | /// Change State from
:
158 | switch $0 {
159 | case .performDeferredAction(let anyDeferredAction):
160 | self.runDeferredAction(anyDeferredAction)
| `- warning: capture of 'self' with non-sendable type 'Store<State, Action, Router>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | case .performAction(let action):
162 | self.dispatch(action)
/Users/admin/builder/spi-builder-workspace/Sources/ReduxUI/Store.swift:160:33: warning: capture of 'self' with non-sendable type 'Store<State, Action, Router>' in an isolated closure; this is an error in the Swift 6 language mode
12 | public typealias CombineBag = Set<AnyCancellable>
13 |
14 | public class Store<State: AnyState, Action: AnyAction, Router: AnyRoute>: ObservableObject {
| `- note: generic class 'Store' does not conform to the 'Sendable' protocol
15 |
16 | /// Change State from
:
158 | switch $0 {
159 | case .performDeferredAction(let anyDeferredAction):
160 | self.runDeferredAction(anyDeferredAction)
| `- warning: capture of 'self' with non-sendable type 'Store<State, Action, Router>' in an isolated closure; this is an error in the Swift 6 language mode
161 | case .performAction(let action):
162 | self.dispatch(action)
BUILD FAILURE 6.0 macosSpm