Build Information
Failed to build UIViewPreview, reference master (c539cf
), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 04:45:25 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bielikb/UIViewPreview.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/bielikb/UIViewPreview
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at c539cf2 badges
Cloned https://github.com/bielikb/UIViewPreview.git
Revision (git rev-parse @):
c539cf207b76c2903260e2c38afd7df01d64ac66
SUCCESS checkout https://github.com/bielikb/UIViewPreview.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "uiviewpreview",
"name": "UIViewPreview",
"url": "https://github.com/bielikb/UIViewPreview.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UIViewPreview",
"dependencies": [
]
}
]
}
Fetching https://github.com/bielikb/UIViewPreview.git
[1/49] Fetching uiviewpreview
Fetched https://github.com/bielikb/UIViewPreview.git from cache (0.89s)
Creating working copy for https://github.com/bielikb/UIViewPreview.git
Working copy of https://github.com/bielikb/UIViewPreview.git resolved at master (c539cf2)
warning: '.resolve-product-dependencies': dependency 'uiviewpreview' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/bielikb/UIViewPreview.git
https://github.com/bielikb/UIViewPreview.git
{
"dependencies" : [
],
"manifest_display_name" : "UIViewPreview",
"name" : "UIViewPreview",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "UIViewPreview",
"targets" : [
"UIViewPreview"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "UIViewPreview",
"module_type" : "SwiftTarget",
"name" : "UIViewPreview",
"path" : "Sources/UIViewPreview",
"product_memberships" : [
"UIViewPreview"
],
"sources" : [
"UIViewPreview.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module UIViewPreview
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:4:39: error: cannot find type 'UIView' in scope
2 | import SwiftUI
3 |
4 | public struct UIViewPreview<View: UIView>: UIViewRepresentable {
| `- error: cannot find type 'UIView' in scope
5 | public let view: View
6 | public init(_ builder: @escaping () -> View) {
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:10:53: error: cannot find type 'UIView' in scope
8 | }
9 | // MARK: - UIViewRepresentable
10 | public func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'UIView' in scope
11 | return view
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:10:41: error: cannot find type 'Context' in scope
8 | }
9 | // MARK: - UIViewRepresentable
10 | public func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'Context' in scope
11 | return view
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:13:42: error: cannot find type 'UIView' in scope
11 | return view
12 | }
13 | public func updateUIView(_ view: UIView, context: Context) {
| `- error: cannot find type 'UIView' in scope
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:13:59: error: cannot find type 'Context' in scope
11 | return view
12 | }
13 | public func updateUIView(_ view: UIView, context: Context) {
| `- error: cannot find type 'Context' in scope
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:4:48: error: cannot find type 'UIViewRepresentable' in scope
2 | import SwiftUI
3 |
4 | public struct UIViewPreview<View: UIView>: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
5 | public let view: View
6 | public init(_ builder: @escaping () -> View) {
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:19:59: error: cannot find type 'UIViewController' in scope
17 | }
18 |
19 | public struct UIViewControllerPreview<ViewController: UIViewController>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewController' in scope
20 | public let viewController: ViewController
21 |
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:27:51: error: cannot find type 'Context' in scope
25 |
26 | // MARK: - UIViewControllerRepresentable
27 | public func makeUIViewController(context: Context) -> ViewController {
| `- error: cannot find type 'Context' in scope
28 | viewController
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:34:89: error: cannot find type 'UIViewControllerRepresentableContext' in scope
32 | @available(OSX, unavailable)
33 | @available(watchOS, unavailable)
34 | public func updateUIViewController(_ uiViewController: ViewController, context: UIViewControllerRepresentableContext<UIViewControllerPreview<ViewController>>) {
| `- error: cannot find type 'UIViewControllerRepresentableContext' in scope
35 | return
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:19:78: error: cannot find type 'UIViewControllerRepresentable' in scope
17 | }
18 |
19 | public struct UIViewControllerPreview<ViewController: UIViewController>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
20 | public let viewController: ViewController
21 |
[4/4] Compiling UIViewPreview UIViewPreview.swift
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:4:39: error: cannot find type 'UIView' in scope
2 | import SwiftUI
3 |
4 | public struct UIViewPreview<View: UIView>: UIViewRepresentable {
| `- error: cannot find type 'UIView' in scope
5 | public let view: View
6 | public init(_ builder: @escaping () -> View) {
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:10:53: error: cannot find type 'UIView' in scope
8 | }
9 | // MARK: - UIViewRepresentable
10 | public func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'UIView' in scope
11 | return view
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:10:41: error: cannot find type 'Context' in scope
8 | }
9 | // MARK: - UIViewRepresentable
10 | public func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'Context' in scope
11 | return view
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:13:42: error: cannot find type 'UIView' in scope
11 | return view
12 | }
13 | public func updateUIView(_ view: UIView, context: Context) {
| `- error: cannot find type 'UIView' in scope
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:13:59: error: cannot find type 'Context' in scope
11 | return view
12 | }
13 | public func updateUIView(_ view: UIView, context: Context) {
| `- error: cannot find type 'Context' in scope
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:4:48: error: cannot find type 'UIViewRepresentable' in scope
2 | import SwiftUI
3 |
4 | public struct UIViewPreview<View: UIView>: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
5 | public let view: View
6 | public init(_ builder: @escaping () -> View) {
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:19:59: error: cannot find type 'UIViewController' in scope
17 | }
18 |
19 | public struct UIViewControllerPreview<ViewController: UIViewController>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewController' in scope
20 | public let viewController: ViewController
21 |
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:27:51: error: cannot find type 'Context' in scope
25 |
26 | // MARK: - UIViewControllerRepresentable
27 | public func makeUIViewController(context: Context) -> ViewController {
| `- error: cannot find type 'Context' in scope
28 | viewController
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:34:89: error: cannot find type 'UIViewControllerRepresentableContext' in scope
32 | @available(OSX, unavailable)
33 | @available(watchOS, unavailable)
34 | public func updateUIViewController(_ uiViewController: ViewController, context: UIViewControllerRepresentableContext<UIViewControllerPreview<ViewController>>) {
| `- error: cannot find type 'UIViewControllerRepresentableContext' in scope
35 | return
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:19:78: error: cannot find type 'UIViewControllerRepresentable' in scope
17 | }
18 |
19 | public struct UIViewControllerPreview<ViewController: UIViewController>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
20 | public let viewController: ViewController
21 |
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:14:45: error: cannot infer contextual base in reference to member 'defaultHigh'
12 | }
13 | public func updateUIView(_ view: UIView, context: Context) {
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
| `- error: cannot infer contextual base in reference to member 'defaultHigh'
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:14:64: error: cannot infer contextual base in reference to member 'horizontal'
12 | }
13 | public func updateUIView(_ view: UIView, context: Context) {
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
| `- error: cannot infer contextual base in reference to member 'horizontal'
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:15:45: error: cannot infer contextual base in reference to member 'defaultHigh'
13 | public func updateUIView(_ view: UIView, context: Context) {
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
| `- error: cannot infer contextual base in reference to member 'defaultHigh'
16 | }
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:15:64: error: cannot infer contextual base in reference to member 'vertical'
13 | public func updateUIView(_ view: UIView, context: Context) {
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
| `- error: cannot infer contextual base in reference to member 'vertical'
16 | }
17 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module UIViewPreview
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:4:39: error: cannot find type 'UIView' in scope
2 | import SwiftUI
3 |
4 | public struct UIViewPreview<View: UIView>: UIViewRepresentable {
| `- error: cannot find type 'UIView' in scope
5 | public let view: View
6 | public init(_ builder: @escaping () -> View) {
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:10:53: error: cannot find type 'UIView' in scope
8 | }
9 | // MARK: - UIViewRepresentable
10 | public func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'UIView' in scope
11 | return view
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:10:41: error: cannot find type 'Context' in scope
8 | }
9 | // MARK: - UIViewRepresentable
10 | public func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'Context' in scope
11 | return view
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:13:42: error: cannot find type 'UIView' in scope
11 | return view
12 | }
13 | public func updateUIView(_ view: UIView, context: Context) {
| `- error: cannot find type 'UIView' in scope
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:13:59: error: cannot find type 'Context' in scope
11 | return view
12 | }
13 | public func updateUIView(_ view: UIView, context: Context) {
| `- error: cannot find type 'Context' in scope
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:4:48: error: cannot find type 'UIViewRepresentable' in scope
2 | import SwiftUI
3 |
4 | public struct UIViewPreview<View: UIView>: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
5 | public let view: View
6 | public init(_ builder: @escaping () -> View) {
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:19:59: error: cannot find type 'UIViewController' in scope
17 | }
18 |
19 | public struct UIViewControllerPreview<ViewController: UIViewController>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewController' in scope
20 | public let viewController: ViewController
21 |
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:27:51: error: cannot find type 'Context' in scope
25 |
26 | // MARK: - UIViewControllerRepresentable
27 | public func makeUIViewController(context: Context) -> ViewController {
| `- error: cannot find type 'Context' in scope
28 | viewController
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:34:89: error: cannot find type 'UIViewControllerRepresentableContext' in scope
32 | @available(OSX, unavailable)
33 | @available(watchOS, unavailable)
34 | public func updateUIViewController(_ uiViewController: ViewController, context: UIViewControllerRepresentableContext<UIViewControllerPreview<ViewController>>) {
| `- error: cannot find type 'UIViewControllerRepresentableContext' in scope
35 | return
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:19:78: error: cannot find type 'UIViewControllerRepresentable' in scope
17 | }
18 |
19 | public struct UIViewControllerPreview<ViewController: UIViewController>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
20 | public let viewController: ViewController
21 |
[3/3] Compiling UIViewPreview UIViewPreview.swift
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:4:39: error: cannot find type 'UIView' in scope
2 | import SwiftUI
3 |
4 | public struct UIViewPreview<View: UIView>: UIViewRepresentable {
| `- error: cannot find type 'UIView' in scope
5 | public let view: View
6 | public init(_ builder: @escaping () -> View) {
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:10:53: error: cannot find type 'UIView' in scope
8 | }
9 | // MARK: - UIViewRepresentable
10 | public func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'UIView' in scope
11 | return view
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:10:41: error: cannot find type 'Context' in scope
8 | }
9 | // MARK: - UIViewRepresentable
10 | public func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'Context' in scope
11 | return view
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:13:42: error: cannot find type 'UIView' in scope
11 | return view
12 | }
13 | public func updateUIView(_ view: UIView, context: Context) {
| `- error: cannot find type 'UIView' in scope
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:13:59: error: cannot find type 'Context' in scope
11 | return view
12 | }
13 | public func updateUIView(_ view: UIView, context: Context) {
| `- error: cannot find type 'Context' in scope
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:4:48: error: cannot find type 'UIViewRepresentable' in scope
2 | import SwiftUI
3 |
4 | public struct UIViewPreview<View: UIView>: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
5 | public let view: View
6 | public init(_ builder: @escaping () -> View) {
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:19:59: error: cannot find type 'UIViewController' in scope
17 | }
18 |
19 | public struct UIViewControllerPreview<ViewController: UIViewController>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewController' in scope
20 | public let viewController: ViewController
21 |
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:27:51: error: cannot find type 'Context' in scope
25 |
26 | // MARK: - UIViewControllerRepresentable
27 | public func makeUIViewController(context: Context) -> ViewController {
| `- error: cannot find type 'Context' in scope
28 | viewController
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:34:89: error: cannot find type 'UIViewControllerRepresentableContext' in scope
32 | @available(OSX, unavailable)
33 | @available(watchOS, unavailable)
34 | public func updateUIViewController(_ uiViewController: ViewController, context: UIViewControllerRepresentableContext<UIViewControllerPreview<ViewController>>) {
| `- error: cannot find type 'UIViewControllerRepresentableContext' in scope
35 | return
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:19:78: error: cannot find type 'UIViewControllerRepresentable' in scope
17 | }
18 |
19 | public struct UIViewControllerPreview<ViewController: UIViewController>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
20 | public let viewController: ViewController
21 |
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:14:45: error: cannot infer contextual base in reference to member 'defaultHigh'
12 | }
13 | public func updateUIView(_ view: UIView, context: Context) {
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
| `- error: cannot infer contextual base in reference to member 'defaultHigh'
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:14:64: error: cannot infer contextual base in reference to member 'horizontal'
12 | }
13 | public func updateUIView(_ view: UIView, context: Context) {
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
| `- error: cannot infer contextual base in reference to member 'horizontal'
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:15:45: error: cannot infer contextual base in reference to member 'defaultHigh'
13 | public func updateUIView(_ view: UIView, context: Context) {
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
| `- error: cannot infer contextual base in reference to member 'defaultHigh'
16 | }
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/UIViewPreview/UIViewPreview.swift:15:64: error: cannot infer contextual base in reference to member 'vertical'
13 | public func updateUIView(_ view: UIView, context: Context) {
14 | view.setContentHuggingPriority(.defaultHigh, for: .horizontal)
15 | view.setContentHuggingPriority(.defaultHigh, for: .vertical)
| `- error: cannot infer contextual base in reference to member 'vertical'
16 | }
17 | }
BUILD FAILURE 6.1 macosSpm