The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DateRangePicker, reference main (a6503d), with Swift 6.1 for macOS (SPM) on 21 Oct 2025 19:17:37 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.1
Building package at path:  $PWD
https://github.com/14T/DateRangePicker.git
https://github.com/14T/DateRangePicker.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DateRangePicker",
  "name" : "DateRangePicker",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "DateRangePicker",
      "targets" : [
        "DateRangePicker"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DateRangePickerTests",
      "module_type" : "SwiftTarget",
      "name" : "DateRangePickerTests",
      "path" : "Tests/DateRangePickerTests",
      "sources" : [
        "DateRangeTests.swift",
        "DateSelectionHelperTests.swift"
      ],
      "target_dependencies" : [
        "DateRangePicker"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DateRangePicker",
      "module_type" : "SwiftTarget",
      "name" : "DateRangePicker",
      "path" : "Sources/DateRangePicker",
      "product_memberships" : [
        "DateRangePicker"
      ],
      "sources" : [
        "Utils/DateRangeHelper.swift",
        "Views/DateRangePicker.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.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 'any KeyPath<EnvironmentValues, Locale> & Sendable' 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 'any KeyPath<EnvironmentValues, Locale> & Sendable' 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 'any KeyPath<EnvironmentValues, TimeZone> & Sendable' 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 'any KeyPath<EnvironmentValues, TimeZone> & Sendable' 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 'any KeyPath<EnvironmentValues, Calendar> & Sendable' 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 'any KeyPath<EnvironmentValues, Calendar> & Sendable' to expected argument type 'WritableKeyPath<EnvironmentValues, Calendar>'
53 |     }
54 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/4] 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 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Compiling DateRangePicker DateRangeHelper.swift
[4/4] 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)
BUILD FAILURE 6.1 macosSpm