Build Information
Failed to build DateGrid, reference main (2b0665
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 22:06:31 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yodagamaheshan/DateGrid.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/yodagamaheshan/DateGrid
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2b0665b code formatted
Cloned https://github.com/yodagamaheshan/DateGrid.git
Revision (git rev-parse @):
2b0665b6bb5b1408b74d0d9acc406f300483cf7c
SUCCESS checkout https://github.com/yodagamaheshan/DateGrid.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "dategrid",
"name": "DateGrid",
"url": "https://github.com/yodagamaheshan/DateGrid.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DateGrid",
"dependencies": [
]
}
]
}
Fetching https://github.com/yodagamaheshan/DateGrid.git
[1/261] Fetching dategrid
Fetched https://github.com/yodagamaheshan/DateGrid.git from cache (0.89s)
Creating working copy for https://github.com/yodagamaheshan/DateGrid.git
Working copy of https://github.com/yodagamaheshan/DateGrid.git resolved at main (2b0665b)
warning: '.resolve-product-dependencies': dependency 'dategrid' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/yodagamaheshan/DateGrid.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling DateGrid CalenderModes.swift
[4/12] Compiling DateGrid DateGridDate.swift
[5/12] Compiling DateGrid DateFormatter+dateFormats.swift
[6/13] Compiling DateGrid Date+dateFormat.swift
[7/13] Compiling DateGrid Calendar+genarageDates.swift
[8/13] Compiling DateGrid NormalDayCell.swift
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/NormalDayCell.swift:16:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct NormalDayCell: View {
| `- note: add @available attribute to enclosing struct
11 | public init(date: Date) {
12 | self.date = date
:
14 |
15 | private var date: Date
16 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | Text(date.day)
18 | .padding(8)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/NormalDayCell.swift:26:31: error: 'View' is only available in macOS 10.15 or newer
23 | }
24 |
25 | struct NormalDayCell_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
26 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
27 | NormalDayCell(date: Date())
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/NormalDayCell.swift:17:9: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct NormalDayCell: View {
| `- note: add @available attribute to enclosing struct
11 | public init(date: Date) {
12 | self.date = date
:
14 |
15 | private var date: Date
16 | public var body: some View {
| `- note: add @available attribute to enclosing property
17 | Text(date.day)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .padding(8)
19 | .background(Color.blue)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/NormalDayCell.swift:18:14: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct NormalDayCell: View {
| `- note: add @available attribute to enclosing struct
11 | public init(date: Date) {
12 | self.date = date
:
14 |
15 | private var date: Date
16 | public var body: some View {
| `- note: add @available attribute to enclosing property
17 | Text(date.day)
18 | .padding(8)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .background(Color.blue)
20 | .cornerRadius(8)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/NormalDayCell.swift:19:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | public struct NormalDayCell: View {
| `- note: add @available attribute to enclosing struct
11 | public init(date: Date) {
12 | self.date = date
:
14 |
15 | private var date: Date
16 | public var body: some View {
| `- note: add @available attribute to enclosing property
17 | Text(date.day)
18 | .padding(8)
19 | .background(Color.blue)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
20 | .cornerRadius(8)
21 | .padding([.bottom], 10)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/NormalDayCell.swift:19:25: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct NormalDayCell: View {
| `- note: add @available attribute to enclosing struct
11 | public init(date: Date) {
12 | self.date = date
:
14 |
15 | private var date: Date
16 | public var body: some View {
| `- note: add @available attribute to enclosing property
17 | Text(date.day)
18 | .padding(8)
19 | .background(Color.blue)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .cornerRadius(8)
21 | .padding([.bottom], 10)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/NormalDayCell.swift:19:31: error: 'blue' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct NormalDayCell: View {
| `- note: add @available attribute to enclosing struct
11 | public init(date: Date) {
12 | self.date = date
:
14 |
15 | private var date: Date
16 | public var body: some View {
| `- note: add @available attribute to enclosing property
17 | Text(date.day)
18 | .padding(8)
19 | .background(Color.blue)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .cornerRadius(8)
21 | .padding([.bottom], 10)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/NormalDayCell.swift:20:14: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct NormalDayCell: View {
| `- note: add @available attribute to enclosing struct
11 | public init(date: Date) {
12 | self.date = date
:
14 |
15 | private var date: Date
16 | public var body: some View {
| `- note: add @available attribute to enclosing property
17 | Text(date.day)
18 | .padding(8)
19 | .background(Color.blue)
20 | .cornerRadius(8)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | .padding([.bottom], 10)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/NormalDayCell.swift:21:14: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct NormalDayCell: View {
| `- note: add @available attribute to enclosing struct
11 | public init(date: Date) {
12 | self.date = date
:
14 |
15 | private var date: Date
16 | public var body: some View {
| `- note: add @available attribute to enclosing property
17 | Text(date.day)
18 | .padding(8)
19 | .background(Color.blue)
20 | .cornerRadius(8)
21 | .padding([.bottom], 10)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | }
23 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/13] Compiling DateGrid DateCell1.swift
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:16:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
14 | }
15 |
16 | @State private var isShown = false
| `- error: 'State' is only available in macOS 10.15 or newer
17 | private let date: Date
18 |
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:19:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:42:31: error: 'View' is only available in macOS 10.15 or newer
39 | }
40 |
41 | struct DateCell1_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
42 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
43 | DateCell1(date: Date())
44 | .background(Color.red)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:20:9: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
18 |
19 | public var body: some View {
20 | Group {
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
21 | if isShown {
22 | Text(date.day)
SwiftUICore.ViewBuilder:5:24: note: 'buildExpression' has been explicitly marked unavailable here
3 | public static func buildExpression<Content>(_ content: Content) -> Content where Content : View
4 | @available(*, unavailable, message: "this expression does not conform to 'View'")
5 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
6 |
7 | public static func buildBlock() -> EmptyView
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:20:9: error: 'Group' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | if isShown {
22 | Text(date.day)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:20:9: error: 'init(content:)' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
| |- error: 'init(content:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
21 | if isShown {
22 | Text(date.day)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:22:17: error: 'buildExpression' is unavailable: this expression does not conform to 'ToolbarContent' or 'CustomizableToolbarContent'
20 | Group {
21 | if isShown {
22 | Text(date.day)
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'ToolbarContent' or 'CustomizableToolbarContent'
23 | .padding(8)
24 | .background(Color.purple)
SwiftUI.ToolbarContentBuilder:10:24: note: 'buildExpression' has been explicitly marked unavailable here
8 |
9 | @available(*, unavailable, message: "this expression does not conform to 'ToolbarContent' or 'CustomizableToolbarContent'")
10 | public static func buildExpression(_ invalid: Any) -> some CustomizableToolbarContent
| `- note: 'buildExpression' has been explicitly marked unavailable here
11 |
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:22:17: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
22 | Text(date.day)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .padding(8)
24 | .background(Color.purple)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:23:22: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
22 | Text(date.day)
23 | .padding(8)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .background(Color.purple)
25 | .cornerRadius(20)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:24:22: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
22 | Text(date.day)
23 | .padding(8)
24 | .background(Color.purple)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
25 | .cornerRadius(20)
26 | .padding(.bottom, 10)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:24:33: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
22 | Text(date.day)
23 | .padding(8)
24 | .background(Color.purple)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .cornerRadius(20)
26 | .padding(.bottom, 10)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:24:39: error: 'purple' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
22 | Text(date.day)
23 | .padding(8)
24 | .background(Color.purple)
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .cornerRadius(20)
26 | .padding(.bottom, 10)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:25:22: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
23 | .padding(8)
24 | .background(Color.purple)
25 | .cornerRadius(20)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | .padding(.bottom, 10)
27 | .transition(AnyTransition.scale.animation(Animation.spring().delay(Double(date.day)!/30)))
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:26:22: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
24 | .background(Color.purple)
25 | .cornerRadius(20)
26 | .padding(.bottom, 10)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .transition(AnyTransition.scale.animation(Animation.spring().delay(Double(date.day)!/30)))
28 |
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:27:22: error: 'transition' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
25 | .cornerRadius(20)
26 | .padding(.bottom, 10)
27 | .transition(AnyTransition.scale.animation(Animation.spring().delay(Double(date.day)!/30)))
| |- error: 'transition' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 |
29 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:27:33: error: 'AnyTransition' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
25 | .cornerRadius(20)
26 | .padding(.bottom, 10)
27 | .transition(AnyTransition.scale.animation(Animation.spring().delay(Double(date.day)!/30)))
| |- error: 'AnyTransition' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 |
29 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:27:47: error: 'scale' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
25 | .cornerRadius(20)
26 | .padding(.bottom, 10)
27 | .transition(AnyTransition.scale.animation(Animation.spring().delay(Double(date.day)!/30)))
| |- error: 'scale' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 |
29 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:27:53: error: 'animation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
25 | .cornerRadius(20)
26 | .padding(.bottom, 10)
27 | .transition(AnyTransition.scale.animation(Animation.spring().delay(Double(date.day)!/30)))
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 |
29 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:27:63: error: 'Animation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
25 | .cornerRadius(20)
26 | .padding(.bottom, 10)
27 | .transition(AnyTransition.scale.animation(Animation.spring().delay(Double(date.day)!/30)))
| |- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 |
29 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:27:73: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
25 | .cornerRadius(20)
26 | .padding(.bottom, 10)
27 | .transition(AnyTransition.scale.animation(Animation.spring().delay(Double(date.day)!/30)))
| |- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 |
29 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:27:82: error: 'delay' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
25 | .cornerRadius(20)
26 | .padding(.bottom, 10)
27 | .transition(AnyTransition.scale.animation(Animation.spring().delay(Double(date.day)!/30)))
| |- error: 'delay' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 |
29 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:21:24: error: 'buildEither(first:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
| |- error: 'buildEither(first:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
22 | Text(date.day)
23 | .padding(8)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:30:17: error: 'buildExpression' is unavailable: this expression does not conform to 'ToolbarContent' or 'CustomizableToolbarContent'
28 |
29 | } else {
30 | Text("")
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'ToolbarContent' or 'CustomizableToolbarContent'
31 | .onAppear(perform: {
32 | withAnimation {
SwiftUI.ToolbarContentBuilder:10:24: note: 'buildExpression' has been explicitly marked unavailable here
8 |
9 | @available(*, unavailable, message: "this expression does not conform to 'ToolbarContent' or 'CustomizableToolbarContent'")
10 | public static func buildExpression(_ invalid: Any) -> some CustomizableToolbarContent
| `- note: 'buildExpression' has been explicitly marked unavailable here
11 |
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:30:17: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
28 |
29 | } else {
30 | Text("")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .onAppear(perform: {
32 | withAnimation {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:31:22: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
29 | } else {
30 | Text("")
31 | .onAppear(perform: {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | withAnimation {
33 | isShown = true
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:32:25: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
30 | Text("")
31 | .onAppear(perform: {
32 | withAnimation {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | isShown = true
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:33:29: error: setter for 'isShown' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
31 | .onAppear(perform: {
32 | withAnimation {
33 | isShown = true
| |- error: setter for 'isShown' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | })
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:29:20: error: 'buildEither(second:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
:
27 | .transition(AnyTransition.scale.animation(Animation.spring().delay(Double(date.day)!/30)))
28 |
29 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
30 | Text("")
31 | .onAppear(perform: {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:20:15: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'CustomizableToolbarContent' is only available in macOS 13.0 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | Group {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'CustomizableToolbarContent' is only available in macOS 13.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
21 | if isShown {
22 | Text(date.day)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:44:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
39 | }
40 |
41 | struct DateCell1_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
42 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
43 | DateCell1(date: Date())
44 | .background(Color.red)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:44:25: error: 'Color' is only available in macOS 10.15 or newer
39 | }
40 |
41 | struct DateCell1_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
42 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
43 | DateCell1(date: Date())
44 | .background(Color.red)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:44:31: error: 'red' is only available in macOS 10.15 or newer
39 | }
40 |
41 | struct DateCell1_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
42 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
43 | DateCell1(date: Date())
44 | .background(Color.red)
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
[10/13] Emitting module DateGrid
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:16:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
14 | }
15 |
16 | @State private var isShown = false
| `- error: 'State' is only available in macOS 10.15 or newer
17 | private let date: Date
18 |
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:19:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateCell1: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init(date: Date) {
:
17 | private let date: Date
18 |
19 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
20 | Group {
21 | if isShown {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/DateCell1.swift:42:31: error: 'View' is only available in macOS 10.15 or newer
39 | }
40 |
41 | struct DateCell1_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
42 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
43 | DateCell1(date: Date())
44 | .background(Color.red)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/NormalDayCell.swift:16:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct NormalDayCell: View {
| `- note: add @available attribute to enclosing struct
11 | public init(date: Date) {
12 | self.date = date
:
14 |
15 | private var date: Date
16 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | Text(date.day)
18 | .padding(8)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/Cell/NormalDayCell.swift:26:31: error: 'View' is only available in macOS 10.15 or newer
23 | }
24 |
25 | struct NormalDayCell_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
26 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
27 | NormalDayCell(date: Date())
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:19:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
:
15 | /// - selectedMonth: date relevant to showing month, then you can extract the components
16 | /// - content:
17 | public init(
| `- note: add @available attribute to enclosing initializer
18 | interval: DateInterval,
19 | selectedMonth: Binding<Date>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
20 | mode: CalendarMode,
21 | @ViewBuilder content: @escaping (DateGridDate) -> DateView
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:21:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
:
15 | /// - selectedMonth: date relevant to showing month, then you can extract the components
16 | /// - content:
17 | public init(
| `- note: add @available attribute to enclosing initializer
18 | interval: DateInterval,
19 | selectedMonth: Binding<Date>,
20 | mode: CalendarMode,
21 | @ViewBuilder content: @escaping (DateGridDate) -> DateView
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
22 | ) {
23 | self.viewModel = .init(interval: interval, mode: mode)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:31:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
:
29 | private let viewModel: DateGridViewModel
30 | private let content: (DateGridDate) -> DateView
31 | @Binding var selectedMonth: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
32 |
33 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:33:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
:
31 | @Binding var selectedMonth: Date
32 |
33 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
34 |
35 | TabView(selection: $selectedMonth) {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:10:56: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:48:6: error: 'State' is only available in macOS 10.15 or newer
44 | }
45 |
46 | struct CalendarView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 |
48 | @State static var selectedMonthDate = Date()
| `- error: 'State' is only available in macOS 10.15 or newer
49 |
50 | static var previews: some View {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:50:31: error: 'View' is only available in macOS 10.15 or newer
44 | }
45 |
46 | struct CalendarView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 |
48 | @State static var selectedMonthDate = Date()
49 |
50 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
51 | VStack {
52 | Text(selectedMonthDate.description)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:76:20: error: 'View' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:72:54: error: 'View' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGridViewModel.swift:17:20: error: 'calendar' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class DateGridViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
11 | //FIXME: change var names "mode"
12 | init(interval: DateInterval, mode: CalendarMode) {
:
15 | }
16 |
17 | @Environment(\.calendar) var calendar
| `- error: 'calendar' is only available in macOS 10.15 or newer
18 | let interval: DateInterval
19 | var mode: CalendarMode
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGridViewModel.swift:17:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class DateGridViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
11 | //FIXME: change var names "mode"
12 | init(interval: DateInterval, mode: CalendarMode) {
:
15 | }
16 |
17 | @Environment(\.calendar) var calendar
| `- error: 'Environment' is only available in macOS 10.15 or newer
18 | let interval: DateInterval
19 | var mode: CalendarMode
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGridViewModel.swift:10:26: error: 'ObservableObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class DateGridViewModel: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
11 | //FIXME: change var names "mode"
12 | init(interval: DateInterval, mode: CalendarMode) {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:14:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:28:31: error: 'View' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct WeekDaySymbols_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
28 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
29 | WeekDaySymbols()
30 | }
[11/13] Compiling DateGrid DateGrid.swift
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:19:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
:
15 | /// - selectedMonth: date relevant to showing month, then you can extract the components
16 | /// - content:
17 | public init(
| `- note: add @available attribute to enclosing initializer
18 | interval: DateInterval,
19 | selectedMonth: Binding<Date>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
20 | mode: CalendarMode,
21 | @ViewBuilder content: @escaping (DateGridDate) -> DateView
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:21:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
:
15 | /// - selectedMonth: date relevant to showing month, then you can extract the components
16 | /// - content:
17 | public init(
| `- note: add @available attribute to enclosing initializer
18 | interval: DateInterval,
19 | selectedMonth: Binding<Date>,
20 | mode: CalendarMode,
21 | @ViewBuilder content: @escaping (DateGridDate) -> DateView
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
22 | ) {
23 | self.viewModel = .init(interval: interval, mode: mode)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:31:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
:
29 | private let viewModel: DateGridViewModel
30 | private let content: (DateGridDate) -> DateView
31 | @Binding var selectedMonth: Date
| `- error: 'Binding' is only available in macOS 10.15 or newer
32 |
33 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:33:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
:
31 | @Binding var selectedMonth: Date
32 |
33 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
34 |
35 | TabView(selection: $selectedMonth) {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:10:56: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:48:6: error: 'State' is only available in macOS 10.15 or newer
44 | }
45 |
46 | struct CalendarView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 |
48 | @State static var selectedMonthDate = Date()
| `- error: 'State' is only available in macOS 10.15 or newer
49 |
50 | static var previews: some View {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:50:31: error: 'View' is only available in macOS 10.15 or newer
44 | }
45 |
46 | struct CalendarView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 |
48 | @State static var selectedMonthDate = Date()
49 |
50 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
51 | VStack {
52 | Text(selectedMonthDate.description)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:76:20: error: 'View' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:72:54: error: 'View' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:35:9: error: 'TabView' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
:
31 | @Binding var selectedMonth: Date
32 |
33 | public var body: some View {
| `- note: add @available attribute to enclosing property
34 |
35 | TabView(selection: $selectedMonth) {
| |- error: 'TabView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 |
37 | MonthsOrWeeks(viewModel: viewModel, content: content)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:39:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
:
31 | @Binding var selectedMonth: Date
32 |
33 | public var body: some View {
| `- note: add @available attribute to enclosing property
34 |
35 | TabView(selection: $selectedMonth) {
:
37 | MonthsOrWeeks(viewModel: viewModel, content: content)
38 | }
39 | .frame(height: viewModel.mode.estimateHeight, alignment: .center)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | .tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:39:67: error: 'center' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
:
31 | @Binding var selectedMonth: Date
32 |
33 | public var body: some View {
| `- note: add @available attribute to enclosing property
34 |
35 | TabView(selection: $selectedMonth) {
:
37 | MonthsOrWeeks(viewModel: viewModel, content: content)
38 | }
39 | .frame(height: viewModel.mode.estimateHeight, alignment: .center)
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | .tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:40:10: error: 'tabViewStyle' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | public struct DateGrid<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | /// DateStack view
:
31 | @Binding var selectedMonth: Date
32 |
33 | public var body: some View {
| `- note: add @available attribute to enclosing property
34 |
35 | TabView(selection: $selectedMonth) {
:
38 | }
39 | .frame(height: viewModel.mode.estimateHeight, alignment: .center)
40 | .tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
| |- error: 'tabViewStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
41 | }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:40:23: error: 'PageTabViewStyle' is unavailable in macOS
38 | }
39 | .frame(height: viewModel.mode.estimateHeight, alignment: .center)
40 | .tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
| `- error: 'PageTabViewStyle' is unavailable in macOS
41 | }
42 |
SwiftUI.PageTabViewStyle:3:15: note: 'PageTabViewStyle' has been explicitly marked unavailable here
1 | @available(iOS 14.0, tvOS 14.0, watchOS 7.0, *)
2 | @available(macOS, unavailable)
3 | public struct PageTabViewStyle : TabViewStyle {
| `- note: 'PageTabViewStyle' has been explicitly marked unavailable here
4 | public struct IndexDisplayMode : Sendable {
5 | public static let automatic: PageTabViewStyle.IndexDisplayMode
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:51:9: error: 'VStack' is only available in macOS 10.15 or newer
44 | }
45 |
46 | struct CalendarView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 |
48 | @State static var selectedMonthDate = Date()
49 |
50 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
51 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | Text(selectedMonthDate.description)
53 | WeekDaySymbols()
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:52:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
44 | }
45 |
46 | struct CalendarView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 |
48 | @State static var selectedMonthDate = Date()
49 |
50 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
51 | VStack {
52 | Text(selectedMonthDate.description)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
53 | WeekDaySymbols()
54 |
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:52:13: error: 'Text' is only available in macOS 10.15 or newer
44 | }
45 |
46 | struct CalendarView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 |
48 | @State static var selectedMonthDate = Date()
49 |
50 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
51 | VStack {
52 | Text(selectedMonthDate.description)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | WeekDaySymbols()
54 |
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:51:16: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
44 | }
45 |
46 | struct CalendarView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
47 |
48 | @State static var selectedMonthDate = Date()
49 |
50 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
51 | VStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
52 | Text(selectedMonthDate.description)
53 | WeekDaySymbols()
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGridViewModel.swift:17:20: error: 'calendar' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class DateGridViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
11 | //FIXME: change var names "mode"
12 | init(interval: DateInterval, mode: CalendarMode) {
:
15 | }
16 |
17 | @Environment(\.calendar) var calendar
| `- error: 'calendar' is only available in macOS 10.15 or newer
18 | let interval: DateInterval
19 | var mode: CalendarMode
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:77:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
78 |
79 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:77:9: error: 'ForEach' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 |
79 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:77:9: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 |
79 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:79:13: error: 'VStack' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
79 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 |
81 | LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: numberOfDaysInAWeek), spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:81:17: error: 'LazyVGrid' is only available in macOS 11.0 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
79 | VStack {
80 |
81 | LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: numberOfDaysInAWeek), spacing: 0) {
| |- error: 'LazyVGrid' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
82 |
83 | ForEach(viewModel.days(for: monthOrWeek), id: \.self) { date in
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:81:53: error: 'GridItem' is only available in macOS 11.0 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
79 | VStack {
80 |
81 | LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: numberOfDaysInAWeek), spacing: 0) {
| |- error: 'GridItem' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
82 |
83 | ForEach(viewModel.days(for: monthOrWeek), id: \.self) { date in
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:83:21: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
81 | LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: numberOfDaysInAWeek), spacing: 0) {
82 |
83 | ForEach(viewModel.days(for: monthOrWeek), id: \.self) { date in
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
84 |
85 | let dateGridDate = DateGridDate(date: date, currentMonth: monthOrWeek)
SwiftUICore.ViewBuilder:5:24: note: 'buildExpression' has been explicitly marked unavailable here
3 | public static func buildExpression<Content>(_ content: Content) -> Content where Content : View
4 | @available(*, unavailable, message: "this expression does not conform to 'View'")
5 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
6 |
7 | public static func buildBlock() -> EmptyView
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:83:21: error: 'ForEach' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
:
81 | LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: numberOfDaysInAWeek), spacing: 0) {
82 |
83 | ForEach(viewModel.days(for: monthOrWeek), id: \.self) { date in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 |
85 | let dateGridDate = DateGridDate(date: date, currentMonth: monthOrWeek)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:83:21: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
:
81 | LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: numberOfDaysInAWeek), spacing: 0) {
82 |
83 | ForEach(viewModel.days(for: monthOrWeek), id: \.self) { date in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 |
85 | let dateGridDate = DateGridDate(date: date, currentMonth: monthOrWeek)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:88:34: error: 'id' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
:
86 | if viewModel.calendar.isDate(date, equalTo: monthOrWeek, toGranularity: .month) {
87 | content(dateGridDate)
88 | .id(date)
| |- error: 'id' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 |
90 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:86:105: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
:
84 |
85 | let dateGridDate = DateGridDate(date: date, currentMonth: monthOrWeek)
86 | if viewModel.calendar.isDate(date, equalTo: monthOrWeek, toGranularity: .month) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | content(dateGridDate)
88 | .id(date)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:92:34: error: 'hidden()' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
:
90 | } else {
91 | content(dateGridDate)
92 | .hidden()
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:90:32: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
:
88 | .id(date)
89 |
90 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | content(dateGridDate)
92 | .hidden()
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:83:75: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
:
81 | LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: numberOfDaysInAWeek), spacing: 0) {
82 |
83 | ForEach(viewModel.days(for: monthOrWeek), id: \.self) { date in
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
84 |
85 | let dateGridDate = DateGridDate(date: date, currentMonth: monthOrWeek)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:96:18: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
:
94 | }
95 | }
96 | .tag(monthOrWeek)
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | //Tab view frame alignment to .Top didn't work dtz y
98 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:98:17: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
:
96 | .tag(monthOrWeek)
97 | //Tab view frame alignment to .Top didn't work dtz y
98 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:98:17: error: 'Spacer' is only available in macOS 10.15 or newer
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
:
96 | .tag(monthOrWeek)
97 | //Tab view frame alignment to .Top didn't work dtz y
98 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:79:20: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
79 | VStack {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
80 |
81 | LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: numberOfDaysInAWeek), spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGrid.swift:76:25: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
70 | }
71 |
72 | struct MonthsOrWeeks<DateView>: View where DateView: View {
| `- note: add @available attribute to enclosing generic struct
73 | let viewModel: DateGridViewModel
74 | let content: (DateGridDate) -> DateView
75 |
76 | var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
77 | ForEach(viewModel.monthsOrWeeks, id: \.self) { monthOrWeek in
78 |
[12/13] Compiling DateGrid DateGridViewModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGridViewModel.swift:17:20: error: 'calendar' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class DateGridViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
11 | //FIXME: change var names "mode"
12 | init(interval: DateInterval, mode: CalendarMode) {
:
15 | }
16 |
17 | @Environment(\.calendar) var calendar
| `- error: 'calendar' is only available in macOS 10.15 or newer
18 | let interval: DateInterval
19 | var mode: CalendarMode
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGridViewModel.swift:17:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class DateGridViewModel: ObservableObject {
| `- note: add @available attribute to enclosing class
11 | //FIXME: change var names "mode"
12 | init(interval: DateInterval, mode: CalendarMode) {
:
15 | }
16 |
17 | @Environment(\.calendar) var calendar
| `- error: 'Environment' is only available in macOS 10.15 or newer
18 | let interval: DateInterval
19 | var mode: CalendarMode
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/DateGridViewModel.swift:10:26: error: 'ObservableObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class DateGridViewModel: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
11 | //FIXME: change var names "mode"
12 | init(interval: DateInterval, mode: CalendarMode) {
[13/13] Compiling DateGrid WeekDaySymbols.swift
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:14:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:28:31: error: 'View' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct WeekDaySymbols_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
28 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
29 | WeekDaySymbols()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:15:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
17 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:15:9: error: 'HStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
17 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:15:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
17 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:16:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | Spacer()
18 | Text(item)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:16:13: error: 'ForEach' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | Spacer()
18 | Text(item)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:16:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | Spacer()
18 | Text(item)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:17:17: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
17 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
18 | Text(item)
19 | .bold()
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:17:17: error: 'Spacer' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
17 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | Text(item)
19 | .bold()
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:18:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
17 | Spacer()
18 | Text(item)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
19 | .bold()
20 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:18:17: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
17 | Spacer()
18 | Text(item)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .bold()
20 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:19:22: error: 'bold()' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
17 | Spacer()
18 | Text(item)
19 | .bold()
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Spacer()
21 |
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:20:17: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
:
18 | Text(item)
19 | .bold()
20 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
21 |
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:20:17: error: 'Spacer' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
:
18 | Text(item)
19 | .bold()
20 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 |
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:16:75: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | Spacer()
18 | Text(item)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:16:75: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | Spacer()
18 | Text(item)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:16:75: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
17 | Spacer()
18 | Text(item)
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:15:16: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| `- note: add @available attribute to enclosing property
15 | HStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
17 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:14:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
/Users/admin/builder/spi-builder-workspace/Sources/DateGrid/WeekDaySymbols/WeekDaySymbols.swift:14:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct WeekDaySymbols: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public init() {}
13 |
14 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
15 | HStack {
16 | ForEach(Calendar.current.veryShortWeekdaySymbols, id: \.self) { item in
BUILD FAILURE 6.0 macosSpm