Build Information
Failed to build ReSwiftSaga, reference main (13a9e6), with Swift 6.1 for macOS (SPM) on 13 Oct 2026 09:38:09 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mitsuharu/ReSwift-Saga.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mitsuharu/ReSwift-Saga
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 13a9e69 Merge pull request #21 from mitsuharu/docs/deprecation-notice
Cloned https://github.com/mitsuharu/ReSwift-Saga.git
Revision (git rev-parse @):
13a9e69483553ba4fd28bb3bc01f993936e8aabd
SUCCESS checkout https://github.com/mitsuharu/ReSwift-Saga.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/mitsuharu/ReSwift-Saga.git
https://github.com/mitsuharu/ReSwift-Saga.git
{
"dependencies" : [
{
"identity" : "reswift",
"requirement" : {
"range" : [
{
"lower_bound" : "6.1.0",
"upper_bound" : "7.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ReSwift/ReSwift"
}
],
"manifest_display_name" : "ReSwiftSaga",
"name" : "ReSwiftSaga",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "ReSwiftSaga",
"targets" : [
"ReSwiftSaga"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ReSwiftSagaTests",
"module_type" : "SwiftTarget",
"name" : "ReSwiftSagaTests",
"path" : "Tests/ReSwiftSagaTests",
"sources" : [
"ReSwiftSagaTests.swift",
"utilities/ReduxModules.swift",
"utilities/StateSubscriber.swift"
],
"target_dependencies" : [
"ReSwiftSaga"
],
"type" : "test"
},
{
"c99name" : "ReSwiftSaga",
"module_type" : "SwiftTarget",
"name" : "ReSwiftSaga",
"path" : "Sources/ReSwiftSaga",
"product_dependencies" : [
"ReSwift"
],
"product_memberships" : [
"ReSwiftSaga"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Bridge.swift",
"Buffer.swift",
"Effects.swift",
"Error.swift",
"Saga.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
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/4] Write sources
[1/4] Copying PrivacyInfo.xcprivacy
[2/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/17] Compiling ReSwift Subscription.swift
[6/18] Compiling ReSwift StoreType.swift
[7/18] Compiling ReSwift Middleware.swift
[8/18] Compiling ReSwift Reducer.swift
[9/18] Compiling ReSwift State.swift
[10/18] Compiling ReSwift Store.swift
[11/18] Compiling ReSwift TypeHelper.swift
[12/18] Compiling ReSwift StoreSubscriber.swift
[13/18] Emitting module ReSwift
[14/18] Compiling ReSwift Action.swift
[15/18] Compiling ReSwift DispatchingStoreType.swift
[16/18] Compiling ReSwift Assertions.swift
[17/18] Compiling ReSwift Coding.swift
[18/18] Compiling ReSwift Synchronized.swift
[19/25] Compiling ReSwiftSaga Saga.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:20:27: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
20 | private let subject = PassthroughSubject<Action, Error>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
21 | private var subscriptions = [AnyCancellable]()
22 |
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:21:34: error: 'AnyCancellable' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
20 | private let subject = PassthroughSubject<Action, Error>()
21 | private var subscriptions = [AnyCancellable]()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
22 |
23 | private init() { }
[20/25] Compiling ReSwiftSaga Error.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/25] Emitting module ReSwiftSaga
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:19:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Bridge' may have shared mutable state; this is an error in the Swift 6 language mode
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: class 'Bridge' does not conform to the 'Sendable' protocol
18 |
19 | static let shared = Bridge()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Bridge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | private let subject = PassthroughSubject<Action, Error>()
21 | private var subscriptions = [AnyCancellable]()
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:20:27: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
20 | private let subject = PassthroughSubject<Action, Error>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
21 | private var subscriptions = [AnyCancellable]()
22 |
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:21:34: error: 'AnyCancellable' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
20 | private let subject = PassthroughSubject<Action, Error>()
21 | private var subscriptions = [AnyCancellable]()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
22 |
23 | private init() { }
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:87:41: error: 'Subscribers' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
:
85 | TODO: エラーを投げるかは検討
86 | */
87 | private func complete(_ completion: Subscribers.Completion<Error>){
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
88 | switch completion {
89 | case .finished:
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Buffer.swift:14:15: error: 'Task' is only available in macOS 10.15 or newer
11 | takeLeading, takeLatest 向けに task を管理する
12 | */
13 | class Buffer {
| `- note: add @available attribute to enclosing class
14 | var task: Task<(), Never>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
15 |
16 | func done(){
[22/25] Compiling ReSwiftSaga resource_bundle_accessor.swift
[23/25] Compiling ReSwiftSaga Effects.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:30:5: error: 'Task' is only available in macOS 10.15 or newer
24 | ```
25 | */
26 | public func put(_ action: Action) async throws {
| `- note: add @available attribute to enclosing global function
27 | guard let dispatch = Bridge.shared.dispatch else{
28 | throw SagaError.middlewareFailed(message: "SagaMiddleware has not prepared dispatch.")
29 | }
30 | Task.detached { @MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | dispatch(action)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:30:10: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
24 | ```
25 | */
26 | public func put(_ action: Action) async throws {
| `- note: add @available attribute to enclosing global function
27 | guard let dispatch = Bridge.shared.dispatch else{
28 | throw SagaError.middlewareFailed(message: "SagaMiddleware has not prepared dispatch.")
29 | }
30 | Task.detached { @MainActor in
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | dispatch(action)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:103:5: error: 'Task' is only available in macOS 10.15 or newer
100 | ```
101 | */
102 | public func fork<T>(_ effect: @escaping Saga<T>, _ arg: Action) async rethrows -> Void {
| `- note: add @available attribute to enclosing global function
103 | Task.detached{
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | let _ = try await effect(arg)
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:103:10: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
100 | ```
101 | */
102 | public func fork<T>(_ effect: @escaping Saga<T>, _ arg: Action) async rethrows -> Void {
| `- note: add @available attribute to enclosing global function
103 | Task.detached{
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | let _ = try await effect(arg)
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:130:22: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
123 | */
124 | @discardableResult
125 | func take(_ actionType: Action.Type) async -> Action {
| `- note: add @available attribute to enclosing global function
126 | if #available(iOS 15, macOS 12, *) {
127 | let action = await Bridge.shared.take(actionType).value
128 | return action
129 | } else {
130 | return await withCheckedContinuation { continuation in
| |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
131 | Bridge.shared.take(actionType) { action in
132 | continuation.resume(returning: action)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:130:47: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:130:46: note: expanded code originates here
123 | */
124 | @discardableResult
125 | func take(_ actionType: Action.Type) async -> Action {
| `- note: add @available attribute to enclosing global function
126 | if #available(iOS 15, macOS 12, *) {
127 | let action = await Bridge.shared.take(actionType).value
128 | return action
129 | } else {
130 | return await withCheckedContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift
|128 |
|129 |
|130 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------
131 | Bridge.shared.take(actionType) { action in
132 | continuation.resume(returning: action)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:151:5: error: 'Task' is only available in macOS 10.15 or newer
148 | ```
149 | */
150 | public func takeEvery<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
151 | Task.detached {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | while true {
153 | let action = await take(actionType)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:151:10: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
148 | ```
149 | */
150 | public func takeEvery<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
151 | Task.detached {
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | while true {
153 | let action = await take(actionType)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:174:5: error: 'Task' is only available in macOS 10.15 or newer
170 | ```
171 | */
172 | public func takeLatest<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
173 | let buffer = Buffer()
174 | Task.detached {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | while true {
176 | let action = await take(actionType)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:174:10: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
170 | ```
171 | */
172 | public func takeLatest<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
173 | let buffer = Buffer()
174 | Task.detached {
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | while true {
176 | let action = await take(actionType)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:178:27: error: 'Task' is only available in macOS 10.15 or newer
170 | ```
171 | */
172 | public func takeLatest<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
173 | let buffer = Buffer()
174 | Task.detached {
:
176 | let action = await take(actionType)
177 | buffer.done()
178 | buffer.task = Task.detached{
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
179 | defer { buffer.done() }
180 | let _ = try? await call(saga, action)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:178:32: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
170 | ```
171 | */
172 | public func takeLatest<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
173 | let buffer = Buffer()
174 | Task.detached {
:
176 | let action = await take(actionType)
177 | buffer.done()
178 | buffer.task = Task.detached{
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
179 | defer { buffer.done() }
180 | let _ = try? await call(saga, action)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:201:5: error: 'Task' is only available in macOS 10.15 or newer
197 | ```
198 | */
199 | public func takeLeading<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
200 | let buffer = Buffer()
201 | Task.detached {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 | while true {
203 | let action = await take(actionType)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:201:10: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
197 | ```
198 | */
199 | public func takeLeading<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
200 | let buffer = Buffer()
201 | Task.detached {
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 | while true {
203 | let action = await take(actionType)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:207:27: error: 'Task' is only available in macOS 10.15 or newer
197 | ```
198 | */
199 | public func takeLeading<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
200 | let buffer = Buffer()
201 | Task.detached {
:
205 | continue
206 | }
207 | buffer.task = Task.detached {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | defer { buffer.done() }
209 | let _ = try? await call(saga, action)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:207:32: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
197 | ```
198 | */
199 | public func takeLeading<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
200 | let buffer = Buffer()
201 | Task.detached {
:
205 | continue
206 | }
207 | buffer.task = Task.detached {
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | defer { buffer.done() }
209 | let _ = try? await call(saga, action)
[24/25] Compiling ReSwiftSaga Buffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Buffer.swift:14:15: error: 'Task' is only available in macOS 10.15 or newer
11 | takeLeading, takeLatest 向けに task を管理する
12 | */
13 | class Buffer {
| `- note: add @available attribute to enclosing class
14 | var task: Task<(), Never>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
15 |
16 | func done(){
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Buffer.swift:17:20: error: 'cancel()' is only available in macOS 10.15 or newer
11 | takeLeading, takeLatest 向けに task を管理する
12 | */
13 | class Buffer {
| `- note: add @available attribute to enclosing class
14 | var task: Task<(), Never>? = nil
15 |
16 | func done(){
| `- note: add @available attribute to enclosing instance method
17 | self.task?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | self.task = nil
19 | }
[25/25] Compiling ReSwiftSaga Bridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:19:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Bridge' may have shared mutable state; this is an error in the Swift 6 language mode
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: class 'Bridge' does not conform to the 'Sendable' protocol
18 |
19 | static let shared = Bridge()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Bridge' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | private let subject = PassthroughSubject<Action, Error>()
21 | private var subscriptions = [AnyCancellable]()
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:20:27: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
20 | private let subject = PassthroughSubject<Action, Error>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
21 | private var subscriptions = [AnyCancellable]()
22 |
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:21:34: error: 'AnyCancellable' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
20 | private let subject = PassthroughSubject<Action, Error>()
21 | private var subscriptions = [AnyCancellable]()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
22 |
23 | private init() { }
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:87:41: error: 'Subscribers' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
:
85 | TODO: エラーを投げるかは検討
86 | */
87 | private func complete(_ completion: Subscribers.Completion<Error>){
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
88 | switch completion {
89 | case .finished:
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:71:26: error: 'AnyCancellable' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
:
66 | iOS 13, 14 向けの実装です。
67 | */
68 | func take(_ actionType: Action.Type, receive: @escaping (_ action: Action) -> Void ){
| `- note: add @available attribute to enclosing instance method
69 | // 監視は一度限りで行い、検出後は破棄する
70 | // 破棄しないと withCheckedContinuation で多重呼出の扱いになりクラッシュする
71 | var cancellable: AnyCancellable? = nil
| |- error: 'AnyCancellable' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | cancellable = subject.filter {
73 | type(of: $0) == actionType
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:72:31: error: 'filter' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
:
66 | iOS 13, 14 向けの実装です。
67 | */
68 | func take(_ actionType: Action.Type, receive: @escaping (_ action: Action) -> Void ){
| `- note: add @available attribute to enclosing instance method
69 | // 監視は一度限りで行い、検出後は破棄する
70 | // 破棄しないと withCheckedContinuation で多重呼出の扱いになりクラッシュする
71 | var cancellable: AnyCancellable? = nil
72 | cancellable = subject.filter {
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | type(of: $0) == actionType
74 | }.sink { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:74:11: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
:
66 | iOS 13, 14 向けの実装です。
67 | */
68 | func take(_ actionType: Action.Type, receive: @escaping (_ action: Action) -> Void ){
| `- note: add @available attribute to enclosing instance method
69 | // 監視は一度限りで行い、検出後は破棄する
70 | // 破棄しないと withCheckedContinuation で多重呼出の扱いになりクラッシュする
:
72 | cancellable = subject.filter {
73 | type(of: $0) == actionType
74 | }.sink { [weak self] in
| |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | self?.complete($0)
76 | cancellable?.cancel()
Fetching https://github.com/ReSwift/ReSwift
[1/6447] Fetching reswift
Fetched https://github.com/ReSwift/ReSwift from cache (1.75s)
Computing version for https://github.com/ReSwift/ReSwift
Computed https://github.com/ReSwift/ReSwift at 6.1.1 (4.98s)
Creating working copy for https://github.com/ReSwift/ReSwift
Working copy of https://github.com/ReSwift/ReSwift resolved at 6.1.1
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/14] Compiling ReSwift Coding.swift
[3/15] Compiling ReSwift Synchronized.swift
[4/15] Compiling ReSwift Assertions.swift
[5/15] Compiling ReSwift StoreSubscriber.swift
[6/15] Compiling ReSwift Subscription.swift
[7/15] Compiling ReSwift StoreType.swift
[8/15] Compiling ReSwift Middleware.swift
[9/15] Compiling ReSwift Reducer.swift
[10/15] Emitting module ReSwift
[11/15] Compiling ReSwift Action.swift
[12/15] Compiling ReSwift DispatchingStoreType.swift
[13/15] Compiling ReSwift State.swift
[14/15] Compiling ReSwift Store.swift
[15/15] Compiling ReSwift TypeHelper.swift
[16/22] Compiling ReSwiftSaga Error.swift
[17/22] Compiling ReSwiftSaga resource_bundle_accessor.swift
[18/22] Compiling ReSwiftSaga Saga.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:20:27: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
20 | private let subject = PassthroughSubject<Action, Error>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
21 | private var subscriptions = [AnyCancellable]()
22 |
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:21:34: error: 'AnyCancellable' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
20 | private let subject = PassthroughSubject<Action, Error>()
21 | private var subscriptions = [AnyCancellable]()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
22 |
23 | private init() { }
[19/22] Compiling ReSwiftSaga Effects.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:30:5: error: 'Task' is only available in macOS 10.15 or newer
24 | ```
25 | */
26 | public func put(_ action: Action) async throws {
| `- note: add @available attribute to enclosing global function
27 | guard let dispatch = Bridge.shared.dispatch else{
28 | throw SagaError.middlewareFailed(message: "SagaMiddleware has not prepared dispatch.")
29 | }
30 | Task.detached { @MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | dispatch(action)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:30:10: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
24 | ```
25 | */
26 | public func put(_ action: Action) async throws {
| `- note: add @available attribute to enclosing global function
27 | guard let dispatch = Bridge.shared.dispatch else{
28 | throw SagaError.middlewareFailed(message: "SagaMiddleware has not prepared dispatch.")
29 | }
30 | Task.detached { @MainActor in
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | dispatch(action)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:103:5: error: 'Task' is only available in macOS 10.15 or newer
100 | ```
101 | */
102 | public func fork<T>(_ effect: @escaping Saga<T>, _ arg: Action) async rethrows -> Void {
| `- note: add @available attribute to enclosing global function
103 | Task.detached{
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | let _ = try await effect(arg)
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:103:10: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
100 | ```
101 | */
102 | public func fork<T>(_ effect: @escaping Saga<T>, _ arg: Action) async rethrows -> Void {
| `- note: add @available attribute to enclosing global function
103 | Task.detached{
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | let _ = try await effect(arg)
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:130:22: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
123 | */
124 | @discardableResult
125 | func take(_ actionType: Action.Type) async -> Action {
| `- note: add @available attribute to enclosing global function
126 | if #available(iOS 15, macOS 12, *) {
127 | let action = await Bridge.shared.take(actionType).value
128 | return action
129 | } else {
130 | return await withCheckedContinuation { continuation in
| |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
131 | Bridge.shared.take(actionType) { action in
132 | continuation.resume(returning: action)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:130:47: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:130:46: note: expanded code originates here
123 | */
124 | @discardableResult
125 | func take(_ actionType: Action.Type) async -> Action {
| `- note: add @available attribute to enclosing global function
126 | if #available(iOS 15, macOS 12, *) {
127 | let action = await Bridge.shared.take(actionType).value
128 | return action
129 | } else {
130 | return await withCheckedContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift
|128 |
|129 |
|130 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------
131 | Bridge.shared.take(actionType) { action in
132 | continuation.resume(returning: action)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:151:5: error: 'Task' is only available in macOS 10.15 or newer
148 | ```
149 | */
150 | public func takeEvery<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
151 | Task.detached {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | while true {
153 | let action = await take(actionType)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:151:10: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
148 | ```
149 | */
150 | public func takeEvery<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
151 | Task.detached {
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | while true {
153 | let action = await take(actionType)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:174:5: error: 'Task' is only available in macOS 10.15 or newer
170 | ```
171 | */
172 | public func takeLatest<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
173 | let buffer = Buffer()
174 | Task.detached {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | while true {
176 | let action = await take(actionType)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:174:10: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
170 | ```
171 | */
172 | public func takeLatest<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
173 | let buffer = Buffer()
174 | Task.detached {
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | while true {
176 | let action = await take(actionType)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:178:27: error: 'Task' is only available in macOS 10.15 or newer
170 | ```
171 | */
172 | public func takeLatest<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
173 | let buffer = Buffer()
174 | Task.detached {
:
176 | let action = await take(actionType)
177 | buffer.done()
178 | buffer.task = Task.detached{
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
179 | defer { buffer.done() }
180 | let _ = try? await call(saga, action)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:178:32: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
170 | ```
171 | */
172 | public func takeLatest<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
173 | let buffer = Buffer()
174 | Task.detached {
:
176 | let action = await take(actionType)
177 | buffer.done()
178 | buffer.task = Task.detached{
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
179 | defer { buffer.done() }
180 | let _ = try? await call(saga, action)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:201:5: error: 'Task' is only available in macOS 10.15 or newer
197 | ```
198 | */
199 | public func takeLeading<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
200 | let buffer = Buffer()
201 | Task.detached {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 | while true {
203 | let action = await take(actionType)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:201:10: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
197 | ```
198 | */
199 | public func takeLeading<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
200 | let buffer = Buffer()
201 | Task.detached {
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 | while true {
203 | let action = await take(actionType)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:207:27: error: 'Task' is only available in macOS 10.15 or newer
197 | ```
198 | */
199 | public func takeLeading<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
200 | let buffer = Buffer()
201 | Task.detached {
:
205 | continue
206 | }
207 | buffer.task = Task.detached {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | defer { buffer.done() }
209 | let _ = try? await call(saga, action)
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Effects.swift:207:32: error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
197 | ```
198 | */
199 | public func takeLeading<T>( _ actionType: Action.Type, saga: @escaping Saga<T>) async {
| `- note: add @available attribute to enclosing global function
200 | let buffer = Buffer()
201 | Task.detached {
:
205 | continue
206 | }
207 | buffer.task = Task.detached {
| |- error: 'detached(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | defer { buffer.done() }
209 | let _ = try? await call(saga, action)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/22] Emitting module ReSwiftSaga
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:20:27: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
20 | private let subject = PassthroughSubject<Action, Error>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
21 | private var subscriptions = [AnyCancellable]()
22 |
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:21:34: error: 'AnyCancellable' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
20 | private let subject = PassthroughSubject<Action, Error>()
21 | private var subscriptions = [AnyCancellable]()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
22 |
23 | private init() { }
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:87:41: error: 'Subscribers' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
:
85 | TODO: エラーを投げるかは検討
86 | */
87 | private func complete(_ completion: Subscribers.Completion<Error>){
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
88 | switch completion {
89 | case .finished:
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Buffer.swift:14:15: error: 'Task' is only available in macOS 10.15 or newer
11 | takeLeading, takeLatest 向けに task を管理する
12 | */
13 | class Buffer {
| `- note: add @available attribute to enclosing class
14 | var task: Task<(), Never>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
15 |
16 | func done(){
[21/22] Compiling ReSwiftSaga Bridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:20:27: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
20 | private let subject = PassthroughSubject<Action, Error>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
21 | private var subscriptions = [AnyCancellable]()
22 |
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:21:34: error: 'AnyCancellable' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
20 | private let subject = PassthroughSubject<Action, Error>()
21 | private var subscriptions = [AnyCancellable]()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
22 |
23 | private init() { }
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:87:41: error: 'Subscribers' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
:
85 | TODO: エラーを投げるかは検討
86 | */
87 | private func complete(_ completion: Subscribers.Completion<Error>){
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
88 | switch completion {
89 | case .finished:
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:71:26: error: 'AnyCancellable' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
:
66 | iOS 13, 14 向けの実装です。
67 | */
68 | func take(_ actionType: Action.Type, receive: @escaping (_ action: Action) -> Void ){
| `- note: add @available attribute to enclosing instance method
69 | // 監視は一度限りで行い、検出後は破棄する
70 | // 破棄しないと withCheckedContinuation で多重呼出の扱いになりクラッシュする
71 | var cancellable: AnyCancellable? = nil
| |- error: 'AnyCancellable' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | cancellable = subject.filter {
73 | type(of: $0) == actionType
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:72:31: error: 'filter' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
:
66 | iOS 13, 14 向けの実装です。
67 | */
68 | func take(_ actionType: Action.Type, receive: @escaping (_ action: Action) -> Void ){
| `- note: add @available attribute to enclosing instance method
69 | // 監視は一度限りで行い、検出後は破棄する
70 | // 破棄しないと withCheckedContinuation で多重呼出の扱いになりクラッシュする
71 | var cancellable: AnyCancellable? = nil
72 | cancellable = subject.filter {
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | type(of: $0) == actionType
74 | }.sink { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Bridge.swift:74:11: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
15 | - Action の発行や監視を行う
16 | */
17 | final class Bridge {
| `- note: add @available attribute to enclosing class
18 |
19 | static let shared = Bridge()
:
66 | iOS 13, 14 向けの実装です。
67 | */
68 | func take(_ actionType: Action.Type, receive: @escaping (_ action: Action) -> Void ){
| `- note: add @available attribute to enclosing instance method
69 | // 監視は一度限りで行い、検出後は破棄する
70 | // 破棄しないと withCheckedContinuation で多重呼出の扱いになりクラッシュする
:
72 | cancellable = subject.filter {
73 | type(of: $0) == actionType
74 | }.sink { [weak self] in
| |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | self?.complete($0)
76 | cancellable?.cancel()
[22/22] Compiling ReSwiftSaga Buffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Buffer.swift:14:15: error: 'Task' is only available in macOS 10.15 or newer
11 | takeLeading, takeLatest 向けに task を管理する
12 | */
13 | class Buffer {
| `- note: add @available attribute to enclosing class
14 | var task: Task<(), Never>? = nil
| `- error: 'Task' is only available in macOS 10.15 or newer
15 |
16 | func done(){
/Users/admin/builder/spi-builder-workspace/Sources/ReSwiftSaga/Buffer.swift:17:20: error: 'cancel()' is only available in macOS 10.15 or newer
11 | takeLeading, takeLatest 向けに task を管理する
12 | */
13 | class Buffer {
| `- note: add @available attribute to enclosing class
14 | var task: Task<(), Never>? = nil
15 |
16 | func done(){
| `- note: add @available attribute to enclosing instance method
17 | self.task?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | self.task = nil
19 | }
BUILD FAILURE 6.1 macosSpm