The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ReSwiftSaga, reference main (2d60e2), with Swift 6.2 for macOS (SPM) on 21 Jun 2025 12:33:33 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
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 2d60e2f Merge pull request #20 from mitsuharu/develop
Cloned https://github.com/mitsuharu/ReSwift-Saga.git
Revision (git rev-parse @):
2d60e2f5dec2d828b19c419eab3d72dd9330f501
SUCCESS checkout https://github.com/mitsuharu/ReSwift-Saga.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/mitsuharu/ReSwift-Saga.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Copying PrivacyInfo.xcprivacy
[0/4] Write sources
[3/4] Write swift-version-1EA4D86E10B52AF.txt
[5/17] Compiling ReSwift Synchronized.swift
[6/18] Compiling ReSwift Middleware.swift
[7/18] Compiling ReSwift Reducer.swift
[8/18] Compiling ReSwift StoreType.swift
[9/18] Compiling ReSwift Subscription.swift
[10/18] Compiling ReSwift Assertions.swift
[11/18] Compiling ReSwift StoreSubscriber.swift
[12/18] Compiling ReSwift Action.swift
[13/18] Compiling ReSwift DispatchingStoreType.swift
[14/18] Compiling ReSwift State.swift
[15/18] Compiling ReSwift Store.swift
[16/18] Compiling ReSwift Coding.swift
[17/18] Emitting module ReSwift
[18/18] Compiling ReSwift TypeHelper.swift
[19/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 |     }
[20/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)
[21/25] Compiling ReSwiftSaga Error.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/25] Compiling ReSwiftSaga resource_bundle_accessor.swift
[23/25] 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(){
[24/25] 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()
[25/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() { }
Fetching https://github.com/ReSwift/ReSwift
[1/6447] Fetching reswift
Fetched https://github.com/ReSwift/ReSwift from cache (1.31s)
Computing version for https://github.com/ReSwift/ReSwift
Computed https://github.com/ReSwift/ReSwift at 6.1.1 (3.91s)
Creating working copy for https://github.com/ReSwift/ReSwift
Working copy of https://github.com/ReSwift/ReSwift resolved at 6.1.1
BUILD FAILURE 6.2 macosSpm