The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Recombine, reference master (3a876c), with Swift 6.2 for macOS (SPM) on 18 Jun 2025 08:31:51 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/qata/recombine.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/qata/recombine
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 3a876c8 Fix git issue
Cloned https://github.com/qata/recombine.git
Revision (git rev-parse @):
3a876c87d9df3916b323ec7aaeeac18ff932dc52
SUCCESS checkout https://github.com/qata/recombine.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/qata/recombine.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/6] Compiling Recombine Reducer.swift
[4/6] Compiling Recombine Middleware.swift
[5/6] Emitting module Recombine
[6/6] Compiling Recombine Store.swift
/Users/admin/builder/spi-builder-workspace/Sources/RecombinePackage/Store.swift:76:51: error: 'assign(to:)' is only available in macOS 11.0 or newer
63 | }
64 |
65 | public class StoreTransform<Underlying, State, Action>: ObservableObject {
   |              `- note: add @available attribute to enclosing generic class
66 |     @Published
67 |     public private(set) var state: State
   :
70 |
71 |     @available(iOS 14, *)
72 |     public required init(store: Store<Underlying, Action>, lensing keyPath: KeyPath<Underlying, State>) {
   |                     `- note: add @available attribute to enclosing initializer
73 |         self.store = store
74 |         self.keyPath = keyPath
75 |         state = store.state[keyPath: keyPath]
76 |         store.$state.map { $0[keyPath: keyPath] }.assign(to: &$state)
   |                                                   |- error: 'assign(to:)' is only available in macOS 11.0 or newer
   |                                                   `- note: add 'if #available' version check
77 |     }
78 |
/Users/admin/builder/spi-builder-workspace/Sources/RecombinePackage/Store.swift:76:63: error: cannot pass as inout because setter for '$state' is only available in macOS 11.0 or newer
63 | }
64 |
65 | public class StoreTransform<Underlying, State, Action>: ObservableObject {
   |              `- note: add @available attribute to enclosing generic class
66 |     @Published
67 |     public private(set) var state: State
   :
70 |
71 |     @available(iOS 14, *)
72 |     public required init(store: Store<Underlying, Action>, lensing keyPath: KeyPath<Underlying, State>) {
   |                     `- note: add @available attribute to enclosing initializer
73 |         self.store = store
74 |         self.keyPath = keyPath
75 |         state = store.state[keyPath: keyPath]
76 |         store.$state.map { $0[keyPath: keyPath] }.assign(to: &$state)
   |                                                               |- error: cannot pass as inout because setter for '$state' is only available in macOS 11.0 or newer
   |                                                               `- note: add 'if #available' version check
77 |     }
78 |
BUILD FAILURE 6.2 macosSpm