Build Information
Failed to build GSRouting, reference main (208737
), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 08:27:08 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ginsudev/GSRouting.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ginsudev/GSRouting
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2087370 Update README.md
Cloned https://github.com/ginsudev/GSRouting.git
Revision (git rev-parse @):
2087370e9b422e306b1bced23c835896a4e8c651
SUCCESS checkout https://github.com/ginsudev/GSRouting.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/ginsudev/GSRouting.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.txt
[3/11] Compiling GSRouting AnyRoute.swift
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Utilities/AnyRoute.swift:13:29: error: 'AnyView' is only available in macOS 10.15 or newer
10 |
11 | /// A type-erased ViewRoute.
12 | public struct AnyViewRoute: ViewRoute {
| `- note: add @available attribute to enclosing struct
13 | public typealias Body = AnyView
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
14 |
15 | private let _route: any ViewRoute
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Utilities/AnyRoute.swift:34:33: error: 'AnyView' is only available in macOS 10.15 or newer
31 |
32 | /// A type-erased TabRoute.
33 | public struct AnyTabRoute: TabRoute {
| `- note: add @available attribute to enclosing struct
34 | public typealias TabLabel = AnyView
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
35 | public typealias TabContent = AnyView
36 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Utilities/AnyRoute.swift:35:35: error: 'AnyView' is only available in macOS 10.15 or newer
31 |
32 | /// A type-erased TabRoute.
33 | public struct AnyTabRoute: TabRoute {
| `- note: add @available attribute to enclosing struct
34 | public typealias TabLabel = AnyView
35 | public typealias TabContent = AnyView
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
36 |
37 | private let _route: any TabRoute
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Utilities/AnyRoute.swift:28:9: error: 'AnyView' is only available in macOS 10.15 or newer
10 |
11 | /// A type-erased ViewRoute.
12 | public struct AnyViewRoute: ViewRoute {
| `- note: add @available attribute to enclosing struct
13 | public typealias Body = AnyView
14 |
:
25 | }
26 |
27 | public func makeBody(context: Context) -> Self.Body {
| `- note: add @available attribute to enclosing instance method
28 | AnyView(_route.makeBody(context: context))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Utilities/AnyRoute.swift:50:9: error: 'AnyView' is only available in macOS 10.15 or newer
31 |
32 | /// A type-erased TabRoute.
33 | public struct AnyTabRoute: TabRoute {
| `- note: add @available attribute to enclosing struct
34 | public typealias TabLabel = AnyView
35 | public typealias TabContent = AnyView
:
47 | }
48 |
49 | public func makeLabel(context: Context) -> Self.TabLabel {
| `- note: add @available attribute to enclosing instance method
50 | AnyView(_route.makeLabel(context: context))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | }
52 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Utilities/AnyRoute.swift:54:9: error: 'AnyView' is only available in macOS 10.15 or newer
31 |
32 | /// A type-erased TabRoute.
33 | public struct AnyTabRoute: TabRoute {
| `- note: add @available attribute to enclosing struct
34 | public typealias TabLabel = AnyView
35 | public typealias TabContent = AnyView
:
51 | }
52 |
53 | public func makeContent(context: Context) -> Self.TabContent {
| `- note: add @available attribute to enclosing instance method
54 | AnyView(_route.makeContent(context: context))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | }
56 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/11] Emitting module GSRouting
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/AppNavigationRouter.swift:12:52: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 | /// A class to handle navigation routing operations, such as presenting sheets,
11 | /// switching tabs, pushing onto the nav stack etc.
12 | @MainActor public final class AppNavigationRouter: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 | private var callbacks: Callbacks?
14 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/AppTabRouter.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | @MainActor internal final class AppTabRouter: ObservableObject {
| `- note: add @available attribute to enclosing class
11 |
12 | @Published
| `- error: 'Published' is only available in macOS 10.15 or newer
13 | var selectedTab: AnyTabRoute
14 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/AppTabRouter.swift:10:47: error: 'ObservableObject' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | @MainActor internal final class AppTabRouter: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
11 |
12 | @Published
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/TabRoute.swift:41:30: error: 'View' is only available in macOS 10.15 or newer
37 | */
38 | @_typeEraser(AnyTabRoute)
39 | public protocol TabRoute: Hashable, Equatable, Identifiable where ID == String {
| `- note: add @available attribute to enclosing protocol
40 | /// The type of view representing the label of this TabRoute.
41 | associatedtype TabLabel: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
42 | /// The type of view representing the content of this TabRoute.
43 | associatedtype TabContent: View
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/TabRoute.swift:43:32: error: 'View' is only available in macOS 10.15 or newer
37 | */
38 | @_typeEraser(AnyTabRoute)
39 | public protocol TabRoute: Hashable, Equatable, Identifiable where ID == String {
| `- note: add @available attribute to enclosing protocol
40 | /// The type of view representing the label of this TabRoute.
41 | associatedtype TabLabel: View
42 | /// The type of view representing the content of this TabRoute.
43 | associatedtype TabContent: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
44 |
45 | /**
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/TabRoute.swift:51:17: error: 'ViewBuilder' is only available in macOS 10.15 or newer
37 | */
38 | @_typeEraser(AnyTabRoute)
39 | public protocol TabRoute: Hashable, Equatable, Identifiable where ID == String {
| `- note: add @available attribute to enclosing protocol
40 | /// The type of view representing the label of this TabRoute.
41 | associatedtype TabLabel: View
:
49 | - context: The context in which the tab label is being created.
50 | */
51 | @MainActor @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
52 | func makeLabel(context: Context) -> TabLabel
| `- note: add @available attribute to enclosing instance method
53 |
54 | /**
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/TabRoute.swift:60:17: error: 'ViewBuilder' is only available in macOS 10.15 or newer
37 | */
38 | @_typeEraser(AnyTabRoute)
39 | public protocol TabRoute: Hashable, Equatable, Identifiable where ID == String {
| `- note: add @available attribute to enclosing protocol
40 | /// The type of view representing the label of this TabRoute.
41 | associatedtype TabLabel: View
:
58 | - context: The context in which the tab content is being created.
59 | */
60 | @MainActor @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
61 | func makeContent(context: Context) -> TabContent
| `- note: add @available attribute to enclosing instance method
62 |
63 | typealias Context = RoutableTabContext
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/TabRoute.swift:39:48: error: 'Identifiable' is only available in macOS 10.15 or newer
37 | */
38 | @_typeEraser(AnyTabRoute)
39 | public protocol TabRoute: Hashable, Equatable, Identifiable where ID == String {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
40 | /// The type of view representing the label of this TabRoute.
41 | associatedtype TabLabel: View
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/ViewRoute.swift:42:26: error: 'View' is only available in macOS 10.15 or newer
38 | */
39 | @_typeEraser(AnyViewRoute)
40 | public protocol ViewRoute: Hashable, Equatable, Identifiable where ID == String {
| `- note: add @available attribute to enclosing protocol
41 | /// The type of view representing the body of this ViewRoute.
42 | associatedtype Body: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
43 |
44 | /**
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/ViewRoute.swift:52:17: error: 'ViewBuilder' is only available in macOS 10.15 or newer
38 | */
39 | @_typeEraser(AnyViewRoute)
40 | public protocol ViewRoute: Hashable, Equatable, Identifiable where ID == String {
| `- note: add @available attribute to enclosing protocol
41 | /// The type of view representing the body of this ViewRoute.
42 | associatedtype Body: View
:
50 | - Returns: A SwiftUI `View` representing the main content of the view.
51 | */
52 | @MainActor @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
53 | func makeBody(context: Context) -> Body
| `- note: add @available attribute to enclosing instance method
54 |
55 | typealias Context = RoutableViewContext
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/ViewRoute.swift:40:49: error: 'Identifiable' is only available in macOS 10.15 or newer
38 | */
39 | @_typeEraser(AnyViewRoute)
40 | public protocol ViewRoute: Hashable, Equatable, Identifiable where ID == String {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
41 | /// The type of view representing the body of this ViewRoute.
42 | associatedtype Body: View
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Utilities/AnyRoute.swift:13:29: error: 'AnyView' is only available in macOS 10.15 or newer
10 |
11 | /// A type-erased ViewRoute.
12 | public struct AnyViewRoute: ViewRoute {
| `- note: add @available attribute to enclosing struct
13 | public typealias Body = AnyView
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
14 |
15 | private let _route: any ViewRoute
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Utilities/AnyRoute.swift:34:33: error: 'AnyView' is only available in macOS 10.15 or newer
31 |
32 | /// A type-erased TabRoute.
33 | public struct AnyTabRoute: TabRoute {
| `- note: add @available attribute to enclosing struct
34 | public typealias TabLabel = AnyView
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
35 | public typealias TabContent = AnyView
36 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Utilities/AnyRoute.swift:35:35: error: 'AnyView' is only available in macOS 10.15 or newer
31 |
32 | /// A type-erased TabRoute.
33 | public struct AnyTabRoute: TabRoute {
| `- note: add @available attribute to enclosing struct
34 | public typealias TabLabel = AnyView
35 | public typealias TabContent = AnyView
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
36 |
37 | private let _route: any TabRoute
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Utilities/Router.swift:14:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
10 | /// A convenience propertyWrapper to access the injected `AppNavigationRouter` instance.
11 | @propertyWrapper
12 | public struct Router: DynamicProperty {
| `- note: add @available attribute to enclosing struct
13 |
14 | @EnvironmentObject
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
15 | private var router: AppNavigationRouter
16 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:12:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
13 | private var tabRouter: AppTabRouter
14 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:15:6: error: 'StateObject' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
13 | private var tabRouter: AppTabRouter
14 |
15 | @StateObject
| `- error: 'StateObject' is only available in macOS 11.0 or newer
16 | private var navRouter: AppNavigationRouter = .init()
17 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
16 | private var navRouter: AppNavigationRouter = .init()
17 |
18 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
19 | private var path: [AnyViewRoute] = []
20 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
19 | private var path: [AnyViewRoute] = []
20 |
21 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
22 | private var sheet: AnyViewRoute?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:24:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
22 | private var sheet: AnyViewRoute?
23 |
24 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
25 | private var fullScreenCover: AnyViewRoute?
26 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:27:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
25 | private var fullScreenCover: AnyViewRoute?
26 |
27 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
28 | NavigationStack(path: $path) {
29 | content
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:59:59: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
57 | }
58 |
59 | private func sheetView(_ sheet: AnyViewRoute) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
60 | sheet.makeBody(context: .init(presentationMode: .sheet))
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:63:69: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
61 | }
62 |
63 | private func fullScreenCoverView(_ cover: AnyViewRoute) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
64 | cover.makeBody(context: .init(presentationMode: .fullScreenCover))
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:67:81: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
65 | }
66 |
67 | private func navigationDestinationView(_ destination: AnyViewRoute) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
68 | destination.makeBody(context: .init(presentationMode: .destination))
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:76:36: error: 'View' is only available in macOS 10.15 or newer
70 | }
71 |
72 | extension View {
| `- note: add @available attribute to enclosing extension
73 |
74 | /// Marks this view as the "root view" of a new navigation stack and gives subviews the ability to
75 | /// control the navigation through usage of the ``Router`` propertyWrapper, or access via environment object.
76 | public func routable() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
77 | modifier(RoutableViewModifier())
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:72:11: error: 'View' is only available in macOS 10.15 or newer
70 | }
71 |
72 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
73 |
74 | /// Marks this view as the "root view" of a new navigation stack and gives subviews the ability to
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Views/RoutableTabView.swift:48:6: error: 'StateObject' is only available in macOS 11.0 or newer
44 | ///
45 | /// ```
46 | public struct RoutableTabView: View {
| `- note: add @available attribute to enclosing struct
47 |
48 | @StateObject
| `- error: 'StateObject' is only available in macOS 11.0 or newer
49 | private var tabRouter: AppTabRouter
50 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Views/RoutableTabView.swift:55:27: error: 'View' is only available in macOS 10.15 or newer
44 | ///
45 | /// ```
46 | public struct RoutableTabView: View {
| `- note: add @available attribute to enclosing struct
47 |
48 | @StateObject
:
53 | }
54 |
55 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
56 | TabView(selection: $tabRouter.selectedTab) {
57 | ForEach(tabRouter.tabs) { tab in
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Views/RoutableTabView.swift:66:54: error: 'View' is only available in macOS 10.15 or newer
44 | ///
45 | /// ```
46 | public struct RoutableTabView: View {
| `- note: add @available attribute to enclosing struct
47 |
48 | @StateObject
:
64 | }
65 |
66 | private func labelView(tab: AnyTabRoute) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
67 | tab.makeLabel(context: makeContext(tab: tab))
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Views/RoutableTabView.swift:70:56: error: 'View' is only available in macOS 10.15 or newer
44 | ///
45 | /// ```
46 | public struct RoutableTabView: View {
| `- note: add @available attribute to enclosing struct
47 |
48 | @StateObject
:
68 | }
69 |
70 | private func contentView(tab: AnyTabRoute) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
71 | tab.makeContent(context: makeContext(tab: tab))
72 | }
[5/11] Compiling GSRouting AppTabRouter.swift
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/AppTabRouter.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | @MainActor internal final class AppTabRouter: ObservableObject {
| `- note: add @available attribute to enclosing class
11 |
12 | @Published
| `- error: 'Published' is only available in macOS 10.15 or newer
13 | var selectedTab: AnyTabRoute
14 |
<unknown>:0: error: cannot convert value of type 'KeyPath<AppTabRouter, AnyTabRoute>' to expected argument type 'ReferenceWritableKeyPath<AppTabRouter, AnyTabRoute>'
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/AppTabRouter.swift:10:47: error: 'ObservableObject' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | @MainActor internal final class AppTabRouter: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
11 |
12 | @Published
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/AppTabRouter.swift:21:9: error: setter for 'selectedTab' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | @MainActor internal final class AppTabRouter: ObservableObject {
| `- note: add @available attribute to enclosing class
11 |
12 | @Published
:
15 | let tabs: [AnyTabRoute]
16 |
17 | init(tabs: [any TabRoute]) {
| `- note: add @available attribute to enclosing initializer
18 | if tabs.isEmpty { fatalError("Must have at least 1 tab.") }
19 |
20 | let hashedTabs = tabs.map(AnyTabRoute.init)
21 | self.selectedTab = hashedTabs[0]
| |- error: setter for 'selectedTab' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | self.tabs = hashedTabs
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/AppTabRouter.swift:31:13: error: setter for 'selectedTab' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | @MainActor internal final class AppTabRouter: ObservableObject {
| `- note: add @available attribute to enclosing class
11 |
12 | @Published
:
23 | }
24 |
25 | func switchToTab(id: String) {
| `- note: add @available attribute to enclosing instance method
26 | guard selectedTab.id != id else {
27 | return
:
29 |
30 | if let tab = tabs.first(where: { $0.id == id }) {
31 | self.selectedTab = tab
| |- error: setter for 'selectedTab' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | }
33 | }
[6/11] Compiling GSRouting TabRoute.swift
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/TabRoute.swift:41:30: error: 'View' is only available in macOS 10.15 or newer
37 | */
38 | @_typeEraser(AnyTabRoute)
39 | public protocol TabRoute: Hashable, Equatable, Identifiable where ID == String {
| `- note: add @available attribute to enclosing protocol
40 | /// The type of view representing the label of this TabRoute.
41 | associatedtype TabLabel: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
42 | /// The type of view representing the content of this TabRoute.
43 | associatedtype TabContent: View
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/TabRoute.swift:43:32: error: 'View' is only available in macOS 10.15 or newer
37 | */
38 | @_typeEraser(AnyTabRoute)
39 | public protocol TabRoute: Hashable, Equatable, Identifiable where ID == String {
| `- note: add @available attribute to enclosing protocol
40 | /// The type of view representing the label of this TabRoute.
41 | associatedtype TabLabel: View
42 | /// The type of view representing the content of this TabRoute.
43 | associatedtype TabContent: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
44 |
45 | /**
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/TabRoute.swift:51:17: error: 'ViewBuilder' is only available in macOS 10.15 or newer
37 | */
38 | @_typeEraser(AnyTabRoute)
39 | public protocol TabRoute: Hashable, Equatable, Identifiable where ID == String {
| `- note: add @available attribute to enclosing protocol
40 | /// The type of view representing the label of this TabRoute.
41 | associatedtype TabLabel: View
:
49 | - context: The context in which the tab label is being created.
50 | */
51 | @MainActor @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
52 | func makeLabel(context: Context) -> TabLabel
| `- note: add @available attribute to enclosing instance method
53 |
54 | /**
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/TabRoute.swift:60:17: error: 'ViewBuilder' is only available in macOS 10.15 or newer
37 | */
38 | @_typeEraser(AnyTabRoute)
39 | public protocol TabRoute: Hashable, Equatable, Identifiable where ID == String {
| `- note: add @available attribute to enclosing protocol
40 | /// The type of view representing the label of this TabRoute.
41 | associatedtype TabLabel: View
:
58 | - context: The context in which the tab content is being created.
59 | */
60 | @MainActor @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
61 | func makeContent(context: Context) -> TabContent
| `- note: add @available attribute to enclosing instance method
62 |
63 | typealias Context = RoutableTabContext
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/TabRoute.swift:39:48: error: 'Identifiable' is only available in macOS 10.15 or newer
37 | */
38 | @_typeEraser(AnyTabRoute)
39 | public protocol TabRoute: Hashable, Equatable, Identifiable where ID == String {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
40 | /// The type of view representing the label of this TabRoute.
41 | associatedtype TabLabel: View
[7/11] Compiling GSRouting ViewRoute.swift
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/ViewRoute.swift:42:26: error: 'View' is only available in macOS 10.15 or newer
38 | */
39 | @_typeEraser(AnyViewRoute)
40 | public protocol ViewRoute: Hashable, Equatable, Identifiable where ID == String {
| `- note: add @available attribute to enclosing protocol
41 | /// The type of view representing the body of this ViewRoute.
42 | associatedtype Body: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
43 |
44 | /**
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/ViewRoute.swift:52:17: error: 'ViewBuilder' is only available in macOS 10.15 or newer
38 | */
39 | @_typeEraser(AnyViewRoute)
40 | public protocol ViewRoute: Hashable, Equatable, Identifiable where ID == String {
| `- note: add @available attribute to enclosing protocol
41 | /// The type of view representing the body of this ViewRoute.
42 | associatedtype Body: View
:
50 | - Returns: A SwiftUI `View` representing the main content of the view.
51 | */
52 | @MainActor @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
53 | func makeBody(context: Context) -> Body
| `- note: add @available attribute to enclosing instance method
54 |
55 | typealias Context = RoutableViewContext
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Protocols/ViewRoute.swift:40:49: error: 'Identifiable' is only available in macOS 10.15 or newer
38 | */
39 | @_typeEraser(AnyViewRoute)
40 | public protocol ViewRoute: Hashable, Equatable, Identifiable where ID == String {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
41 | /// The type of view representing the body of this ViewRoute.
42 | associatedtype Body: View
[8/11] Compiling GSRouting AppNavigationRouter.swift
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/AppNavigationRouter.swift:12:52: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 | /// A class to handle navigation routing operations, such as presenting sheets,
11 | /// switching tabs, pushing onto the nav stack etc.
12 | @MainActor public final class AppNavigationRouter: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 | private var callbacks: Callbacks?
14 |
[9/11] Compiling GSRouting Routable.swift
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:12:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
13 | private var tabRouter: AppTabRouter
14 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:15:6: error: 'StateObject' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
13 | private var tabRouter: AppTabRouter
14 |
15 | @StateObject
| `- error: 'StateObject' is only available in macOS 11.0 or newer
16 | private var navRouter: AppNavigationRouter = .init()
17 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
16 | private var navRouter: AppNavigationRouter = .init()
17 |
18 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
19 | private var path: [AnyViewRoute] = []
20 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
19 | private var path: [AnyViewRoute] = []
20 |
21 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
22 | private var sheet: AnyViewRoute?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:24:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
22 | private var sheet: AnyViewRoute?
23 |
24 | @State
| `- error: 'State' is only available in macOS 10.15 or newer
25 | private var fullScreenCover: AnyViewRoute?
26 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:27:41: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
25 | private var fullScreenCover: AnyViewRoute?
26 |
27 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
28 | NavigationStack(path: $path) {
29 | content
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:59:59: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
57 | }
58 |
59 | private func sheetView(_ sheet: AnyViewRoute) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
60 | sheet.makeBody(context: .init(presentationMode: .sheet))
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:63:69: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
61 | }
62 |
63 | private func fullScreenCoverView(_ cover: AnyViewRoute) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
64 | cover.makeBody(context: .init(presentationMode: .fullScreenCover))
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:67:81: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
65 | }
66 |
67 | private func navigationDestinationView(_ destination: AnyViewRoute) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
68 | destination.makeBody(context: .init(presentationMode: .destination))
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:76:36: error: 'View' is only available in macOS 10.15 or newer
70 | }
71 |
72 | extension View {
| `- note: add @available attribute to enclosing extension
73 |
74 | /// Marks this view as the "root view" of a new navigation stack and gives subviews the ability to
75 | /// control the navigation through usage of the ``Router`` propertyWrapper, or access via environment object.
76 | public func routable() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
77 | modifier(RoutableViewModifier())
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:72:11: error: 'View' is only available in macOS 10.15 or newer
70 | }
71 |
72 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
73 |
74 | /// Marks this view as the "root view" of a new navigation stack and gives subviews the ability to
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:28:9: error: 'NavigationStack' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
25 | private var fullScreenCover: AnyViewRoute?
26 |
27 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | NavigationStack(path: $path) {
| |- error: 'NavigationStack' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
29 | content
30 | .sheet(item: $sheet, content: sheetView)
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:30:18: error: 'sheet(item:onDismiss:content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
25 | private var fullScreenCover: AnyViewRoute?
26 |
27 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | NavigationStack(path: $path) {
29 | content
30 | .sheet(item: $sheet, content: sheetView)
| |- error: 'sheet(item:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .fullScreenCover(item: $fullScreenCover, content: fullScreenCoverView)
32 | .navigationDestination(for: AnyViewRoute.self, destination: navigationDestinationView)
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:31:18: error: 'fullScreenCover(item:onDismiss:content:)' is unavailable in macOS
29 | content
30 | .sheet(item: $sheet, content: sheetView)
31 | .fullScreenCover(item: $fullScreenCover, content: fullScreenCoverView)
| `- error: 'fullScreenCover(item:onDismiss:content:)' is unavailable in macOS
32 | .navigationDestination(for: AnyViewRoute.self, destination: navigationDestinationView)
33 | }
SwiftUI.View:4:29: note: 'fullScreenCover(item:onDismiss:content:)' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | extension View {
4 | 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
5 |
6 | @available(*, deprecated, renamed: "fullScreenCover(item:onDismiss:content:)")
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:32:18: error: 'navigationDestination(for:destination:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
25 | private var fullScreenCover: AnyViewRoute?
26 |
27 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | NavigationStack(path: $path) {
29 | content
30 | .sheet(item: $sheet, content: sheetView)
31 | .fullScreenCover(item: $fullScreenCover, content: fullScreenCoverView)
32 | .navigationDestination(for: AnyViewRoute.self, destination: navigationDestinationView)
| |- error: 'navigationDestination(for:destination:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
33 | }
34 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:34:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
25 | private var fullScreenCover: AnyViewRoute?
26 |
27 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | NavigationStack(path: $path) {
29 | content
:
32 | .navigationDestination(for: AnyViewRoute.self, destination: navigationDestinationView)
33 | }
34 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | navRouter.initialize(
36 | push: { destination in
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:37:21: error: cannot pass as inout because setter for 'path' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
25 | private var fullScreenCover: AnyViewRoute?
26 |
27 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | NavigationStack(path: $path) {
29 | content
:
35 | navRouter.initialize(
36 | push: { destination in
37 | self.path.append(destination)
| |- error: cannot pass as inout because setter for 'path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | },
39 | pop: {
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:40:25: error: cannot pass as inout because setter for 'path' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
25 | private var fullScreenCover: AnyViewRoute?
26 |
27 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | NavigationStack(path: $path) {
29 | content
:
38 | },
39 | pop: {
40 | _ = self.path.popLast()
| |- error: cannot pass as inout because setter for 'path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | },
42 | popToRoot: {
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:43:21: error: setter for 'path' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
25 | private var fullScreenCover: AnyViewRoute?
26 |
27 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | NavigationStack(path: $path) {
29 | content
:
41 | },
42 | popToRoot: {
43 | self.path = []
| |- error: setter for 'path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | },
45 | presentSheet: { sheet in
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:46:21: error: setter for 'sheet' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
25 | private var fullScreenCover: AnyViewRoute?
26 |
27 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | NavigationStack(path: $path) {
29 | content
:
44 | },
45 | presentSheet: { sheet in
46 | self.sheet = sheet
| |- error: setter for 'sheet' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | },
48 | presentCover: { cover in
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:49:21: error: setter for 'fullScreenCover' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
25 | private var fullScreenCover: AnyViewRoute?
26 |
27 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | NavigationStack(path: $path) {
29 | content
:
47 | },
48 | presentCover: { cover in
49 | self.fullScreenCover = cover
| |- error: setter for 'fullScreenCover' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | },
51 | switchToTab: { id in
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:56:10: error: 'environmentObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | private struct RoutableViewModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
11 |
12 | @EnvironmentObject
:
25 | private var fullScreenCover: AnyViewRoute?
26 |
27 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
28 | NavigationStack(path: $path) {
29 | content
:
54 | )
55 | }
56 | .environmentObject(navRouter)
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:77:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
70 | }
71 |
72 | extension View {
| `- note: add @available attribute to enclosing extension
73 |
74 | /// Marks this view as the "root view" of a new navigation stack and gives subviews the ability to
75 | /// control the navigation through usage of the ``Router`` propertyWrapper, or access via environment object.
76 | public func routable() -> some View {
| `- note: add @available attribute to enclosing instance method
77 | modifier(RoutableViewModifier())
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
78 | }
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/ViewModifiers/Routable.swift:77:9: error: 'modifier' is only available in macOS 10.15 or newer
70 | }
71 |
72 | extension View {
| `- note: add @available attribute to enclosing extension
73 |
74 | /// Marks this view as the "root view" of a new navigation stack and gives subviews the ability to
75 | /// control the navigation through usage of the ``Router`` propertyWrapper, or access via environment object.
76 | public func routable() -> some View {
| `- note: add @available attribute to enclosing instance method
77 | modifier(RoutableViewModifier())
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | }
79 | }
[10/11] Compiling GSRouting RoutableTabView.swift
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Views/RoutableTabView.swift:48:6: error: 'StateObject' is only available in macOS 11.0 or newer
44 | ///
45 | /// ```
46 | public struct RoutableTabView: View {
| `- note: add @available attribute to enclosing struct
47 |
48 | @StateObject
| `- error: 'StateObject' is only available in macOS 11.0 or newer
49 | private var tabRouter: AppTabRouter
50 |
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Views/RoutableTabView.swift:55:27: error: 'View' is only available in macOS 10.15 or newer
44 | ///
45 | /// ```
46 | public struct RoutableTabView: View {
| `- note: add @available attribute to enclosing struct
47 |
48 | @StateObject
:
53 | }
54 |
55 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
56 | TabView(selection: $tabRouter.selectedTab) {
57 | ForEach(tabRouter.tabs) { tab in
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Views/RoutableTabView.swift:66:54: error: 'View' is only available in macOS 10.15 or newer
44 | ///
45 | /// ```
46 | public struct RoutableTabView: View {
| `- note: add @available attribute to enclosing struct
47 |
48 | @StateObject
:
64 | }
65 |
66 | private func labelView(tab: AnyTabRoute) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
67 | tab.makeLabel(context: makeContext(tab: tab))
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Views/RoutableTabView.swift:70:56: error: 'View' is only available in macOS 10.15 or newer
44 | ///
45 | /// ```
46 | public struct RoutableTabView: View {
| `- note: add @available attribute to enclosing struct
47 |
48 | @StateObject
:
68 | }
69 |
70 | private func contentView(tab: AnyTabRoute) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
71 | tab.makeContent(context: makeContext(tab: tab))
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Views/RoutableTabView.swift:56:39: error: cannot assign to property: '$tabRouter' is immutable
54 |
55 | public var body: some View {
56 | TabView(selection: $tabRouter.selectedTab) {
| `- error: cannot assign to property: '$tabRouter' is immutable
57 | ForEach(tabRouter.tabs) { tab in
58 | contentView(tab: tab)
[11/11] Compiling GSRouting Router.swift
/Users/admin/builder/spi-builder-workspace/Sources/GSRouting/Utilities/Router.swift:14:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
10 | /// A convenience propertyWrapper to access the injected `AppNavigationRouter` instance.
11 | @propertyWrapper
12 | public struct Router: DynamicProperty {
| `- note: add @available attribute to enclosing struct
13 |
14 | @EnvironmentObject
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
15 | private var router: AppNavigationRouter
16 |
BUILD FAILURE 6.0 macosSpm