Build Information
Failed to build NavigationKit, reference v0.1.0 (9734df), with Swift 6.2 for macOS (SPM) on 30 Dec 2025 17:03:31 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/m1guelpf/navigationkit.git
Reference: v0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/m1guelpf/navigationkit
* tag v0.1.0 -> FETCH_HEAD
HEAD is now at 9734df6 init
Cloned https://github.com/m1guelpf/navigationkit.git
Revision (git rev-parse @):
9734df6b9b1c7f28527c003f7186aada0d248400
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/m1guelpf/navigationkit.git at v0.1.0
========================================
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": "navigationkit",
"name": "NavigationKit",
"url": "https://github.com/m1guelpf/navigationkit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/navigationkit",
"dependencies": [
]
}
]
}
Fetching https://github.com/m1guelpf/navigationkit.git
[1/20] Fetching navigationkit
Fetched https://github.com/m1guelpf/navigationkit.git from cache (0.53s)
Creating working copy for https://github.com/m1guelpf/navigationkit.git
Working copy of https://github.com/m1guelpf/navigationkit.git resolved at v0.1.0 (9734df6)
warning: '.resolve-product-dependencies': dependency 'navigationkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/m1guelpf/navigationkit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-49B95AFC49DCD68C.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/13] Compiling NavigationKit TabRepresentable.swift
[4/13] Compiling NavigationKit NavigationDestination.swift
[5/13] Emitting module NavigationKit
/Users/admin/builder/spi-builder-workspace/src/Router.swift:6:13: error: 'Observable()' is only available in macOS 14.0 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
7 | public final class Router<D: NavigationDestination> {
8 | /// A unique identifier for the router instance.
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:11:3: error: 'init(_:)' is only available in macOS 14.0 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
9 |
10 | @ViewBuilder var content: () -> Content
11 | @Environment(Router<D>.self) private var router
| `- error: 'init(_:)' is only available in macOS 14.0 or newer
12 |
13 | /// Creates a new `NavigationButton`.
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:10:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
9 |
10 | @ViewBuilder var content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @Environment(Router<D>.self) private var router
12 |
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:11:3: error: 'Environment' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
9 |
10 | @ViewBuilder var content: () -> Content
11 | @Environment(Router<D>.self) private var router
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 |
13 | /// Creates a new `NavigationButton`.
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:16:43: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
14 | /// - Parameter destination: The destination to navigate to when the button is tapped.
15 | /// - Parameter content: A closure that produces the button's content.
16 | public init(destination: D.Kind? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
17 | self.content = content
18 | self.destination = destination
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:24:49: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
22 | /// - Parameter push: The page destination to navigate to when the button is tapped.
23 | /// - Parameter content: A closure that produces the button's content.
24 | public init(push destination: D.Pages? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
25 | self.content = content
26 | self.destination = destination.map { .push($0) }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:32:51: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
30 | /// - Parameters alert: The alert to present when the button is tapped.
31 | /// - Parameter content: A closure that produces the button's content.
32 | public init(alert destination: D.Alerts? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
33 | self.content = content
34 | self.destination = destination.map { .alert($0) }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:40:51: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
38 | /// - Parameter sheet: The sheet destination to present when the button is tapped.
39 | /// - Parameter content: A closure that produces the button's content.
40 | public init(sheet destination: D.Sheets? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
41 | self.content = content
42 | self.destination = destination.map { .sheet($0) }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:48:60: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
46 | /// - Parameter fullScreen: The full-screen destination to present when the button is tapped.
47 | /// - Parameter content: A closure that produces the button's content.
48 | public init(fullScreen destination: D.FullScreen? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
49 | self.content = content
50 | self.destination = destination.map { .fullScreen($0) }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:53:24: error: 'View' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
51 | }
52 |
53 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
54 | Button(action: navigate) {
55 | content()
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:6:41: error: 'View' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:8:3: error: 'State' is only available in macOS 10.15 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
| `- error: 'State' is only available in macOS 10.15 or newer
9 |
10 | /// The content view displayed within the navigation container
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:11:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
9 |
10 | /// The content view displayed within the navigation container
11 | @ViewBuilder var content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
12 |
13 | /// Initializes a new `NavigationContainer` with a parent router and optional tab
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:17:60: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
:
15 | /// - Parameter tab: An optional tab identifier for the child router
16 | /// - Parameter content: A closure that produces the content view
17 | public init(parentRouter: Router<D>, tab: D.Tabs? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.content = content
19 | _router = .init(initialValue: parentRouter.childRouter(for: tab))
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:22:24: error: 'View' is only available in macOS 10.15 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
:
20 | }
21 |
22 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
23 | InnerContainer(router: router) {
24 | content()
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:6:44: error: 'View' is only available in macOS 10.15 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:34:3: error: 'init(wrappedValue:)' is only available in macOS 14.0 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
| `- error: 'init(wrappedValue:)' is only available in macOS 14.0 or newer
35 | @ViewBuilder var content: () -> Content
36 |
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:34:3: error: 'Bindable' is only available in macOS 14.0 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
| `- error: 'Bindable' is only available in macOS 14.0 or newer
35 | @ViewBuilder var content: () -> Content
36 |
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:35:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
36 |
37 | var body: some View {
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:37:17: error: 'View' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
39 | content()
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:65:94: error: 'View' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
:
63 | }
64 |
65 | @ViewBuilder func navigationView(for destination: D.Sheets, from router: Router<D>) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
66 | NavigationContainer(parentRouter: router) {
67 | destination.view
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:65:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
:
63 | }
64 |
65 | @ViewBuilder func navigationView(for destination: D.Sheets, from router: Router<D>) -> some View {
| | `- note: add '@available' attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
66 | NavigationContainer(parentRouter: router) {
67 | destination.view
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:33:40: error: 'View' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
/Users/admin/builder/spi-builder-workspace/src/Protocols/Alert.swift:7:26: error: 'View' is only available in macOS 10.15 or newer
4 | ///
5 | /// This protocol defines the structure of an alert, including its title, optional message, and actions.
6 | @MainActor public protocol Alert {
| `- note: add '@available' attribute to enclosing protocol
7 | associatedtype Actions: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing associated type
8 |
9 | /// The title of the alert.
/Users/admin/builder/spi-builder-workspace/src/Protocols/Alert.swift:16:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// This protocol defines the structure of an alert, including its title, optional message, and actions.
6 | @MainActor public protocol Alert {
| `- note: add '@available' attribute to enclosing protocol
7 | associatedtype Actions: View
8 |
:
14 |
15 | /// The actions to be displayed in the alert.
16 | @ViewBuilder var actions: Actions { get }
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/src/Protocols/AlertRepresentable.swift:4:37: error: 'Identifiable' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's alert representation.
4 | public protocol AlertRepresentable: Identifiable, Equatable, Hashable, Sendable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
5 | /// The content of the alert.
6 | @MainActor var alert: any Alert { get }
/Users/admin/builder/spi-builder-workspace/src/Protocols/FullScreenRepresentable.swift:5:29: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's full screen cover representation.
4 | public protocol FullScreenRepresentable: Identifiable, Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype FullScreen: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing associated type
6 |
7 | /// The content of the full screen cover.
/Users/admin/builder/spi-builder-workspace/src/Protocols/FullScreenRepresentable.swift:8:14: error: 'ViewBuilder' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's full screen cover representation.
4 | public protocol FullScreenRepresentable: Identifiable, Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype FullScreen: View
6 |
7 | /// The content of the full screen cover.
8 | @MainActor @ViewBuilder var content: FullScreen { get }
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/src/Protocols/FullScreenRepresentable.swift:4:42: error: 'Identifiable' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's full screen cover representation.
4 | public protocol FullScreenRepresentable: Identifiable, Equatable, Hashable, Sendable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype FullScreen: View
6 |
/Users/admin/builder/spi-builder-workspace/src/Protocols/PageRepresentable.swift:5:26: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's page representation.
4 | public protocol PageRepresentable: Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Content: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing associated type
6 |
7 | /// The content of the page.
/Users/admin/builder/spi-builder-workspace/src/Protocols/PageRepresentable.swift:8:14: error: 'ViewBuilder' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's page representation.
4 | public protocol PageRepresentable: Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Content: View
6 |
7 | /// The content of the page.
8 | @MainActor @ViewBuilder var view: Content { get }
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:5:24: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's sheet representation.
4 | public protocol SheetRepresentable: Identifiable, Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Sheet: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing associated type
6 |
7 | /// The presentation detents for the sheet.
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:8:19: error: 'PresentationDetent' is only available in macOS 13.0 or newer
2 |
3 | /// Your app's sheet representation.
4 | public protocol SheetRepresentable: Identifiable, Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Sheet: View
6 |
7 | /// The presentation detents for the sheet.
8 | var detents: Set<PresentationDetent> { get }
| | `- error: 'PresentationDetent' is only available in macOS 13.0 or newer
| `- note: add '@available' attribute to enclosing property
9 |
10 | /// The toolbar title display mode for the sheet.
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:11:24: error: 'ToolbarTitleDisplayMode' is only available in macOS 14.0 or newer
2 |
3 | /// Your app's sheet representation.
4 | public protocol SheetRepresentable: Identifiable, Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Sheet: View
6 |
:
9 |
10 | /// The toolbar title display mode for the sheet.
11 | var titleDisplayMode: ToolbarTitleDisplayMode { get }
| | `- error: 'ToolbarTitleDisplayMode' is only available in macOS 14.0 or newer
| `- note: add '@available' attribute to enclosing property
12 |
13 | /// The content of the sheet.
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:14:14: error: 'ViewBuilder' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's sheet representation.
4 | public protocol SheetRepresentable: Identifiable, Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Sheet: View
6 |
:
12 |
13 | /// The content of the sheet.
14 | @MainActor @ViewBuilder var content: Sheet { get }
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:4:37: error: 'Identifiable' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's sheet representation.
4 | public protocol SheetRepresentable: Identifiable, Equatable, Hashable, Sendable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Sheet: View
6 |
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:18:19: error: 'PresentationDetent' is only available in macOS 13.0 or newer
15 | }
16 |
17 | public extension SheetRepresentable {
| `- note: add '@available' attribute to enclosing extension
18 | var detents: Set<PresentationDetent> {
| | `- error: 'PresentationDetent' is only available in macOS 13.0 or newer
| `- note: add '@available' attribute to enclosing property
19 | [.medium, .large]
20 | }
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:22:24: error: 'ToolbarTitleDisplayMode' is only available in macOS 14.0 or newer
15 | }
16 |
17 | public extension SheetRepresentable {
| `- note: add '@available' attribute to enclosing extension
18 | var detents: Set<PresentationDetent> {
19 | [.medium, .large]
20 | }
21 |
22 | var titleDisplayMode: ToolbarTitleDisplayMode {
| | `- error: 'ToolbarTitleDisplayMode' is only available in macOS 14.0 or newer
| `- note: add '@available' attribute to enclosing property
23 | .inline
24 | }
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:27:28: error: 'View' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public extension SheetRepresentable {
| `- note: add '@available' attribute to enclosing extension
18 | var detents: Set<PresentationDetent> {
19 | [.medium, .large]
:
25 |
26 | /// Renders the sheet view with the specified detents and title display mode.
27 | @MainActor var view: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
28 | content
29 | .presentationDetents(detents)
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:15:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'selectedTab' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
13 |
14 | /// The currently selected tab (only relevant for top-level routers).
15 | public var selectedTab: D.Tabs?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
16 |
17 | /// The identifier of the tab associated with this router.
/Users/admin/builder/spi-builder-workspace/src/Router.swift:6:13: error: 'Observable()' is only available in macOS 14.0 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:21:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'presentingAlert' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
19 |
20 | /// The currently presented alert.
21 | public var presentingAlert: D.Alerts?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
22 |
23 | /// The currently presented sheet.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:24:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'presentingSheet' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
22 |
23 | /// The currently presented sheet.
24 | public var presentingSheet: D.Sheets?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
25 |
26 | /// The currently presented full-screen cover.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:27:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'presentingFullScreen' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
25 |
26 | /// The currently presented full-screen cover.
27 | public var presentingFullScreen: D.FullScreen?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
28 |
29 | /// The navigation stack path for push navigation.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:30:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'navigationStackPath' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
28 |
29 | /// The navigation stack path for push navigation.
30 | public var navigationStackPath: [D.Pages] = []
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
31 |
32 | /// The parent router in the hierarchy.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:33:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'parent' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
31 |
32 | /// The parent router in the hierarchy.
33 | public private(set) weak var parent: Router?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
34 |
35 | /// Indicates whether the router is currently active.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:36:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'isActive' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
34 |
35 | /// Indicates whether the router is currently active.
36 | public private(set) var isActive: Bool = false
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
37 |
38 | /// Initializes a new router instance.
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:54:1: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on generic class 'Router' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
52 | presentingFullScreen = nil
53 | }
54 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s13NavigationKit6Router10ObservablefMm_6MemberfMu_>(
+-------------------------------------------------------------------
55 |
56 | // MARK: - Router Management
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:15:33: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
13 |
14 | /// The currently selected tab (only relevant for top-level routers).
15 | public var selectedTab: D.Tabs?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The currently selected tab (only relevant for top-level routers).
|2 | @ObservationIgnored private var _selectedTab: D.Tabs?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
16 |
17 | /// The identifier of the tab associated with this router.
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:21:39: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
19 |
20 | /// The currently presented alert.
21 | public var presentingAlert: D.Alerts?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The currently presented alert.
|2 | @ObservationIgnored private var _presentingAlert: D.Alerts?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
22 |
23 | /// The currently presented sheet.
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:24:39: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
22 |
23 | /// The currently presented sheet.
24 | public var presentingSheet: D.Sheets?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The currently presented sheet.
|2 | @ObservationIgnored private var _presentingSheet: D.Sheets?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
25 |
26 | /// The currently presented full-screen cover.
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:27:48: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
25 |
26 | /// The currently presented full-screen cover.
27 | public var presentingFullScreen: D.FullScreen?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The currently presented full-screen cover.
|2 | @ObservationIgnored private var _presentingFullScreen: D.FullScreen?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
28 |
29 | /// The navigation stack path for push navigation.
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:30:48: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
28 |
29 | /// The navigation stack path for push navigation.
30 | public var navigationStackPath: [D.Pages] = []
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The navigation stack path for push navigation.
|2 | @ObservationIgnored private var _navigationStackPath: [D.Pages] = []
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
31 |
32 | /// The parent router in the hierarchy.
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:33:46: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
31 |
32 | /// The parent router in the hierarchy.
33 | public private(set) weak var parent: Router?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The parent router in the hierarchy.
|2 | @ObservationIgnored private weak var _parent: Router?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
34 |
35 | /// Indicates whether the router is currently active.
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:36:48: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
34 |
35 | /// Indicates whether the router is currently active.
36 | public private(set) var isActive: Bool = false
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// Indicates whether the router is currently active.
|2 | @ObservationIgnored private var _isActive: Bool = false
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
37 |
38 | /// Initializes a new router instance.
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:54:1: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on generic class 'Router' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
52 | presentingFullScreen = nil
53 | }
54 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s13NavigationKit6Router10ObservablefMm_6MemberfMu_>(
+-------------------------------------------------------------------
55 |
56 | // MARK: - Router Management
/Users/admin/builder/spi-builder-workspace/src/Router.swift:6:13: error: 'Observable()' is only available in macOS 14.0 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
/Users/admin/builder/spi-builder-workspace/src/Router.swift:83:52: error: 'Binding' is only available in macOS 10.15 or newer
56 | // MARK: - Router Management
57 |
58 | public extension Router {
| `- note: add '@available' attribute to enclosing extension
59 | /// Creates a child router for the specified tab.
60 | func childRouter(for tab: D.Tabs? = nil) -> Router {
:
81 |
82 | /// Provides a binding to determine if an alert is being presented.
83 | subscript(alert _: KeyPath<Router, D.Alerts?>) -> Binding<Bool> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing subscript
84 | Binding(
85 | get: { self.presentingAlert != nil },
[6/13] Compiling NavigationKit NavigationContainer.swift
/Users/admin/builder/spi-builder-workspace/src/Router.swift:6:13: error: 'Observable()' is only available in macOS 14.0 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
7 | public final class Router<D: NavigationDestination> {
8 | /// A unique identifier for the router instance.
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:8:3: error: 'State' is only available in macOS 10.15 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
| `- error: 'State' is only available in macOS 10.15 or newer
9 |
10 | /// The content view displayed within the navigation container
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:11:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
9 |
10 | /// The content view displayed within the navigation container
11 | @ViewBuilder var content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
12 |
13 | /// Initializes a new `NavigationContainer` with a parent router and optional tab
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:17:60: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
:
15 | /// - Parameter tab: An optional tab identifier for the child router
16 | /// - Parameter content: A closure that produces the content view
17 | public init(parentRouter: Router<D>, tab: D.Tabs? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
18 | self.content = content
19 | _router = .init(initialValue: parentRouter.childRouter(for: tab))
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:22:24: error: 'View' is only available in macOS 10.15 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
:
20 | }
21 |
22 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
23 | InnerContainer(router: router) {
24 | content()
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:6:44: error: 'View' is only available in macOS 10.15 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:34:3: error: 'init(wrappedValue:)' is only available in macOS 14.0 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
| `- error: 'init(wrappedValue:)' is only available in macOS 14.0 or newer
35 | @ViewBuilder var content: () -> Content
36 |
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:34:3: error: 'Bindable' is only available in macOS 14.0 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
| `- error: 'Bindable' is only available in macOS 14.0 or newer
35 | @ViewBuilder var content: () -> Content
36 |
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:35:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
36 |
37 | var body: some View {
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:37:17: error: 'View' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
39 | content()
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:65:94: error: 'View' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
:
63 | }
64 |
65 | @ViewBuilder func navigationView(for destination: D.Sheets, from router: Router<D>) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
66 | NavigationContainer(parentRouter: router) {
67 | destination.view
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:65:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
:
63 | }
64 |
65 | @ViewBuilder func navigationView(for destination: D.Sheets, from router: Router<D>) -> some View {
| | `- note: add '@available' attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
66 | NavigationContainer(parentRouter: router) {
67 | destination.view
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:33:40: error: 'View' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:26:4: error: 'environment' is only available in macOS 14.0 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
:
20 | }
21 |
22 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | InnerContainer(router: router) {
24 | content()
25 | }
26 | .environment(router)
| |- error: 'environment' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
27 | .onAppear(perform: router.setActive)
28 | .onDisappear(perform: router.resignActive)
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:27:4: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
:
20 | }
21 |
22 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | InnerContainer(router: router) {
24 | content()
25 | }
26 | .environment(router)
27 | .onAppear(perform: router.setActive)
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .onDisappear(perform: router.resignActive)
29 | }
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:28:4: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `NavigationContainer` with your app's specific `NavigationDestination` type.
6 | public struct NavigationContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The router managing navigation within this container
8 | @State var router: Router<D>
:
20 | }
21 |
22 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | InnerContainer(router: router) {
24 | content()
:
26 | .environment(router)
27 | .onAppear(perform: router.setActive)
28 | .onDisappear(perform: router.resignActive)
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | }
30 | }
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:30:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'navigationStackPath' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
28 |
29 | /// The navigation stack path for push navigation.
30 | public var navigationStackPath: [D.Pages] = []
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
31 |
32 | /// The parent router in the hierarchy.
/Users/admin/builder/spi-builder-workspace/src/Router.swift:6:13: error: 'Observable()' is only available in macOS 14.0 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:24:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'presentingSheet' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
22 |
23 | /// The currently presented sheet.
24 | public var presentingSheet: D.Sheets?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
25 |
26 | /// The currently presented full-screen cover.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:27:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'presentingFullScreen' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
25 |
26 | /// The currently presented full-screen cover.
27 | public var presentingFullScreen: D.FullScreen?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
28 |
29 | /// The navigation stack path for push navigation.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:21:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'presentingAlert' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
19 |
20 | /// The currently presented alert.
21 | public var presentingAlert: D.Alerts?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
22 |
23 | /// The currently presented sheet.
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:38:3: error: 'NavigationStack' is only available in macOS 13.0 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
| |- error: 'NavigationStack' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
39 | content()
40 | .navigationDestination(for: D.Pages.self) { destination in
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:38:25: error: 'subscript(dynamicMember:)' is only available in macOS 14.0 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
| |- error: 'subscript(dynamicMember:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
39 | content()
40 | .navigationDestination(for: D.Pages.self) { destination in
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:40:6: error: 'navigationDestination(for:destination:)' is only available in macOS 13.0 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
39 | content()
40 | .navigationDestination(for: D.Pages.self) { destination in
| |- error: 'navigationDestination(for:destination:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
41 | destination.view
42 | }
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:46:4: error: 'sheet(item:onDismiss:content:)' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
39 | content()
:
44 | // it's important that the these modifiers are **outside** the `NavigationStack`
45 | // otherwise the content closure will be called infinitely freezing the app
46 | .sheet(item: $router.presentingSheet) { sheet in
| |- error: 'sheet(item:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | NavigationContainer(parentRouter: router) {
48 | sheet.view
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:46:16: error: 'subscript(dynamicMember:)' is only available in macOS 14.0 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
39 | content()
:
44 | // it's important that the these modifiers are **outside** the `NavigationStack`
45 | // otherwise the content closure will be called infinitely freezing the app
46 | .sheet(item: $router.presentingSheet) { sheet in
| |- error: 'subscript(dynamicMember:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
47 | NavigationContainer(parentRouter: router) {
48 | sheet.view
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:51:4: error: 'fullScreenCover(item:onDismiss:content:)' is unavailable in macOS
49 | }
50 | }
51 | .fullScreenCover(item: $router.presentingFullScreen) { fullScreen in
| `- error: 'fullScreenCover(item:onDismiss:content:)' is unavailable in macOS
52 | NavigationContainer(parentRouter: router) {
53 | fullScreen.content
SwiftUI.View.fullScreenCover:2:25: note: 'fullScreenCover(item:onDismiss:content:)' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func fullScreenCover<Item, Content>(item: Binding<Item?>, onDismiss: (() -> Void)? = nil, @ViewBuilder content: @escaping (Item) -> Content) -> some View where Item : Identifiable, Content : View
| `- note: 'fullScreenCover(item:onDismiss:content:)' has been explicitly marked unavailable here
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:51:26: error: 'subscript(dynamicMember:)' is only available in macOS 14.0 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
39 | content()
:
49 | }
50 | }
51 | .fullScreenCover(item: $router.presentingFullScreen) { fullScreen in
| |- error: 'subscript(dynamicMember:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
52 | NavigationContainer(parentRouter: router) {
53 | fullScreen.content
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:56:4: error: 'alert(_:isPresented:presenting:actions:message:)' is only available in macOS 12.0 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
39 | content()
:
54 | }
55 | }
56 | .alert(
| |- error: 'alert(_:isPresented:presenting:actions:message:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
57 | router.presentingAlert?.alert.title ?? "",
58 | isPresented: router[alert: \.presentingAlert],
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:60:15: error: 'AnyView' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
39 | content()
:
58 | isPresented: router[alert: \.presentingAlert],
59 | presenting: router.presentingAlert,
60 | actions: { AnyView($0.alert.actions) },
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | message: { $0.alert.message.map { Text($0) } }
62 | )
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:61:15: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
39 | content()
:
59 | presenting: router.presentingAlert,
60 | actions: { AnyView($0.alert.actions) },
61 | message: { $0.alert.message.map { Text($0) } }
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | )
63 | }
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:61:38: error: 'Text' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
39 | content()
:
59 | presenting: router.presentingAlert,
60 | actions: { AnyView($0.alert.actions) },
61 | message: { $0.alert.message.map { Text($0) } }
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | )
63 | }
/Users/admin/builder/spi-builder-workspace/src/NavigationContainer.swift:61:13: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
31 |
32 | // This is necessary for getting a binder from an Environment Observable object
33 | private struct InnerContainer<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
34 | @Bindable var router: Router<D>
35 | @ViewBuilder var content: () -> Content
36 |
37 | var body: some View {
| `- note: add '@available' attribute to enclosing property
38 | NavigationStack(path: $router.navigationStackPath) {
39 | content()
:
59 | presenting: router.presentingAlert,
60 | actions: { AnyView($0.alert.actions) },
61 | message: { $0.alert.message.map { Text($0) } }
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | )
63 | }
[7/13] Compiling NavigationKit Alert.swift
/Users/admin/builder/spi-builder-workspace/src/Protocols/Alert.swift:7:26: error: 'View' is only available in macOS 10.15 or newer
4 | ///
5 | /// This protocol defines the structure of an alert, including its title, optional message, and actions.
6 | @MainActor public protocol Alert {
| `- note: add '@available' attribute to enclosing protocol
7 | associatedtype Actions: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing associated type
8 |
9 | /// The title of the alert.
/Users/admin/builder/spi-builder-workspace/src/Protocols/Alert.swift:16:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// This protocol defines the structure of an alert, including its title, optional message, and actions.
6 | @MainActor public protocol Alert {
| `- note: add '@available' attribute to enclosing protocol
7 | associatedtype Actions: View
8 |
:
14 |
15 | /// The actions to be displayed in the alert.
16 | @ViewBuilder var actions: Actions { get }
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
17 | }
18 |
[8/13] Compiling NavigationKit PageRepresentable.swift
/Users/admin/builder/spi-builder-workspace/src/Protocols/PageRepresentable.swift:5:26: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's page representation.
4 | public protocol PageRepresentable: Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Content: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing associated type
6 |
7 | /// The content of the page.
/Users/admin/builder/spi-builder-workspace/src/Protocols/PageRepresentable.swift:8:14: error: 'ViewBuilder' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's page representation.
4 | public protocol PageRepresentable: Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Content: View
6 |
7 | /// The content of the page.
8 | @MainActor @ViewBuilder var view: Content { get }
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | }
10 |
[9/13] Compiling NavigationKit SheetRepresentable.swift
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:5:24: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's sheet representation.
4 | public protocol SheetRepresentable: Identifiable, Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Sheet: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing associated type
6 |
7 | /// The presentation detents for the sheet.
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:8:19: error: 'PresentationDetent' is only available in macOS 13.0 or newer
2 |
3 | /// Your app's sheet representation.
4 | public protocol SheetRepresentable: Identifiable, Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Sheet: View
6 |
7 | /// The presentation detents for the sheet.
8 | var detents: Set<PresentationDetent> { get }
| | `- error: 'PresentationDetent' is only available in macOS 13.0 or newer
| `- note: add '@available' attribute to enclosing property
9 |
10 | /// The toolbar title display mode for the sheet.
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:11:24: error: 'ToolbarTitleDisplayMode' is only available in macOS 14.0 or newer
2 |
3 | /// Your app's sheet representation.
4 | public protocol SheetRepresentable: Identifiable, Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Sheet: View
6 |
:
9 |
10 | /// The toolbar title display mode for the sheet.
11 | var titleDisplayMode: ToolbarTitleDisplayMode { get }
| | `- error: 'ToolbarTitleDisplayMode' is only available in macOS 14.0 or newer
| `- note: add '@available' attribute to enclosing property
12 |
13 | /// The content of the sheet.
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:14:14: error: 'ViewBuilder' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's sheet representation.
4 | public protocol SheetRepresentable: Identifiable, Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Sheet: View
6 |
:
12 |
13 | /// The content of the sheet.
14 | @MainActor @ViewBuilder var content: Sheet { get }
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
15 | }
16 |
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:4:37: error: 'Identifiable' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's sheet representation.
4 | public protocol SheetRepresentable: Identifiable, Equatable, Hashable, Sendable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype Sheet: View
6 |
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:18:19: error: 'PresentationDetent' is only available in macOS 13.0 or newer
15 | }
16 |
17 | public extension SheetRepresentable {
| `- note: add '@available' attribute to enclosing extension
18 | var detents: Set<PresentationDetent> {
| | `- error: 'PresentationDetent' is only available in macOS 13.0 or newer
| `- note: add '@available' attribute to enclosing property
19 | [.medium, .large]
20 | }
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:22:24: error: 'ToolbarTitleDisplayMode' is only available in macOS 14.0 or newer
15 | }
16 |
17 | public extension SheetRepresentable {
| `- note: add '@available' attribute to enclosing extension
18 | var detents: Set<PresentationDetent> {
19 | [.medium, .large]
20 | }
21 |
22 | var titleDisplayMode: ToolbarTitleDisplayMode {
| | `- error: 'ToolbarTitleDisplayMode' is only available in macOS 14.0 or newer
| `- note: add '@available' attribute to enclosing property
23 | .inline
24 | }
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:27:28: error: 'View' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public extension SheetRepresentable {
| `- note: add '@available' attribute to enclosing extension
18 | var detents: Set<PresentationDetent> {
19 | [.medium, .large]
:
25 |
26 | /// Renders the sheet view with the specified detents and title display mode.
27 | @MainActor var view: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
28 | content
29 | .presentationDetents(detents)
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:29:5: error: 'presentationDetents' is only available in macOS 13.0 or newer
15 | }
16 |
17 | public extension SheetRepresentable {
| `- note: add '@available' attribute to enclosing extension
18 | var detents: Set<PresentationDetent> {
19 | [.medium, .large]
:
25 |
26 | /// Renders the sheet view with the specified detents and title display mode.
27 | @MainActor var view: some View {
| `- note: add '@available' attribute to enclosing property
28 | content
29 | .presentationDetents(detents)
| |- error: 'presentationDetents' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
30 | .toolbarTitleDisplayMode(titleDisplayMode)
31 | }
/Users/admin/builder/spi-builder-workspace/src/Protocols/SheetRepresentable.swift:30:5: error: 'toolbarTitleDisplayMode' is only available in macOS 14.0 or newer
15 | }
16 |
17 | public extension SheetRepresentable {
| `- note: add '@available' attribute to enclosing extension
18 | var detents: Set<PresentationDetent> {
19 | [.medium, .large]
:
25 |
26 | /// Renders the sheet view with the specified detents and title display mode.
27 | @MainActor var view: some View {
| `- note: add '@available' attribute to enclosing property
28 | content
29 | .presentationDetents(detents)
30 | .toolbarTitleDisplayMode(titleDisplayMode)
| |- error: 'toolbarTitleDisplayMode' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
[10/13] Compiling NavigationKit FullScreenRepresentable.swift
/Users/admin/builder/spi-builder-workspace/src/Protocols/FullScreenRepresentable.swift:5:29: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's full screen cover representation.
4 | public protocol FullScreenRepresentable: Identifiable, Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype FullScreen: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing associated type
6 |
7 | /// The content of the full screen cover.
/Users/admin/builder/spi-builder-workspace/src/Protocols/FullScreenRepresentable.swift:8:14: error: 'ViewBuilder' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's full screen cover representation.
4 | public protocol FullScreenRepresentable: Identifiable, Equatable, Hashable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype FullScreen: View
6 |
7 | /// The content of the full screen cover.
8 | @MainActor @ViewBuilder var content: FullScreen { get }
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/src/Protocols/FullScreenRepresentable.swift:4:42: error: 'Identifiable' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's full screen cover representation.
4 | public protocol FullScreenRepresentable: Identifiable, Equatable, Hashable, Sendable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
5 | associatedtype FullScreen: View
6 |
[11/13] Compiling NavigationKit AlertRepresentable.swift
/Users/admin/builder/spi-builder-workspace/src/Protocols/AlertRepresentable.swift:4:37: error: 'Identifiable' is only available in macOS 10.15 or newer
2 |
3 | /// Your app's alert representation.
4 | public protocol AlertRepresentable: Identifiable, Equatable, Hashable, Sendable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
5 | /// The content of the alert.
6 | @MainActor var alert: any Alert { get }
[12/13] Compiling NavigationKit Destination.swift
/Users/admin/builder/spi-builder-workspace/src/Router.swift:6:13: error: 'Observable()' is only available in macOS 14.0 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
7 | public final class Router<D: NavigationDestination> {
8 | /// A unique identifier for the router instance.
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:11:3: error: 'init(_:)' is only available in macOS 14.0 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
9 |
10 | @ViewBuilder var content: () -> Content
11 | @Environment(Router<D>.self) private var router
| `- error: 'init(_:)' is only available in macOS 14.0 or newer
12 |
13 | /// Creates a new `NavigationButton`.
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:10:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
9 |
10 | @ViewBuilder var content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @Environment(Router<D>.self) private var router
12 |
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:11:3: error: 'Environment' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
9 |
10 | @ViewBuilder var content: () -> Content
11 | @Environment(Router<D>.self) private var router
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 |
13 | /// Creates a new `NavigationButton`.
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:16:43: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
14 | /// - Parameter destination: The destination to navigate to when the button is tapped.
15 | /// - Parameter content: A closure that produces the button's content.
16 | public init(destination: D.Kind? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
17 | self.content = content
18 | self.destination = destination
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:24:49: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
22 | /// - Parameter push: The page destination to navigate to when the button is tapped.
23 | /// - Parameter content: A closure that produces the button's content.
24 | public init(push destination: D.Pages? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
25 | self.content = content
26 | self.destination = destination.map { .push($0) }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:32:51: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
30 | /// - Parameters alert: The alert to present when the button is tapped.
31 | /// - Parameter content: A closure that produces the button's content.
32 | public init(alert destination: D.Alerts? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
33 | self.content = content
34 | self.destination = destination.map { .alert($0) }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:40:51: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
38 | /// - Parameter sheet: The sheet destination to present when the button is tapped.
39 | /// - Parameter content: A closure that produces the button's content.
40 | public init(sheet destination: D.Sheets? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
41 | self.content = content
42 | self.destination = destination.map { .sheet($0) }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:48:60: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
46 | /// - Parameter fullScreen: The full-screen destination to present when the button is tapped.
47 | /// - Parameter content: A closure that produces the button's content.
48 | public init(fullScreen destination: D.FullScreen? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
49 | self.content = content
50 | self.destination = destination.map { .fullScreen($0) }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:53:24: error: 'View' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
51 | }
52 |
53 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
54 | Button(action: navigate) {
55 | content()
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:6:41: error: 'View' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:54:3: error: 'Button' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
51 | }
52 |
53 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | Button(action: navigate) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | content()
56 | }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:57:4: error: 'disabled' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
51 | }
52 |
53 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | Button(action: navigate) {
55 | content()
56 | }
57 | .disabled(destination == nil)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | }
59 |
[13/13] Compiling NavigationKit NavigationButton.swift
/Users/admin/builder/spi-builder-workspace/src/Router.swift:6:13: error: 'Observable()' is only available in macOS 14.0 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
7 | public final class Router<D: NavigationDestination> {
8 | /// A unique identifier for the router instance.
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:11:3: error: 'init(_:)' is only available in macOS 14.0 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
9 |
10 | @ViewBuilder var content: () -> Content
11 | @Environment(Router<D>.self) private var router
| `- error: 'init(_:)' is only available in macOS 14.0 or newer
12 |
13 | /// Creates a new `NavigationButton`.
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:10:3: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
9 |
10 | @ViewBuilder var content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 | @Environment(Router<D>.self) private var router
12 |
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:11:3: error: 'Environment' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
9 |
10 | @ViewBuilder var content: () -> Content
11 | @Environment(Router<D>.self) private var router
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 |
13 | /// Creates a new `NavigationButton`.
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:16:43: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
14 | /// - Parameter destination: The destination to navigate to when the button is tapped.
15 | /// - Parameter content: A closure that produces the button's content.
16 | public init(destination: D.Kind? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
17 | self.content = content
18 | self.destination = destination
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:24:49: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
22 | /// - Parameter push: The page destination to navigate to when the button is tapped.
23 | /// - Parameter content: A closure that produces the button's content.
24 | public init(push destination: D.Pages? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
25 | self.content = content
26 | self.destination = destination.map { .push($0) }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:32:51: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
30 | /// - Parameters alert: The alert to present when the button is tapped.
31 | /// - Parameter content: A closure that produces the button's content.
32 | public init(alert destination: D.Alerts? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
33 | self.content = content
34 | self.destination = destination.map { .alert($0) }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:40:51: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
38 | /// - Parameter sheet: The sheet destination to present when the button is tapped.
39 | /// - Parameter content: A closure that produces the button's content.
40 | public init(sheet destination: D.Sheets? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
41 | self.content = content
42 | self.destination = destination.map { .sheet($0) }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:48:60: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
46 | /// - Parameter fullScreen: The full-screen destination to present when the button is tapped.
47 | /// - Parameter content: A closure that produces the button's content.
48 | public init(fullScreen destination: D.FullScreen? = nil, @ViewBuilder content: @escaping () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
49 | self.content = content
50 | self.destination = destination.map { .fullScreen($0) }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:53:24: error: 'View' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
51 | }
52 |
53 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
54 | Button(action: navigate) {
55 | content()
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:6:41: error: 'View' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:54:3: error: 'Button' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
51 | }
52 |
53 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | Button(action: navigate) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | content()
56 | }
/Users/admin/builder/spi-builder-workspace/src/NavigationButton.swift:57:4: error: 'disabled' is only available in macOS 10.15 or newer
4 | ///
5 | /// For convenience, it's recommended to typealias `NavigationButton` with your app's specific `NavigationDestination` type.
6 | public struct NavigationButton<Content: View, D: NavigationDestination>: View {
| `- note: add '@available' attribute to enclosing generic struct
7 | /// The destination to navigate to when the button is tapped.
8 | let destination: D.Kind?
:
51 | }
52 |
53 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | Button(action: navigate) {
55 | content()
56 | }
57 | .disabled(destination == nil)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | }
59 |
[14/14] Compiling NavigationKit Router.swift
/Users/admin/builder/spi-builder-workspace/src/Router.swift:6:13: error: 'Observable()' is only available in macOS 14.0 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
7 | public final class Router<D: NavigationDestination> {
8 | /// A unique identifier for the router instance.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:15:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'selectedTab' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
13 |
14 | /// The currently selected tab (only relevant for top-level routers).
15 | public var selectedTab: D.Tabs?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
16 |
17 | /// The identifier of the tab associated with this router.
/Users/admin/builder/spi-builder-workspace/src/Router.swift:6:13: error: 'Observable()' is only available in macOS 14.0 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:21:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'presentingAlert' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
19 |
20 | /// The currently presented alert.
21 | public var presentingAlert: D.Alerts?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
22 |
23 | /// The currently presented sheet.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:24:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'presentingSheet' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
22 |
23 | /// The currently presented sheet.
24 | public var presentingSheet: D.Sheets?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
25 |
26 | /// The currently presented full-screen cover.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:27:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'presentingFullScreen' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
25 |
26 | /// The currently presented full-screen cover.
27 | public var presentingFullScreen: D.FullScreen?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
28 |
29 | /// The navigation stack path for push navigation.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:30:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'navigationStackPath' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
28 |
29 | /// The navigation stack path for push navigation.
30 | public var navigationStackPath: [D.Pages] = []
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
31 |
32 | /// The parent router in the hierarchy.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:33:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'parent' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
31 |
32 | /// The parent router in the hierarchy.
33 | public private(set) weak var parent: Router?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
34 |
35 | /// Indicates whether the router is currently active.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:36:2: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'isActive' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
34 |
35 | /// Indicates whether the router is currently active.
36 | public private(set) var isActive: Bool = false
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
37 |
38 | /// Initializes a new router instance.
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:54:1: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on generic class 'Router' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
52 | presentingFullScreen = nil
53 | }
54 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s13NavigationKit6Router10ObservablefMm_6MemberfMu_>(
+-------------------------------------------------------------------
55 |
56 | // MARK: - Router Management
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:15:33: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
13 |
14 | /// The currently selected tab (only relevant for top-level routers).
15 | public var selectedTab: D.Tabs?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The currently selected tab (only relevant for top-level routers).
|2 | @ObservationIgnored private var _selectedTab: D.Tabs?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
16 |
17 | /// The identifier of the tab associated with this router.
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:21:39: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
19 |
20 | /// The currently presented alert.
21 | public var presentingAlert: D.Alerts?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The currently presented alert.
|2 | @ObservationIgnored private var _presentingAlert: D.Alerts?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
22 |
23 | /// The currently presented sheet.
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:24:39: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
22 |
23 | /// The currently presented sheet.
24 | public var presentingSheet: D.Sheets?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The currently presented sheet.
|2 | @ObservationIgnored private var _presentingSheet: D.Sheets?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
25 |
26 | /// The currently presented full-screen cover.
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:27:48: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
25 |
26 | /// The currently presented full-screen cover.
27 | public var presentingFullScreen: D.FullScreen?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The currently presented full-screen cover.
|2 | @ObservationIgnored private var _presentingFullScreen: D.FullScreen?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
28 |
29 | /// The navigation stack path for push navigation.
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:30:48: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
28 |
29 | /// The navigation stack path for push navigation.
30 | public var navigationStackPath: [D.Pages] = []
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The navigation stack path for push navigation.
|2 | @ObservationIgnored private var _navigationStackPath: [D.Pages] = []
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
31 |
32 | /// The parent router in the hierarchy.
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:33:46: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
31 |
32 | /// The parent router in the hierarchy.
33 | public private(set) weak var parent: Router?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The parent router in the hierarchy.
|2 | @ObservationIgnored private weak var _parent: Router?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
34 |
35 | /// Indicates whether the router is currently active.
macro expansion @ObservationTracked:2:5: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:36:48: note: expanded code originates here
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
34 |
35 | /// Indicates whether the router is currently active.
36 | public private(set) var isActive: Bool = false
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// Indicates whether the router is currently active.
|2 | @ObservationIgnored private var _isActive: Bool = false
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
37 |
38 | /// Initializes a new router instance.
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/src/Router.swift:54:1: note: expanded code originates here
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on generic class 'Router' here
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
:
52 | presentingFullScreen = nil
53 | }
54 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s13NavigationKit6Router10ObservablefMm_6MemberfMu_>(
+-------------------------------------------------------------------
55 |
56 | // MARK: - Router Management
/Users/admin/builder/spi-builder-workspace/src/Router.swift:6:13: error: 'Observable()' is only available in macOS 14.0 or newer
4 | ///
5 | /// /// For convenience, it's recommended to typealias `Router` with your app's specific `NavigationDestination` type.
6 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
7 | public final class Router<D: NavigationDestination> {
| `- note: add '@available' attribute to enclosing generic class
8 | /// A unique identifier for the router instance.
9 | public let id = UUID()
/Users/admin/builder/spi-builder-workspace/src/Router.swift:83:52: error: 'Binding' is only available in macOS 10.15 or newer
56 | // MARK: - Router Management
57 |
58 | public extension Router {
| `- note: add '@available' attribute to enclosing extension
59 | /// Creates a child router for the specified tab.
60 | func childRouter(for tab: D.Tabs? = nil) -> Router {
:
81 |
82 | /// Provides a binding to determine if an alert is being presented.
83 | subscript(alert _: KeyPath<Router, D.Alerts?>) -> Binding<Bool> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing subscript
84 | Binding(
85 | get: { self.presentingAlert != nil },
/Users/admin/builder/spi-builder-workspace/src/Router.swift:84:3: error: 'Binding' is only available in macOS 10.15 or newer
56 | // MARK: - Router Management
57 |
58 | public extension Router {
| `- note: add '@available' attribute to enclosing extension
59 | /// Creates a child router for the specified tab.
60 | func childRouter(for tab: D.Tabs? = nil) -> Router {
:
81 |
82 | /// Provides a binding to determine if an alert is being presented.
83 | subscript(alert _: KeyPath<Router, D.Alerts?>) -> Binding<Bool> {
| `- note: add '@available' attribute to enclosing subscript
84 | Binding(
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | get: { self.presentingAlert != nil },
86 | set: { newValue in
/Users/admin/builder/spi-builder-workspace/src/Router.swift:102:29: error: cannot find 'UIApplication' in scope
100 | case let .tab(tab): select(tab: tab)
101 | case let .push(destination): push(destination)
102 | case let .external(url): UIApplication.shared.open(url)
| `- error: cannot find 'UIApplication' in scope
103 | case let .alert(destination): presentingAlert = destination
104 | case let .sheet(destination): presentingSheet = destination
BUILD FAILURE 6.2 macosSpm