Build Information
Failed to build CalendarView, reference main (8c811c
), with Swift 5.9 for macOS (SPM) on 23 Aug 2024 18:26:45 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.52.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/edonv/CalendarView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/edonv/CalendarView
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 8c811cf Update .spi.yml
Cloned https://github.com/edonv/CalendarView.git
Revision (git rev-parse @):
8c811cf1d5ac52c662f82acca263e23cd9cde48e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/edonv/CalendarView.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.9
Building package at path: $PWD
https://github.com/edonv/CalendarView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/10] Compiling CalendarView CalendarView+SelectionMode.swift
[2/10] Compiling CalendarView Array+Duplicates.swift
[3/10] Compiling CalendarView DateInterval+RangeInit.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/10] Compiling CalendarView EnvironmentModifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:13:56: error: 'View' is only available in macOS 10.15 or newer
public func calendar(_ calendar: Calendar) -> some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:13:17: note: add @available attribute to enclosing instance method
public func calendar(_ calendar: Calendar) -> some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:10:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:19:50: error: 'View' is only available in macOS 10.15 or newer
public func locale(_ locale: Locale) -> some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:19:17: note: add @available attribute to enclosing instance method
public func locale(_ locale: Locale) -> some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:10:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:25:56: error: 'View' is only available in macOS 10.15 or newer
public func timeZone(_ timeZone: TimeZone) -> some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:25:17: note: add @available attribute to enclosing instance method
public func timeZone(_ timeZone: TimeZone) -> some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:10:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:10:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:14:26: error: key path value type 'WritableKeyPath<EnvironmentValues, Calendar>' cannot be converted to contextual type 'KeyPath<EnvironmentValues, Calendar>'
self.environment(\.calendar, calendar)
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:20:26: error: key path value type 'WritableKeyPath<EnvironmentValues, Locale>' cannot be converted to contextual type 'KeyPath<EnvironmentValues, Locale>'
self.environment(\.locale, locale)
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:26:26: error: key path value type 'WritableKeyPath<EnvironmentValues, TimeZone>' cannot be converted to contextual type 'KeyPath<EnvironmentValues, TimeZone>'
self.environment(\.timeZone, timeZone)
^
[5/10] Compiling CalendarView Binding+Map.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:13:10: error: 'Binding' is only available in macOS 10.15 or newer
) -> Binding<T> {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:11:10: note: add @available attribute to enclosing instance method
func map<T>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:1: note: add @available attribute to enclosing extension
extension Binding {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:23:10: error: 'Binding' is only available in macOS 10.15 or newer
) -> Binding<T> {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:20:10: note: add @available attribute to enclosing instance method
func map<T>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:1: note: add @available attribute to enclosing extension
extension Binding {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:33:10: error: 'Binding' is only available in macOS 10.15 or newer
) -> Binding<U?> where Value == Optional<T> {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:30:10: note: add @available attribute to enclosing instance method
func map<T, U>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:1: note: add @available attribute to enclosing extension
extension Binding {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:11: error: 'Binding' is only available in macOS 10.15 or newer
extension Binding {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:1: note: add @available attribute to enclosing extension
extension Binding {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:14:9: error: 'Binding' is only available in macOS 10.15 or newer
Binding<T>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:14:9: note: add 'if #available' version check
Binding<T>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:11:10: note: add @available attribute to enclosing instance method
func map<T>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:1: note: add @available attribute to enclosing extension
extension Binding {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:24:9: error: 'Binding' is only available in macOS 10.15 or newer
Binding<T>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:24:9: note: add 'if #available' version check
Binding<T>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:20:10: note: add @available attribute to enclosing instance method
func map<T>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:1: note: add @available attribute to enclosing extension
extension Binding {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:34:9: error: 'Binding' is only available in macOS 10.15 or newer
Binding<U?>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:34:9: note: add 'if #available' version check
Binding<U?>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:30:10: note: add @available attribute to enclosing instance method
func map<T, U>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:1: note: add @available attribute to enclosing extension
extension Binding {
^
[6/10] Emitting module CalendarView
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:25:37: error: cannot find type 'UICalendarViewDelegate' in scope
extension CalendarView.Coordinator: UICalendarViewDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:35:10: error: cannot find type 'UICalendarView' in scope
) -> UICalendarView.Decoration? {
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:33:25: error: cannot find type 'UICalendarView' in scope
_ calendarView: UICalendarView,
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:67:25: error: cannot find type 'UICalendarView' in scope
_ calendarView: UICalendarView,
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:76:37: error: cannot find type 'UICalendarSelectionMultiDateDelegate' in scope
extension CalendarView.Coordinator: UICalendarSelectionMultiDateDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:86:22: error: cannot find type 'UICalendarSelectionMultiDate' in scope
_ selection: UICalendarSelectionMultiDate,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:99:22: error: cannot find type 'UICalendarSelectionMultiDate' in scope
_ selection: UICalendarSelectionMultiDate,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:109:37: error: cannot find type 'UICalendarSelectionSingleDateDelegate' in scope
extension CalendarView.Coordinator: UICalendarSelectionSingleDateDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:119:22: error: cannot find type 'UICalendarSelectionSingleDate' in scope
_ selection: UICalendarSelectionSingleDate,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:11:39: error: cannot find type 'UICalendarView' in scope
public typealias DecorationSize = UICalendarView.DecorationSize
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:15:34: error: cannot find type 'UICalendarView' in scope
internal let decoration: UICalendarView.Decoration
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:22:36: error: cannot find type 'UICalendarView' in scope
private init(_ decoration: UICalendarView.Decoration) {
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:32:20: error: 'Color' is only available in macOS 10.15 or newer
color: Color? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:31:28: note: add @available attribute to enclosing static method
public static func `default`(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: note: add @available attribute to enclosing struct
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:91: error: 'View' is only available in macOS 10.15 or newer
public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:28: note: add @available attribute to enclosing static method
public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: note: add @available attribute to enclosing struct
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:36: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:28: note: add @available attribute to enclosing static method
public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: note: add @available attribute to enclosing struct
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:91: error: 'View' is only available in macOS 10.15 or newer
public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:28: note: add @available attribute to enclosing static method
public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: note: add @available attribute to enclosing struct
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:70:22: error: cannot find type 'UIImage' in scope
_ image: UIImage?,
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:71:20: error: 'Color' is only available in macOS 10.15 or newer
color: Color? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:69:28: note: add @available attribute to enclosing static method
public static func image(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: note: add @available attribute to enclosing struct
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:95:20: error: 'Color' is only available in macOS 10.15 or newer
color: Color? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:93:28: note: add @available attribute to enclosing static method
public static func image(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: note: add @available attribute to enclosing struct
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:15:22: warning: stored property 'decoration' of 'Sendable'-conforming struct 'Decoration' has non-sendable type '<<error type>>'
internal let decoration: UICalendarView.Decoration
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: error: type 'CalendarView.Decoration' does not conform to protocol 'Hashable'
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:15:22: note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'CalendarView.Decoration' to 'Hashable'
internal let decoration: UICalendarView.Decoration
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: error: type 'CalendarView.Decoration' does not conform to protocol 'Equatable'
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:15:22: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'CalendarView.Decoration' to 'Equatable'
internal let decoration: UICalendarView.Decoration
^
Swift.==:1:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'CalendarView.Decoration' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'CalendarView.Decoration' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'CalendarView.Decoration' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'CalendarView.Decoration' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
CoreFoundation._CFObject:4:24: note: candidate would match if 'CalendarView.Decoration' conformed to '_CFObject'
public static func == (left: Self, right: Self) -> Bool
^
Foundation.AttributedStringProtocol:3:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation._BridgedStoredNSError:4:24: note: candidate would match if 'CalendarView.Decoration' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(CalendarView.Decoration, CalendarView.Decoration) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
@State
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:11:16: note: add @available attribute to enclosing struct
private struct CalendarView_Preview: View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
@State
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:11:16: note: add @available attribute to enclosing struct
private struct CalendarView_Preview: View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
@State
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:11:16: note: add @available attribute to enclosing struct
private struct CalendarView_Preview: View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
@State
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:11:16: note: add @available attribute to enclosing struct
private struct CalendarView_Preview: View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:24:20: error: 'View' is only available in macOS 10.15 or newer
var body: some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:24:9: note: add @available attribute to enclosing property
var body: some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:11:16: note: add @available attribute to enclosing struct
private struct CalendarView_Preview: View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:63:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
#Preview {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:69:5: error: cannot find 'UICalendarView' in scope
UICalendarView(frame: .zero)
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:69:28: error: cannot infer contextual base in reference to member 'zero'
UICalendarView(frame: .zero)
~^~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:17:39: error: 'Binding' is only available in macOS 10.15 or newer
public let visibleDateComponents: Binding<DateComponents?>
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:24:6: error: 'Binding' is only available in macOS 10.15 or newer
@Binding
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:34:22: error: 'Binding' is only available in macOS 10.15 or newer
_ selection: Binding<[DateComponents]>,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:33:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:35:32: error: 'Binding' is only available in macOS 10.15 or newer
visibleDateComponents: Binding<DateComponents?>? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:33:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:50:22: error: 'Binding' is only available in macOS 10.15 or newer
_ selection: Binding<Set<DateComponents>>,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:49:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:51:32: error: 'Binding' is only available in macOS 10.15 or newer
visibleDateComponents: Binding<DateComponents?>? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:49:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:71:22: error: 'Binding' is only available in macOS 10.15 or newer
_ selection: Binding<DateComponents?>? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:70:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:72:32: error: 'Binding' is only available in macOS 10.15 or newer
visibleDateComponents: Binding<DateComponents?>? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:70:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:90:49: error: cannot find type 'UICalendarView' in scope
public func makeUIView(context: Context) -> UICalendarView {
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:90:37: error: cannot find type 'Context' in scope
public func makeUIView(context: Context) -> UICalendarView {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:118:40: error: cannot find type 'UICalendarView' in scope
public func updateUIView(_ uiView: UICalendarView, context: Context) {
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:118:65: error: cannot find type 'Context' in scope
public func updateUIView(_ uiView: UICalendarView, context: Context) {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:181:29: error: cannot find type 'UIFontDescriptor' in scope
private var fontDesign: UIFontDescriptor.SystemDesign = .default
^~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:186:38: error: 'Font' is only available in macOS 10.15 or newer
public func fontDesign(_ design: Font.Design) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:186:17: note: add @available attribute to enclosing instance method
public func fontDesign(_ design: Font.Design) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:117: error: 'View' is only available in macOS 10.15 or newer
public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:17: note: add @available attribute to enclosing instance method
public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:30: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:17: note: add @available attribute to enclosing instance method
public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:117: error: 'View' is only available in macOS 10.15 or newer
public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:17: note: add @available attribute to enclosing instance method
public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:29: error: cannot find type 'UIViewRepresentable' in scope
public struct CalendarView: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:13:56: error: 'View' is only available in macOS 10.15 or newer
public func calendar(_ calendar: Calendar) -> some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:13:17: note: add @available attribute to enclosing instance method
public func calendar(_ calendar: Calendar) -> some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:10:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:19:50: error: 'View' is only available in macOS 10.15 or newer
public func locale(_ locale: Locale) -> some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:19:17: note: add @available attribute to enclosing instance method
public func locale(_ locale: Locale) -> some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:10:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:25:56: error: 'View' is only available in macOS 10.15 or newer
public func timeZone(_ timeZone: TimeZone) -> some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:25:17: note: add @available attribute to enclosing instance method
public func timeZone(_ timeZone: TimeZone) -> some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:10:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Convenience Extensions/EnvironmentModifiers.swift:10:1: note: add @available attribute to enclosing extension
extension View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:13:10: error: 'Binding' is only available in macOS 10.15 or newer
) -> Binding<T> {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:11:10: note: add @available attribute to enclosing instance method
func map<T>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:1: note: add @available attribute to enclosing extension
extension Binding {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:23:10: error: 'Binding' is only available in macOS 10.15 or newer
) -> Binding<T> {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:20:10: note: add @available attribute to enclosing instance method
func map<T>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:1: note: add @available attribute to enclosing extension
extension Binding {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:33:10: error: 'Binding' is only available in macOS 10.15 or newer
) -> Binding<U?> where Value == Optional<T> {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:30:10: note: add @available attribute to enclosing instance method
func map<T, U>(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:1: note: add @available attribute to enclosing extension
extension Binding {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:11: error: 'Binding' is only available in macOS 10.15 or newer
extension Binding {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/Internal Extensions/Binding+Map.swift:10:1: note: add @available attribute to enclosing extension
extension Binding {
^
[7/10] Compiling CalendarView CalendarView+Decoration.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:11:39: error: cannot find type 'UICalendarView' in scope
public typealias DecorationSize = UICalendarView.DecorationSize
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:15:34: error: cannot find type 'UICalendarView' in scope
internal let decoration: UICalendarView.Decoration
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:22:36: error: cannot find type 'UICalendarView' in scope
private init(_ decoration: UICalendarView.Decoration) {
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:32:20: error: 'Color' is only available in macOS 10.15 or newer
color: Color? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:31:28: note: add @available attribute to enclosing static method
public static func `default`(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: note: add @available attribute to enclosing struct
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:91: error: 'View' is only available in macOS 10.15 or newer
public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:28: note: add @available attribute to enclosing static method
public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: note: add @available attribute to enclosing struct
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:36: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:28: note: add @available attribute to enclosing static method
public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: note: add @available attribute to enclosing struct
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:91: error: 'View' is only available in macOS 10.15 or newer
public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:49:28: note: add @available attribute to enclosing static method
public static func custom(@ViewBuilder _ customViewProvider: @escaping () -> some View) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: note: add @available attribute to enclosing struct
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:70:22: error: cannot find type 'UIImage' in scope
_ image: UIImage?,
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:71:20: error: 'Color' is only available in macOS 10.15 or newer
color: Color? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:69:28: note: add @available attribute to enclosing static method
public static func image(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: note: add @available attribute to enclosing struct
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:95:20: error: 'Color' is only available in macOS 10.15 or newer
color: Color? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:93:28: note: add @available attribute to enclosing static method
public static func image(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: note: add @available attribute to enclosing struct
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:15:22: warning: stored property 'decoration' of 'Sendable'-conforming struct 'Decoration' has non-sendable type '<<error type>>'
internal let decoration: UICalendarView.Decoration
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: error: type 'CalendarView.Decoration' does not conform to protocol 'Hashable'
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:15:22: note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'CalendarView.Decoration' to 'Hashable'
internal let decoration: UICalendarView.Decoration
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:14:19: error: type 'CalendarView.Decoration' does not conform to protocol 'Equatable'
public struct Decoration: Sendable, Hashable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:15:22: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'CalendarView.Decoration' to 'Equatable'
internal let decoration: UICalendarView.Decoration
^
Swift.==:1:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'CalendarView.Decoration' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'CalendarView.Decoration' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'CalendarView.Decoration' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'CalendarView.Decoration' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
CoreFoundation._CFObject:4:24: note: candidate would match if 'CalendarView.Decoration' conformed to '_CFObject'
public static func == (left: Self, right: Self) -> Bool
^
Foundation.AttributedStringProtocol:3:24: note: candidate would match if 'CalendarView.Decoration' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
Foundation._BridgedStoredNSError:4:24: note: candidate would match if 'CalendarView.Decoration' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(CalendarView.Decoration, CalendarView.Decoration) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:19:32: error: cannot infer contextual base in reference to member 'init'
self.decoration = .init()
~^~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:37:40: error: cannot find 'UIColor' in scope
color: color.map { UIColor($0) },
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:36:18: error: argument passed to call that takes no arguments
.default(
~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:36:18: error: cannot infer contextual base in reference to member 'default'
.default(
~^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:51:28: error: cannot find 'UIHostingController' in scope
let view = UIHostingController(rootView: customViewProvider()).view!
^~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:50:20: error: argument passed to call that takes no arguments
.init(.customView {
~~^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:50:20: error: cannot infer contextual base in reference to member 'customView'
.init(.customView {
~^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:77:40: error: cannot find 'UIColor' in scope
color: color.map { UIColor($0) },
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:75:18: error: argument passed to call that takes no arguments
.image(
~~~~~~~~~~~~~~~~~^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:75:18: error: cannot infer contextual base in reference to member 'image'
.image(
~^~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:101:40: error: cannot find 'UIColor' in scope
color: color.map { UIColor($0) },
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:99:18: error: argument passed to call that takes no arguments
.image(
~~~~~~~~~~~~~~~~~^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:99:18: error: cannot infer contextual base in reference to member 'image'
.image(
~^~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:100:22: error: cannot infer contextual base in reference to member 'init'
.init(systemName: systemName),
~^~~~
[8/10] Compiling CalendarView CalendarView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:17:39: error: 'Binding' is only available in macOS 10.15 or newer
public let visibleDateComponents: Binding<DateComponents?>
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:24:6: error: 'Binding' is only available in macOS 10.15 or newer
@Binding
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:34:22: error: 'Binding' is only available in macOS 10.15 or newer
_ selection: Binding<[DateComponents]>,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:33:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:35:32: error: 'Binding' is only available in macOS 10.15 or newer
visibleDateComponents: Binding<DateComponents?>? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:33:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:50:22: error: 'Binding' is only available in macOS 10.15 or newer
_ selection: Binding<Set<DateComponents>>,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:49:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:51:32: error: 'Binding' is only available in macOS 10.15 or newer
visibleDateComponents: Binding<DateComponents?>? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:49:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:71:22: error: 'Binding' is only available in macOS 10.15 or newer
_ selection: Binding<DateComponents?>? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:70:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:72:32: error: 'Binding' is only available in macOS 10.15 or newer
visibleDateComponents: Binding<DateComponents?>? = nil,
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:70:12: note: add @available attribute to enclosing initializer
public init(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:90:49: error: cannot find type 'UICalendarView' in scope
public func makeUIView(context: Context) -> UICalendarView {
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:90:37: error: cannot find type 'Context' in scope
public func makeUIView(context: Context) -> UICalendarView {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:118:40: error: cannot find type 'UICalendarView' in scope
public func updateUIView(_ uiView: UICalendarView, context: Context) {
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:118:65: error: cannot find type 'Context' in scope
public func updateUIView(_ uiView: UICalendarView, context: Context) {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:181:29: error: cannot find type 'UIFontDescriptor' in scope
private var fontDesign: UIFontDescriptor.SystemDesign = .default
^~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:186:38: error: 'Font' is only available in macOS 10.15 or newer
public func fontDesign(_ design: Font.Design) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:186:17: note: add @available attribute to enclosing instance method
public func fontDesign(_ design: Font.Design) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:117: error: 'View' is only available in macOS 10.15 or newer
public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:17: note: add @available attribute to enclosing instance method
public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:30: error: 'ViewBuilder' is only available in macOS 10.15 or newer
public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:17: note: add @available attribute to enclosing instance method
public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:117: error: 'View' is only available in macOS 10.15 or newer
public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:212:17: note: add @available attribute to enclosing instance method
public func decorations(@ViewBuilder _ customViewProvider: @escaping (_ dateComponents: DateComponents) -> some View) -> CalendarView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:29: error: cannot find type 'UIViewRepresentable' in scope
public struct CalendarView: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:91:20: error: cannot find 'UICalendarView' in scope
let view = UICalendarView(frame: .zero)
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:91:43: error: cannot infer contextual base in reference to member 'zero'
let view = UICalendarView(frame: .zero)
~^~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:96:42: error: cannot find 'UICalendarSelectionSingleDate' in scope
view.selectionBehavior = UICalendarSelectionSingleDate(delegate: context.coordinator)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:98:42: error: cannot find 'UICalendarSelectionMultiDate' in scope
view.selectionBehavior = UICalendarSelectionMultiDate(delegate: context.coordinator)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:100:42: error: 'nil' requires a contextual type
view.selectionBehavior = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:103:38: error: 'nil' requires a contextual type
view.selectionBehavior = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:144:50: error: cannot find type 'UICalendarSelectionSingleDate' in scope
let singleDate = selectionObj as? UICalendarSelectionSingleDate,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:151:56: error: cannot find type 'UICalendarSelectionMultiDate' in scope
let multiDate = selectionObj as? UICalendarSelectionMultiDate,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:161:17: error: setter for 'selection' is only available in macOS 10.15 or newer
self.selection = filtered
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:161:17: note: add 'if #available' version check
self.selection = filtered
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:118:17: note: add @available attribute to enclosing instance method
public func updateUIView(_ uiView: UICalendarView, context: Context) {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:11:15: note: add @available attribute to enclosing struct
public struct CalendarView: UIViewRepresentable {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:189:13: error: cannot assign to value: 'fontDesign' is a method
new.fontDesign = switch design {
~~~~^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView.swift:190:25: error: type '(Font.Design) -> CalendarView' has no member 'default'
case .default: .default
~^~~~~~~
[9/10] Compiling CalendarView CalendarView+Coordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:25:37: error: cannot find type 'UICalendarViewDelegate' in scope
extension CalendarView.Coordinator: UICalendarViewDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:35:10: error: cannot find type 'UICalendarView' in scope
) -> UICalendarView.Decoration? {
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:33:25: error: cannot find type 'UICalendarView' in scope
_ calendarView: UICalendarView,
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:67:25: error: cannot find type 'UICalendarView' in scope
_ calendarView: UICalendarView,
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:76:37: error: cannot find type 'UICalendarSelectionMultiDateDelegate' in scope
extension CalendarView.Coordinator: UICalendarSelectionMultiDateDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:86:22: error: cannot find type 'UICalendarSelectionMultiDate' in scope
_ selection: UICalendarSelectionMultiDate,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:99:22: error: cannot find type 'UICalendarSelectionMultiDate' in scope
_ selection: UICalendarSelectionMultiDate,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:109:37: error: cannot find type 'UICalendarSelectionSingleDateDelegate' in scope
extension CalendarView.Coordinator: UICalendarSelectionSingleDateDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:119:22: error: cannot find type 'UICalendarSelectionSingleDate' in scope
_ selection: UICalendarSelectionSingleDate,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:123:9: error: setter for 'selection' is only available in macOS 10.15 or newer
self.parent.selection = dateComponents
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:123:9: note: add 'if #available' version check
self.parent.selection = dateComponents
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:118:17: note: add @available attribute to enclosing instance method
public func dateSelection(
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Coordinator.swift:109:1: note: add @available attribute to enclosing extension
extension CalendarView.Coordinator: UICalendarSelectionSingleDateDelegate {
^
[10/10] Compiling CalendarView CalendarView+Previews.swift
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
@State
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:11:16: note: add @available attribute to enclosing struct
private struct CalendarView_Preview: View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
@State
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:11:16: note: add @available attribute to enclosing struct
private struct CalendarView_Preview: View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
@State
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:11:16: note: add @available attribute to enclosing struct
private struct CalendarView_Preview: View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
@State
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:11:16: note: add @available attribute to enclosing struct
private struct CalendarView_Preview: View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:24:20: error: 'View' is only available in macOS 10.15 or newer
var body: some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:24:9: note: add @available attribute to enclosing property
var body: some View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:11:16: note: add @available attribute to enclosing struct
private struct CalendarView_Preview: View {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:63:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
#Preview {
^
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:69:5: error: cannot find 'UICalendarView' in scope
UICalendarView(frame: .zero)
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:69:28: error: cannot infer contextual base in reference to member 'zero'
UICalendarView(frame: .zero)
~^~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:70:22: error: cannot find type 'UIImage' in scope
_ image: UIImage?,
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Decoration.swift:11:39: error: cannot find type 'UICalendarView' in scope
public typealias DecorationSize = UICalendarView.DecorationSize
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:47:49: error: cannot infer contextual base in reference to member 'orange'
.image("star.fill", color: .orange)
~^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CalendarView/CalendarView+Previews.swift:49:18: error: value of type 'CalendarView' has no member 'fixedSize'
.fixedSize()
^~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 macosSpm