Build Information
Failed to build HostingView, reference main (3259f8), with Swift 6.3 for macOS (SPM) on 17 Apr 2026 14:20:23 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
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 3259f81 Fix layout error
Cloned https://github.com/Jaesung-Jung/HostingView.git
Revision (git rev-parse @):
3259f81b50932279a1bae2d9f6d5bcae9d4c21db
SUCCESS checkout https://github.com/Jaesung-Jung/HostingView.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "hostingview",
"name": "HostingView",
"url": "https://github.com/Jaesung-Jung/HostingView.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HostingView",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/Jaesung-Jung/HostingView.git
[1/75] Fetching hostingview
Fetched https://github.com/Jaesung-Jung/HostingView.git from cache (0.66s)
Creating working copy for https://github.com/Jaesung-Jung/HostingView.git
Working copy of https://github.com/Jaesung-Jung/HostingView.git resolved at main (3259f81)
warning: '.resolve-product-dependencies': dependency 'hostingview' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/Jaesung-Jung/HostingView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.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:26:27: error: cannot find type 'UIView' in scope
24 | import SwiftUI
25 |
26 | public class HostingView: UIView {
| `- error: cannot find type 'UIView' in scope
27 | private(set) var contentView: UIView!
28 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:27:33: error: cannot find type 'UIView' in scope
25 |
26 | public class HostingView: UIView {
27 | private(set) var contentView: UIView!
| `- error: cannot find type 'UIView' in scope
28 |
29 | public override var intrinsicContentSize: CGSize {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:29:23: error: property does not override any property from its superclass
27 | private(set) var contentView: UIView!
28 |
29 | public override var intrinsicContentSize: CGSize {
| `- error: property does not override any property from its superclass
30 | contentView.intrinsicContentSize
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:33:39: error: cannot find type 'UIEdgeInsets' in scope
31 | }
32 |
33 | public override var safeAreaInsets: UIEdgeInsets {
| `- error: cannot find type 'UIEdgeInsets' in scope
34 | get { .zero }
35 | set {}
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:38:24: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | public class HostingView: UIView {
| `- note: add '@available' attribute to enclosing class
27 | private(set) var contentView: UIView!
28 |
:
36 | }
37 |
38 | 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
39 | super.init(frame: .zero)
40 | let content = content()
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:38:31: error: 'ViewBuilder' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | public class HostingView: UIView {
| `- note: add '@available' attribute to enclosing class
27 | private(set) var contentView: UIView!
28 |
:
36 | }
37 |
38 | 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
39 | super.init(frame: .zero)
40 | let content = content()
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:62:24: error: method does not override any method from its superclass
60 | }
61 |
62 | public override func layoutSubviews() {
| `- error: method does not override any method from its superclass
63 | super.layoutSubviews()
64 | contentView.frame = bounds
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:82:46: error: 'ProposedViewSize' is only available in macOS 13.0 or newer
69 |
70 | extension HostingView {
71 | struct HostingLayout: Layout {
| `- note: add '@available' attribute to enclosing struct
72 | struct Cache {
73 | var sizes: [Int: CGSize] = [:]
:
80 | }
81 |
82 | @inlinable func hash(_ proposedViewSize: ProposedViewSize) -> Int {
| | `- error: 'ProposedViewSize' is only available in macOS 13.0 or newer
| `- note: add '@available' attribute to enclosing instance method
83 | var hasher = Hasher()
84 | hasher.combine(proposedViewSize.width)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:89:33: error: 'ProposedViewSize' is only available in macOS 13.0 or newer
69 |
70 | extension HostingView {
71 | struct HostingLayout: Layout {
| `- note: add '@available' attribute to enclosing struct
72 | struct Cache {
73 | var sizes: [Int: CGSize] = [:]
:
87 | }
88 |
89 | func sizeThatFits(proposal: ProposedViewSize, subviews: Subviews, cache: inout Cache) -> CGSize {
| | `- error: 'ProposedViewSize' is only available in macOS 13.0 or newer
| `- note: add '@available' attribute to enclosing instance method
90 | let key = hash(proposal)
91 | if let cacheSize = cache.sizes[key] {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:99:53: error: 'ProposedViewSize' is only available in macOS 13.0 or newer
69 |
70 | extension HostingView {
71 | struct HostingLayout: Layout {
| `- note: add '@available' attribute to enclosing struct
72 | struct Cache {
73 | var sizes: [Int: CGSize] = [:]
:
97 | }
98 |
99 | func placeSubviews(in bounds: CGRect, proposal: ProposedViewSize, subviews: Subviews, cache: inout Cache) {
| | `- error: 'ProposedViewSize' is only available in macOS 13.0 or newer
| `- note: add '@available' attribute to enclosing instance method
100 | let position = CGPoint(x: max(0, bounds.origin.x), y: max(0, bounds.origin.y))
101 | for subview in subviews {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:128:1: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
126 |
127 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
128 | #Preview {
| `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
129 | HostingView {
130 | Text("Hosting View")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:26:42: error: cannot find type 'UIView' in scope
24 | import SwiftUI
25 |
26 | public class StatefulHostingView<State>: UIView {
| `- error: cannot find type 'UIView' in scope
27 | private(set) var contentView: UIView!
28 | let stateObject: StateObject
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:27:33: error: cannot find type 'UIView' in scope
25 |
26 | public class StatefulHostingView<State>: UIView {
27 | private(set) var contentView: UIView!
| `- error: cannot find type 'UIView' in scope
28 | let stateObject: StateObject
29 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:35:23: error: property does not override any property from its superclass
33 | }
34 |
35 | public override var intrinsicContentSize: CGSize {
| `- error: property does not override any property from its superclass
36 | contentView.intrinsicContentSize
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:39:39: error: cannot find type 'UIEdgeInsets' in scope
37 | }
38 |
39 | public override var safeAreaInsets: UIEdgeInsets {
| `- error: cannot find type 'UIEdgeInsets' in scope
40 | get { .zero }
41 | set {}
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:44:24: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | public class StatefulHostingView<State>: UIView {
| `- note: add '@available' attribute to enclosing generic class
27 | private(set) var contentView: UIView!
28 | let stateObject: StateObject
:
42 | }
43 |
44 | 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
45 | self.stateObject = StateObject(state: state)
46 | super.init(frame: .zero)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:44:45: error: 'ViewBuilder' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | public class StatefulHostingView<State>: UIView {
| `- note: add '@available' attribute to enclosing generic class
27 | private(set) var contentView: UIView!
28 | let stateObject: StateObject
:
42 | }
43 |
44 | 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
45 | self.stateObject = StateObject(state: state)
46 | super.init(frame: .zero)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:68:24: error: method does not override any method from its superclass
66 | }
67 |
68 | public override func layoutSubviews() {
| `- error: method does not override any method from its superclass
69 | super.layoutSubviews()
70 | contentView.frame = bounds
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:78:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
75 |
76 | extension StatefulHostingView {
77 | struct StatefulContentView<Content: View>: View {
| |- note: add '@available' attribute to enclosing generic struct
| `- note: add '@available' attribute to enclosing generic struct
78 | @ObservedObject var stateObject: StateObject
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
79 |
80 | let content: (State) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:82:20: error: 'View' is only available in macOS 10.15 or newer
75 |
76 | extension StatefulHostingView {
77 | struct StatefulContentView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
78 | @ObservedObject var stateObject: StateObject
79 |
80 | let content: (State) -> Content
81 |
82 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
83 | content(stateObject.state)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:77:39: error: 'View' is only available in macOS 10.15 or newer
75 |
76 | extension StatefulHostingView {
77 | 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
78 | @ObservedObject var stateObject: StateObject
79 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:92:6: error: 'Published' is only available in macOS 10.15 or newer
89 |
90 | extension StatefulHostingView {
91 | class StateObject: ObservableObject {
| |- note: add '@available' attribute to enclosing class
| `- note: add '@available' attribute to enclosing class
92 | @Published var state: State
| `- error: 'Published' is only available in macOS 10.15 or newer
93 |
94 | init(state: State) {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:91:22: error: 'ObservableObject' is only available in macOS 10.15 or newer
89 |
90 | extension StatefulHostingView {
91 | class StateObject: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| |- note: add '@available' attribute to enclosing class
| `- note: add '@available' attribute to enclosing class
92 | @Published var state: State
93 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:103:1: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
101 |
102 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
103 | #Preview {
| `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
104 | StatefulHostingView(state: Int.random(in: 0..<9)) { state in
105 | VStack {
[4/5] Compiling HostingView HostingView.swift
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:26:27: error: cannot find type 'UIView' in scope
24 | import SwiftUI
25 |
26 | public class HostingView: UIView {
| `- error: cannot find type 'UIView' in scope
27 | private(set) var contentView: UIView!
28 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:27:33: error: cannot find type 'UIView' in scope
25 |
26 | public class HostingView: UIView {
27 | private(set) var contentView: UIView!
| `- error: cannot find type 'UIView' in scope
28 |
29 | public override var intrinsicContentSize: CGSize {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:29:23: error: property does not override any property from its superclass
27 | private(set) var contentView: UIView!
28 |
29 | public override var intrinsicContentSize: CGSize {
| `- error: property does not override any property from its superclass
30 | contentView.intrinsicContentSize
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:33:39: error: cannot find type 'UIEdgeInsets' in scope
31 | }
32 |
33 | public override var safeAreaInsets: UIEdgeInsets {
| `- error: cannot find type 'UIEdgeInsets' in scope
34 | get { .zero }
35 | set {}
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:38:24: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | public class HostingView: UIView {
| `- note: add '@available' attribute to enclosing class
27 | private(set) var contentView: UIView!
28 |
:
36 | }
37 |
38 | 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
39 | super.init(frame: .zero)
40 | let content = content()
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:38:31: error: 'ViewBuilder' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | public class HostingView: UIView {
| `- note: add '@available' attribute to enclosing class
27 | private(set) var contentView: UIView!
28 |
:
36 | }
37 |
38 | 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
39 | super.init(frame: .zero)
40 | let content = content()
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:62:24: error: method does not override any method from its superclass
60 | }
61 |
62 | public override func layoutSubviews() {
| `- error: method does not override any method from its superclass
63 | super.layoutSubviews()
64 | contentView.frame = bounds
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:82:46: error: 'ProposedViewSize' is only available in macOS 13.0 or newer
69 |
70 | extension HostingView {
71 | struct HostingLayout: Layout {
| `- note: add '@available' attribute to enclosing struct
72 | struct Cache {
73 | var sizes: [Int: CGSize] = [:]
:
80 | }
81 |
82 | @inlinable func hash(_ proposedViewSize: ProposedViewSize) -> Int {
| | `- error: 'ProposedViewSize' is only available in macOS 13.0 or newer
| `- note: add '@available' attribute to enclosing instance method
83 | var hasher = Hasher()
84 | hasher.combine(proposedViewSize.width)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:89:33: error: 'ProposedViewSize' is only available in macOS 13.0 or newer
69 |
70 | extension HostingView {
71 | struct HostingLayout: Layout {
| `- note: add '@available' attribute to enclosing struct
72 | struct Cache {
73 | var sizes: [Int: CGSize] = [:]
:
87 | }
88 |
89 | func sizeThatFits(proposal: ProposedViewSize, subviews: Subviews, cache: inout Cache) -> CGSize {
| | `- error: 'ProposedViewSize' is only available in macOS 13.0 or newer
| `- note: add '@available' attribute to enclosing instance method
90 | let key = hash(proposal)
91 | if let cacheSize = cache.sizes[key] {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:99:53: error: 'ProposedViewSize' is only available in macOS 13.0 or newer
69 |
70 | extension HostingView {
71 | struct HostingLayout: Layout {
| `- note: add '@available' attribute to enclosing struct
72 | struct Cache {
73 | var sizes: [Int: CGSize] = [:]
:
97 | }
98 |
99 | func placeSubviews(in bounds: CGRect, proposal: ProposedViewSize, subviews: Subviews, cache: inout Cache) {
| | `- error: 'ProposedViewSize' is only available in macOS 13.0 or newer
| `- note: add '@available' attribute to enclosing instance method
100 | let position = CGPoint(x: max(0, bounds.origin.x), y: max(0, bounds.origin.y))
101 | for subview in subviews {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:128:1: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
126 |
127 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
128 | #Preview {
| `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
129 | HostingView {
130 | Text("Hosting View")
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:39:5: error: 'super' cannot be used in class 'HostingView' because it has no superclass
37 |
38 | public init<Content: View>(@ViewBuilder content: () -> Content) {
39 | super.init(frame: .zero)
| `- error: 'super' cannot be used in class 'HostingView' because it has no superclass
40 | let content = content()
41 | let invalidateSize: @MainActor () -> Void = { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:39:24: error: cannot infer contextual base in reference to member 'zero'
37 |
38 | public init<Content: View>(@ViewBuilder content: () -> Content) {
39 | super.init(frame: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
40 | let content = content()
41 | let invalidateSize: @MainActor () -> Void = { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:42:13: error: value of type 'HostingView' has no member 'invalidateIntrinsicContentSize'
40 | let content = content()
41 | let invalidateSize: @MainActor () -> Void = { [weak self] in
42 | self?.invalidateIntrinsicContentSize()
| `- error: value of type 'HostingView' has no member 'invalidateIntrinsicContentSize'
43 | }
44 | contentView = UIHostingConfiguration {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:44:19: error: cannot find 'UIHostingConfiguration' in scope
42 | self?.invalidateIntrinsicContentSize()
43 | }
44 | contentView = UIHostingConfiguration {
| `- error: cannot find 'UIHostingConfiguration' in scope
45 | HostingLayout(invalidateSize) {
46 | content
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:51:15: error: cannot infer contextual base in reference to member 'all'
49 | .ignoresSafeArea()
50 | }
51 | .margins(.all, 0)
| `- error: cannot infer contextual base in reference to member 'all'
52 | .makeContentView()
53 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:54:5: error: cannot find 'addSubview' in scope
52 | .makeContentView()
53 |
54 | addSubview(contentView)
| `- error: cannot find 'addSubview' in scope
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:63:5: error: 'super' cannot be used in class 'HostingView' because it has no superclass
61 |
62 | public override func layoutSubviews() {
63 | super.layoutSubviews()
| `- error: 'super' cannot be used in class 'HostingView' because it has no superclass
64 | contentView.frame = bounds
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:64:25: error: cannot find 'bounds' in scope
62 | public override func layoutSubviews() {
63 | super.layoutSubviews()
64 | contentView.frame = bounds
| `- error: cannot find 'bounds' in scope
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:104:7: error: 'Task' is only available in macOS 10.15 or newer
69 |
70 | extension HostingView {
71 | struct HostingLayout: Layout {
| `- note: add '@available' attribute to enclosing struct
72 | struct Cache {
73 | var sizes: [Int: CGSize] = [:]
:
97 | }
98 |
99 | func placeSubviews(in bounds: CGRect, proposal: ProposedViewSize, subviews: Subviews, cache: inout Cache) {
| `- note: add '@available' attribute to enclosing instance method
100 | let position = CGPoint(x: max(0, bounds.origin.x), y: max(0, bounds.origin.y))
101 | for subview in subviews {
102 | subview.place(at: position, proposal: proposal)
103 | }
104 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | await MainActor.run {
106 | invalidateSize()
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:104:7: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
69 |
70 | extension HostingView {
71 | struct HostingLayout: Layout {
| `- note: add '@available' attribute to enclosing struct
72 | struct Cache {
73 | var sizes: [Int: CGSize] = [:]
:
97 | }
98 |
99 | func placeSubviews(in bounds: CGRect, proposal: ProposedViewSize, subviews: Subviews, cache: inout Cache) {
| `- note: add '@available' attribute to enclosing instance method
100 | let position = CGPoint(x: max(0, bounds.origin.x), y: max(0, bounds.origin.y))
101 | for subview in subviews {
102 | subview.place(at: position, proposal: proposal)
103 | }
104 | Task {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | await MainActor.run {
106 | invalidateSize()
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:105:15: error: 'MainActor' is only available in macOS 10.15 or newer
69 |
70 | extension HostingView {
71 | struct HostingLayout: Layout {
| `- note: add '@available' attribute to enclosing struct
72 | struct Cache {
73 | var sizes: [Int: CGSize] = [:]
:
97 | }
98 |
99 | func placeSubviews(in bounds: CGRect, proposal: ProposedViewSize, subviews: Subviews, cache: inout Cache) {
| `- note: add '@available' attribute to enclosing instance method
100 | let position = CGPoint(x: max(0, bounds.origin.x), y: max(0, bounds.origin.y))
101 | for subview in subviews {
:
103 | }
104 | Task {
105 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | invalidateSize()
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/HostingView.swift:105:25: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
69 |
70 | extension HostingView {
71 | struct HostingLayout: Layout {
| `- note: add '@available' attribute to enclosing struct
72 | struct Cache {
73 | var sizes: [Int: CGSize] = [:]
:
97 | }
98 |
99 | func placeSubviews(in bounds: CGRect, proposal: ProposedViewSize, subviews: Subviews, cache: inout Cache) {
| `- note: add '@available' attribute to enclosing instance method
100 | let position = CGPoint(x: max(0, bounds.origin.x), y: max(0, bounds.origin.y))
101 | for subview in subviews {
:
103 | }
104 | Task {
105 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | invalidateSize()
107 | }
[5/5] Compiling HostingView StatefulHostingView.swift
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:26:42: error: cannot find type 'UIView' in scope
24 | import SwiftUI
25 |
26 | public class StatefulHostingView<State>: UIView {
| `- error: cannot find type 'UIView' in scope
27 | private(set) var contentView: UIView!
28 | let stateObject: StateObject
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:27:33: error: cannot find type 'UIView' in scope
25 |
26 | public class StatefulHostingView<State>: UIView {
27 | private(set) var contentView: UIView!
| `- error: cannot find type 'UIView' in scope
28 | let stateObject: StateObject
29 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:35:23: error: property does not override any property from its superclass
33 | }
34 |
35 | public override var intrinsicContentSize: CGSize {
| `- error: property does not override any property from its superclass
36 | contentView.intrinsicContentSize
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:39:39: error: cannot find type 'UIEdgeInsets' in scope
37 | }
38 |
39 | public override var safeAreaInsets: UIEdgeInsets {
| `- error: cannot find type 'UIEdgeInsets' in scope
40 | get { .zero }
41 | set {}
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:44:24: error: 'View' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | public class StatefulHostingView<State>: UIView {
| `- note: add '@available' attribute to enclosing generic class
27 | private(set) var contentView: UIView!
28 | let stateObject: StateObject
:
42 | }
43 |
44 | 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
45 | self.stateObject = StateObject(state: state)
46 | super.init(frame: .zero)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:44:45: error: 'ViewBuilder' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | public class StatefulHostingView<State>: UIView {
| `- note: add '@available' attribute to enclosing generic class
27 | private(set) var contentView: UIView!
28 | let stateObject: StateObject
:
42 | }
43 |
44 | 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
45 | self.stateObject = StateObject(state: state)
46 | super.init(frame: .zero)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:68:24: error: method does not override any method from its superclass
66 | }
67 |
68 | public override func layoutSubviews() {
| `- error: method does not override any method from its superclass
69 | super.layoutSubviews()
70 | contentView.frame = bounds
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:78:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
75 |
76 | extension StatefulHostingView {
77 | struct StatefulContentView<Content: View>: View {
| |- note: add '@available' attribute to enclosing generic struct
| `- note: add '@available' attribute to enclosing generic struct
78 | @ObservedObject var stateObject: StateObject
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
79 |
80 | let content: (State) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:82:20: error: 'View' is only available in macOS 10.15 or newer
75 |
76 | extension StatefulHostingView {
77 | struct StatefulContentView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
78 | @ObservedObject var stateObject: StateObject
79 |
80 | let content: (State) -> Content
81 |
82 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
83 | content(stateObject.state)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:77:39: error: 'View' is only available in macOS 10.15 or newer
75 |
76 | extension StatefulHostingView {
77 | 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
78 | @ObservedObject var stateObject: StateObject
79 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:92:6: error: 'Published' is only available in macOS 10.15 or newer
89 |
90 | extension StatefulHostingView {
91 | class StateObject: ObservableObject {
| |- note: add '@available' attribute to enclosing class
| `- note: add '@available' attribute to enclosing class
92 | @Published var state: State
| `- error: 'Published' is only available in macOS 10.15 or newer
93 |
94 | init(state: State) {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:91:22: error: 'ObservableObject' is only available in macOS 10.15 or newer
89 |
90 | extension StatefulHostingView {
91 | class StateObject: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| |- note: add '@available' attribute to enclosing class
| `- note: add '@available' attribute to enclosing class
92 | @Published var state: State
93 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:103:1: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
101 |
102 | @available(iOS 17.0, macCatalyst 17.0, tvOS 17.0, *)
103 | #Preview {
| `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
104 | StatefulHostingView(state: Int.random(in: 0..<9)) { state in
105 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:32:11: error: setter for 'state' is only available in macOS 10.15 or newer
24 | import SwiftUI
25 |
26 | public class StatefulHostingView<State>: UIView {
| `- note: add '@available' attribute to enclosing generic class
27 | private(set) var contentView: UIView!
28 | let stateObject: StateObject
29 |
30 | public var state: State {
| `- note: add '@available' attribute to enclosing property
31 | get { stateObject.state }
32 | set { stateObject.state = newValue }
| |- error: setter for 'state' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:46:5: error: 'super' cannot be used in class 'StatefulHostingView' because it has no superclass
44 | public init<Content: View>(state: State, @ViewBuilder content: @escaping (State) -> Content) {
45 | self.stateObject = StateObject(state: state)
46 | super.init(frame: .zero)
| `- error: 'super' cannot be used in class 'StatefulHostingView' because it has no superclass
47 | let invalidateSize: @MainActor () -> Void = { [weak self] in
48 | self?.invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:46:24: error: cannot infer contextual base in reference to member 'zero'
44 | public init<Content: View>(state: State, @ViewBuilder content: @escaping (State) -> Content) {
45 | self.stateObject = StateObject(state: state)
46 | super.init(frame: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
47 | let invalidateSize: @MainActor () -> Void = { [weak self] in
48 | self?.invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:48:13: error: value of type 'StatefulHostingView<State>' has no member 'invalidateIntrinsicContentSize'
46 | super.init(frame: .zero)
47 | let invalidateSize: @MainActor () -> Void = { [weak self] in
48 | self?.invalidateIntrinsicContentSize()
| `- error: value of type 'StatefulHostingView<State>' has no member 'invalidateIntrinsicContentSize'
49 | }
50 | contentView = UIHostingConfiguration {
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:50:19: error: cannot find 'UIHostingConfiguration' in scope
48 | self?.invalidateIntrinsicContentSize()
49 | }
50 | contentView = UIHostingConfiguration {
| `- error: cannot find 'UIHostingConfiguration' in scope
51 | HostingView.HostingLayout(invalidateSize) {
52 | StatefulContentView(stateObject: stateObject, content: content)
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:57:15: error: cannot infer contextual base in reference to member 'all'
55 | .ignoresSafeArea()
56 | }
57 | .margins(.all, 0)
| `- error: cannot infer contextual base in reference to member 'all'
58 | .makeContentView()
59 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:60:5: error: cannot find 'addSubview' in scope
58 | .makeContentView()
59 |
60 | addSubview(contentView)
| `- error: cannot find 'addSubview' in scope
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:69:5: error: 'super' cannot be used in class 'StatefulHostingView' because it has no superclass
67 |
68 | public override func layoutSubviews() {
69 | super.layoutSubviews()
| `- error: 'super' cannot be used in class 'StatefulHostingView' because it has no superclass
70 | contentView.frame = bounds
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/HostingView/StatefulHostingView.swift:70:25: error: cannot find 'bounds' in scope
68 | public override func layoutSubviews() {
69 | super.layoutSubviews()
70 | contentView.frame = bounds
| `- error: cannot find 'bounds' in scope
71 | }
72 | }
<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:95:7: error: setter for 'state' is only available in macOS 10.15 or newer
89 |
90 | extension StatefulHostingView {
91 | class StateObject: ObservableObject {
| `- note: add '@available' attribute to enclosing class
92 | @Published var state: State
93 |
94 | init(state: State) {
| `- note: add '@available' attribute to enclosing initializer
95 | self.state = state
| |- error: setter for 'state' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | }
97 | }
BUILD FAILURE 6.3 macosSpm