The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.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.2
Building package at path:  $PWD
https://github.com/Jaesung-Jung/HostingView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--3CB7CFEC50E0D141.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:1: error: type of expression is ambiguous without a type annotation
140 |
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
    | `- error: type of expression is ambiguous without a type annotation
143 |   HostingView {
144 |     Text("Hosting View")
/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:1: error: type of expression is ambiguous without a type annotation
117 |
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
    | `- error: type of expression is ambiguous without a type annotation
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
[4/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:1: error: type of expression is ambiguous without a type annotation
140 |
141 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
142 | #Preview {
    | `- error: type of expression is ambiguous without a type annotation
143 |   HostingView {
144 |     Text("Hosting View")
/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 |   }
[5/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:1: error: type of expression is ambiguous without a type annotation
117 |
118 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
119 | #Preview {
    | `- error: type of expression is ambiguous without a type annotation
120 |   StatefulHostingView(state: Int.random(in: 0..<9)) { state in
121 |     VStack {
/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 |   }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:80:7: warning: call to main actor-isolated initializer 'init(stateObject:content:)' in a synchronous nonisolated context [#ActorIsolatedCall]
 78 |     self.stateObject = stateObject
 79 |     super.init {
 80 |       StatefulContentView(stateObject: stateObject, content: content)
    |       `- warning: call to main actor-isolated initializer 'init(stateObject:content:)' in a synchronous nonisolated context [#ActorIsolatedCall]
 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 |
<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: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 |   }
[#ActorIsolatedCall]: <https://docs.swift.org/compiler/documentation/diagnostics/actor-isolated-call>
BUILD FAILURE 6.2 macosSpm