The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build DateRangePicker, reference main (a6503d), with Swift 6.0 for macOS (SPM) on 21 Oct 2025 19:18:45 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/14T/DateRangePicker.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/14T/DateRangePicker
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a6503d4 Mention dark mode support in README
Cloned https://github.com/14T/DateRangePicker.git
Revision (git rev-parse @):
a6503d46e5dfbd6cde386d01ad514797d2246126
SUCCESS checkout https://github.com/14T/DateRangePicker.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/14T/DateRangePicker.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling DateRangePicker DateRangeHelper.swift
[4/5] Emitting module DateRangePicker
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:16:6: error: 'Binding' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
14 |
15 |     @available(iOS 16.0, visionOS 1.0, *)
16 |     @Binding private var startDate: Date?
   |      `- error: 'Binding' is only available in macOS 10.15 or newer
17 |     @available(iOS 16.0, visionOS 1.0, *)
18 |     @Binding private var endDate: Date?
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:18:6: error: 'Binding' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
16 |     @Binding private var startDate: Date?
17 |     @available(iOS 16.0, visionOS 1.0, *)
18 |     @Binding private var endDate: Date?
   |      `- error: 'Binding' is only available in macOS 10.15 or newer
19 |     let bounds: Range<Date>?
20 |     var calendar: Calendar = .current
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:24:20: error: 'Binding' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
21 |
22 |     @available(iOS 16.0, visionOS 1.0, *)
23 |     public init(
   |            `- note: add @available attribute to enclosing initializer
24 |         startDate: Binding<Date?>,
   |                    `- error: 'Binding' is only available in macOS 10.15 or newer
25 |         endDate: Binding<Date?>,
26 |         bounds: Range<Date>? = nil
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:25:18: error: 'Binding' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
21 |
22 |     @available(iOS 16.0, visionOS 1.0, *)
23 |     public init(
   |            `- note: add @available attribute to enclosing initializer
24 |         startDate: Binding<Date?>,
25 |         endDate: Binding<Date?>,
   |                  `- error: 'Binding' is only available in macOS 10.15 or newer
26 |         bounds: Range<Date>? = nil
27 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:34:31: error: 'Binding' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
32 |
33 |     @available(iOS 16.0, visionOS 1.0, *)
34 |     private var datesBinding: Binding<Set<DateComponents>> {
   |                 |             `- error: 'Binding' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing property
35 |         Binding {
36 |             DateRangeHelper.getDatesInRange(startDate: startDate, endDate: endDate, calendar: calendar)
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:48:27: error: 'View' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
46 |
47 |     @available(iOS 16.0, visionOS 1.0, *)
48 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
49 |         MultiDatePicker("", selection: datesBinding, in: bounds ?? Self.defaultBounds)
50 |             .environment(\.locale, Locale.current)
[5/5] Compiling DateRangePicker DateRangePicker.swift
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:16:6: error: 'Binding' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
14 |
15 |     @available(iOS 16.0, visionOS 1.0, *)
16 |     @Binding private var startDate: Date?
   |      `- error: 'Binding' is only available in macOS 10.15 or newer
17 |     @available(iOS 16.0, visionOS 1.0, *)
18 |     @Binding private var endDate: Date?
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:18:6: error: 'Binding' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
16 |     @Binding private var startDate: Date?
17 |     @available(iOS 16.0, visionOS 1.0, *)
18 |     @Binding private var endDate: Date?
   |      `- error: 'Binding' is only available in macOS 10.15 or newer
19 |     let bounds: Range<Date>?
20 |     var calendar: Calendar = .current
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:24:20: error: 'Binding' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
21 |
22 |     @available(iOS 16.0, visionOS 1.0, *)
23 |     public init(
   |            `- note: add @available attribute to enclosing initializer
24 |         startDate: Binding<Date?>,
   |                    `- error: 'Binding' is only available in macOS 10.15 or newer
25 |         endDate: Binding<Date?>,
26 |         bounds: Range<Date>? = nil
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:25:18: error: 'Binding' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
21 |
22 |     @available(iOS 16.0, visionOS 1.0, *)
23 |     public init(
   |            `- note: add @available attribute to enclosing initializer
24 |         startDate: Binding<Date?>,
25 |         endDate: Binding<Date?>,
   |                  `- error: 'Binding' is only available in macOS 10.15 or newer
26 |         bounds: Range<Date>? = nil
27 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:34:31: error: 'Binding' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
32 |
33 |     @available(iOS 16.0, visionOS 1.0, *)
34 |     private var datesBinding: Binding<Set<DateComponents>> {
   |                 |             `- error: 'Binding' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing property
35 |         Binding {
36 |             DateRangeHelper.getDatesInRange(startDate: startDate, endDate: endDate, calendar: calendar)
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:48:27: error: 'View' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
46 |
47 |     @available(iOS 16.0, visionOS 1.0, *)
48 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
49 |         MultiDatePicker("", selection: datesBinding, in: bounds ?? Self.defaultBounds)
50 |             .environment(\.locale, Locale.current)
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:35:9: error: 'Binding' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
32 |
33 |     @available(iOS 16.0, visionOS 1.0, *)
34 |     private var datesBinding: Binding<Set<DateComponents>> {
   |                 `- note: add @available attribute to enclosing property
35 |         Binding {
   |         |- error: 'Binding' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
36 |             DateRangeHelper.getDatesInRange(startDate: startDate, endDate: endDate, calendar: calendar)
37 |         } set: { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:41:29: error: cannot pass as inout because setter for 'startDate' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
32 |
33 |     @available(iOS 16.0, visionOS 1.0, *)
34 |     private var datesBinding: Binding<Set<DateComponents>> {
   |                 `- note: add @available attribute to enclosing property
35 |         Binding {
36 |             DateRangeHelper.getDatesInRange(startDate: startDate, endDate: endDate, calendar: calendar)
   :
39 |                 newValue: newValue,
40 |                 calendar: calendar,
41 |                 startDate: &startDate,
   |                             |- error: cannot pass as inout because setter for 'startDate' is only available in macOS 10.15 or newer
   |                             `- note: add 'if #available' version check
42 |                 endDate: &endDate
43 |             )
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:42:27: error: cannot pass as inout because setter for 'endDate' is only available in macOS 10.15 or newer
 4 |
 5 | @available(iOS 16.0, visionOS 1.0, *)
 6 | public struct DateRangePicker: View {
   |               `- note: add @available attribute to enclosing struct
 7 |     @available(iOS 16.0, visionOS 1.0, *)
 8 |     static var defaultBounds: Range<Date> {
   :
32 |
33 |     @available(iOS 16.0, visionOS 1.0, *)
34 |     private var datesBinding: Binding<Set<DateComponents>> {
   |                 `- note: add @available attribute to enclosing property
35 |         Binding {
36 |             DateRangeHelper.getDatesInRange(startDate: startDate, endDate: endDate, calendar: calendar)
   :
40 |                 calendar: calendar,
41 |                 startDate: &startDate,
42 |                 endDate: &endDate
   |                           |- error: cannot pass as inout because setter for 'endDate' is only available in macOS 10.15 or newer
   |                           `- note: add 'if #available' version check
43 |             )
44 |         }
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:50:26: error: cannot convert value of type 'KeyPath<EnvironmentValues, Locale>' to expected argument type 'WritableKeyPath<EnvironmentValues, Locale>'
48 |     public var body: some View {
49 |         MultiDatePicker("", selection: datesBinding, in: bounds ?? Self.defaultBounds)
50 |             .environment(\.locale, Locale.current)
   |                          `- error: cannot convert value of type 'KeyPath<EnvironmentValues, Locale>' to expected argument type 'WritableKeyPath<EnvironmentValues, Locale>'
51 |             .environment(\.timeZone, .current)
52 |             .environment(\.calendar, calendar)
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:51:26: error: cannot convert value of type 'KeyPath<EnvironmentValues, TimeZone>' to expected argument type 'WritableKeyPath<EnvironmentValues, V>'
49 |         MultiDatePicker("", selection: datesBinding, in: bounds ?? Self.defaultBounds)
50 |             .environment(\.locale, Locale.current)
51 |             .environment(\.timeZone, .current)
   |                          `- error: cannot convert value of type 'KeyPath<EnvironmentValues, TimeZone>' to expected argument type 'WritableKeyPath<EnvironmentValues, V>'
52 |             .environment(\.calendar, calendar)
53 |     }
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:51:39: error: cannot infer contextual base in reference to member 'current'
49 |         MultiDatePicker("", selection: datesBinding, in: bounds ?? Self.defaultBounds)
50 |             .environment(\.locale, Locale.current)
51 |             .environment(\.timeZone, .current)
   |                                       `- error: cannot infer contextual base in reference to member 'current'
52 |             .environment(\.calendar, calendar)
53 |     }
/Users/admin/builder/spi-builder-workspace/Sources/DateRangePicker/Views/DateRangePicker.swift:52:26: error: cannot convert value of type 'KeyPath<EnvironmentValues, Calendar>' to expected argument type 'WritableKeyPath<EnvironmentValues, Calendar>'
50 |             .environment(\.locale, Locale.current)
51 |             .environment(\.timeZone, .current)
52 |             .environment(\.calendar, calendar)
   |                          `- error: cannot convert value of type 'KeyPath<EnvironmentValues, Calendar>' to expected argument type 'WritableKeyPath<EnvironmentValues, Calendar>'
53 |     }
54 | }
BUILD FAILURE 6.0 macosSpm