The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HostingView, reference main (4712a4), with Swift 6.1 for macOS (SPM) on 8 Jul 2026 01:53:32 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Jaesung-Jung/HostingView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Jaesung-Jung/HostingView
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4712a4d Update README
Cloned https://github.com/Jaesung-Jung/HostingView.git
Revision (git rev-parse @):
4712a4dfb6226ab7c632d6bce43037bf8b508d88
SUCCESS checkout https://github.com/Jaesung-Jung/HostingView.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Jaesung-Jung/HostingView.git
https://github.com/Jaesung-Jung/HostingView.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "HostingView",
  "name" : "HostingView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "HostingView",
      "targets" : [
        "HostingView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HostingView",
      "module_type" : "SwiftTarget",
      "name" : "HostingView",
      "path" : "Sources/HostingView",
      "product_memberships" : [
        "HostingView"
      ],
      "sources" : [
        "HostingView.swift",
        "StatefulHostingView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
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
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/5] Emitting module HostingView
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:56:33: error: cannot find type 'UIView' in scope
 54 | /// ```
 55 | public class HostingView: UIView {
 56 |   private(set) var contentView: UIView!
    |                                 `- error: cannot find type 'UIView' in scope
 57 |
 58 |   /// The natural size of the hosted SwiftUI content.
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:63:23: error: property does not override any property from its superclass
 61 |   /// available. This lets multiline and flexible SwiftUI content participate
 62 |   /// in Auto Layout using the width that the layout system has assigned.
 63 |   public override var intrinsicContentSize: CGSize {
    |                       `- error: property does not override any property from its superclass
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:77:39: error: cannot find type 'UIEdgeInsets' in scope
 75 |   /// This view reports zero safe-area insets so the hosted SwiftUI hierarchy
 76 |   /// can extend to the edges of the UIKit view that contains it.
 77 |   public override var safeAreaInsets: UIEdgeInsets {
    |                                       `- error: cannot find type 'UIEdgeInsets' in scope
 78 |     get { .zero }
 79 |     set {}
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:91:24: error: 'View' is only available in macOS 10.15 or newer
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |              `- note: add @available attribute to enclosing class
 56 |   private(set) var contentView: UIView!
 57 |
    :
 89 |   /// - Parameter content: A view builder that creates the SwiftUI view
 90 |   ///   hierarchy to host.
 91 |   public init<Content: View>(@ViewBuilder content: () -> Content) {
    |          |             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 92 |     super.init(frame: .zero)
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:91:31: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |              `- note: add @available attribute to enclosing class
 56 |   private(set) var contentView: UIView!
 57 |
    :
 89 |   /// - Parameter content: A view builder that creates the SwiftUI view
 90 |   ///   hierarchy to host.
 91 |   public init<Content: View>(@ViewBuilder content: () -> Content) {
    |          |                    `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 92 |     super.init(frame: .zero)
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:117:24: error: method does not override any method from its superclass
115 |   }
116 |
117 |   public override func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
118 |     super.layoutSubviews()
119 |     contentView.frame = bounds
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:122:24: error: method does not override any method from its superclass
120 |   }
121 |
122 |   public override func systemLayoutSizeFitting(_ targetSize: CGSize) -> CGSize {
    |                        `- error: method does not override any method from its superclass
123 |     systemLayoutSizeFitting(
124 |       targetSize,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:132:62: error: cannot find type 'UILayoutPriority' in scope
130 |   public override func systemLayoutSizeFitting(
131 |     _ targetSize: CGSize,
132 |     withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority,
    |                                                              `- error: cannot find type 'UILayoutPriority' in scope
133 |     verticalFittingPriority: UILayoutPriority
134 |   ) -> CGSize {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:133:30: error: cannot find type 'UILayoutPriority' in scope
131 |     _ targetSize: CGSize,
132 |     withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority,
133 |     verticalFittingPriority: UILayoutPriority
    |                              `- error: cannot find type 'UILayoutPriority' in scope
134 |   ) -> CGSize {
135 |     contentView.systemLayoutSizeFitting(targetSize, withHorizontalFittingPriority: horizontalFittingPriority, verticalFittingPriority: verticalFittingPriority)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:55:27: error: cannot find type 'UIView' in scope
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |                           `- error: cannot find type 'UIView' in scope
 56 |   private(set) var contentView: UIView!
 57 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:142:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
140 |
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:3: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:3: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |   |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |   `- note: add 'if #available' version check
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:144:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
142 | #Preview {
143 |   HostingView {
144 |     Text("Hosting View")
    |     |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:144:5: error: 'Text' is only available in macOS 10.15 or newer
142 | #Preview {
143 |   HostingView {
144 |     Text("Hosting View")
    |     |- error: 'Text' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:145:8: error: 'font' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
    |        |- error: 'font' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:145:14: error: 'largeTitle' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
    |              |- error: 'largeTitle' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:146:8: error: 'fontWeight' is only available in macOS 10.15 or newer
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
    |        |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
147 |       .foregroundStyle(
148 |         .linearGradient(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:147:8: error: 'foregroundStyle' is only available in macOS 14.0 or newer
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
    |        |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:148:10: error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
148 |         .linearGradient(
    |          |- error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
150 |           startPoint: .topLeading,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:21: error: 'cyan' is only available in macOS 12.0 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                     |- error: 'cyan' is only available in macOS 12.0 or newer
    |                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:28: error: 'indigo' is only available in macOS 12.0 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                            |- error: 'indigo' is only available in macOS 12.0 or newer
    |                            `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:37: error: 'pink' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                     |- error: 'pink' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:44: error: 'orange' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                            |- error: 'orange' is only available in macOS 10.15 or newer
    |                                            `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:53: error: 'yellow' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                                     |- error: 'yellow' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:15: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |               |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:119:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
117 |
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:120:3: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
    |   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
121 |     VStack {
122 |       Text("Stateful Hosting View")
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:5: error: 'VStack' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |     |- error: 'VStack' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:122:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
122 |       Text("Stateful Hosting View")
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
123 |         .font(.headline)
124 |         .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:122:7: error: 'Text' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
122 |       Text("Stateful Hosting View")
    |       |- error: 'Text' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
123 |         .font(.headline)
124 |         .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:123:10: error: 'font' is only available in macOS 10.15 or newer
121 |     VStack {
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
    |          |- error: 'font' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
124 |         .fontWeight(.black)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:123:16: error: 'headline' is only available in macOS 10.15 or newer
121 |     VStack {
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
    |                |- error: 'headline' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
124 |         .fontWeight(.black)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:124:10: error: 'fontWeight' is only available in macOS 10.15 or newer
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
124 |         .fontWeight(.black)
    |          |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
125 |
126 |       Text("State is \(state)")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:126:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
124 |         .fontWeight(.black)
125 |
126 |       Text("State is \(state)")
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:126:7: error: 'Text' is only available in macOS 10.15 or newer
124 |         .fontWeight(.black)
125 |
126 |       Text("State is \(state)")
    |       |- error: 'Text' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:127:10: error: 'font' is only available in macOS 10.15 or newer
125 |
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
    |          |- error: 'font' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:127:16: error: 'subheadline' is only available in macOS 10.15 or newer
125 |
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
    |                |- error: 'subheadline' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:128:10: error: 'fontWeight' is only available in macOS 10.15 or newer
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
    |          |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
129 |         .foregroundStyle(.secondary)
130 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:129:10: error: 'foregroundStyle' is only available in macOS 14.0 or newer
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
    |          |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |          `- note: add 'if #available' version check
130 |     }
131 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:129:27: error: 'secondary' is only available in macOS 12.0 or newer
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
    |                           |- error: 'secondary' is only available in macOS 12.0 or newer
    |                           `- note: add 'if #available' version check
130 |     }
131 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:76:24: error: 'View' is only available in macOS 10.15 or newer
 48 | /// Use the ``state`` property to send new values from UIKit into the hosted
 49 | /// SwiftUI hierarchy.
 50 | public final class StatefulHostingView<State>: HostingView {
    |                    `- note: add @available attribute to enclosing generic class
 51 |   private let stateObject: StateObject
 52 |
    :
 74 |   ///   - content: A view builder that creates the SwiftUI view hierarchy for a
 75 |   ///     given state value.
 76 |   public init<Content: View>(state: State, @ViewBuilder content: @escaping (State) -> Content) {
    |          |             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 77 |     let stateObject = StateObject(state: state)
 78 |     self.stateObject = stateObject
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:76:45: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 48 | /// Use the ``state`` property to send new values from UIKit into the hosted
 49 | /// SwiftUI hierarchy.
 50 | public final class StatefulHostingView<State>: HostingView {
    |                    `- note: add @available attribute to enclosing generic class
 51 |   private let stateObject: StateObject
 52 |
    :
 74 |   ///   - content: A view builder that creates the SwiftUI view hierarchy for a
 75 |   ///     given state value.
 76 |   public init<Content: View>(state: State, @ViewBuilder content: @escaping (State) -> Content) {
    |          |                                  `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 77 |     let stateObject = StateObject(state: state)
 78 |     self.stateObject = stateObject
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:94:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          |- note: add @available attribute to enclosing generic struct
    |          `- note: add @available attribute to enclosing generic struct
 94 |     @ObservedObject var stateObject: StateObject
    |      `- error: 'ObservedObject' is only available in macOS 10.15 or newer
 95 |
 96 |     let content: (State) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:98:20: error: 'View' is only available in macOS 10.15 or newer
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          `- note: add @available attribute to enclosing generic struct
 94 |     @ObservedObject var stateObject: StateObject
 95 |
 96 |     let content: (State) -> Content
 97 |
 98 |     var body: some View {
    |         |          `- error: 'View' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
 99 |       content(stateObject.state)
100 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:93:39: error: 'View' is only available in macOS 10.15 or newer
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          |                            `- error: 'View' is only available in macOS 10.15 or newer
    |          |- note: add @available attribute to enclosing generic struct
    |          `- note: add @available attribute to enclosing generic struct
 94 |     @ObservedObject var stateObject: StateObject
 95 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:108:6: error: 'Published' is only available in macOS 10.15 or newer
105 |
106 | extension StatefulHostingView {
107 |   final class StateObject: ObservableObject {
    |               |- note: add @available attribute to enclosing class
    |               `- note: add @available attribute to enclosing class
108 |     @Published var state: State
    |      `- error: 'Published' is only available in macOS 10.15 or newer
109 |
110 |     init(state: State) {
[4/5] Compiling HostingView StatefulHostingView.swift
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:76:24: error: 'View' is only available in macOS 10.15 or newer
 48 | /// Use the ``state`` property to send new values from UIKit into the hosted
 49 | /// SwiftUI hierarchy.
 50 | public final class StatefulHostingView<State>: HostingView {
    |                    `- note: add @available attribute to enclosing generic class
 51 |   private let stateObject: StateObject
 52 |
    :
 74 |   ///   - content: A view builder that creates the SwiftUI view hierarchy for a
 75 |   ///     given state value.
 76 |   public init<Content: View>(state: State, @ViewBuilder content: @escaping (State) -> Content) {
    |          |             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 77 |     let stateObject = StateObject(state: state)
 78 |     self.stateObject = stateObject
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:76:45: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 48 | /// Use the ``state`` property to send new values from UIKit into the hosted
 49 | /// SwiftUI hierarchy.
 50 | public final class StatefulHostingView<State>: HostingView {
    |                    `- note: add @available attribute to enclosing generic class
 51 |   private let stateObject: StateObject
 52 |
    :
 74 |   ///   - content: A view builder that creates the SwiftUI view hierarchy for a
 75 |   ///     given state value.
 76 |   public init<Content: View>(state: State, @ViewBuilder content: @escaping (State) -> Content) {
    |          |                                  `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 77 |     let stateObject = StateObject(state: state)
 78 |     self.stateObject = stateObject
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:94:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          |- note: add @available attribute to enclosing generic struct
    |          `- note: add @available attribute to enclosing generic struct
 94 |     @ObservedObject var stateObject: StateObject
    |      `- error: 'ObservedObject' is only available in macOS 10.15 or newer
 95 |
 96 |     let content: (State) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:98:20: error: 'View' is only available in macOS 10.15 or newer
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          `- note: add @available attribute to enclosing generic struct
 94 |     @ObservedObject var stateObject: StateObject
 95 |
 96 |     let content: (State) -> Content
 97 |
 98 |     var body: some View {
    |         |          `- error: 'View' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
 99 |       content(stateObject.state)
100 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:93:39: error: 'View' is only available in macOS 10.15 or newer
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          |                            `- error: 'View' is only available in macOS 10.15 or newer
    |          |- note: add @available attribute to enclosing generic struct
    |          `- note: add @available attribute to enclosing generic struct
 94 |     @ObservedObject var stateObject: StateObject
 95 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:108:6: error: 'Published' is only available in macOS 10.15 or newer
105 |
106 | extension StatefulHostingView {
107 |   final class StateObject: ObservableObject {
    |               |- note: add @available attribute to enclosing class
    |               `- note: add @available attribute to enclosing class
108 |     @Published var state: State
    |      `- error: 'Published' is only available in macOS 10.15 or newer
109 |
110 |     init(state: State) {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:119:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
117 |
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:120:3: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
    |   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
121 |     VStack {
122 |       Text("Stateful Hosting View")
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:5: error: 'VStack' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |     |- error: 'VStack' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:122:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
122 |       Text("Stateful Hosting View")
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
123 |         .font(.headline)
124 |         .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:122:7: error: 'Text' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
122 |       Text("Stateful Hosting View")
    |       |- error: 'Text' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
123 |         .font(.headline)
124 |         .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:123:10: error: 'font' is only available in macOS 10.15 or newer
121 |     VStack {
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
    |          |- error: 'font' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
124 |         .fontWeight(.black)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:123:16: error: 'headline' is only available in macOS 10.15 or newer
121 |     VStack {
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
    |                |- error: 'headline' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
124 |         .fontWeight(.black)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:124:10: error: 'fontWeight' is only available in macOS 10.15 or newer
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
124 |         .fontWeight(.black)
    |          |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
125 |
126 |       Text("State is \(state)")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:126:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
124 |         .fontWeight(.black)
125 |
126 |       Text("State is \(state)")
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:126:7: error: 'Text' is only available in macOS 10.15 or newer
124 |         .fontWeight(.black)
125 |
126 |       Text("State is \(state)")
    |       |- error: 'Text' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:127:10: error: 'font' is only available in macOS 10.15 or newer
125 |
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
    |          |- error: 'font' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:127:16: error: 'subheadline' is only available in macOS 10.15 or newer
125 |
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
    |                |- error: 'subheadline' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:128:10: error: 'fontWeight' is only available in macOS 10.15 or newer
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
    |          |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
129 |         .foregroundStyle(.secondary)
130 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:129:10: error: 'foregroundStyle' is only available in macOS 14.0 or newer
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
    |          |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |          `- note: add 'if #available' version check
130 |     }
131 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:129:27: error: 'secondary' is only available in macOS 12.0 or newer
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
    |                           |- error: 'secondary' is only available in macOS 12.0 or newer
    |                           `- note: add 'if #available' version check
130 |     }
131 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:142:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
140 |
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:3: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:3: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |   |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |   `- note: add 'if #available' version check
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:144:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
142 | #Preview {
143 |   HostingView {
144 |     Text("Hosting View")
    |     |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:144:5: error: 'Text' is only available in macOS 10.15 or newer
142 | #Preview {
143 |   HostingView {
144 |     Text("Hosting View")
    |     |- error: 'Text' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:145:8: error: 'font' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
    |        |- error: 'font' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:145:14: error: 'largeTitle' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
    |              |- error: 'largeTitle' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:146:8: error: 'fontWeight' is only available in macOS 10.15 or newer
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
    |        |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
147 |       .foregroundStyle(
148 |         .linearGradient(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:147:8: error: 'foregroundStyle' is only available in macOS 14.0 or newer
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
    |        |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:148:10: error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
148 |         .linearGradient(
    |          |- error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
150 |           startPoint: .topLeading,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:21: error: 'cyan' is only available in macOS 12.0 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                     |- error: 'cyan' is only available in macOS 12.0 or newer
    |                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:28: error: 'indigo' is only available in macOS 12.0 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                            |- error: 'indigo' is only available in macOS 12.0 or newer
    |                            `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:37: error: 'pink' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                     |- error: 'pink' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:44: error: 'orange' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                            |- error: 'orange' is only available in macOS 10.15 or newer
    |                                            `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:53: error: 'yellow' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                                     |- error: 'yellow' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:15: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |               |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:61:7: error: setter for 'state' is only available in macOS 10.15 or newer
 48 | /// Use the ``state`` property to send new values from UIKit into the hosted
 49 | /// SwiftUI hierarchy.
 50 | public final class StatefulHostingView<State>: HostingView {
    |                    `- note: add @available attribute to enclosing generic class
 51 |   private let stateObject: StateObject
 52 |
    :
 56 |   /// view's intrinsic content size. Use this property when UIKit events, model
 57 |   /// changes, or control state should drive the rendered SwiftUI content.
 58 |   public var state: State {
    |              `- note: add @available attribute to enclosing property
 59 |     get { stateObject.state }
 60 |     set {
 61 |       stateObject.state = newValue
    |       |- error: setter for 'state' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 62 |       invalidateIntrinsicContentSize()
 63 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:62:7: error: cannot find 'invalidateIntrinsicContentSize' in scope
 60 |     set {
 61 |       stateObject.state = newValue
 62 |       invalidateIntrinsicContentSize()
    |       `- error: cannot find 'invalidateIntrinsicContentSize' in scope
 63 |     }
 64 |   }
<unknown>:0: error: cannot convert value of type 'any KeyPath<StatefulHostingView<State>.StateObject, State> & Sendable' to expected argument type 'ReferenceWritableKeyPath<StatefulHostingView<State>.StateObject, State>'
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:80:7: error: call to main actor-isolated initializer 'init(stateObject:content:)' in a synchronous nonisolated context
 78 |     self.stateObject = stateObject
 79 |     super.init {
 80 |       StatefulContentView(stateObject: stateObject, content: content)
    |       `- error: call to main actor-isolated initializer 'init(stateObject:content:)' in a synchronous nonisolated context
 81 |     }
 82 |   }
    :
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          |- note: calls to initializer 'init(stateObject:content:)' from outside of its actor context are implicitly asynchronous
    |          `- note: main actor isolation inferred from conformance to protocol 'View'
 94 |     @ObservedObject var stateObject: StateObject
 95 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:111:7: error: setter for 'state' is only available in macOS 10.15 or newer
105 |
106 | extension StatefulHostingView {
107 |   final class StateObject: ObservableObject {
    |               `- note: add @available attribute to enclosing class
108 |     @Published var state: State
109 |
110 |     init(state: State) {
    |     `- note: add @available attribute to enclosing initializer
111 |       self.state = state
    |       |- error: setter for 'state' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
112 |     }
113 |   }
macro expansion #Preview:20:19: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
`- /Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:132:2: note: expanded code originates here
130 |     }
131 |   }
132 | }
    +--- macro expansion #Preview --------------------------------------
    |18 |                 }
    |19 |                 return __b_buildView {
    |20 |                   StatefulHostingView(state: Int.random(in: 0 ..< 9)) { state in
    |   |                   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
    |21 |                     VStack {
    |22 |                       Text("Stateful Hosting View")
    +-------------------------------------------------------------------
133 |
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
[5/5] Compiling HostingView HostingView.swift
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:56:33: error: cannot find type 'UIView' in scope
 54 | /// ```
 55 | public class HostingView: UIView {
 56 |   private(set) var contentView: UIView!
    |                                 `- error: cannot find type 'UIView' in scope
 57 |
 58 |   /// The natural size of the hosted SwiftUI content.
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:63:23: error: property does not override any property from its superclass
 61 |   /// available. This lets multiline and flexible SwiftUI content participate
 62 |   /// in Auto Layout using the width that the layout system has assigned.
 63 |   public override var intrinsicContentSize: CGSize {
    |                       `- error: property does not override any property from its superclass
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:77:39: error: cannot find type 'UIEdgeInsets' in scope
 75 |   /// This view reports zero safe-area insets so the hosted SwiftUI hierarchy
 76 |   /// can extend to the edges of the UIKit view that contains it.
 77 |   public override var safeAreaInsets: UIEdgeInsets {
    |                                       `- error: cannot find type 'UIEdgeInsets' in scope
 78 |     get { .zero }
 79 |     set {}
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:91:24: error: 'View' is only available in macOS 10.15 or newer
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |              `- note: add @available attribute to enclosing class
 56 |   private(set) var contentView: UIView!
 57 |
    :
 89 |   /// - Parameter content: A view builder that creates the SwiftUI view
 90 |   ///   hierarchy to host.
 91 |   public init<Content: View>(@ViewBuilder content: () -> Content) {
    |          |             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 92 |     super.init(frame: .zero)
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:91:31: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |              `- note: add @available attribute to enclosing class
 56 |   private(set) var contentView: UIView!
 57 |
    :
 89 |   /// - Parameter content: A view builder that creates the SwiftUI view
 90 |   ///   hierarchy to host.
 91 |   public init<Content: View>(@ViewBuilder content: () -> Content) {
    |          |                    `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 92 |     super.init(frame: .zero)
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:117:24: error: method does not override any method from its superclass
115 |   }
116 |
117 |   public override func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
118 |     super.layoutSubviews()
119 |     contentView.frame = bounds
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:122:24: error: method does not override any method from its superclass
120 |   }
121 |
122 |   public override func systemLayoutSizeFitting(_ targetSize: CGSize) -> CGSize {
    |                        `- error: method does not override any method from its superclass
123 |     systemLayoutSizeFitting(
124 |       targetSize,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:132:62: error: cannot find type 'UILayoutPriority' in scope
130 |   public override func systemLayoutSizeFitting(
131 |     _ targetSize: CGSize,
132 |     withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority,
    |                                                              `- error: cannot find type 'UILayoutPriority' in scope
133 |     verticalFittingPriority: UILayoutPriority
134 |   ) -> CGSize {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:133:30: error: cannot find type 'UILayoutPriority' in scope
131 |     _ targetSize: CGSize,
132 |     withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority,
133 |     verticalFittingPriority: UILayoutPriority
    |                              `- error: cannot find type 'UILayoutPriority' in scope
134 |   ) -> CGSize {
135 |     contentView.systemLayoutSizeFitting(targetSize, withHorizontalFittingPriority: horizontalFittingPriority, verticalFittingPriority: verticalFittingPriority)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:55:27: error: cannot find type 'UIView' in scope
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |                           `- error: cannot find type 'UIView' in scope
 56 |   private(set) var contentView: UIView!
 57 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:142:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
140 |
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:3: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:3: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |   |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |   `- note: add 'if #available' version check
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:144:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
142 | #Preview {
143 |   HostingView {
144 |     Text("Hosting View")
    |     |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:144:5: error: 'Text' is only available in macOS 10.15 or newer
142 | #Preview {
143 |   HostingView {
144 |     Text("Hosting View")
    |     |- error: 'Text' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:145:8: error: 'font' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
    |        |- error: 'font' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:145:14: error: 'largeTitle' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
    |              |- error: 'largeTitle' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:146:8: error: 'fontWeight' is only available in macOS 10.15 or newer
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
    |        |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
147 |       .foregroundStyle(
148 |         .linearGradient(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:147:8: error: 'foregroundStyle' is only available in macOS 14.0 or newer
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
    |        |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:148:10: error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
148 |         .linearGradient(
    |          |- error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
150 |           startPoint: .topLeading,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:21: error: 'cyan' is only available in macOS 12.0 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                     |- error: 'cyan' is only available in macOS 12.0 or newer
    |                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:28: error: 'indigo' is only available in macOS 12.0 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                            |- error: 'indigo' is only available in macOS 12.0 or newer
    |                            `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:37: error: 'pink' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                     |- error: 'pink' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:44: error: 'orange' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                            |- error: 'orange' is only available in macOS 10.15 or newer
    |                                            `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:53: error: 'yellow' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                                     |- error: 'yellow' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:15: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |               |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:119:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
117 |
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:120:3: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
    |   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
121 |     VStack {
122 |       Text("Stateful Hosting View")
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:5: error: 'VStack' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |     |- error: 'VStack' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:122:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
122 |       Text("Stateful Hosting View")
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
123 |         .font(.headline)
124 |         .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:122:7: error: 'Text' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
122 |       Text("Stateful Hosting View")
    |       |- error: 'Text' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
123 |         .font(.headline)
124 |         .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:123:10: error: 'font' is only available in macOS 10.15 or newer
121 |     VStack {
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
    |          |- error: 'font' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
124 |         .fontWeight(.black)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:123:16: error: 'headline' is only available in macOS 10.15 or newer
121 |     VStack {
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
    |                |- error: 'headline' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
124 |         .fontWeight(.black)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:124:10: error: 'fontWeight' is only available in macOS 10.15 or newer
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
124 |         .fontWeight(.black)
    |          |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
125 |
126 |       Text("State is \(state)")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:126:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
124 |         .fontWeight(.black)
125 |
126 |       Text("State is \(state)")
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:126:7: error: 'Text' is only available in macOS 10.15 or newer
124 |         .fontWeight(.black)
125 |
126 |       Text("State is \(state)")
    |       |- error: 'Text' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:127:10: error: 'font' is only available in macOS 10.15 or newer
125 |
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
    |          |- error: 'font' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:127:16: error: 'subheadline' is only available in macOS 10.15 or newer
125 |
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
    |                |- error: 'subheadline' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:128:10: error: 'fontWeight' is only available in macOS 10.15 or newer
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
    |          |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
129 |         .foregroundStyle(.secondary)
130 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:129:10: error: 'foregroundStyle' is only available in macOS 14.0 or newer
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
    |          |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |          `- note: add 'if #available' version check
130 |     }
131 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:129:27: error: 'secondary' is only available in macOS 12.0 or newer
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
    |                           |- error: 'secondary' is only available in macOS 12.0 or newer
    |                           `- note: add 'if #available' version check
130 |     }
131 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:64:23: error: cannot find 'bounds' in scope
 62 |   /// in Auto Layout using the width that the layout system has assigned.
 63 |   public override var intrinsicContentSize: CGSize {
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
    |                       `- error: cannot find 'bounds' in scope
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
 66 |     return contentView.systemLayoutSizeFitting(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:64:46: error: cannot find 'bounds' in scope
 62 |   /// in Auto Layout using the width that the layout system has assigned.
 63 |   public override var intrinsicContentSize: CGSize {
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
    |                                              `- error: cannot find 'bounds' in scope
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
 66 |     return contentView.systemLayoutSizeFitting(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:64:61: error: cannot find 'UIView' in scope
 62 |   /// in Auto Layout using the width that the layout system has assigned.
 63 |   public override var intrinsicContentSize: CGSize {
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
    |                                                             `- error: cannot find 'UIView' in scope
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
 66 |     return contentView.systemLayoutSizeFitting(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:65:29: error: cannot find type 'UILayoutPriority' in scope
 63 |   public override var intrinsicContentSize: CGSize {
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
    |                             `- error: cannot find type 'UILayoutPriority' in scope
 66 |     return contentView.systemLayoutSizeFitting(
 67 |       CGSize(width: targetWidth, height: UIView.layoutFittingCompressedSize.height),
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:67:42: error: cannot find 'UIView' in scope
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
 66 |     return contentView.systemLayoutSizeFitting(
 67 |       CGSize(width: targetWidth, height: UIView.layoutFittingCompressedSize.height),
    |                                          `- error: cannot find 'UIView' in scope
 68 |       withHorizontalFittingPriority: horizontalPriority,
 69 |       verticalFittingPriority: .fittingSizeLevel
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:69:33: error: cannot infer contextual base in reference to member 'fittingSizeLevel'
 67 |       CGSize(width: targetWidth, height: UIView.layoutFittingCompressedSize.height),
 68 |       withHorizontalFittingPriority: horizontalPriority,
 69 |       verticalFittingPriority: .fittingSizeLevel
    |                                 `- error: cannot infer contextual base in reference to member 'fittingSizeLevel'
 70 |     )
 71 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:92:5: error: 'super' cannot be used in class 'HostingView' because it has no superclass
 90 |   ///   hierarchy to host.
 91 |   public init<Content: View>(@ViewBuilder content: () -> Content) {
 92 |     super.init(frame: .zero)
    |     `- error: 'super' cannot be used in class 'HostingView' because it has no superclass
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
 94 |       self?.invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:92:24: error: cannot infer contextual base in reference to member 'zero'
 90 |   ///   hierarchy to host.
 91 |   public init<Content: View>(@ViewBuilder content: () -> Content) {
 92 |     super.init(frame: .zero)
    |                        `- error: cannot infer contextual base in reference to member 'zero'
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
 94 |       self?.invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:94:13: error: value of type 'HostingView' has no member 'invalidateIntrinsicContentSize'
 92 |     super.init(frame: .zero)
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
 94 |       self?.invalidateIntrinsicContentSize()
    |             `- error: value of type 'HostingView' has no member 'invalidateIntrinsicContentSize'
 95 |     }
 96 |     contentView = UIHostingConfiguration {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:96:19: error: cannot find 'UIHostingConfiguration' in scope
 94 |       self?.invalidateIntrinsicContentSize()
 95 |     }
 96 |     contentView = UIHostingConfiguration {
    |                   `- error: cannot find 'UIHostingConfiguration' in scope
 97 |       content()
 98 |         .onGeometryChange(for: CGSize.self) {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:106:15: error: cannot infer contextual base in reference to member 'all'
104 |         .ignoresSafeArea(.container, edges: .all)
105 |     }
106 |     .margins(.all, 0)
    |               `- error: cannot infer contextual base in reference to member 'all'
107 |     .makeContentView()
108 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:109:5: error: cannot find 'addSubview' in scope
107 |     .makeContentView()
108 |
109 |     addSubview(contentView)
    |     `- error: cannot find 'addSubview' in scope
110 |   }
111 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:118:5: error: 'super' cannot be used in class 'HostingView' because it has no superclass
116 |
117 |   public override func layoutSubviews() {
118 |     super.layoutSubviews()
    |     `- error: 'super' cannot be used in class 'HostingView' because it has no superclass
119 |     contentView.frame = bounds
120 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:119:25: error: cannot find 'bounds' in scope
117 |   public override func layoutSubviews() {
118 |     super.layoutSubviews()
119 |     contentView.frame = bounds
    |                         `- error: cannot find 'bounds' in scope
120 |   }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:123:28: error: extra arguments at positions #2, #3 in call
120 |   }
121 |
122 |   public override func systemLayoutSizeFitting(_ targetSize: CGSize) -> CGSize {
    |                        `- note: 'systemLayoutSizeFitting' declared here
123 |     systemLayoutSizeFitting(
    |                            `- error: extra arguments at positions #2, #3 in call
124 |       targetSize,
125 |       withHorizontalFittingPriority: .fittingSizeLevel,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:125:39: error: cannot infer contextual base in reference to member 'fittingSizeLevel'
123 |     systemLayoutSizeFitting(
124 |       targetSize,
125 |       withHorizontalFittingPriority: .fittingSizeLevel,
    |                                       `- error: cannot infer contextual base in reference to member 'fittingSizeLevel'
126 |       verticalFittingPriority: .fittingSizeLevel
127 |     )
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:126:33: error: cannot infer contextual base in reference to member 'fittingSizeLevel'
124 |       targetSize,
125 |       withHorizontalFittingPriority: .fittingSizeLevel,
126 |       verticalFittingPriority: .fittingSizeLevel
    |                                 `- error: cannot infer contextual base in reference to member 'fittingSizeLevel'
127 |     )
128 |   }
macro expansion #Preview:20:19: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
`- /Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:155:2: note: expanded code originates here
153 |       )
154 |   }
155 | }
    +--- macro expansion #Preview --------------------------------------
    |18 |                 }
    |19 |                 return __b_buildView {
    |20 |                   HostingView {
    |   |                   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
    |21 |                     Text("Hosting View")
    |22 |                       .font(.largeTitle)
    +-------------------------------------------------------------------
156 |
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
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/4] Emitting module HostingView
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:56:33: error: cannot find type 'UIView' in scope
 54 | /// ```
 55 | public class HostingView: UIView {
 56 |   private(set) var contentView: UIView!
    |                                 `- error: cannot find type 'UIView' in scope
 57 |
 58 |   /// The natural size of the hosted SwiftUI content.
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:63:23: error: property does not override any property from its superclass
 61 |   /// available. This lets multiline and flexible SwiftUI content participate
 62 |   /// in Auto Layout using the width that the layout system has assigned.
 63 |   public override var intrinsicContentSize: CGSize {
    |                       `- error: property does not override any property from its superclass
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:77:39: error: cannot find type 'UIEdgeInsets' in scope
 75 |   /// This view reports zero safe-area insets so the hosted SwiftUI hierarchy
 76 |   /// can extend to the edges of the UIKit view that contains it.
 77 |   public override var safeAreaInsets: UIEdgeInsets {
    |                                       `- error: cannot find type 'UIEdgeInsets' in scope
 78 |     get { .zero }
 79 |     set {}
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:91:24: error: 'View' is only available in macOS 10.15 or newer
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |              `- note: add @available attribute to enclosing class
 56 |   private(set) var contentView: UIView!
 57 |
    :
 89 |   /// - Parameter content: A view builder that creates the SwiftUI view
 90 |   ///   hierarchy to host.
 91 |   public init<Content: View>(@ViewBuilder content: () -> Content) {
    |          |             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 92 |     super.init(frame: .zero)
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:91:31: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |              `- note: add @available attribute to enclosing class
 56 |   private(set) var contentView: UIView!
 57 |
    :
 89 |   /// - Parameter content: A view builder that creates the SwiftUI view
 90 |   ///   hierarchy to host.
 91 |   public init<Content: View>(@ViewBuilder content: () -> Content) {
    |          |                    `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 92 |     super.init(frame: .zero)
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:117:24: error: method does not override any method from its superclass
115 |   }
116 |
117 |   public override func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
118 |     super.layoutSubviews()
119 |     contentView.frame = bounds
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:122:24: error: method does not override any method from its superclass
120 |   }
121 |
122 |   public override func systemLayoutSizeFitting(_ targetSize: CGSize) -> CGSize {
    |                        `- error: method does not override any method from its superclass
123 |     systemLayoutSizeFitting(
124 |       targetSize,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:132:62: error: cannot find type 'UILayoutPriority' in scope
130 |   public override func systemLayoutSizeFitting(
131 |     _ targetSize: CGSize,
132 |     withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority,
    |                                                              `- error: cannot find type 'UILayoutPriority' in scope
133 |     verticalFittingPriority: UILayoutPriority
134 |   ) -> CGSize {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:133:30: error: cannot find type 'UILayoutPriority' in scope
131 |     _ targetSize: CGSize,
132 |     withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority,
133 |     verticalFittingPriority: UILayoutPriority
    |                              `- error: cannot find type 'UILayoutPriority' in scope
134 |   ) -> CGSize {
135 |     contentView.systemLayoutSizeFitting(targetSize, withHorizontalFittingPriority: horizontalFittingPriority, verticalFittingPriority: verticalFittingPriority)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:55:27: error: cannot find type 'UIView' in scope
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |                           `- error: cannot find type 'UIView' in scope
 56 |   private(set) var contentView: UIView!
 57 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:142:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
140 |
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:3: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:3: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |   |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |   `- note: add 'if #available' version check
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:144:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
142 | #Preview {
143 |   HostingView {
144 |     Text("Hosting View")
    |     |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:144:5: error: 'Text' is only available in macOS 10.15 or newer
142 | #Preview {
143 |   HostingView {
144 |     Text("Hosting View")
    |     |- error: 'Text' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:145:8: error: 'font' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
    |        |- error: 'font' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:145:14: error: 'largeTitle' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
    |              |- error: 'largeTitle' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:146:8: error: 'fontWeight' is only available in macOS 10.15 or newer
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
    |        |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
147 |       .foregroundStyle(
148 |         .linearGradient(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:147:8: error: 'foregroundStyle' is only available in macOS 14.0 or newer
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
    |        |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:148:10: error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
148 |         .linearGradient(
    |          |- error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
150 |           startPoint: .topLeading,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:21: error: 'cyan' is only available in macOS 12.0 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                     |- error: 'cyan' is only available in macOS 12.0 or newer
    |                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:28: error: 'indigo' is only available in macOS 12.0 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                            |- error: 'indigo' is only available in macOS 12.0 or newer
    |                            `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:37: error: 'pink' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                     |- error: 'pink' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:44: error: 'orange' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                            |- error: 'orange' is only available in macOS 10.15 or newer
    |                                            `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:53: error: 'yellow' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                                     |- error: 'yellow' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:15: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |               |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:119:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
117 |
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:120:3: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
    |   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
121 |     VStack {
122 |       Text("Stateful Hosting View")
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:5: error: 'VStack' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |     |- error: 'VStack' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:122:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
122 |       Text("Stateful Hosting View")
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
123 |         .font(.headline)
124 |         .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:122:7: error: 'Text' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
122 |       Text("Stateful Hosting View")
    |       |- error: 'Text' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
123 |         .font(.headline)
124 |         .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:123:10: error: 'font' is only available in macOS 10.15 or newer
121 |     VStack {
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
    |          |- error: 'font' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
124 |         .fontWeight(.black)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:123:16: error: 'headline' is only available in macOS 10.15 or newer
121 |     VStack {
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
    |                |- error: 'headline' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
124 |         .fontWeight(.black)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:124:10: error: 'fontWeight' is only available in macOS 10.15 or newer
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
124 |         .fontWeight(.black)
    |          |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
125 |
126 |       Text("State is \(state)")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:126:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
124 |         .fontWeight(.black)
125 |
126 |       Text("State is \(state)")
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:126:7: error: 'Text' is only available in macOS 10.15 or newer
124 |         .fontWeight(.black)
125 |
126 |       Text("State is \(state)")
    |       |- error: 'Text' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:127:10: error: 'font' is only available in macOS 10.15 or newer
125 |
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
    |          |- error: 'font' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:127:16: error: 'subheadline' is only available in macOS 10.15 or newer
125 |
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
    |                |- error: 'subheadline' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:128:10: error: 'fontWeight' is only available in macOS 10.15 or newer
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
    |          |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
129 |         .foregroundStyle(.secondary)
130 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:129:10: error: 'foregroundStyle' is only available in macOS 14.0 or newer
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
    |          |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |          `- note: add 'if #available' version check
130 |     }
131 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:129:27: error: 'secondary' is only available in macOS 12.0 or newer
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
    |                           |- error: 'secondary' is only available in macOS 12.0 or newer
    |                           `- note: add 'if #available' version check
130 |     }
131 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:76:24: error: 'View' is only available in macOS 10.15 or newer
 48 | /// Use the ``state`` property to send new values from UIKit into the hosted
 49 | /// SwiftUI hierarchy.
 50 | public final class StatefulHostingView<State>: HostingView {
    |                    `- note: add @available attribute to enclosing generic class
 51 |   private let stateObject: StateObject
 52 |
    :
 74 |   ///   - content: A view builder that creates the SwiftUI view hierarchy for a
 75 |   ///     given state value.
 76 |   public init<Content: View>(state: State, @ViewBuilder content: @escaping (State) -> Content) {
    |          |             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 77 |     let stateObject = StateObject(state: state)
 78 |     self.stateObject = stateObject
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:76:45: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 48 | /// Use the ``state`` property to send new values from UIKit into the hosted
 49 | /// SwiftUI hierarchy.
 50 | public final class StatefulHostingView<State>: HostingView {
    |                    `- note: add @available attribute to enclosing generic class
 51 |   private let stateObject: StateObject
 52 |
    :
 74 |   ///   - content: A view builder that creates the SwiftUI view hierarchy for a
 75 |   ///     given state value.
 76 |   public init<Content: View>(state: State, @ViewBuilder content: @escaping (State) -> Content) {
    |          |                                  `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 77 |     let stateObject = StateObject(state: state)
 78 |     self.stateObject = stateObject
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:94:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          |- note: add @available attribute to enclosing generic struct
    |          `- note: add @available attribute to enclosing generic struct
 94 |     @ObservedObject var stateObject: StateObject
    |      `- error: 'ObservedObject' is only available in macOS 10.15 or newer
 95 |
 96 |     let content: (State) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:98:20: error: 'View' is only available in macOS 10.15 or newer
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          `- note: add @available attribute to enclosing generic struct
 94 |     @ObservedObject var stateObject: StateObject
 95 |
 96 |     let content: (State) -> Content
 97 |
 98 |     var body: some View {
    |         |          `- error: 'View' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
 99 |       content(stateObject.state)
100 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:93:39: error: 'View' is only available in macOS 10.15 or newer
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          |                            `- error: 'View' is only available in macOS 10.15 or newer
    |          |- note: add @available attribute to enclosing generic struct
    |          `- note: add @available attribute to enclosing generic struct
 94 |     @ObservedObject var stateObject: StateObject
 95 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:108:6: error: 'Published' is only available in macOS 10.15 or newer
105 |
106 | extension StatefulHostingView {
107 |   final class StateObject: ObservableObject {
    |               |- note: add @available attribute to enclosing class
    |               `- note: add @available attribute to enclosing class
108 |     @Published var state: State
    |      `- error: 'Published' is only available in macOS 10.15 or newer
109 |
110 |     init(state: State) {
[3/4] Compiling HostingView HostingView.swift
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:56:33: error: cannot find type 'UIView' in scope
 54 | /// ```
 55 | public class HostingView: UIView {
 56 |   private(set) var contentView: UIView!
    |                                 `- error: cannot find type 'UIView' in scope
 57 |
 58 |   /// The natural size of the hosted SwiftUI content.
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:63:23: error: property does not override any property from its superclass
 61 |   /// available. This lets multiline and flexible SwiftUI content participate
 62 |   /// in Auto Layout using the width that the layout system has assigned.
 63 |   public override var intrinsicContentSize: CGSize {
    |                       `- error: property does not override any property from its superclass
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:77:39: error: cannot find type 'UIEdgeInsets' in scope
 75 |   /// This view reports zero safe-area insets so the hosted SwiftUI hierarchy
 76 |   /// can extend to the edges of the UIKit view that contains it.
 77 |   public override var safeAreaInsets: UIEdgeInsets {
    |                                       `- error: cannot find type 'UIEdgeInsets' in scope
 78 |     get { .zero }
 79 |     set {}
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:91:24: error: 'View' is only available in macOS 10.15 or newer
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |              `- note: add @available attribute to enclosing class
 56 |   private(set) var contentView: UIView!
 57 |
    :
 89 |   /// - Parameter content: A view builder that creates the SwiftUI view
 90 |   ///   hierarchy to host.
 91 |   public init<Content: View>(@ViewBuilder content: () -> Content) {
    |          |             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 92 |     super.init(frame: .zero)
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:91:31: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |              `- note: add @available attribute to enclosing class
 56 |   private(set) var contentView: UIView!
 57 |
    :
 89 |   /// - Parameter content: A view builder that creates the SwiftUI view
 90 |   ///   hierarchy to host.
 91 |   public init<Content: View>(@ViewBuilder content: () -> Content) {
    |          |                    `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 92 |     super.init(frame: .zero)
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:117:24: error: method does not override any method from its superclass
115 |   }
116 |
117 |   public override func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
118 |     super.layoutSubviews()
119 |     contentView.frame = bounds
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:122:24: error: method does not override any method from its superclass
120 |   }
121 |
122 |   public override func systemLayoutSizeFitting(_ targetSize: CGSize) -> CGSize {
    |                        `- error: method does not override any method from its superclass
123 |     systemLayoutSizeFitting(
124 |       targetSize,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:132:62: error: cannot find type 'UILayoutPriority' in scope
130 |   public override func systemLayoutSizeFitting(
131 |     _ targetSize: CGSize,
132 |     withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority,
    |                                                              `- error: cannot find type 'UILayoutPriority' in scope
133 |     verticalFittingPriority: UILayoutPriority
134 |   ) -> CGSize {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:133:30: error: cannot find type 'UILayoutPriority' in scope
131 |     _ targetSize: CGSize,
132 |     withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority,
133 |     verticalFittingPriority: UILayoutPriority
    |                              `- error: cannot find type 'UILayoutPriority' in scope
134 |   ) -> CGSize {
135 |     contentView.systemLayoutSizeFitting(targetSize, withHorizontalFittingPriority: horizontalFittingPriority, verticalFittingPriority: verticalFittingPriority)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:55:27: error: cannot find type 'UIView' in scope
 53 | /// ])
 54 | /// ```
 55 | public class HostingView: UIView {
    |                           `- error: cannot find type 'UIView' in scope
 56 |   private(set) var contentView: UIView!
 57 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:142:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
140 |
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:3: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:3: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |   |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |   `- note: add 'if #available' version check
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:144:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
142 | #Preview {
143 |   HostingView {
144 |     Text("Hosting View")
    |     |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:144:5: error: 'Text' is only available in macOS 10.15 or newer
142 | #Preview {
143 |   HostingView {
144 |     Text("Hosting View")
    |     |- error: 'Text' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:145:8: error: 'font' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
    |        |- error: 'font' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:145:14: error: 'largeTitle' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
    |              |- error: 'largeTitle' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:146:8: error: 'fontWeight' is only available in macOS 10.15 or newer
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
    |        |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
147 |       .foregroundStyle(
148 |         .linearGradient(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:147:8: error: 'foregroundStyle' is only available in macOS 14.0 or newer
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
    |        |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:148:10: error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
148 |         .linearGradient(
    |          |- error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
150 |           startPoint: .topLeading,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:21: error: 'cyan' is only available in macOS 12.0 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                     |- error: 'cyan' is only available in macOS 12.0 or newer
    |                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:28: error: 'indigo' is only available in macOS 12.0 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                            |- error: 'indigo' is only available in macOS 12.0 or newer
    |                            `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:37: error: 'pink' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                     |- error: 'pink' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:44: error: 'orange' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                            |- error: 'orange' is only available in macOS 10.15 or newer
    |                                            `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:53: error: 'yellow' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                                     |- error: 'yellow' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:15: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |               |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:119:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
117 |
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:120:3: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
    |   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
121 |     VStack {
122 |       Text("Stateful Hosting View")
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:5: error: 'VStack' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |     |- error: 'VStack' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:122:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
122 |       Text("Stateful Hosting View")
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
123 |         .font(.headline)
124 |         .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:122:7: error: 'Text' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
122 |       Text("Stateful Hosting View")
    |       |- error: 'Text' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
123 |         .font(.headline)
124 |         .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:123:10: error: 'font' is only available in macOS 10.15 or newer
121 |     VStack {
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
    |          |- error: 'font' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
124 |         .fontWeight(.black)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:123:16: error: 'headline' is only available in macOS 10.15 or newer
121 |     VStack {
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
    |                |- error: 'headline' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
124 |         .fontWeight(.black)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:124:10: error: 'fontWeight' is only available in macOS 10.15 or newer
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
124 |         .fontWeight(.black)
    |          |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
125 |
126 |       Text("State is \(state)")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:126:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
124 |         .fontWeight(.black)
125 |
126 |       Text("State is \(state)")
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:126:7: error: 'Text' is only available in macOS 10.15 or newer
124 |         .fontWeight(.black)
125 |
126 |       Text("State is \(state)")
    |       |- error: 'Text' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:127:10: error: 'font' is only available in macOS 10.15 or newer
125 |
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
    |          |- error: 'font' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:127:16: error: 'subheadline' is only available in macOS 10.15 or newer
125 |
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
    |                |- error: 'subheadline' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:128:10: error: 'fontWeight' is only available in macOS 10.15 or newer
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
    |          |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
129 |         .foregroundStyle(.secondary)
130 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:129:10: error: 'foregroundStyle' is only available in macOS 14.0 or newer
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
    |          |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |          `- note: add 'if #available' version check
130 |     }
131 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:129:27: error: 'secondary' is only available in macOS 12.0 or newer
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
    |                           |- error: 'secondary' is only available in macOS 12.0 or newer
    |                           `- note: add 'if #available' version check
130 |     }
131 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:64:23: error: cannot find 'bounds' in scope
 62 |   /// in Auto Layout using the width that the layout system has assigned.
 63 |   public override var intrinsicContentSize: CGSize {
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
    |                       `- error: cannot find 'bounds' in scope
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
 66 |     return contentView.systemLayoutSizeFitting(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:64:46: error: cannot find 'bounds' in scope
 62 |   /// in Auto Layout using the width that the layout system has assigned.
 63 |   public override var intrinsicContentSize: CGSize {
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
    |                                              `- error: cannot find 'bounds' in scope
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
 66 |     return contentView.systemLayoutSizeFitting(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:64:61: error: cannot find 'UIView' in scope
 62 |   /// in Auto Layout using the width that the layout system has assigned.
 63 |   public override var intrinsicContentSize: CGSize {
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
    |                                                             `- error: cannot find 'UIView' in scope
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
 66 |     return contentView.systemLayoutSizeFitting(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:65:29: error: cannot find type 'UILayoutPriority' in scope
 63 |   public override var intrinsicContentSize: CGSize {
 64 |     let targetWidth = bounds.width > .zero ? bounds.width : UIView.layoutFittingCompressedSize.width
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
    |                             `- error: cannot find type 'UILayoutPriority' in scope
 66 |     return contentView.systemLayoutSizeFitting(
 67 |       CGSize(width: targetWidth, height: UIView.layoutFittingCompressedSize.height),
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:67:42: error: cannot find 'UIView' in scope
 65 |     let horizontalPriority: UILayoutPriority = bounds.width > .zero ? .required : .fittingSizeLevel
 66 |     return contentView.systemLayoutSizeFitting(
 67 |       CGSize(width: targetWidth, height: UIView.layoutFittingCompressedSize.height),
    |                                          `- error: cannot find 'UIView' in scope
 68 |       withHorizontalFittingPriority: horizontalPriority,
 69 |       verticalFittingPriority: .fittingSizeLevel
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:69:33: error: cannot infer contextual base in reference to member 'fittingSizeLevel'
 67 |       CGSize(width: targetWidth, height: UIView.layoutFittingCompressedSize.height),
 68 |       withHorizontalFittingPriority: horizontalPriority,
 69 |       verticalFittingPriority: .fittingSizeLevel
    |                                 `- error: cannot infer contextual base in reference to member 'fittingSizeLevel'
 70 |     )
 71 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:92:5: error: 'super' cannot be used in class 'HostingView' because it has no superclass
 90 |   ///   hierarchy to host.
 91 |   public init<Content: View>(@ViewBuilder content: () -> Content) {
 92 |     super.init(frame: .zero)
    |     `- error: 'super' cannot be used in class 'HostingView' because it has no superclass
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
 94 |       self?.invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:92:24: error: cannot infer contextual base in reference to member 'zero'
 90 |   ///   hierarchy to host.
 91 |   public init<Content: View>(@ViewBuilder content: () -> Content) {
 92 |     super.init(frame: .zero)
    |                        `- error: cannot infer contextual base in reference to member 'zero'
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
 94 |       self?.invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:94:13: error: value of type 'HostingView' has no member 'invalidateIntrinsicContentSize'
 92 |     super.init(frame: .zero)
 93 |     let invalidateSize: @MainActor () -> Void = { [weak self] in
 94 |       self?.invalidateIntrinsicContentSize()
    |             `- error: value of type 'HostingView' has no member 'invalidateIntrinsicContentSize'
 95 |     }
 96 |     contentView = UIHostingConfiguration {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:96:19: error: cannot find 'UIHostingConfiguration' in scope
 94 |       self?.invalidateIntrinsicContentSize()
 95 |     }
 96 |     contentView = UIHostingConfiguration {
    |                   `- error: cannot find 'UIHostingConfiguration' in scope
 97 |       content()
 98 |         .onGeometryChange(for: CGSize.self) {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:106:15: error: cannot infer contextual base in reference to member 'all'
104 |         .ignoresSafeArea(.container, edges: .all)
105 |     }
106 |     .margins(.all, 0)
    |               `- error: cannot infer contextual base in reference to member 'all'
107 |     .makeContentView()
108 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:109:5: error: cannot find 'addSubview' in scope
107 |     .makeContentView()
108 |
109 |     addSubview(contentView)
    |     `- error: cannot find 'addSubview' in scope
110 |   }
111 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:118:5: error: 'super' cannot be used in class 'HostingView' because it has no superclass
116 |
117 |   public override func layoutSubviews() {
118 |     super.layoutSubviews()
    |     `- error: 'super' cannot be used in class 'HostingView' because it has no superclass
119 |     contentView.frame = bounds
120 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:119:25: error: cannot find 'bounds' in scope
117 |   public override func layoutSubviews() {
118 |     super.layoutSubviews()
119 |     contentView.frame = bounds
    |                         `- error: cannot find 'bounds' in scope
120 |   }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:123:28: error: extra arguments at positions #2, #3 in call
120 |   }
121 |
122 |   public override func systemLayoutSizeFitting(_ targetSize: CGSize) -> CGSize {
    |                        `- note: 'systemLayoutSizeFitting' declared here
123 |     systemLayoutSizeFitting(
    |                            `- error: extra arguments at positions #2, #3 in call
124 |       targetSize,
125 |       withHorizontalFittingPriority: .fittingSizeLevel,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:125:39: error: cannot infer contextual base in reference to member 'fittingSizeLevel'
123 |     systemLayoutSizeFitting(
124 |       targetSize,
125 |       withHorizontalFittingPriority: .fittingSizeLevel,
    |                                       `- error: cannot infer contextual base in reference to member 'fittingSizeLevel'
126 |       verticalFittingPriority: .fittingSizeLevel
127 |     )
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:126:33: error: cannot infer contextual base in reference to member 'fittingSizeLevel'
124 |       targetSize,
125 |       withHorizontalFittingPriority: .fittingSizeLevel,
126 |       verticalFittingPriority: .fittingSizeLevel
    |                                 `- error: cannot infer contextual base in reference to member 'fittingSizeLevel'
127 |     )
128 |   }
macro expansion #Preview:20:19: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
`- /Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:155:2: note: expanded code originates here
153 |       )
154 |   }
155 | }
    +--- macro expansion #Preview --------------------------------------
    |18 |                 }
    |19 |                 return __b_buildView {
    |20 |                   HostingView {
    |   |                   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
    |21 |                     Text("Hosting View")
    |22 |                       .font(.largeTitle)
    +-------------------------------------------------------------------
156 |
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
[4/4] Compiling HostingView StatefulHostingView.swift
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:76:24: error: 'View' is only available in macOS 10.15 or newer
 48 | /// Use the ``state`` property to send new values from UIKit into the hosted
 49 | /// SwiftUI hierarchy.
 50 | public final class StatefulHostingView<State>: HostingView {
    |                    `- note: add @available attribute to enclosing generic class
 51 |   private let stateObject: StateObject
 52 |
    :
 74 |   ///   - content: A view builder that creates the SwiftUI view hierarchy for a
 75 |   ///     given state value.
 76 |   public init<Content: View>(state: State, @ViewBuilder content: @escaping (State) -> Content) {
    |          |             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 77 |     let stateObject = StateObject(state: state)
 78 |     self.stateObject = stateObject
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:76:45: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 48 | /// Use the ``state`` property to send new values from UIKit into the hosted
 49 | /// SwiftUI hierarchy.
 50 | public final class StatefulHostingView<State>: HostingView {
    |                    `- note: add @available attribute to enclosing generic class
 51 |   private let stateObject: StateObject
 52 |
    :
 74 |   ///   - content: A view builder that creates the SwiftUI view hierarchy for a
 75 |   ///     given state value.
 76 |   public init<Content: View>(state: State, @ViewBuilder content: @escaping (State) -> Content) {
    |          |                                  `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing initializer
 77 |     let stateObject = StateObject(state: state)
 78 |     self.stateObject = stateObject
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:94:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          |- note: add @available attribute to enclosing generic struct
    |          `- note: add @available attribute to enclosing generic struct
 94 |     @ObservedObject var stateObject: StateObject
    |      `- error: 'ObservedObject' is only available in macOS 10.15 or newer
 95 |
 96 |     let content: (State) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:98:20: error: 'View' is only available in macOS 10.15 or newer
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          `- note: add @available attribute to enclosing generic struct
 94 |     @ObservedObject var stateObject: StateObject
 95 |
 96 |     let content: (State) -> Content
 97 |
 98 |     var body: some View {
    |         |          `- error: 'View' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
 99 |       content(stateObject.state)
100 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:93:39: error: 'View' is only available in macOS 10.15 or newer
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          |                            `- error: 'View' is only available in macOS 10.15 or newer
    |          |- note: add @available attribute to enclosing generic struct
    |          `- note: add @available attribute to enclosing generic struct
 94 |     @ObservedObject var stateObject: StateObject
 95 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:108:6: error: 'Published' is only available in macOS 10.15 or newer
105 |
106 | extension StatefulHostingView {
107 |   final class StateObject: ObservableObject {
    |               |- note: add @available attribute to enclosing class
    |               `- note: add @available attribute to enclosing class
108 |     @Published var state: State
    |      `- error: 'Published' is only available in macOS 10.15 or newer
109 |
110 |     init(state: State) {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:119:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
117 |
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:120:3: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
    |   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
121 |     VStack {
122 |       Text("Stateful Hosting View")
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:5: error: 'VStack' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |     |- error: 'VStack' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:122:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
122 |       Text("Stateful Hosting View")
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
123 |         .font(.headline)
124 |         .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:122:7: error: 'Text' is only available in macOS 10.15 or newer
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
122 |       Text("Stateful Hosting View")
    |       |- error: 'Text' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
123 |         .font(.headline)
124 |         .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:123:10: error: 'font' is only available in macOS 10.15 or newer
121 |     VStack {
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
    |          |- error: 'font' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
124 |         .fontWeight(.black)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:123:16: error: 'headline' is only available in macOS 10.15 or newer
121 |     VStack {
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
    |                |- error: 'headline' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
124 |         .fontWeight(.black)
125 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:124:10: error: 'fontWeight' is only available in macOS 10.15 or newer
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
124 |         .fontWeight(.black)
    |          |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
125 |
126 |       Text("State is \(state)")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:126:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
124 |         .fontWeight(.black)
125 |
126 |       Text("State is \(state)")
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:126:7: error: 'Text' is only available in macOS 10.15 or newer
124 |         .fontWeight(.black)
125 |
126 |       Text("State is \(state)")
    |       |- error: 'Text' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:127:10: error: 'font' is only available in macOS 10.15 or newer
125 |
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
    |          |- error: 'font' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:127:16: error: 'subheadline' is only available in macOS 10.15 or newer
125 |
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
    |                |- error: 'subheadline' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:128:10: error: 'fontWeight' is only available in macOS 10.15 or newer
126 |       Text("State is \(state)")
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
    |          |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
129 |         .foregroundStyle(.secondary)
130 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:129:10: error: 'foregroundStyle' is only available in macOS 14.0 or newer
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
    |          |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |          `- note: add 'if #available' version check
130 |     }
131 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:129:27: error: 'secondary' is only available in macOS 12.0 or newer
127 |         .font(.subheadline)
128 |         .fontWeight(.medium)
129 |         .foregroundStyle(.secondary)
    |                           |- error: 'secondary' is only available in macOS 12.0 or newer
    |                           `- note: add 'if #available' version check
130 |     }
131 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:121:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
119 | #Preview {
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
122 |       Text("Stateful Hosting View")
123 |         .font(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:142:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
140 |
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:3: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:3: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |   |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |   `- note: add 'if #available' version check
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:144:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
142 | #Preview {
143 |   HostingView {
144 |     Text("Hosting View")
    |     |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:144:5: error: 'Text' is only available in macOS 10.15 or newer
142 | #Preview {
143 |   HostingView {
144 |     Text("Hosting View")
    |     |- error: 'Text' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:145:8: error: 'font' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
    |        |- error: 'font' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:145:14: error: 'largeTitle' is only available in macOS 10.15 or newer
143 |   HostingView {
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
    |              |- error: 'largeTitle' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:146:8: error: 'fontWeight' is only available in macOS 10.15 or newer
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
    |        |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
147 |       .foregroundStyle(
148 |         .linearGradient(
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:147:8: error: 'foregroundStyle' is only available in macOS 14.0 or newer
145 |       .font(.largeTitle)
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
    |        |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:148:10: error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
146 |       .fontWeight(.black)
147 |       .foregroundStyle(
148 |         .linearGradient(
    |          |- error: 'linearGradient(colors:startPoint:endPoint:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
150 |           startPoint: .topLeading,
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:21: error: 'cyan' is only available in macOS 12.0 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                     |- error: 'cyan' is only available in macOS 12.0 or newer
    |                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:28: error: 'indigo' is only available in macOS 12.0 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                            |- error: 'indigo' is only available in macOS 12.0 or newer
    |                            `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:37: error: 'pink' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                     |- error: 'pink' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:44: error: 'orange' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                            |- error: 'orange' is only available in macOS 10.15 or newer
    |                                            `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:149:53: error: 'yellow' is only available in macOS 10.15 or newer
147 |       .foregroundStyle(
148 |         .linearGradient(
149 |           colors: [.cyan, .indigo, .pink, .orange, .yellow],
    |                                                     |- error: 'yellow' is only available in macOS 10.15 or newer
    |                                                     `- note: add 'if #available' version check
150 |           startPoint: .topLeading,
151 |           endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:143:15: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
143 |   HostingView {
    |               |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
144 |     Text("Hosting View")
145 |       .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:61:7: error: setter for 'state' is only available in macOS 10.15 or newer
 48 | /// Use the ``state`` property to send new values from UIKit into the hosted
 49 | /// SwiftUI hierarchy.
 50 | public final class StatefulHostingView<State>: HostingView {
    |                    `- note: add @available attribute to enclosing generic class
 51 |   private let stateObject: StateObject
 52 |
    :
 56 |   /// view's intrinsic content size. Use this property when UIKit events, model
 57 |   /// changes, or control state should drive the rendered SwiftUI content.
 58 |   public var state: State {
    |              `- note: add @available attribute to enclosing property
 59 |     get { stateObject.state }
 60 |     set {
 61 |       stateObject.state = newValue
    |       |- error: setter for 'state' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 62 |       invalidateIntrinsicContentSize()
 63 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:62:7: error: cannot find 'invalidateIntrinsicContentSize' in scope
 60 |     set {
 61 |       stateObject.state = newValue
 62 |       invalidateIntrinsicContentSize()
    |       `- error: cannot find 'invalidateIntrinsicContentSize' in scope
 63 |     }
 64 |   }
<unknown>:0: error: cannot convert value of type 'any KeyPath<StatefulHostingView<State>.StateObject, State> & Sendable' to expected argument type 'ReferenceWritableKeyPath<StatefulHostingView<State>.StateObject, State>'
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:80:7: error: call to main actor-isolated initializer 'init(stateObject:content:)' in a synchronous nonisolated context
 78 |     self.stateObject = stateObject
 79 |     super.init {
 80 |       StatefulContentView(stateObject: stateObject, content: content)
    |       `- error: call to main actor-isolated initializer 'init(stateObject:content:)' in a synchronous nonisolated context
 81 |     }
 82 |   }
    :
 91 |
 92 | extension StatefulHostingView {
 93 |   struct StatefulContentView<Content: View>: View {
    |          |- note: calls to initializer 'init(stateObject:content:)' from outside of its actor context are implicitly asynchronous
    |          `- note: main actor isolation inferred from conformance to protocol 'View'
 94 |     @ObservedObject var stateObject: StateObject
 95 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:111:7: error: setter for 'state' is only available in macOS 10.15 or newer
105 |
106 | extension StatefulHostingView {
107 |   final class StateObject: ObservableObject {
    |               `- note: add @available attribute to enclosing class
108 |     @Published var state: State
109 |
110 |     init(state: State) {
    |     `- note: add @available attribute to enclosing initializer
111 |       self.state = state
    |       |- error: setter for 'state' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
112 |     }
113 |   }
macro expansion #Preview:20:19: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
`- /Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:132:2: note: expanded code originates here
130 |     }
131 |   }
132 | }
    +--- macro expansion #Preview --------------------------------------
    |18 |                 }
    |19 |                 return __b_buildView {
    |20 |                   StatefulHostingView(state: Int.random(in: 0 ..< 9)) { state in
    |   |                   `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
    |21 |                     VStack {
    |22 |                       Text("Stateful Hosting View")
    +-------------------------------------------------------------------
133 |
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
BUILD FAILURE 6.1 macosSpm