The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GlassTabView, reference 1.0.0 (c6032b), with Swift 6.1 for macOS (SPM) on 31 May 2025 19:22:25 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/timi2506/GlassTabView.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/timi2506/GlassTabView
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at c6032b4 Update README.md
Cloned https://github.com/timi2506/GlassTabView.git
Revision (git rev-parse @):
c6032b4e0d47a2b6a14b088f2ef9b9dc30ab8f14
SUCCESS checkout https://github.com/timi2506/GlassTabView.git at 1.0.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": "glasstabview",
      "name": "GlassTabView",
      "url": "https://github.com/timi2506/GlassTabView.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GlassTabView",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/timi2506/GlassTabView.git
[1/25] Fetching glasstabview
Fetched https://github.com/timi2506/GlassTabView.git from cache (0.65s)
Creating working copy for https://github.com/timi2506/GlassTabView.git
Working copy of https://github.com/timi2506/GlassTabView.git resolved at 1.0.0 (c6032b4)
warning: '.resolve-product-dependencies': dependency 'glasstabview' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/timi2506/GlassTabView.git
https://github.com/timi2506/GlassTabView.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "GlassTabView",
  "name" : "GlassTabView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "GlassTabView",
      "targets" : [
        "GlassTabView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GlassTabView",
      "module_type" : "SwiftTarget",
      "name" : "GlassTabView",
      "path" : "Sources/GlassTabView",
      "product_memberships" : [
        "GlassTabView"
      ],
      "sources" : [
        "GlassTabView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module GlassTabView
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:4:28: error: 'Binding' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
    |            |               `- error: 'Binding' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
  5 |         self.selectionBinding = selection ?? .constant("")
  6 |         let items = content()
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:12:27: error: 'Binding' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 10 |         self._selectedInBar = State(initialValue: items.first!.id)
 11 |     }
 12 |     var selectionBinding: Binding<String>
    |                           `- error: 'Binding' is only available in macOS 10.15 or newer
 13 |     @State var tabItems: [TabItem]
 14 |     @State var selected: String
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 11 |     }
 12 |     var selectionBinding: Binding<String>
 13 |     @State var tabItems: [TabItem]
    |      `- error: 'State' is only available in macOS 10.15 or newer
 14 |     @State var selected: String
 15 |     @Namespace private var animation
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:14:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 12 |     var selectionBinding: Binding<String>
 13 |     @State var tabItems: [TabItem]
 14 |     @State var selected: String
    |      `- error: 'State' is only available in macOS 10.15 or newer
 15 |     @Namespace private var animation
 16 |     @State var yOffset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:15:6: error: 'Namespace' is only available in macOS 11.0 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 13 |     @State var tabItems: [TabItem]
 14 |     @State var selected: String
 15 |     @Namespace private var animation
    |      `- error: 'Namespace' is only available in macOS 11.0 or newer
 16 |     @State var yOffset: CGFloat = 0
 17 |     @State var lastYOffset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:16:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 14 |     @State var selected: String
 15 |     @Namespace private var animation
 16 |     @State var yOffset: CGFloat = 0
    |      `- error: 'State' is only available in macOS 10.15 or newer
 17 |     @State var lastYOffset: CGFloat = 0
 18 |     @State var collapsed = false
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 15 |     @Namespace private var animation
 16 |     @State var yOffset: CGFloat = 0
 17 |     @State var lastYOffset: CGFloat = 0
    |      `- error: 'State' is only available in macOS 10.15 or newer
 18 |     @State var collapsed = false
 19 |     @State var selectedInBar: String {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 16 |     @State var yOffset: CGFloat = 0
 17 |     @State var lastYOffset: CGFloat = 0
 18 |     @State var collapsed = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 19 |     @State var selectedInBar: String {
 20 |         didSet {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 17 |     @State var lastYOffset: CGFloat = 0
 18 |     @State var collapsed = false
 19 |     @State var selectedInBar: String {
    |      `- error: 'State' is only available in macOS 10.15 or newer
 20 |         didSet {
 21 |             DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:26:27: error: 'View' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 24 |         }
 25 |     }
 26 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             TabView(selection: $selected) {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:111: error: 'View' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                                                                  `- error: 'View' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:71: error: 'Image' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                          `- error: 'Image' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:79: error: 'ViewBuilder' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                                  `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:111: error: 'View' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                                                                  `- error: 'View' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:150:94: error: 'AnyView' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
148 |         self.icon = image
149 |     }
150 |     public init(id: String = UUID().uuidString, title: String, systemImage: String, content: AnyView) {
    |            |                                                                                 `- error: 'AnyView' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
151 |         self.id = id
152 |         self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:157:25: error: 'AnyView' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
155 |     }
156 |     public var id: String
157 |     public var content: AnyView
    |                         `- error: 'AnyView' is only available in macOS 10.15 or newer
158 |     public var title: String
159 |     public var icon: Image
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:159:22: error: 'Image' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
157 |     public var content: AnyView
158 |     public var title: String
159 |     public var icon: Image
    |                      `- error: 'Image' is only available in macOS 10.15 or newer
160 | }
161 |
[4/4] Compiling GlassTabView GlassTabView.swift
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:4:28: error: 'Binding' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
    |            |               `- error: 'Binding' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
  5 |         self.selectionBinding = selection ?? .constant("")
  6 |         let items = content()
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:12:27: error: 'Binding' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 10 |         self._selectedInBar = State(initialValue: items.first!.id)
 11 |     }
 12 |     var selectionBinding: Binding<String>
    |                           `- error: 'Binding' is only available in macOS 10.15 or newer
 13 |     @State var tabItems: [TabItem]
 14 |     @State var selected: String
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 11 |     }
 12 |     var selectionBinding: Binding<String>
 13 |     @State var tabItems: [TabItem]
    |      `- error: 'State' is only available in macOS 10.15 or newer
 14 |     @State var selected: String
 15 |     @Namespace private var animation
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:14:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 12 |     var selectionBinding: Binding<String>
 13 |     @State var tabItems: [TabItem]
 14 |     @State var selected: String
    |      `- error: 'State' is only available in macOS 10.15 or newer
 15 |     @Namespace private var animation
 16 |     @State var yOffset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:15:6: error: 'Namespace' is only available in macOS 11.0 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 13 |     @State var tabItems: [TabItem]
 14 |     @State var selected: String
 15 |     @Namespace private var animation
    |      `- error: 'Namespace' is only available in macOS 11.0 or newer
 16 |     @State var yOffset: CGFloat = 0
 17 |     @State var lastYOffset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:16:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 14 |     @State var selected: String
 15 |     @Namespace private var animation
 16 |     @State var yOffset: CGFloat = 0
    |      `- error: 'State' is only available in macOS 10.15 or newer
 17 |     @State var lastYOffset: CGFloat = 0
 18 |     @State var collapsed = false
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 15 |     @Namespace private var animation
 16 |     @State var yOffset: CGFloat = 0
 17 |     @State var lastYOffset: CGFloat = 0
    |      `- error: 'State' is only available in macOS 10.15 or newer
 18 |     @State var collapsed = false
 19 |     @State var selectedInBar: String {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 16 |     @State var yOffset: CGFloat = 0
 17 |     @State var lastYOffset: CGFloat = 0
 18 |     @State var collapsed = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 19 |     @State var selectedInBar: String {
 20 |         didSet {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 17 |     @State var lastYOffset: CGFloat = 0
 18 |     @State var collapsed = false
 19 |     @State var selectedInBar: String {
    |      `- error: 'State' is only available in macOS 10.15 or newer
 20 |         didSet {
 21 |             DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:26:27: error: 'View' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 24 |         }
 25 |     }
 26 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             TabView(selection: $selected) {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:111: error: 'View' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                                                                  `- error: 'View' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:71: error: 'Image' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                          `- error: 'Image' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:79: error: 'ViewBuilder' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                                  `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:111: error: 'View' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                                                                  `- error: 'View' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:150:94: error: 'AnyView' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
148 |         self.icon = image
149 |     }
150 |     public init(id: String = UUID().uuidString, title: String, systemImage: String, content: AnyView) {
    |            |                                                                                 `- error: 'AnyView' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
151 |         self.id = id
152 |         self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:157:25: error: 'AnyView' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
155 |     }
156 |     public var id: String
157 |     public var content: AnyView
    |                         `- error: 'AnyView' is only available in macOS 10.15 or newer
158 |     public var title: String
159 |     public var icon: Image
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:159:22: error: 'Image' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
157 |     public var content: AnyView
158 |     public var title: String
159 |     public var icon: Image
    |                      `- error: 'Image' is only available in macOS 10.15 or newer
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:8:9: error: setter for 'tabItems' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
    |            `- note: add @available attribute to enclosing initializer
  5 |         self.selectionBinding = selection ?? .constant("")
  6 |         let items = content()
  7 |         precondition(items.count <= 5, "Maximum 5 tabs allowed")
  8 |         self.tabItems = items
    |         |- error: setter for 'tabItems' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
  9 |         self._selected = State(initialValue: items.first!.id)
 10 |         self._selectedInBar = State(initialValue: items.first!.id)
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:9:26: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
    |            `- note: add @available attribute to enclosing initializer
  5 |         self.selectionBinding = selection ?? .constant("")
  6 |         let items = content()
  7 |         precondition(items.count <= 5, "Maximum 5 tabs allowed")
  8 |         self.tabItems = items
  9 |         self._selected = State(initialValue: items.first!.id)
    |                          |- error: 'State' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
 10 |         self._selectedInBar = State(initialValue: items.first!.id)
 11 |     }
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:10:31: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
    |            `- note: add @available attribute to enclosing initializer
  5 |         self.selectionBinding = selection ?? .constant("")
  6 |         let items = content()
    :
  8 |         self.tabItems = items
  9 |         self._selected = State(initialValue: items.first!.id)
 10 |         self._selectedInBar = State(initialValue: items.first!.id)
    |                               |- error: 'State' is only available in macOS 10.15 or newer
    |                               `- note: add 'if #available' version check
 11 |     }
 12 |     var selectionBinding: Binding<String>
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:73:35: error: cannot find 'UIImpactFeedbackGenerator' in scope
 71 |             .scaleEffect(tabItems.count <= 5 ? 0.875 : 1)
 72 |             .onLongPressGesture(minimumDuration: 0.25) {
 73 |                 let impactHeavy = UIImpactFeedbackGenerator(style: .heavy)
    |                                   `- error: cannot find 'UIImpactFeedbackGenerator' in scope
 74 |                 impactHeavy.impactOccurred()
 75 |                 collapsed = true
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:134:30: error: cannot find 'UIImpactFeedbackGenerator' in scope
132 |                 selectedInBar = selected
133 |             }
134 |             let impactSoft = UIImpactFeedbackGenerator(style: .rigid)
    |                              `- error: cannot find 'UIImpactFeedbackGenerator' in scope
135 |             impactSoft.impactOccurred()
136 |         }
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:26:32: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 24 |         }
 25 |     }
 26 |     public var body: some View {
    |                                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 27 |         ZStack {
 28 |             TabView(selection: $selected) {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:146:24: error: 'AnyView' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
    |                        |- error: 'AnyView' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
147 |         self.title = title
148 |         self.icon = image
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:154:21: error: 'Image' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
148 |         self.icon = image
149 |     }
150 |     public init(id: String = UUID().uuidString, title: String, systemImage: String, content: AnyView) {
    |            `- note: add @available attribute to enclosing initializer
151 |         self.id = id
152 |         self.content = content
153 |         self.title = title
154 |         self.icon = Image(systemName: systemImage)
    |                     |- error: 'Image' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
155 |     }
156 |     public var id: String
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:154:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
148 |         self.icon = image
149 |     }
150 |     public init(id: String = UUID().uuidString, title: String, systemImage: String, content: AnyView) {
    |            `- note: add @available attribute to enclosing initializer
151 |         self.id = id
152 |         self.content = content
153 |         self.title = title
154 |         self.icon = Image(systemName: systemImage)
    |                     |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
    |                     `- note: add 'if #available' version check
155 |     }
156 |     public var id: String
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module GlassTabView
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:4:28: error: 'Binding' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
    |            |               `- error: 'Binding' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
  5 |         self.selectionBinding = selection ?? .constant("")
  6 |         let items = content()
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:12:27: error: 'Binding' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 10 |         self._selectedInBar = State(initialValue: items.first!.id)
 11 |     }
 12 |     var selectionBinding: Binding<String>
    |                           `- error: 'Binding' is only available in macOS 10.15 or newer
 13 |     @State var tabItems: [TabItem]
 14 |     @State var selected: String
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 11 |     }
 12 |     var selectionBinding: Binding<String>
 13 |     @State var tabItems: [TabItem]
    |      `- error: 'State' is only available in macOS 10.15 or newer
 14 |     @State var selected: String
 15 |     @Namespace private var animation
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:14:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 12 |     var selectionBinding: Binding<String>
 13 |     @State var tabItems: [TabItem]
 14 |     @State var selected: String
    |      `- error: 'State' is only available in macOS 10.15 or newer
 15 |     @Namespace private var animation
 16 |     @State var yOffset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:15:6: error: 'Namespace' is only available in macOS 11.0 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 13 |     @State var tabItems: [TabItem]
 14 |     @State var selected: String
 15 |     @Namespace private var animation
    |      `- error: 'Namespace' is only available in macOS 11.0 or newer
 16 |     @State var yOffset: CGFloat = 0
 17 |     @State var lastYOffset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:16:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 14 |     @State var selected: String
 15 |     @Namespace private var animation
 16 |     @State var yOffset: CGFloat = 0
    |      `- error: 'State' is only available in macOS 10.15 or newer
 17 |     @State var lastYOffset: CGFloat = 0
 18 |     @State var collapsed = false
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 15 |     @Namespace private var animation
 16 |     @State var yOffset: CGFloat = 0
 17 |     @State var lastYOffset: CGFloat = 0
    |      `- error: 'State' is only available in macOS 10.15 or newer
 18 |     @State var collapsed = false
 19 |     @State var selectedInBar: String {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 16 |     @State var yOffset: CGFloat = 0
 17 |     @State var lastYOffset: CGFloat = 0
 18 |     @State var collapsed = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 19 |     @State var selectedInBar: String {
 20 |         didSet {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 17 |     @State var lastYOffset: CGFloat = 0
 18 |     @State var collapsed = false
 19 |     @State var selectedInBar: String {
    |      `- error: 'State' is only available in macOS 10.15 or newer
 20 |         didSet {
 21 |             DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:26:27: error: 'View' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 24 |         }
 25 |     }
 26 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             TabView(selection: $selected) {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:111: error: 'View' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                                                                  `- error: 'View' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:71: error: 'Image' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                          `- error: 'Image' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:79: error: 'ViewBuilder' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                                  `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:111: error: 'View' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                                                                  `- error: 'View' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:150:94: error: 'AnyView' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
148 |         self.icon = image
149 |     }
150 |     public init(id: String = UUID().uuidString, title: String, systemImage: String, content: AnyView) {
    |            |                                                                                 `- error: 'AnyView' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
151 |         self.id = id
152 |         self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:157:25: error: 'AnyView' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
155 |     }
156 |     public var id: String
157 |     public var content: AnyView
    |                         `- error: 'AnyView' is only available in macOS 10.15 or newer
158 |     public var title: String
159 |     public var icon: Image
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:159:22: error: 'Image' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
157 |     public var content: AnyView
158 |     public var title: String
159 |     public var icon: Image
    |                      `- error: 'Image' is only available in macOS 10.15 or newer
160 | }
161 |
[3/3] Compiling GlassTabView GlassTabView.swift
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:4:28: error: 'Binding' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
    |            |               `- error: 'Binding' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
  5 |         self.selectionBinding = selection ?? .constant("")
  6 |         let items = content()
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:12:27: error: 'Binding' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 10 |         self._selectedInBar = State(initialValue: items.first!.id)
 11 |     }
 12 |     var selectionBinding: Binding<String>
    |                           `- error: 'Binding' is only available in macOS 10.15 or newer
 13 |     @State var tabItems: [TabItem]
 14 |     @State var selected: String
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 11 |     }
 12 |     var selectionBinding: Binding<String>
 13 |     @State var tabItems: [TabItem]
    |      `- error: 'State' is only available in macOS 10.15 or newer
 14 |     @State var selected: String
 15 |     @Namespace private var animation
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:14:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 12 |     var selectionBinding: Binding<String>
 13 |     @State var tabItems: [TabItem]
 14 |     @State var selected: String
    |      `- error: 'State' is only available in macOS 10.15 or newer
 15 |     @Namespace private var animation
 16 |     @State var yOffset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:15:6: error: 'Namespace' is only available in macOS 11.0 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 13 |     @State var tabItems: [TabItem]
 14 |     @State var selected: String
 15 |     @Namespace private var animation
    |      `- error: 'Namespace' is only available in macOS 11.0 or newer
 16 |     @State var yOffset: CGFloat = 0
 17 |     @State var lastYOffset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:16:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 14 |     @State var selected: String
 15 |     @Namespace private var animation
 16 |     @State var yOffset: CGFloat = 0
    |      `- error: 'State' is only available in macOS 10.15 or newer
 17 |     @State var lastYOffset: CGFloat = 0
 18 |     @State var collapsed = false
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 15 |     @Namespace private var animation
 16 |     @State var yOffset: CGFloat = 0
 17 |     @State var lastYOffset: CGFloat = 0
    |      `- error: 'State' is only available in macOS 10.15 or newer
 18 |     @State var collapsed = false
 19 |     @State var selectedInBar: String {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 16 |     @State var yOffset: CGFloat = 0
 17 |     @State var lastYOffset: CGFloat = 0
 18 |     @State var collapsed = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 19 |     @State var selectedInBar: String {
 20 |         didSet {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 17 |     @State var lastYOffset: CGFloat = 0
 18 |     @State var collapsed = false
 19 |     @State var selectedInBar: String {
    |      `- error: 'State' is only available in macOS 10.15 or newer
 20 |         didSet {
 21 |             DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:26:27: error: 'View' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
  5 |         self.selectionBinding = selection ?? .constant("")
    :
 24 |         }
 25 |     }
 26 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             TabView(selection: $selected) {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:111: error: 'View' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                                                                  `- error: 'View' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:71: error: 'Image' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                          `- error: 'Image' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:79: error: 'ViewBuilder' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                                  `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:144:111: error: 'View' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            |                                                                                                  `- error: 'View' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:150:94: error: 'AnyView' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
148 |         self.icon = image
149 |     }
150 |     public init(id: String = UUID().uuidString, title: String, systemImage: String, content: AnyView) {
    |            |                                                                                 `- error: 'AnyView' is only available in macOS 10.15 or newer
    |            `- note: add @available attribute to enclosing initializer
151 |         self.id = id
152 |         self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:157:25: error: 'AnyView' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
155 |     }
156 |     public var id: String
157 |     public var content: AnyView
    |                         `- error: 'AnyView' is only available in macOS 10.15 or newer
158 |     public var title: String
159 |     public var icon: Image
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:159:22: error: 'Image' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
157 |     public var content: AnyView
158 |     public var title: String
159 |     public var icon: Image
    |                      `- error: 'Image' is only available in macOS 10.15 or newer
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:8:9: error: setter for 'tabItems' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
    |            `- note: add @available attribute to enclosing initializer
  5 |         self.selectionBinding = selection ?? .constant("")
  6 |         let items = content()
  7 |         precondition(items.count <= 5, "Maximum 5 tabs allowed")
  8 |         self.tabItems = items
    |         |- error: setter for 'tabItems' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
  9 |         self._selected = State(initialValue: items.first!.id)
 10 |         self._selectedInBar = State(initialValue: items.first!.id)
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:9:26: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
    |            `- note: add @available attribute to enclosing initializer
  5 |         self.selectionBinding = selection ?? .constant("")
  6 |         let items = content()
  7 |         precondition(items.count <= 5, "Maximum 5 tabs allowed")
  8 |         self.tabItems = items
  9 |         self._selected = State(initialValue: items.first!.id)
    |                          |- error: 'State' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
 10 |         self._selectedInBar = State(initialValue: items.first!.id)
 11 |     }
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:10:31: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct GlassTabView: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     public init(selection: Binding<String>? = nil, @TabItemsBuilder content: () -> [TabItem]) {
    |            `- note: add @available attribute to enclosing initializer
  5 |         self.selectionBinding = selection ?? .constant("")
  6 |         let items = content()
    :
  8 |         self.tabItems = items
  9 |         self._selected = State(initialValue: items.first!.id)
 10 |         self._selectedInBar = State(initialValue: items.first!.id)
    |                               |- error: 'State' is only available in macOS 10.15 or newer
    |                               `- note: add 'if #available' version check
 11 |     }
 12 |     var selectionBinding: Binding<String>
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:73:35: error: cannot find 'UIImpactFeedbackGenerator' in scope
 71 |             .scaleEffect(tabItems.count <= 5 ? 0.875 : 1)
 72 |             .onLongPressGesture(minimumDuration: 0.25) {
 73 |                 let impactHeavy = UIImpactFeedbackGenerator(style: .heavy)
    |                                   `- error: cannot find 'UIImpactFeedbackGenerator' in scope
 74 |                 impactHeavy.impactOccurred()
 75 |                 collapsed = true
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:134:30: error: cannot find 'UIImpactFeedbackGenerator' in scope
132 |                 selectedInBar = selected
133 |             }
134 |             let impactSoft = UIImpactFeedbackGenerator(style: .rigid)
    |                              `- error: cannot find 'UIImpactFeedbackGenerator' in scope
135 |             impactSoft.impactOccurred()
136 |         }
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:26:32: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 24 |         }
 25 |     }
 26 |     public var body: some View {
    |                                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 27 |         ZStack {
 28 |             TabView(selection: $selected) {
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:146:24: error: 'AnyView' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
    |            `- note: add @available attribute to enclosing initializer
145 |         self.id = id
146 |         self.content = AnyView(content())
    |                        |- error: 'AnyView' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
147 |         self.title = title
148 |         self.icon = image
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:154:21: error: 'Image' is only available in macOS 10.15 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
148 |         self.icon = image
149 |     }
150 |     public init(id: String = UUID().uuidString, title: String, systemImage: String, content: AnyView) {
    |            `- note: add @available attribute to enclosing initializer
151 |         self.id = id
152 |         self.content = content
153 |         self.title = title
154 |         self.icon = Image(systemName: systemImage)
    |                     |- error: 'Image' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
155 |     }
156 |     public var id: String
/Users/admin/builder/spi-builder-workspace/Sources/GlassTabView/GlassTabView.swift:154:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
141 | }
142 |
143 | public struct TabItem: Identifiable {
    |               `- note: add @available attribute to enclosing struct
144 |     public init(id: String = UUID().uuidString, title: String, image: Image, @ViewBuilder content: () -> some View) {
145 |         self.id = id
    :
148 |         self.icon = image
149 |     }
150 |     public init(id: String = UUID().uuidString, title: String, systemImage: String, content: AnyView) {
    |            `- note: add @available attribute to enclosing initializer
151 |         self.id = id
152 |         self.content = content
153 |         self.title = title
154 |         self.icon = Image(systemName: systemImage)
    |                     |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
    |                     `- note: add 'if #available' version check
155 |     }
156 |     public var id: String
BUILD FAILURE 6.1 macosSpm