Build Information
Failed to build makata, reference main (17bf6a), with Swift 6.2 for macOS (SPM) on 20 Jun 2025 18:46:48 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/buslo/makata.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/buslo/makata
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 17bf6a4 Add update for initial value.
Cloned https://github.com/buslo/makata.git
Revision (git rev-parse @):
17bf6a4ee96f2587a0792cc1cdcc0d3fa9d52429
SUCCESS checkout https://github.com/buslo/makata.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/buslo/makata.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
[1/1] Compiling plugin SwiftFormatPlugin
Building for debugging...
[1/7] Write sources
[4/7] Copying PrivacyInfo.xcprivacy
[6/7] Write swift-version-1EA4D86E10B52AF.txt
[8/66] Emitting module SnapKit
[9/69] Compiling makataForm protocol-field-transformable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/70] Compiling makataInteraction protocol-hookable.swift
[11/70] Emitting module makataInteraction
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:9:11: error: 'AnyCancellable' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | extension AnyCancellable: Lifetimeable {
| | `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
10 |
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:13:11: error: 'Published' is only available in macOS 10.15 or newer
11 | }
12 |
13 | extension Published.Publisher {
| | `- error: 'Published' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
14 | public func subscribe(action: @escaping (Value) -> Void) -> Lifetimeable {
15 | sink { value in
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:33:11: error: 'Publisher' is only available in macOS 10.15 or newer
31 | }
32 |
33 | extension Publisher where Failure == Never {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
34 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
35 | sink { [weak loadable] value in
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:13:62: error: 'AnyPublisher' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public extension Stateable {
| `- note: add @available attribute to enclosing extension
13 | func mapToState<Value>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
14 | stateHandler.$current.map(path).eraseToAnyPublisher()
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:17:73: error: 'AnyPublisher' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public extension Stateable {
| `- note: add @available attribute to enclosing extension
13 | func mapToState<Value>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
14 | stateHandler.$current.map(path).eraseToAnyPublisher()
15 | }
16 |
17 | func mapToState<Value: Equatable>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | stateHandler.$current.map(path).removeDuplicates().eraseToAnyPublisher()
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:23:38: error: 'AnyPublisher' is only available in macOS 10.15 or newer
20 | }
21 |
22 | public extension View {
| `- note: add @available attribute to enclosing extension
23 | func onEffect<Value>(from state: AnyPublisher<Value, Never>, changes receive: Binding<Value>) -> some View {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | onReceive(state) { value in
25 | receive.wrappedValue = value
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:23:83: error: 'Binding' is only available in macOS 10.15 or newer
20 | }
21 |
22 | public extension View {
| `- note: add @available attribute to enclosing extension
23 | func onEffect<Value>(from state: AnyPublisher<Value, Never>, changes receive: Binding<Value>) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | onReceive(state) { value in
25 | receive.wrappedValue = value
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:23:107: error: 'View' is only available in macOS 10.15 or newer
20 | }
21 |
22 | public extension View {
| `- note: add @available attribute to enclosing extension
23 | func onEffect<Value>(from state: AnyPublisher<Value, Never>, changes receive: Binding<Value>) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | onReceive(state) { value in
25 | receive.wrappedValue = value
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:22:18: error: 'View' is only available in macOS 10.15 or newer
20 | }
21 |
22 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
23 | func onEffect<Value>(from state: AnyPublisher<Value, Never>, changes receive: Binding<Value>) -> some View {
24 | onReceive(state) { value in
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable.swift:99:6: error: 'Published' is only available in macOS 10.15 or newer
92 | - Remark: Do not define this object in your classes directly. Instead, conform to ``Stateable``.
93 | */
94 | public final class StateHandler<State>: ObservableObject, Sendable {
| `- note: add @available attribute to enclosing generic class
95 | public typealias Provider = @MainActor (State) async -> Void
96 |
97 | var provider: Provider = { _ in }
98 |
99 | @Published public internal(set) var current: State
| `- error: 'Published' is only available in macOS 10.15 or newer
100 |
101 | public init(initial: State) {
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable.swift:94:41: error: 'ObservableObject' is only available in macOS 10.15 or newer
92 | - Remark: Do not define this object in your classes directly. Instead, conform to ``Stateable``.
93 | */
94 | public final class StateHandler<State>: ObservableObject, Sendable {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
95 | public typealias Provider = @MainActor (State) async -> Void
96 |
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable.swift:97:9: warning: stored property 'provider' of 'Sendable'-conforming generic class 'StateHandler' is mutable; this is an error in the Swift 6 language mode
95 | public typealias Provider = @MainActor (State) async -> Void
96 |
97 | var provider: Provider = { _ in }
| `- warning: stored property 'provider' of 'Sendable'-conforming generic class 'StateHandler' is mutable; this is an error in the Swift 6 language mode
98 |
99 | @Published public internal(set) var current: State
[12/70] Compiling SnapKit Constraint.swift
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:9:11: error: 'AnyCancellable' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | extension AnyCancellable: Lifetimeable {
| | `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
10 |
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:13:11: error: 'Published' is only available in macOS 10.15 or newer
11 | }
12 |
13 | extension Published.Publisher {
| | `- error: 'Published' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
14 | public func subscribe(action: @escaping (Value) -> Void) -> Lifetimeable {
15 | sink { value in
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:33:11: error: 'Publisher' is only available in macOS 10.15 or newer
31 | }
32 |
33 | extension Publisher where Failure == Never {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
34 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
35 | sink { [weak loadable] value in
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:15:9: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
11 | }
12 |
13 | extension Published.Publisher {
| `- note: add @available attribute to enclosing extension
14 | public func subscribe(action: @escaping (Value) -> Void) -> Lifetimeable {
| `- note: add @available attribute to enclosing instance method
15 | sink { value in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | action(value)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:26:13: error: 'Task' is only available in macOS 10.15 or newer
11 | }
12 |
13 | extension Published.Publisher {
| `- note: add @available attribute to enclosing extension
14 | public func subscribe(action: @escaping (Value) -> Void) -> Lifetimeable {
15 | sink { value in
:
18 | }
19 |
20 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
| `- note: add @available attribute to enclosing instance method
21 | subscribe { [weak loadable] _ in
22 | guard let loadable else {
:
24 | }
25 |
26 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | await loadable.invalidate()
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:26:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
11 | }
12 |
13 | extension Published.Publisher {
| `- note: add @available attribute to enclosing extension
14 | public func subscribe(action: @escaping (Value) -> Void) -> Lifetimeable {
15 | sink { value in
:
18 | }
19 |
20 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
| `- note: add @available attribute to enclosing instance method
21 | subscribe { [weak loadable] _ in
22 | guard let loadable else {
:
24 | }
25 |
26 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | await loadable.invalidate()
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:27:23: warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 |
26 | Task {
27 | await loadable.invalidate()
| `- warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
28 | }
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:22:23: warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
20 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
21 | subscribe { [weak loadable] _ in
22 | guard let loadable else {
| `- warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
23 | return
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:35:9: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
31 | }
32 |
33 | extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
34 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
| `- note: add @available attribute to enclosing instance method
35 | sink { [weak loadable] value in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | guard let loadable else {
37 | return
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:40:13: error: 'Task' is only available in macOS 10.15 or newer
31 | }
32 |
33 | extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
34 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
| `- note: add @available attribute to enclosing instance method
35 | sink { [weak loadable] value in
36 | guard let loadable else {
:
38 | }
39 |
40 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | await loadable.invalidate()
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:40:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
31 | }
32 |
33 | extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
34 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
| `- note: add @available attribute to enclosing instance method
35 | sink { [weak loadable] value in
36 | guard let loadable else {
:
38 | }
39 |
40 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | await loadable.invalidate()
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:41:23: warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 |
40 | Task {
41 | await loadable.invalidate()
| `- warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:36:23: warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
35 | sink { [weak loadable] value in
36 | guard let loadable else {
| `- warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | return
38 | }
[13/70] Compiling SnapKit ConstraintAttributes.swift
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:9:11: error: 'AnyCancellable' is only available in macOS 10.15 or newer
7 | import Combine
8 |
9 | extension AnyCancellable: Lifetimeable {
| | `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
10 |
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:13:11: error: 'Published' is only available in macOS 10.15 or newer
11 | }
12 |
13 | extension Published.Publisher {
| | `- error: 'Published' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
14 | public func subscribe(action: @escaping (Value) -> Void) -> Lifetimeable {
15 | sink { value in
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:33:11: error: 'Publisher' is only available in macOS 10.15 or newer
31 | }
32 |
33 | extension Publisher where Failure == Never {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
34 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
35 | sink { [weak loadable] value in
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:15:9: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
11 | }
12 |
13 | extension Published.Publisher {
| `- note: add @available attribute to enclosing extension
14 | public func subscribe(action: @escaping (Value) -> Void) -> Lifetimeable {
| `- note: add @available attribute to enclosing instance method
15 | sink { value in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | action(value)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:26:13: error: 'Task' is only available in macOS 10.15 or newer
11 | }
12 |
13 | extension Published.Publisher {
| `- note: add @available attribute to enclosing extension
14 | public func subscribe(action: @escaping (Value) -> Void) -> Lifetimeable {
15 | sink { value in
:
18 | }
19 |
20 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
| `- note: add @available attribute to enclosing instance method
21 | subscribe { [weak loadable] _ in
22 | guard let loadable else {
:
24 | }
25 |
26 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | await loadable.invalidate()
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:26:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
11 | }
12 |
13 | extension Published.Publisher {
| `- note: add @available attribute to enclosing extension
14 | public func subscribe(action: @escaping (Value) -> Void) -> Lifetimeable {
15 | sink { value in
:
18 | }
19 |
20 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
| `- note: add @available attribute to enclosing instance method
21 | subscribe { [weak loadable] _ in
22 | guard let loadable else {
:
24 | }
25 |
26 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | await loadable.invalidate()
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:27:23: warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
25 |
26 | Task {
27 | await loadable.invalidate()
| `- warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
28 | }
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:22:23: warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
20 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
21 | subscribe { [weak loadable] _ in
22 | guard let loadable else {
| `- warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
23 | return
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:35:9: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
31 | }
32 |
33 | extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
34 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
| `- note: add @available attribute to enclosing instance method
35 | sink { [weak loadable] value in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | guard let loadable else {
37 | return
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:40:13: error: 'Task' is only available in macOS 10.15 or newer
31 | }
32 |
33 | extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
34 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
| `- note: add @available attribute to enclosing instance method
35 | sink { [weak loadable] value in
36 | guard let loadable else {
:
38 | }
39 |
40 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | await loadable.invalidate()
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:40:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
31 | }
32 |
33 | extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
34 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
| `- note: add @available attribute to enclosing instance method
35 | sink { [weak loadable] value in
36 | guard let loadable else {
:
38 | }
39 |
40 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | await loadable.invalidate()
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:41:23: warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
39 |
40 | Task {
41 | await loadable.invalidate()
| `- warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
42 | }
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/observable.swift:36:23: warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
34 | public func bind<Target: Loadable & AnyObject>(to loadable: Target) -> Lifetimeable {
35 | sink { [weak loadable] value in
36 | guard let loadable else {
| `- warning: capture of non-sendable type 'Target.Type' in an isolated closure; this is an error in the Swift 6 language mode
37 | return
38 | }
[14/71] Compiling makataForm protocol-field-formattable.swift
[15/71] Compiling makataForm form-validation.swift
[16/71] Compiling makataForm form-observer.swift
[17/71] Compiling makataInteraction protocol-lifetimeable.swift
[18/71] Compiling makataInteraction protocol-assignable.swift
[19/71] Compiling makataForm protocol-formable.swift
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:113:13: error: 'Task' is only available in macOS 10.15 or newer
102 | }
103 |
104 | public extension Formable {
| `- note: add @available attribute to enclosing extension
105 | func defineSubmit(
| `- note: add @available attribute to enclosing instance method
106 | onInvoked: @escaping () -> Void,
107 | onSuccess: (() -> Void)? = nil,
:
111 | onInvoked()
112 |
113 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | do {
115 | try await formHandler.submit { shape in
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:113:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
102 | }
103 |
104 | public extension Formable {
| `- note: add @available attribute to enclosing extension
105 | func defineSubmit(
| `- note: add @available attribute to enclosing instance method
106 | onInvoked: @escaping () -> Void,
107 | onSuccess: (() -> Void)? = nil,
:
111 | onInvoked()
112 |
113 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | do {
115 | try await formHandler.submit { shape in
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:120:31: error: 'MainActor' is only available in macOS 10.15 or newer
102 | }
103 |
104 | public extension Formable {
| `- note: add @available attribute to enclosing extension
105 | func defineSubmit(
| `- note: add @available attribute to enclosing instance method
106 | onInvoked: @escaping () -> Void,
107 | onSuccess: (() -> Void)? = nil,
:
118 |
119 | if let onSuccess {
120 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 | onSuccess()
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:120:41: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
102 | }
103 |
104 | public extension Formable {
| `- note: add @available attribute to enclosing extension
105 | func defineSubmit(
| `- note: add @available attribute to enclosing instance method
106 | onInvoked: @escaping () -> Void,
107 | onSuccess: (() -> Void)? = nil,
:
118 |
119 | if let onSuccess {
120 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 | onSuccess()
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:125:27: error: 'MainActor' is only available in macOS 10.15 or newer
102 | }
103 |
104 | public extension Formable {
| `- note: add @available attribute to enclosing extension
105 | func defineSubmit(
| `- note: add @available attribute to enclosing instance method
106 | onInvoked: @escaping () -> Void,
107 | onSuccess: (() -> Void)? = nil,
:
123 | }
124 | } catch {
125 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | onFailure(error)
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:125:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
102 | }
103 |
104 | public extension Formable {
| `- note: add @available attribute to enclosing extension
105 | func defineSubmit(
| `- note: add @available attribute to enclosing instance method
106 | onInvoked: @escaping () -> Void,
107 | onSuccess: (() -> Void)? = nil,
:
123 | }
124 | } catch {
125 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | onFailure(error)
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:115:31: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
113 | Task {
114 | do {
115 | try await formHandler.submit { shape in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
116 | try await submitData(form: shape)
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:105:10: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
103 |
104 | public extension Formable {
105 | func defineSubmit(
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
106 | onInvoked: @escaping () -> Void,
107 | onSuccess: (() -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:135:13: error: 'Task' is only available in macOS 10.15 or newer
102 | }
103 |
104 | public extension Formable {
| `- note: add @available attribute to enclosing extension
105 | func defineSubmit(
106 | onInvoked: @escaping () -> Void,
:
131 | }
132 |
133 | func defineSubmit(onSuccess: @escaping () -> Void, onFailure: @escaping (Error) -> Void) -> () -> Void {
| `- note: add @available attribute to enclosing instance method
134 | return {
135 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
136 | do {
137 | try await formHandler.submit { shape in
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:135:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
102 | }
103 |
104 | public extension Formable {
| `- note: add @available attribute to enclosing extension
105 | func defineSubmit(
106 | onInvoked: @escaping () -> Void,
:
131 | }
132 |
133 | func defineSubmit(onSuccess: @escaping () -> Void, onFailure: @escaping (Error) -> Void) -> () -> Void {
| `- note: add @available attribute to enclosing instance method
134 | return {
135 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
136 | do {
137 | try await formHandler.submit { shape in
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:141:27: error: 'MainActor' is only available in macOS 10.15 or newer
102 | }
103 |
104 | public extension Formable {
| `- note: add @available attribute to enclosing extension
105 | func defineSubmit(
106 | onInvoked: @escaping () -> Void,
:
131 | }
132 |
133 | func defineSubmit(onSuccess: @escaping () -> Void, onFailure: @escaping (Error) -> Void) -> () -> Void {
| `- note: add @available attribute to enclosing instance method
134 | return {
135 | Task {
:
139 | }
140 |
141 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | onSuccess()
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:141:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
102 | }
103 |
104 | public extension Formable {
| `- note: add @available attribute to enclosing extension
105 | func defineSubmit(
106 | onInvoked: @escaping () -> Void,
:
131 | }
132 |
133 | func defineSubmit(onSuccess: @escaping () -> Void, onFailure: @escaping (Error) -> Void) -> () -> Void {
| `- note: add @available attribute to enclosing instance method
134 | return {
135 | Task {
:
139 | }
140 |
141 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | onSuccess()
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:145:27: error: 'MainActor' is only available in macOS 10.15 or newer
102 | }
103 |
104 | public extension Formable {
| `- note: add @available attribute to enclosing extension
105 | func defineSubmit(
106 | onInvoked: @escaping () -> Void,
:
131 | }
132 |
133 | func defineSubmit(onSuccess: @escaping () -> Void, onFailure: @escaping (Error) -> Void) -> () -> Void {
| `- note: add @available attribute to enclosing instance method
134 | return {
135 | Task {
:
143 | }
144 | } catch {
145 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | onFailure(error)
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:145:37: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
102 | }
103 |
104 | public extension Formable {
| `- note: add @available attribute to enclosing extension
105 | func defineSubmit(
106 | onInvoked: @escaping () -> Void,
:
131 | }
132 |
133 | func defineSubmit(onSuccess: @escaping () -> Void, onFailure: @escaping (Error) -> Void) -> () -> Void {
| `- note: add @available attribute to enclosing instance method
134 | return {
135 | Task {
:
143 | }
144 | } catch {
145 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | onFailure(error)
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:137:31: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
135 | Task {
136 | do {
137 | try await formHandler.submit { shape in
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
138 | try await submitData(form: shape)
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/protocol/protocol-formable.swift:133:10: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
131 | }
132 |
133 | func defineSubmit(onSuccess: @escaping () -> Void, onFailure: @escaping (Error) -> Void) -> () -> Void {
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
134 | return {
135 | Task {
[20/71] Compiling makataInteraction protocol-withable.swift
[21/71] Compiling SnapKit Debugging.swift
[22/71] Compiling SnapKit LayoutConstraint.swift
[23/71] Compiling SnapKit LayoutConstraintItem.swift
[24/71] Compiling SnapKit Typealiases.swift
[25/71] Compiling SnapKit UILayoutSupport+Extensions.swift
[26/71] Compiling SnapKit resource_bundle_accessor.swift
[27/71] Compiling SnapKit ConstraintOffsetTarget.swift
[28/71] Compiling SnapKit ConstraintPriority.swift
[29/71] Compiling SnapKit ConstraintPriorityTarget.swift
[30/71] Compiling SnapKit ConstraintRelatableTarget.swift
[31/71] Compiling SnapKit ConstraintRelation.swift
[32/71] Compiling SnapKit ConstraintView+Extensions.swift
[33/71] Compiling SnapKit ConstraintView.swift
[34/71] Compiling SnapKit ConstraintViewDSL.swift
[37/71] Compiling SnapKit ConstraintConfig.swift
[38/71] Compiling SnapKit ConstraintConstantTarget.swift
[39/71] Compiling SnapKit ConstraintMaker.swift
[40/71] Compiling SnapKit ConstraintMakerEditable.swift
[41/71] Compiling SnapKit ConstraintMakerExtendable.swift
[42/71] Compiling SnapKit ConstraintMakerFinalizable.swift
[43/71] Compiling SnapKit ConstraintMakerPrioritizable.swift
[44/71] Compiling SnapKit ConstraintMakerRelatable+Extensions.swift
[45/71] Compiling SnapKit ConstraintMakerRelatable.swift
[46/71] Compiling SnapKit ConstraintMultiplierTarget.swift
[47/71] Compiling SnapKit ConstraintDSL.swift
[48/71] Compiling SnapKit ConstraintDescription.swift
[49/71] Compiling SnapKit ConstraintDirectionalInsetTarget.swift
[50/71] Compiling SnapKit ConstraintDirectionalInsets.swift
[51/71] Compiling SnapKit ConstraintInsetTarget.swift
[52/71] Compiling SnapKit ConstraintInsets.swift
[53/71] Compiling SnapKit ConstraintItem.swift
[54/71] Compiling SnapKit ConstraintLayoutGuide+Extensions.swift
[55/71] Compiling SnapKit ConstraintLayoutGuide.swift
[56/71] Compiling SnapKit ConstraintLayoutGuideDSL.swift
[57/71] Compiling SnapKit ConstraintLayoutSupport.swift
[58/71] Compiling SnapKit ConstraintLayoutSupportDSL.swift
[59/71] Compiling makataForm form-binding.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[62/71] Emitting module makataForm
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:12:26: error: 'Binding' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public extension SwiftUI.Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
13 | init<FormSource: Formable>(
14 | form: FormSource,
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:71:6: warning: unexpected version number for *
69 |
70 | public extension Formable {
71 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:)")
| `- warning: unexpected version number for *
72 | func binding<Value>(
73 | for field: WritableKeyPath<FormData, Value>
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:78:6: warning: unexpected version number for *
76 | }
77 |
78 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:transform:)")
| `- warning: unexpected version number for *
79 | func binding<Value, Transform: FieldTransformable>(
80 | for field: WritableKeyPath<FormData, Transform.Output>,
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:86:6: warning: unexpected version number for *
84 | }
85 |
86 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:transform:)")
| `- warning: unexpected version number for *
87 | func binding<Value, CompleteValue, Transform: FieldTransformable>(
88 | for field: WritableKeyPath<FormData, FieldPartialValue<CompleteValue, Value>>,
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:74:18: error: 'Binding' is only available in macOS 10.15 or newer
68 | }
69 |
70 | public extension Formable {
| `- note: add @available attribute to enclosing extension
71 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:)")
72 | func binding<Value>(
| `- note: add @available attribute to enclosing instance method
73 | for field: WritableKeyPath<FormData, Value>
74 | ) -> SwiftUI.Binding<Value> {
| `- error: 'Binding' is only available in macOS 10.15 or newer
75 | formBinding(for: field)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:82:18: error: 'Binding' is only available in macOS 10.15 or newer
68 | }
69 |
70 | public extension Formable {
| `- note: add @available attribute to enclosing extension
71 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:)")
72 | func binding<Value>(
:
77 |
78 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:transform:)")
79 | func binding<Value, Transform: FieldTransformable>(
| `- note: add @available attribute to enclosing instance method
80 | for field: WritableKeyPath<FormData, Transform.Output>,
81 | transform: Transform
82 | ) -> SwiftUI.Binding<Value> where Transform.Value == Value {
| `- error: 'Binding' is only available in macOS 10.15 or newer
83 | formBinding(for: field, transform: transform)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:90:18: error: 'Binding' is only available in macOS 10.15 or newer
68 | }
69 |
70 | public extension Formable {
| `- note: add @available attribute to enclosing extension
71 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:)")
72 | func binding<Value>(
:
85 |
86 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:transform:)")
87 | func binding<Value, CompleteValue, Transform: FieldTransformable>(
| `- note: add @available attribute to enclosing instance method
88 | for field: WritableKeyPath<FormData, FieldPartialValue<CompleteValue, Value>>,
89 | transform: Transform
90 | ) -> SwiftUI.Binding<Value> where Transform.Output == CompleteValue, Transform.Value == Value {
| `- error: 'Binding' is only available in macOS 10.15 or newer
91 | formBinding(for: field, transform: transform)
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:98:18: error: 'Binding' is only available in macOS 10.15 or newer
93 | }
94 |
95 | public extension Formable {
| `- note: add @available attribute to enclosing extension
96 | func formBinding<Value>(
| `- note: add @available attribute to enclosing instance method
97 | for field: WritableKeyPath<FormData, Value>
98 | ) -> SwiftUI.Binding<Value> {
| `- error: 'Binding' is only available in macOS 10.15 or newer
99 | .init(form: self, field: field)
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:105:18: error: 'Binding' is only available in macOS 10.15 or newer
93 | }
94 |
95 | public extension Formable {
| `- note: add @available attribute to enclosing extension
96 | func formBinding<Value>(
97 | for field: WritableKeyPath<FormData, Value>
:
100 | }
101 |
102 | func formBinding<Value, Transform: FieldTransformable>(
| `- note: add @available attribute to enclosing instance method
103 | for field: WritableKeyPath<FormData, Transform.Output>,
104 | transform: Transform
105 | ) -> SwiftUI.Binding<Value> where Transform.Value == Value {
| `- error: 'Binding' is only available in macOS 10.15 or newer
106 | .init(form: self, field: field, transform: transform)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:112:18: error: 'Binding' is only available in macOS 10.15 or newer
93 | }
94 |
95 | public extension Formable {
| `- note: add @available attribute to enclosing extension
96 | func formBinding<Value>(
97 | for field: WritableKeyPath<FormData, Value>
:
107 | }
108 |
109 | func formBinding<Value, CompleteValue, Transform: FieldTransformable>(
| `- note: add @available attribute to enclosing instance method
110 | for field: WritableKeyPath<FormData, FieldPartialValue<CompleteValue, Value>>,
111 | transform: Transform
112 | ) -> SwiftUI.Binding<Value> where Transform.Output == CompleteValue, Transform.Value == Value {
| `- error: 'Binding' is only available in macOS 10.15 or newer
113 | .init(form: self, field: field, transform: transform)
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:54:6: error: 'Published' is only available in macOS 10.15 or newer
15 | */
16 | @dynamicMemberLookup
17 | public class FormHandler<Shape>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
18 | /**
19 | Contains definitions when form validation failed.
:
52 |
53 | /// The current recorded values of the form.
54 | @Published public internal(set) var current: Shape
| `- error: 'Published' is only available in macOS 10.15 or newer
55 | /// The current recoded validation state of the form
56 | @Published public internal(set) var currentState: State?
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:56:6: error: 'Published' is only available in macOS 10.15 or newer
15 | */
16 | @dynamicMemberLookup
17 | public class FormHandler<Shape>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
18 | /**
19 | Contains definitions when form validation failed.
:
54 | @Published public internal(set) var current: Shape
55 | /// The current recoded validation state of the form
56 | @Published public internal(set) var currentState: State?
| `- error: 'Published' is only available in macOS 10.15 or newer
57 |
58 | var isModified: (Shape) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:17:34: error: 'ObservableObject' is only available in macOS 10.15 or newer
15 | */
16 | @dynamicMemberLookup
17 | public class FormHandler<Shape>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
18 | /**
19 | Contains definitions when form validation failed.
[63/71] Compiling makataForm form-binding+swiftui.swift
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:12:26: error: 'Binding' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public extension SwiftUI.Binding {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
13 | init<FormSource: Formable>(
14 | form: FormSource,
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:71:6: warning: unexpected version number for *
69 |
70 | public extension Formable {
71 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:)")
| `- warning: unexpected version number for *
72 | func binding<Value>(
73 | for field: WritableKeyPath<FormData, Value>
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:78:6: warning: unexpected version number for *
76 | }
77 |
78 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:transform:)")
| `- warning: unexpected version number for *
79 | func binding<Value, Transform: FieldTransformable>(
80 | for field: WritableKeyPath<FormData, Transform.Output>,
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:86:6: warning: unexpected version number for *
84 | }
85 |
86 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:transform:)")
| `- warning: unexpected version number for *
87 | func binding<Value, CompleteValue, Transform: FieldTransformable>(
88 | for field: WritableKeyPath<FormData, FieldPartialValue<CompleteValue, Value>>,
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:74:18: error: 'Binding' is only available in macOS 10.15 or newer
68 | }
69 |
70 | public extension Formable {
| `- note: add @available attribute to enclosing extension
71 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:)")
72 | func binding<Value>(
| `- note: add @available attribute to enclosing instance method
73 | for field: WritableKeyPath<FormData, Value>
74 | ) -> SwiftUI.Binding<Value> {
| `- error: 'Binding' is only available in macOS 10.15 or newer
75 | formBinding(for: field)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:82:18: error: 'Binding' is only available in macOS 10.15 or newer
68 | }
69 |
70 | public extension Formable {
| `- note: add @available attribute to enclosing extension
71 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:)")
72 | func binding<Value>(
:
77 |
78 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:transform:)")
79 | func binding<Value, Transform: FieldTransformable>(
| `- note: add @available attribute to enclosing instance method
80 | for field: WritableKeyPath<FormData, Transform.Output>,
81 | transform: Transform
82 | ) -> SwiftUI.Binding<Value> where Transform.Value == Value {
| `- error: 'Binding' is only available in macOS 10.15 or newer
83 | formBinding(for: field, transform: transform)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:90:18: error: 'Binding' is only available in macOS 10.15 or newer
68 | }
69 |
70 | public extension Formable {
| `- note: add @available attribute to enclosing extension
71 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:)")
72 | func binding<Value>(
:
85 |
86 | @available(*, deprecated: 0.0.6, renamed: "formBinding(for:transform:)")
87 | func binding<Value, CompleteValue, Transform: FieldTransformable>(
| `- note: add @available attribute to enclosing instance method
88 | for field: WritableKeyPath<FormData, FieldPartialValue<CompleteValue, Value>>,
89 | transform: Transform
90 | ) -> SwiftUI.Binding<Value> where Transform.Output == CompleteValue, Transform.Value == Value {
| `- error: 'Binding' is only available in macOS 10.15 or newer
91 | formBinding(for: field, transform: transform)
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:98:18: error: 'Binding' is only available in macOS 10.15 or newer
93 | }
94 |
95 | public extension Formable {
| `- note: add @available attribute to enclosing extension
96 | func formBinding<Value>(
| `- note: add @available attribute to enclosing instance method
97 | for field: WritableKeyPath<FormData, Value>
98 | ) -> SwiftUI.Binding<Value> {
| `- error: 'Binding' is only available in macOS 10.15 or newer
99 | .init(form: self, field: field)
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:105:18: error: 'Binding' is only available in macOS 10.15 or newer
93 | }
94 |
95 | public extension Formable {
| `- note: add @available attribute to enclosing extension
96 | func formBinding<Value>(
97 | for field: WritableKeyPath<FormData, Value>
:
100 | }
101 |
102 | func formBinding<Value, Transform: FieldTransformable>(
| `- note: add @available attribute to enclosing instance method
103 | for field: WritableKeyPath<FormData, Transform.Output>,
104 | transform: Transform
105 | ) -> SwiftUI.Binding<Value> where Transform.Value == Value {
| `- error: 'Binding' is only available in macOS 10.15 or newer
106 | .init(form: self, field: field, transform: transform)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:112:18: error: 'Binding' is only available in macOS 10.15 or newer
93 | }
94 |
95 | public extension Formable {
| `- note: add @available attribute to enclosing extension
96 | func formBinding<Value>(
97 | for field: WritableKeyPath<FormData, Value>
:
107 | }
108 |
109 | func formBinding<Value, CompleteValue, Transform: FieldTransformable>(
| `- note: add @available attribute to enclosing instance method
110 | for field: WritableKeyPath<FormData, FieldPartialValue<CompleteValue, Value>>,
111 | transform: Transform
112 | ) -> SwiftUI.Binding<Value> where Transform.Output == CompleteValue, Transform.Value == Value {
| `- error: 'Binding' is only available in macOS 10.15 or newer
113 | .init(form: self, field: field, transform: transform)
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:18:20: warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
16 | ) {
17 | self.init {
18 | return form.formHandler[dynamicMember: field]
| `- warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
19 | } set: { value in
20 | form.formHandler[dynamicMember: field] = value
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:14:9: warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
12 | public extension SwiftUI.Binding {
13 | init<FormSource: Formable>(
14 | form: FormSource,
| `- warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
15 | field: WritableKeyPath<FormSource.FormData, Value>
16 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:20:13: warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
18 | return form.formHandler[dynamicMember: field]
19 | } set: { value in
20 | form.formHandler[dynamicMember: field] = value
| `- warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
21 | }
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:14:9: warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
12 | public extension SwiftUI.Binding {
13 | init<FormSource: Formable>(
14 | form: FormSource,
| `- warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
15 | field: WritableKeyPath<FormSource.FormData, Value>
16 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:31:28: warning: capture of non-sendable type 'Transform.Type' in an isolated closure
29 | self.init {
30 | do {
31 | return try transform.decode(from: form.formHandler[dynamicMember: field])
| `- warning: capture of non-sendable type 'Transform.Type' in an isolated closure
32 | } catch {
33 | fatalError("SwiftUI.Binding: Unhandled failure in setting value to text field.\nIf you intend to catch this error, change your target type to be boxed in a `FieldPartialValue`.")
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:27:9: warning: capture of non-sendable type 'Transform.Type' in an isolated closure
25 | form: FormSource,
26 | field: WritableKeyPath<FormSource.FormData, Transform.Output>,
27 | transform: Transform
| `- warning: capture of non-sendable type 'Transform.Type' in an isolated closure
28 | ) where Transform.Value == Value {
29 | self.init {
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:31:51: warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
29 | self.init {
30 | do {
31 | return try transform.decode(from: form.formHandler[dynamicMember: field])
| `- warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
32 | } catch {
33 | fatalError("SwiftUI.Binding: Unhandled failure in setting value to text field.\nIf you intend to catch this error, change your target type to be boxed in a `FieldPartialValue`.")
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:25:9: warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
23 |
24 | init<FormSource: Formable, Transform: FieldTransformable>(
25 | form: FormSource,
| `- warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
26 | field: WritableKeyPath<FormSource.FormData, Transform.Output>,
27 | transform: Transform
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:37:17: warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
35 | } set: { value in
36 | do {
37 | form.formHandler[dynamicMember: field] = try transform.encode(to: value)
| `- warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
38 | } catch {
39 | fatalError("SwiftUI.Binding: Unhandled failure in setting value to text field.\nIf you intend to catch this error, change your target type to be boxed in a `FieldPartialValue`.")
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:25:9: warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
23 |
24 | init<FormSource: Formable, Transform: FieldTransformable>(
25 | form: FormSource,
| `- warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
26 | field: WritableKeyPath<FormSource.FormData, Transform.Output>,
27 | transform: Transform
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:26:9: warning: capture of non-sendable type 'Transform.Type' in an isolated closure
24 | init<FormSource: Formable, Transform: FieldTransformable>(
25 | form: FormSource,
26 | field: WritableKeyPath<FormSource.FormData, Transform.Output>,
| `- warning: capture of non-sendable type 'Transform.Type' in an isolated closure
27 | transform: Transform
28 | ) where Transform.Value == Value {
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:37:62: warning: capture of non-sendable type 'Transform.Type' in an isolated closure
35 | } set: { value in
36 | do {
37 | form.formHandler[dynamicMember: field] = try transform.encode(to: value)
| `- warning: capture of non-sendable type 'Transform.Type' in an isolated closure
38 | } catch {
39 | fatalError("SwiftUI.Binding: Unhandled failure in setting value to text field.\nIf you intend to catch this error, change your target type to be boxed in a `FieldPartialValue`.")
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:51:24: warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
49 | self.init {
50 | do {
51 | switch form.formHandler[dynamicMember: field] {
| `- warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
52 | case .complete(let complete):
53 | return try transform.decode(from: complete)
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:45:9: warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
43 |
44 | init<FormSource: Formable, Transform: FieldTransformable, CompleteValue>(
45 | form: FormSource,
| `- warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
46 | field: WritableKeyPath<FormSource.FormData, FieldPartialValue<CompleteValue, Value>>,
47 | transform: Transform
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:53:32: warning: capture of non-sendable type 'Transform.Type' in an isolated closure
51 | switch form.formHandler[dynamicMember: field] {
52 | case .complete(let complete):
53 | return try transform.decode(from: complete)
| `- warning: capture of non-sendable type 'Transform.Type' in an isolated closure
54 | case .partial(let incomplete, _):
55 | return incomplete
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:47:9: warning: capture of non-sendable type 'Transform.Type' in an isolated closure
45 | form: FormSource,
46 | field: WritableKeyPath<FormSource.FormData, FieldPartialValue<CompleteValue, Value>>,
47 | transform: Transform
| `- warning: capture of non-sendable type 'Transform.Type' in an isolated closure
48 | ) where Transform.Output == CompleteValue, Transform.Value == Value {
49 | self.init {
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:62:17: warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
60 | } set: { value in
61 | do {
62 | form.formHandler[dynamicMember: field] = .complete(try transform.encode(to: value))
| `- warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
63 | } catch {
64 | form.formHandler[dynamicMember: field] = .partial(value, error)
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:45:9: warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
43 |
44 | init<FormSource: Formable, Transform: FieldTransformable, CompleteValue>(
45 | form: FormSource,
| `- warning: capture of non-sendable type 'FormSource.Type' in an isolated closure
46 | field: WritableKeyPath<FormSource.FormData, FieldPartialValue<CompleteValue, Value>>,
47 | transform: Transform
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:62:72: warning: capture of non-sendable type 'Transform.Type' in an isolated closure
60 | } set: { value in
61 | do {
62 | form.formHandler[dynamicMember: field] = .complete(try transform.encode(to: value))
| `- warning: capture of non-sendable type 'Transform.Type' in an isolated closure
63 | } catch {
64 | form.formHandler[dynamicMember: field] = .partial(value, error)
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-binding+swiftui.swift:47:9: warning: capture of non-sendable type 'Transform.Type' in an isolated closure
45 | form: FormSource,
46 | field: WritableKeyPath<FormSource.FormData, FieldPartialValue<CompleteValue, Value>>,
47 | transform: Transform
| `- warning: capture of non-sendable type 'Transform.Type' in an isolated closure
48 | ) where Transform.Output == CompleteValue, Transform.Value == Value {
49 | self.init {
[64/71] Compiling makataForm form-handler.swift
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:140:26: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
138 | updateHandler = callback
139 |
140 | Task { @MainActor () in await pushUpdates() }
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
141 |
142 | return self
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:164:26: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
162 | validations = handler
163 |
164 | Task { @MainActor () in await pushUpdates() }
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | return self
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:217:30: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
215 | }
216 |
217 | Task { @MainActor () in await pushUpdates() }
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
218 | }
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:54:6: error: 'Published' is only available in macOS 10.15 or newer
15 | */
16 | @dynamicMemberLookup
17 | public class FormHandler<Shape>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
18 | /**
19 | Contains definitions when form validation failed.
:
52 |
53 | /// The current recorded values of the form.
54 | @Published public internal(set) var current: Shape
| `- error: 'Published' is only available in macOS 10.15 or newer
55 | /// The current recoded validation state of the form
56 | @Published public internal(set) var currentState: State?
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:56:6: error: 'Published' is only available in macOS 10.15 or newer
15 | */
16 | @dynamicMemberLookup
17 | public class FormHandler<Shape>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
18 | /**
19 | Contains definitions when form validation failed.
:
54 | @Published public internal(set) var current: Shape
55 | /// The current recoded validation state of the form
56 | @Published public internal(set) var currentState: State?
| `- error: 'Published' is only available in macOS 10.15 or newer
57 |
58 | var isModified: (Shape) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:17:34: error: 'ObservableObject' is only available in macOS 10.15 or newer
15 | */
16 | @dynamicMemberLookup
17 | public class FormHandler<Shape>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
18 | /**
19 | Contains definitions when form validation failed.
<unknown>:0: error: cannot convert value of type 'KeyPath<FormHandler<Shape>, Shape>' to expected argument type 'ReferenceWritableKeyPath<FormHandler<Shape>, Shape>'
<unknown>:0: error: cannot convert value of type 'KeyPath<FormHandler<Shape>, FormHandler<Shape>.State?>' to expected argument type 'ReferenceWritableKeyPath<FormHandler<Shape>, FormHandler<Shape>.State?>'
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:75:9: error: setter for 'current' is only available in macOS 10.15 or newer
15 | */
16 | @dynamicMemberLookup
17 | public class FormHandler<Shape>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
18 | /**
19 | Contains definitions when form validation failed.
:
72 | - parameter submitInvoked: Override if the form should be created with a submitted state.
73 | */
74 | public init(initial: Shape, submitInvoked: Bool = false) {
| `- note: add @available attribute to enclosing initializer
75 | self.current = initial
| |- error: setter for 'current' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | self.submitInvoked = submitInvoked
77 | self.isModified = { _ in false }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:81:9: error: setter for 'current' is only available in macOS 10.15 or newer
15 | */
16 | @dynamicMemberLookup
17 | public class FormHandler<Shape>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
18 | /**
19 | Contains definitions when form validation failed.
:
78 | }
79 |
80 | public init(initial: Shape, submitInvoked: Bool = false) where Shape: Equatable {
| `- note: add @available attribute to enclosing initializer
81 | self.current = initial
| |- error: setter for 'current' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | self.submitInvoked = submitInvoked
83 | self.isModified = { current in current != initial }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:117:9: error: setter for 'currentState' is only available in macOS 10.15 or newer
15 | */
16 | @dynamicMemberLookup
17 | public class FormHandler<Shape>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
18 | /**
19 | Contains definitions when form validation failed.
:
105 |
106 | @MainActor @discardableResult
107 | func pushUpdates() async -> FormValidation<Shape>.Result {
| `- note: add @available attribute to enclosing instance method
108 | let result = validations?.validate(current) ?? .noErrors
109 | let newState = State(
:
115 | )
116 |
117 | currentState = newState
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 |
119 | await updateHandler(current, newState)
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:140:9: error: 'Task' is only available in macOS 10.15 or newer
123 | }
124 |
125 | public extension FormHandler {
| `- note: add @available attribute to enclosing extension
126 | func setInitialValue(_ newShape: Shape) where Shape: Equatable {
127 | isModified = { current in current != newShape }
:
135 | */
136 | @discardableResult
137 | func callAsFunction(_ callback: @escaping UpdatesHandler) -> Self {
| `- note: add @available attribute to enclosing instance method
138 | updateHandler = callback
139 |
140 | Task { @MainActor () in await pushUpdates() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 |
142 | return self
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:140:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
123 | }
124 |
125 | public extension FormHandler {
| `- note: add @available attribute to enclosing extension
126 | func setInitialValue(_ newShape: Shape) where Shape: Equatable {
127 | isModified = { current in current != newShape }
:
135 | */
136 | @discardableResult
137 | func callAsFunction(_ callback: @escaping UpdatesHandler) -> Self {
| `- note: add @available attribute to enclosing instance method
138 | updateHandler = callback
139 |
140 | Task { @MainActor () in await pushUpdates() }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 |
142 | return self
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:164:9: error: 'Task' is only available in macOS 10.15 or newer
123 | }
124 |
125 | public extension FormHandler {
| `- note: add @available attribute to enclosing extension
126 | func setInitialValue(_ newShape: Shape) where Shape: Equatable {
127 | isModified = { current in current != newShape }
:
159 | */
160 | @discardableResult
161 | func setValidationHandler(_ handler: FormValidation<Shape>?) -> Self {
| `- note: add @available attribute to enclosing instance method
162 | validations = handler
163 |
164 | Task { @MainActor () in await pushUpdates() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
165 |
166 | return self
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:164:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
123 | }
124 |
125 | public extension FormHandler {
| `- note: add @available attribute to enclosing extension
126 | func setInitialValue(_ newShape: Shape) where Shape: Equatable {
127 | isModified = { current in current != newShape }
:
159 | */
160 | @discardableResult
161 | func setValidationHandler(_ handler: FormValidation<Shape>?) -> Self {
| `- note: add @available attribute to enclosing instance method
162 | validations = handler
163 |
164 | Task { @MainActor () in await pushUpdates() }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
165 |
166 | return self
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:211:13: error: setter for 'current' is only available in macOS 10.15 or newer
190 | }
191 |
192 | public extension FormHandler {
| `- note: add @available attribute to enclosing extension
193 | /**
194 | Allows direct read-write access to the form's current recorded state.
:
204 |
205 | */
206 | subscript<Value>(dynamicMember member: WritableKeyPath<Shape, Value>) -> Value {
| `- note: add @available attribute to enclosing subscript
207 | get {
208 | current[keyPath: member]
209 | }
210 | set {
211 | current[keyPath: member] = newValue
| |- error: setter for 'current' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
212 |
213 | if let observations, let action = observations.observationDict[member] {
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:217:13: error: 'Task' is only available in macOS 10.15 or newer
190 | }
191 |
192 | public extension FormHandler {
| `- note: add @available attribute to enclosing extension
193 | /**
194 | Allows direct read-write access to the form's current recorded state.
:
204 |
205 | */
206 | subscript<Value>(dynamicMember member: WritableKeyPath<Shape, Value>) -> Value {
| `- note: add @available attribute to enclosing subscript
207 | get {
208 | current[keyPath: member]
:
215 | }
216 |
217 | Task { @MainActor () in await pushUpdates() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | }
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/form-handler.swift:217:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
190 | }
191 |
192 | public extension FormHandler {
| `- note: add @available attribute to enclosing extension
193 | /**
194 | Allows direct read-write access to the form's current recorded state.
:
204 |
205 | */
206 | subscript<Value>(dynamicMember member: WritableKeyPath<Shape, Value>) -> Value {
| `- note: add @available attribute to enclosing subscript
207 | get {
208 | current[keyPath: member]
:
215 | }
216 |
217 | Task { @MainActor () in await pushUpdates() }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | }
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/error+formatting.swift:12:42: error: 'formatted' is only available in macOS 12.0 or newer
8 | import Foundation
9 |
10 | public extension Sequence where Element == Error {
| `- note: add @available attribute to enclosing extension
11 | var formatted: String {
| `- note: add @available attribute to enclosing property
12 | map({ $0.localizedDescription }).formatted(.list(type: .and))
| |- error: 'formatted' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/error+formatting.swift:12:53: error: 'list(type:width:)' is only available in macOS 12.0 or newer
8 | import Foundation
9 |
10 | public extension Sequence where Element == Error {
| `- note: add @available attribute to enclosing extension
11 | var formatted: String {
| `- note: add @available attribute to enclosing property
12 | map({ $0.localizedDescription }).formatted(.list(type: .and))
| |- error: 'list(type:width:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/error+formatting.swift:12:42: error: 'formatted' is only available in macOS 12.0 or newer
8 | import Foundation
9 |
10 | public extension Sequence where Element == Error {
| `- note: add @available attribute to enclosing extension
11 | var formatted: String {
| `- note: add @available attribute to enclosing property
12 | map({ $0.localizedDescription }).formatted(.list(type: .and))
| |- error: 'formatted' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/makata-form/error+formatting.swift:12:53: error: 'list(type:width:)' is only available in macOS 12.0 or newer
8 | import Foundation
9 |
10 | public extension Sequence where Element == Error {
| `- note: add @available attribute to enclosing extension
11 | var formatted: String {
| `- note: add @available attribute to enclosing property
12 | map({ $0.localizedDescription }).formatted(.list(type: .and))
| |- error: 'list(type:width:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
13 | }
14 |
[67/71] Compiling makataInteraction protocol-hookable+routeable.swift
[68/71] Compiling makataInteraction protocol-routeable.swift
[69/71] Compiling makataInteraction protocol-stateable.swift
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable.swift:99:6: error: 'Published' is only available in macOS 10.15 or newer
92 | - Remark: Do not define this object in your classes directly. Instead, conform to ``Stateable``.
93 | */
94 | public final class StateHandler<State>: ObservableObject, Sendable {
| `- note: add @available attribute to enclosing generic class
95 | public typealias Provider = @MainActor (State) async -> Void
96 |
97 | var provider: Provider = { _ in }
98 |
99 | @Published public internal(set) var current: State
| `- error: 'Published' is only available in macOS 10.15 or newer
100 |
101 | public init(initial: State) {
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable.swift:94:41: error: 'ObservableObject' is only available in macOS 10.15 or newer
92 | - Remark: Do not define this object in your classes directly. Instead, conform to ``Stateable``.
93 | */
94 | public final class StateHandler<State>: ObservableObject, Sendable {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
95 | public typealias Provider = @MainActor (State) async -> Void
96 |
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable.swift:97:9: warning: stored property 'provider' of 'Sendable'-conforming generic class 'StateHandler' is mutable; this is an error in the Swift 6 language mode
95 | public typealias Provider = @MainActor (State) async -> Void
96 |
97 | var provider: Provider = { _ in }
| `- warning: stored property 'provider' of 'Sendable'-conforming generic class 'StateHandler' is mutable; this is an error in the Swift 6 language mode
98 |
99 | @Published public internal(set) var current: State
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable.swift:83:9: error: setter for 'current' is only available in macOS 10.15 or newer
72 | }
73 |
74 | public extension Stateable {
| `- note: add @available attribute to enclosing extension
75 | /**
76 | Method to update the current state.
:
78 | - Parameter state: The new state to apply.
79 | */
80 | func updateState(to state: State) async {
| `- note: add @available attribute to enclosing instance method
81 | await stateHandler.provider(state)
82 |
83 | stateHandler.current = state
| |- error: setter for 'current' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
<unknown>:0: error: cannot convert value of type 'KeyPath<StateHandler<State>, State>' to expected argument type 'ReferenceWritableKeyPath<StateHandler<State>, State>'
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable.swift:102:9: error: setter for 'current' is only available in macOS 10.15 or newer
92 | - Remark: Do not define this object in your classes directly. Instead, conform to ``Stateable``.
93 | */
94 | public final class StateHandler<State>: ObservableObject, Sendable {
| `- note: add @available attribute to enclosing generic class
95 | public typealias Provider = @MainActor (State) async -> Void
96 |
:
99 | @Published public internal(set) var current: State
100 |
101 | public init(initial: State) {
| `- note: add @available attribute to enclosing initializer
102 | current = initial
| |- error: setter for 'current' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | }
104 |
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable.swift:108:9: error: 'Task' is only available in macOS 10.15 or newer
92 | - Remark: Do not define this object in your classes directly. Instead, conform to ``Stateable``.
93 | */
94 | public final class StateHandler<State>: ObservableObject, Sendable {
| `- note: add @available attribute to enclosing generic class
95 | public typealias Provider = @MainActor (State) async -> Void
96 |
:
103 | }
104 |
105 | public func callAsFunction(_ callback: @escaping Provider) {
| `- note: add @available attribute to enclosing instance method
106 | provider = callback
107 |
108 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | await callback(current)
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable.swift:108:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
92 | - Remark: Do not define this object in your classes directly. Instead, conform to ``Stateable``.
93 | */
94 | public final class StateHandler<State>: ObservableObject, Sendable {
| `- note: add @available attribute to enclosing generic class
95 | public typealias Provider = @MainActor (State) async -> Void
96 |
:
103 | }
104 |
105 | public func callAsFunction(_ callback: @escaping Provider) {
| `- note: add @available attribute to enclosing instance method
106 | provider = callback
107 |
108 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | await callback(current)
110 | }
[70/71] Compiling makataInteraction protocol-loadable.swift
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-loadable.swift:24:16: error: 'Task' is only available in macOS 10.15 or newer
14 | }
15 |
16 | public extension Loadable {
| `- note: add @available attribute to enclosing extension
17 | func invalidate() async {
| `- note: add @available attribute to enclosing instance method
18 | let previousData = stateHandler.current.value
19 | await updateState(to: .pending(previousData))
:
22 | let newData = try await loadData(previousData: previousData)
23 |
24 | if Task.isCancelled {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | return
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-loadable.swift:24:21: error: 'isCancelled' is only available in macOS 10.15 or newer
14 | }
15 |
16 | public extension Loadable {
| `- note: add @available attribute to enclosing extension
17 | func invalidate() async {
| `- note: add @available attribute to enclosing instance method
18 | let previousData = stateHandler.current.value
19 | await updateState(to: .pending(previousData))
:
22 | let newData = try await loadData(previousData: previousData)
23 |
24 | if Task.isCancelled {
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | return
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-loadable.swift:30:16: error: 'Task' is only available in macOS 10.15 or newer
14 | }
15 |
16 | public extension Loadable {
| `- note: add @available attribute to enclosing extension
17 | func invalidate() async {
| `- note: add @available attribute to enclosing instance method
18 | let previousData = stateHandler.current.value
19 | await updateState(to: .pending(previousData))
:
28 | await updateState(to: .success(newData))
29 | } catch {
30 | if Task.isCancelled {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | return
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-loadable.swift:30:21: error: 'isCancelled' is only available in macOS 10.15 or newer
14 | }
15 |
16 | public extension Loadable {
| `- note: add @available attribute to enclosing extension
17 | func invalidate() async {
| `- note: add @available attribute to enclosing instance method
18 | let previousData = stateHandler.current.value
19 | await updateState(to: .pending(previousData))
:
28 | await updateState(to: .success(newData))
29 | } catch {
30 | if Task.isCancelled {
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | return
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:13:62: error: 'AnyPublisher' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public extension Stateable {
| `- note: add @available attribute to enclosing extension
13 | func mapToState<Value>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
14 | stateHandler.$current.map(path).eraseToAnyPublisher()
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:17:73: error: 'AnyPublisher' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public extension Stateable {
| `- note: add @available attribute to enclosing extension
13 | func mapToState<Value>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
14 | stateHandler.$current.map(path).eraseToAnyPublisher()
15 | }
16 |
17 | func mapToState<Value: Equatable>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
18 | stateHandler.$current.map(path).removeDuplicates().eraseToAnyPublisher()
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:23:38: error: 'AnyPublisher' is only available in macOS 10.15 or newer
20 | }
21 |
22 | public extension View {
| `- note: add @available attribute to enclosing extension
23 | func onEffect<Value>(from state: AnyPublisher<Value, Never>, changes receive: Binding<Value>) -> some View {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | onReceive(state) { value in
25 | receive.wrappedValue = value
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:23:83: error: 'Binding' is only available in macOS 10.15 or newer
20 | }
21 |
22 | public extension View {
| `- note: add @available attribute to enclosing extension
23 | func onEffect<Value>(from state: AnyPublisher<Value, Never>, changes receive: Binding<Value>) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | onReceive(state) { value in
25 | receive.wrappedValue = value
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:23:107: error: 'View' is only available in macOS 10.15 or newer
20 | }
21 |
22 | public extension View {
| `- note: add @available attribute to enclosing extension
23 | func onEffect<Value>(from state: AnyPublisher<Value, Never>, changes receive: Binding<Value>) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | onReceive(state) { value in
25 | receive.wrappedValue = value
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:22:18: error: 'View' is only available in macOS 10.15 or newer
20 | }
21 |
22 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
23 | func onEffect<Value>(from state: AnyPublisher<Value, Never>, changes receive: Binding<Value>) -> some View {
24 | onReceive(state) { value in
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:14:31: error: 'map' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public extension Stateable {
| `- note: add @available attribute to enclosing extension
13 | func mapToState<Value>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
| `- note: add @available attribute to enclosing instance method
14 | stateHandler.$current.map(path).eraseToAnyPublisher()
| |- error: 'map' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:14:41: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public extension Stateable {
| `- note: add @available attribute to enclosing extension
13 | func mapToState<Value>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
| `- note: add @available attribute to enclosing instance method
14 | stateHandler.$current.map(path).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:18:31: error: 'map' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public extension Stateable {
| `- note: add @available attribute to enclosing extension
13 | func mapToState<Value>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
14 | stateHandler.$current.map(path).eraseToAnyPublisher()
15 | }
16 |
17 | func mapToState<Value: Equatable>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
| `- note: add @available attribute to enclosing instance method
18 | stateHandler.$current.map(path).removeDuplicates().eraseToAnyPublisher()
| |- error: 'map' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | }
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:18:41: error: 'removeDuplicates()' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public extension Stateable {
| `- note: add @available attribute to enclosing extension
13 | func mapToState<Value>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
14 | stateHandler.$current.map(path).eraseToAnyPublisher()
15 | }
16 |
17 | func mapToState<Value: Equatable>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
| `- note: add @available attribute to enclosing instance method
18 | stateHandler.$current.map(path).removeDuplicates().eraseToAnyPublisher()
| |- error: 'removeDuplicates()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | }
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:18:60: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public extension Stateable {
| `- note: add @available attribute to enclosing extension
13 | func mapToState<Value>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
14 | stateHandler.$current.map(path).eraseToAnyPublisher()
15 | }
16 |
17 | func mapToState<Value: Equatable>(_ path: KeyPath<State, Value>) -> AnyPublisher<Value, Never> {
| `- note: add @available attribute to enclosing instance method
18 | stateHandler.$current.map(path).removeDuplicates().eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | }
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/makata-interaction/protocol/protocol-stateable+swiftui.swift:24:9: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
20 | }
21 |
22 | public extension View {
| `- note: add @available attribute to enclosing extension
23 | func onEffect<Value>(from state: AnyPublisher<Value, Never>, changes receive: Binding<Value>) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | onReceive(state) { value in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | receive.wrappedValue = value
26 | }
Fetching https://github.com/snapkit/snapkit.git
Fetching https://github.com/nicklockwood/swiftformat
[1/4250] Fetching snapkit
[4251/53191] Fetching snapkit, swiftformat
Fetched https://github.com/snapkit/snapkit.git from cache (21.74s)
Fetched https://github.com/nicklockwood/swiftformat from cache (21.75s)
Computing version for https://github.com/snapkit/snapkit.git
Computed https://github.com/snapkit/snapkit.git at 5.7.1 (22.18s)
Computing version for https://github.com/nicklockwood/swiftformat
Computed https://github.com/nicklockwood/swiftformat at 0.56.4 (0.51s)
Creating working copy for https://github.com/snapkit/snapkit.git
Working copy of https://github.com/snapkit/snapkit.git resolved at 5.7.1
Creating working copy for https://github.com/nicklockwood/swiftformat
Working copy of https://github.com/nicklockwood/swiftformat resolved at 0.56.4
BUILD FAILURE 6.2 macosSpm