Build Information
Failed to build WZDateSlider, reference 1.0.2 (d78fbc
), with Swift 6.0 for macOS (SPM) on 13 Oct 2024 22:46:58 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wannabewize/WZDateSlider.git
Reference: 1.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/wannabewize/WZDateSlider
* tag 1.0.2 -> FETCH_HEAD
HEAD is now at d78fbc8 Merge tag 'handling-min,max-date-changing' into develop
Cloned https://github.com/wannabewize/WZDateSlider.git
Revision (git rev-parse @):
d78fbc81bb84c8b6cde340e689b21a9a42f96c41
SUCCESS checkout https://github.com/wannabewize/WZDateSlider.git at 1.0.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "wzdateslider",
"name": "WZDateSlider",
"url": "https://github.com/wannabewize/WZDateSlider.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WZDateSlider",
"dependencies": [
]
}
]
}
Fetching https://github.com/wannabewize/WZDateSlider.git
[1/119] Fetching wzdateslider
Fetched https://github.com/wannabewize/WZDateSlider.git from cache (1.05s)
Creating working copy for https://github.com/wannabewize/WZDateSlider.git
Working copy of https://github.com/wannabewize/WZDateSlider.git resolved at 1.0.2 (d78fbc8)
warning: '.resolve-product-dependencies': dependency 'wzdateslider' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/wannabewize/WZDateSlider.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4A847ED0836F2485.txt
[3/6] Emitting module WZDateSlider
[4/6] Compiling WZDateSlider Library.swift
[5/6] Compiling WZDateSlider WZSingleDateSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZSingleDateSlider.swift:70:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | public struct WZSingleDateSlider: View {
| `- note: add @available attribute to enclosing struct
8 | @Binding var date: Date
9 | var minDate: Date
:
34 | @State private var widthPerValue: CGFloat = 0
35 |
36 | public var body: some View {
| `- note: add @available attribute to enclosing property
37 | let dragGesture = { (width: CGFloat, lowLimit: Int, highLimit: Int) in
38 | let gesture = DragGesture()
:
68 | widthPerValue = (geometry.size.width - thumbSize) / CGFloat(distance)
69 | }
70 | .onChange(of: value) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
71 | guard let newDate = minDate.addMonths(value) else {
72 | return
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZSingleDateSlider.swift:76:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | public struct WZSingleDateSlider: View {
| `- note: add @available attribute to enclosing struct
8 | @Binding var date: Date
9 | var minDate: Date
:
34 | @State private var widthPerValue: CGFloat = 0
35 |
36 | public var body: some View {
| `- note: add @available attribute to enclosing property
37 | let dragGesture = { (width: CGFloat, lowLimit: Int, highLimit: Int) in
38 | let gesture = DragGesture()
:
74 | date = newDate
75 | }
76 | .onChange(of: date) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
77 | value = newValue.monthDistance(other: minDate)
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZSingleDateSlider.swift:79:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | public struct WZSingleDateSlider: View {
| `- note: add @available attribute to enclosing struct
8 | @Binding var date: Date
9 | var minDate: Date
:
34 | @State private var widthPerValue: CGFloat = 0
35 |
36 | public var body: some View {
| `- note: add @available attribute to enclosing property
37 | let dragGesture = { (width: CGFloat, lowLimit: Int, highLimit: Int) in
38 | let gesture = DragGesture()
:
77 | value = newValue.monthDistance(other: minDate)
78 | }
79 | .onChange(of: minDate) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
80 | distance = maxDate.monthDistance(other: newValue)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZSingleDateSlider.swift:82:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | public struct WZSingleDateSlider: View {
| `- note: add @available attribute to enclosing struct
8 | @Binding var date: Date
9 | var minDate: Date
:
34 | @State private var widthPerValue: CGFloat = 0
35 |
36 | public var body: some View {
| `- note: add @available attribute to enclosing property
37 | let dragGesture = { (width: CGFloat, lowLimit: Int, highLimit: Int) in
38 | let gesture = DragGesture()
:
80 | distance = maxDate.monthDistance(other: newValue)
81 | }
82 | .onChange(of: maxDate) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
83 | distance = newValue.monthDistance(other: minDate)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZSingleDateSlider.swift:85:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | public struct WZSingleDateSlider: View {
| `- note: add @available attribute to enclosing struct
8 | @Binding var date: Date
9 | var minDate: Date
:
34 | @State private var widthPerValue: CGFloat = 0
35 |
36 | public var body: some View {
| `- note: add @available attribute to enclosing property
37 | let dragGesture = { (width: CGFloat, lowLimit: Int, highLimit: Int) in
38 | let gesture = DragGesture()
:
83 | distance = newValue.monthDistance(other: minDate)
84 | }
85 | .onChange(of: distance) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
86 | widthPerValue = (geometry.size.width - thumbSize) / CGFloat(newValue)
87 | value = date.monthDistance(other: minDate)
[6/6] Compiling WZDateSlider WZDoubleDateSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZDoubleDateSlider.swift:134:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | public struct WZDoubleDateSlider: View {
| `- note: add @available attribute to enclosing struct
8 | @Binding var lowDate: Date
9 | @Binding var highDate: Date
:
44 | @State private var widthPerValue: CGFloat = 0
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 |
48 | let lowDragGesture = { (width: CGFloat, topLimit: Int, bottomLimit: Int) in
:
132 | highValue = distance * 2 / 3
133 | }
134 | .onChange(of: lowValue) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
135 | guard let newDate = minDate.addMonths(lowValue) else {
136 | return
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZDoubleDateSlider.swift:140:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | public struct WZDoubleDateSlider: View {
| `- note: add @available attribute to enclosing struct
8 | @Binding var lowDate: Date
9 | @Binding var highDate: Date
:
44 | @State private var widthPerValue: CGFloat = 0
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 |
48 | let lowDragGesture = { (width: CGFloat, topLimit: Int, bottomLimit: Int) in
:
138 | lowDate = newDate
139 | }
140 | .onChange(of: highValue) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
141 | guard let newDate = minDate.addMonths(highValue) else {
142 | return
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZDoubleDateSlider.swift:146:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | public struct WZDoubleDateSlider: View {
| `- note: add @available attribute to enclosing struct
8 | @Binding var lowDate: Date
9 | @Binding var highDate: Date
:
44 | @State private var widthPerValue: CGFloat = 0
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 |
48 | let lowDragGesture = { (width: CGFloat, topLimit: Int, bottomLimit: Int) in
:
144 | highDate = newDate
145 | }
146 | .onChange(of: lowDate) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
147 | lowValue = newValue.monthDistance(other: minDate)
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZDoubleDateSlider.swift:149:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | public struct WZDoubleDateSlider: View {
| `- note: add @available attribute to enclosing struct
8 | @Binding var lowDate: Date
9 | @Binding var highDate: Date
:
44 | @State private var widthPerValue: CGFloat = 0
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 |
48 | let lowDragGesture = { (width: CGFloat, topLimit: Int, bottomLimit: Int) in
:
147 | lowValue = newValue.monthDistance(other: minDate)
148 | }
149 | .onChange(of: highDate) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
150 | highValue = newValue.monthDistance(other: minDate)
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZDoubleDateSlider.swift:152:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | public struct WZDoubleDateSlider: View {
| `- note: add @available attribute to enclosing struct
8 | @Binding var lowDate: Date
9 | @Binding var highDate: Date
:
44 | @State private var widthPerValue: CGFloat = 0
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 |
48 | let lowDragGesture = { (width: CGFloat, topLimit: Int, bottomLimit: Int) in
:
150 | highValue = newValue.monthDistance(other: minDate)
151 | }
152 | .onChange(of: minDate) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
153 | distance = maxDate.monthDistance(other: newValue)
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZDoubleDateSlider.swift:155:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | public struct WZDoubleDateSlider: View {
| `- note: add @available attribute to enclosing struct
8 | @Binding var lowDate: Date
9 | @Binding var highDate: Date
:
44 | @State private var widthPerValue: CGFloat = 0
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 |
48 | let lowDragGesture = { (width: CGFloat, topLimit: Int, bottomLimit: Int) in
:
153 | distance = maxDate.monthDistance(other: newValue)
154 | }
155 | .onChange(of: maxDate) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
156 | distance = newValue.monthDistance(other: minDate)
157 | }
/Users/admin/builder/spi-builder-workspace/Sources/WZDateSlider/WZDoubleDateSlider.swift:158:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
5 | import SwiftUI
6 |
7 | public struct WZDoubleDateSlider: View {
| `- note: add @available attribute to enclosing struct
8 | @Binding var lowDate: Date
9 | @Binding var highDate: Date
:
44 | @State private var widthPerValue: CGFloat = 0
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 |
48 | let lowDragGesture = { (width: CGFloat, topLimit: Int, bottomLimit: Int) in
:
156 | distance = newValue.monthDistance(other: minDate)
157 | }
158 | .onChange(of: distance) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
159 | widthPerValue = (geometry.size.width - thumbSize) / CGFloat(newValue)
160 | lowValue = lowDate.monthDistance(other: minDate)
BUILD FAILURE 6.0 macosSpm