Build Information
Failed to build ConstraintBuilder, reference 1.4.0 (8eb7cd
), with Swift 6.0 for Linux on 23 Jan 2025 19:40:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PimCoumans/ConstraintBuilder.git
Reference: 1.4.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/PimCoumans/ConstraintBuilder
* tag 1.4.0 -> FETCH_HEAD
HEAD is now at 8eb7cdb Expanded usage of result builder
Cloned https://github.com/PimCoumans/ConstraintBuilder.git
Revision (git rev-parse @):
8eb7cdb13156bb191ea8b0ab2be1d21a3e5ddaf0
SUCCESS checkout https://github.com/PimCoumans/ConstraintBuilder.git at 1.4.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/PimCoumans/ConstraintBuilder.git
https://github.com/PimCoumans/ConstraintBuilder.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "ConstraintBuilder",
"name" : "ConstraintBuilder",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.11"
}
],
"products" : [
{
"name" : "ConstraintBuilder",
"targets" : [
"ConstraintBuilder"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ConstraintBuilderTests",
"module_type" : "SwiftTarget",
"name" : "ConstraintBuilderTests",
"path" : "Tests/ConstraintBuilderTests",
"sources" : [
"ConstraintBuilderTests.swift"
],
"target_dependencies" : [
"ConstraintBuilder"
],
"type" : "test"
},
{
"c99name" : "ConstraintBuilder",
"module_type" : "SwiftTarget",
"name" : "ConstraintBuilder",
"path" : "Sources/ConstraintBuilder",
"product_memberships" : [
"ConstraintBuilder"
],
"sources" : [
"Collection+ConstraintBuildable.swift",
"ConstraintBuilder.swift",
"Extensions/NSLayoutConstraint.swift",
"NSView+ConstraintBuildable.swift",
"UIView+ConstraintBuildable.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling ConstraintBuilder UIView+ConstraintBuildable.swift
[4/8] Compiling ConstraintBuilder NSView+ConstraintBuildable.swift
[5/8] Compiling ConstraintBuilder NSLayoutConstraint.swift
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:7:18: error: cannot find type 'NSLayoutConstraint' in scope
5 | #endif
6 |
7 | public extension NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
8 | /// Activates all constraints created in the `builder` closure;
9 | /// - Parameter builder: Closure in which all constraints should be created or referenced
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:25:18: error: cannot find type 'NSLayoutConstraint' in scope
23 | }
24 |
25 | public extension NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
26 | /// Updates constraint priority and returns itself, allowing for chaining this method after creation
27 | func withPriority(_ priority: LayoutPriority) -> NSLayoutConstraint {
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:20:56: error: cannot find type 'NSLayoutConstraint' in scope
18 | /// }
19 | /// ```
20 | class func build(@ConstraintBuilder _ builder: () -> [NSLayoutConstraint]) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
21 | activate(builder())
22 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:27:51: error: cannot find type 'NSLayoutConstraint' in scope
25 | public extension NSLayoutConstraint {
26 | /// Updates constraint priority and returns itself, allowing for chaining this method after creation
27 | func withPriority(_ priority: LayoutPriority) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
28 | self.priority = priority
29 | return self
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:27:32: error: cannot find type 'LayoutPriority' in scope
25 | public extension NSLayoutConstraint {
26 | /// Updates constraint priority and returns itself, allowing for chaining this method after creation
27 | func withPriority(_ priority: LayoutPriority) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
28 | self.priority = priority
29 | return self
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:37:76: error: cannot find type 'NSLayoutConstraint' in scope
35 | /// - activated: Wether the current (old) constraint should be deactivated and the new constraint activated
36 | /// - Returns: New copy of the receiving layout constraint with updated multiplier
37 | func updatingMultiplier(_ multiplier: CGFloat, activated: Bool = true) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
38 | guard multiplier != self.multiplier else {
39 | return self
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:37:40: error: cannot find type 'CGFloat' in scope
35 | /// - activated: Wether the current (old) constraint should be deactivated and the new constraint activated
36 | /// - Returns: New copy of the receiving layout constraint with updated multiplier
37 | func updatingMultiplier(_ multiplier: CGFloat, activated: Bool = true) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
38 | guard multiplier != self.multiplier else {
39 | return self
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Emitting module ConstraintBuilder
/host/spi-builder-workspace/Sources/ConstraintBuilder/Collection+ConstraintBuildable.swift:9:87: error: cannot find type 'NSLayoutConstraint' in scope
7 |
8 | extension Collection where Element: ConstraintBuildable {
9 | public func applyConstraints(@ConstraintBuilder _ builder: (Element.Constrained) -> [NSLayoutConstraint]) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
10 | for container in self {
11 | container.applyConstraints(builder)
/host/spi-builder-workspace/Sources/ConstraintBuilder/Collection+ConstraintBuildable.swift:9:31: error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
7 |
8 | extension Collection where Element: ConstraintBuildable {
9 | public func applyConstraints(@ConstraintBuilder _ builder: (Element.Constrained) -> [NSLayoutConstraint]) {
| `- error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
10 | for container in self {
11 | container.applyConstraints(builder)
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:17:21: error: cannot find type 'NSLayoutXAxisAnchor' in scope
15 | // Anchors shared by views and layout guides
16 | public protocol LayoutContainer {
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:18:22: error: cannot find type 'NSLayoutXAxisAnchor' in scope
16 | public protocol LayoutContainer {
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:19:18: error: cannot find type 'NSLayoutXAxisAnchor' in scope
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:20:19: error: cannot find type 'NSLayoutXAxisAnchor' in scope
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:21:17: error: cannot find type 'NSLayoutYAxisAnchor' in scope
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
| `- error: cannot find type 'NSLayoutYAxisAnchor' in scope
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:22:20: error: cannot find type 'NSLayoutYAxisAnchor' in scope
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- error: cannot find type 'NSLayoutYAxisAnchor' in scope
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:23:19: error: cannot find type 'NSLayoutDimension' in scope
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
| `- error: cannot find type 'NSLayoutDimension' in scope
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:24:20: error: cannot find type 'NSLayoutDimension' in scope
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
| `- error: cannot find type 'NSLayoutDimension' in scope
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:25:21: error: cannot find type 'NSLayoutXAxisAnchor' in scope
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
27 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:26:21: error: cannot find type 'NSLayoutYAxisAnchor' in scope
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- error: cannot find type 'NSLayoutYAxisAnchor' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:32:27: error: cannot find type 'LayoutGuide' in scope
30 | public protocol LayoutContainerView: LayoutContainer {
31 | @available(macOS 11.0, iOS 11.0, tvOS 11.0, *)
32 | var safeAreaLayoutGuide: LayoutGuide { get }
| `- error: cannot find type 'LayoutGuide' in scope
33 | @available(macOS 11.0, iOS 9.0, tvOS 9.0, *)
34 | var layoutMarginsGuide: LayoutGuide { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:34:26: error: cannot find type 'LayoutGuide' in scope
32 | var safeAreaLayoutGuide: LayoutGuide { get }
33 | @available(macOS 11.0, iOS 9.0, tvOS 9.0, *)
34 | var layoutMarginsGuide: LayoutGuide { get }
| `- error: cannot find type 'LayoutGuide' in scope
35 | }
36 |
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:39:73: error: cannot find type 'NSLayoutConstraint' in scope
37 | @resultBuilder
38 | public struct ConstraintBuilder {
39 | public static func buildBlock(_ components: NSLayoutConstraint...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
40 | Array(components)
41 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:39:46: error: cannot find type 'NSLayoutConstraint' in scope
37 | @resultBuilder
38 | public struct ConstraintBuilder {
39 | public static func buildBlock(_ components: NSLayoutConstraint...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
40 | Array(components)
41 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:45:78: error: cannot find type 'NSLayoutConstraint' in scope
43 | []
44 | }
45 | public static func buildBlock(_ components: [NSLayoutConstraint]...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:45:50: error: cannot find type 'NSLayoutConstraint' in scope
43 | []
44 | }
45 | public static func buildBlock(_ components: [NSLayoutConstraint]...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:42:41: error: cannot find type 'NSLayoutConstraint' in scope
40 | Array(components)
41 | }
42 | public static func buildBlock() -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
43 | []
44 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:48:79: error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
48 | public static func buildEither(first component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:48:54: error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
48 | public static func buildEither(first component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:51:80: error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
51 | public static func buildEither(second component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:51:55: error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
51 | public static func buildEither(second component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:54:78: error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
54 | public static func buildOptional(_ component: [NSLayoutConstraint]?) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:54:52: error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
54 | public static func buildOptional(_ component: [NSLayoutConstraint]?) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:57:78: error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
57 | public static func buildExpression(_ expression: NSLayoutConstraint) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
58 | [expression]
59 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:57:54: error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
57 | public static func buildExpression(_ expression: NSLayoutConstraint) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
58 | [expression]
59 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:73:72: error: cannot find type 'NSLayoutConstraint' in scope
71 | /// ```
72 | /// - Parameter builder: Constraint builder to add the constraints from
73 | func applyConstraints(@ConstraintBuilder _ builder: (Constrained) -> [NSLayoutConstraint])
| `- error: cannot find type 'NSLayoutConstraint' in scope
74 |
75 | /// Extends all edges to the edges of the provided view or guide
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:73:24: error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
71 | /// ```
72 | /// - Parameter builder: Constraint builder to add the constraints from
73 | func applyConstraints(@ConstraintBuilder _ builder: (Constrained) -> [NSLayoutConstraint])
| `- error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
74 |
75 | /// Extends all edges to the edges of the provided view or guide
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:88:51: error: cannot find type 'NSLayoutConstraint' in scope
86 | /// - Note: Store the returned layout constraint and use `updatingMultiplier(_:)` to change the actual aspect ratio.
87 | /// The ratio is in height divided by width.
88 | func aspectFit(in other: any LayoutContainer) -> NSLayoutConstraint
| `- error: cannot find type 'NSLayoutConstraint' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:92:11: error: cannot find type 'LayoutGuide' in scope
90 |
91 | // Conformance to `ConstraintBuildable` for `NSLayoutGuide` and `UILayoutGuide`
92 | extension LayoutGuide: ConstraintBuildable {
| `- error: cannot find type 'LayoutGuide' in scope
93 | public func applyConstraints(@ConstraintBuilder _ builder: (LayoutGuide) -> [NSLayoutConstraint]) {
94 | NSLayoutConstraint.activate(builder(self))
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:140:58: error: cannot find type 'NSLayoutConstraint' in scope
138 | }
139 |
140 | public func aspectFit(in other: any LayoutContainer) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
141 | let aspectRatioConstraint = heightAnchor.constraint(equalTo: widthAnchor, multiplier: 1)
142 | applyConstraints {
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:7:18: error: cannot find type 'NSLayoutConstraint' in scope
5 | #endif
6 |
7 | public extension NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
8 | /// Activates all constraints created in the `builder` closure;
9 | /// - Parameter builder: Closure in which all constraints should be created or referenced
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:25:18: error: cannot find type 'NSLayoutConstraint' in scope
23 | }
24 |
25 | public extension NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
26 | /// Updates constraint priority and returns itself, allowing for chaining this method after creation
27 | func withPriority(_ priority: LayoutPriority) -> NSLayoutConstraint {
[7/8] Compiling ConstraintBuilder Collection+ConstraintBuildable.swift
/host/spi-builder-workspace/Sources/ConstraintBuilder/Collection+ConstraintBuildable.swift:9:87: error: cannot find type 'NSLayoutConstraint' in scope
7 |
8 | extension Collection where Element: ConstraintBuildable {
9 | public func applyConstraints(@ConstraintBuilder _ builder: (Element.Constrained) -> [NSLayoutConstraint]) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
10 | for container in self {
11 | container.applyConstraints(builder)
/host/spi-builder-workspace/Sources/ConstraintBuilder/Collection+ConstraintBuildable.swift:9:31: error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
7 |
8 | extension Collection where Element: ConstraintBuildable {
9 | public func applyConstraints(@ConstraintBuilder _ builder: (Element.Constrained) -> [NSLayoutConstraint]) {
| `- error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
10 | for container in self {
11 | container.applyConstraints(builder)
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:73:72: error: cannot find type 'NSLayoutConstraint' in scope
71 | /// ```
72 | /// - Parameter builder: Constraint builder to add the constraints from
73 | func applyConstraints(@ConstraintBuilder _ builder: (Constrained) -> [NSLayoutConstraint])
| `- error: cannot find type 'NSLayoutConstraint' in scope
74 |
75 | /// Extends all edges to the edges of the provided view or guide
[8/8] Compiling ConstraintBuilder ConstraintBuilder.swift
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:17:21: error: cannot find type 'NSLayoutXAxisAnchor' in scope
15 | // Anchors shared by views and layout guides
16 | public protocol LayoutContainer {
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:18:22: error: cannot find type 'NSLayoutXAxisAnchor' in scope
16 | public protocol LayoutContainer {
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:19:18: error: cannot find type 'NSLayoutXAxisAnchor' in scope
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:20:19: error: cannot find type 'NSLayoutXAxisAnchor' in scope
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:21:17: error: cannot find type 'NSLayoutYAxisAnchor' in scope
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
| `- error: cannot find type 'NSLayoutYAxisAnchor' in scope
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:22:20: error: cannot find type 'NSLayoutYAxisAnchor' in scope
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- error: cannot find type 'NSLayoutYAxisAnchor' in scope
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:23:19: error: cannot find type 'NSLayoutDimension' in scope
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
| `- error: cannot find type 'NSLayoutDimension' in scope
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:24:20: error: cannot find type 'NSLayoutDimension' in scope
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
| `- error: cannot find type 'NSLayoutDimension' in scope
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:25:21: error: cannot find type 'NSLayoutXAxisAnchor' in scope
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
27 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:26:21: error: cannot find type 'NSLayoutYAxisAnchor' in scope
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- error: cannot find type 'NSLayoutYAxisAnchor' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:32:27: error: cannot find type 'LayoutGuide' in scope
30 | public protocol LayoutContainerView: LayoutContainer {
31 | @available(macOS 11.0, iOS 11.0, tvOS 11.0, *)
32 | var safeAreaLayoutGuide: LayoutGuide { get }
| `- error: cannot find type 'LayoutGuide' in scope
33 | @available(macOS 11.0, iOS 9.0, tvOS 9.0, *)
34 | var layoutMarginsGuide: LayoutGuide { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:34:26: error: cannot find type 'LayoutGuide' in scope
32 | var safeAreaLayoutGuide: LayoutGuide { get }
33 | @available(macOS 11.0, iOS 9.0, tvOS 9.0, *)
34 | var layoutMarginsGuide: LayoutGuide { get }
| `- error: cannot find type 'LayoutGuide' in scope
35 | }
36 |
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:39:73: error: cannot find type 'NSLayoutConstraint' in scope
37 | @resultBuilder
38 | public struct ConstraintBuilder {
39 | public static func buildBlock(_ components: NSLayoutConstraint...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
40 | Array(components)
41 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:39:46: error: cannot find type 'NSLayoutConstraint' in scope
37 | @resultBuilder
38 | public struct ConstraintBuilder {
39 | public static func buildBlock(_ components: NSLayoutConstraint...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
40 | Array(components)
41 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:45:78: error: cannot find type 'NSLayoutConstraint' in scope
43 | []
44 | }
45 | public static func buildBlock(_ components: [NSLayoutConstraint]...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:45:50: error: cannot find type 'NSLayoutConstraint' in scope
43 | []
44 | }
45 | public static func buildBlock(_ components: [NSLayoutConstraint]...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:42:41: error: cannot find type 'NSLayoutConstraint' in scope
40 | Array(components)
41 | }
42 | public static func buildBlock() -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
43 | []
44 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:48:79: error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
48 | public static func buildEither(first component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:48:54: error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
48 | public static func buildEither(first component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:51:80: error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
51 | public static func buildEither(second component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:51:55: error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
51 | public static func buildEither(second component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:54:78: error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
54 | public static func buildOptional(_ component: [NSLayoutConstraint]?) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:54:52: error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
54 | public static func buildOptional(_ component: [NSLayoutConstraint]?) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:57:78: error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
57 | public static func buildExpression(_ expression: NSLayoutConstraint) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
58 | [expression]
59 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:57:54: error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
57 | public static func buildExpression(_ expression: NSLayoutConstraint) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
58 | [expression]
59 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:73:72: error: cannot find type 'NSLayoutConstraint' in scope
71 | /// ```
72 | /// - Parameter builder: Constraint builder to add the constraints from
73 | func applyConstraints(@ConstraintBuilder _ builder: (Constrained) -> [NSLayoutConstraint])
| `- error: cannot find type 'NSLayoutConstraint' in scope
74 |
75 | /// Extends all edges to the edges of the provided view or guide
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:73:24: error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
71 | /// ```
72 | /// - Parameter builder: Constraint builder to add the constraints from
73 | func applyConstraints(@ConstraintBuilder _ builder: (Constrained) -> [NSLayoutConstraint])
| `- error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
74 |
75 | /// Extends all edges to the edges of the provided view or guide
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:88:51: error: cannot find type 'NSLayoutConstraint' in scope
86 | /// - Note: Store the returned layout constraint and use `updatingMultiplier(_:)` to change the actual aspect ratio.
87 | /// The ratio is in height divided by width.
88 | func aspectFit(in other: any LayoutContainer) -> NSLayoutConstraint
| `- error: cannot find type 'NSLayoutConstraint' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:92:11: error: cannot find type 'LayoutGuide' in scope
90 |
91 | // Conformance to `ConstraintBuildable` for `NSLayoutGuide` and `UILayoutGuide`
92 | extension LayoutGuide: ConstraintBuildable {
| `- error: cannot find type 'LayoutGuide' in scope
93 | public func applyConstraints(@ConstraintBuilder _ builder: (LayoutGuide) -> [NSLayoutConstraint]) {
94 | NSLayoutConstraint.activate(builder(self))
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:140:58: error: cannot find type 'NSLayoutConstraint' in scope
138 | }
139 |
140 | public func aspectFit(in other: any LayoutContainer) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
141 | let aspectRatioConstraint = heightAnchor.constraint(equalTo: widthAnchor, multiplier: 1)
142 | applyConstraints {
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:93:62: error: cannot find type 'LayoutGuide' in scope
91 | // Conformance to `ConstraintBuildable` for `NSLayoutGuide` and `UILayoutGuide`
92 | extension LayoutGuide: ConstraintBuildable {
93 | public func applyConstraints(@ConstraintBuilder _ builder: (LayoutGuide) -> [NSLayoutConstraint]) {
| `- error: cannot find type 'LayoutGuide' in scope
94 | NSLayoutConstraint.activate(builder(self))
95 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:93:79: error: cannot find type 'NSLayoutConstraint' in scope
91 | // Conformance to `ConstraintBuildable` for `NSLayoutGuide` and `UILayoutGuide`
92 | extension LayoutGuide: ConstraintBuildable {
93 | public func applyConstraints(@ConstraintBuilder _ builder: (LayoutGuide) -> [NSLayoutConstraint]) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
94 | NSLayoutConstraint.activate(builder(self))
95 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling ConstraintBuilder UIView+ConstraintBuildable.swift
[3/7] Compiling ConstraintBuilder NSView+ConstraintBuildable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Emitting module ConstraintBuilder
/host/spi-builder-workspace/Sources/ConstraintBuilder/Collection+ConstraintBuildable.swift:9:87: error: cannot find type 'NSLayoutConstraint' in scope
7 |
8 | extension Collection where Element: ConstraintBuildable {
9 | public func applyConstraints(@ConstraintBuilder _ builder: (Element.Constrained) -> [NSLayoutConstraint]) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
10 | for container in self {
11 | container.applyConstraints(builder)
/host/spi-builder-workspace/Sources/ConstraintBuilder/Collection+ConstraintBuildable.swift:9:31: error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
7 |
8 | extension Collection where Element: ConstraintBuildable {
9 | public func applyConstraints(@ConstraintBuilder _ builder: (Element.Constrained) -> [NSLayoutConstraint]) {
| `- error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
10 | for container in self {
11 | container.applyConstraints(builder)
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:17:21: error: cannot find type 'NSLayoutXAxisAnchor' in scope
15 | // Anchors shared by views and layout guides
16 | public protocol LayoutContainer {
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:18:22: error: cannot find type 'NSLayoutXAxisAnchor' in scope
16 | public protocol LayoutContainer {
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:19:18: error: cannot find type 'NSLayoutXAxisAnchor' in scope
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:20:19: error: cannot find type 'NSLayoutXAxisAnchor' in scope
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:21:17: error: cannot find type 'NSLayoutYAxisAnchor' in scope
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
| `- error: cannot find type 'NSLayoutYAxisAnchor' in scope
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:22:20: error: cannot find type 'NSLayoutYAxisAnchor' in scope
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- error: cannot find type 'NSLayoutYAxisAnchor' in scope
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:23:19: error: cannot find type 'NSLayoutDimension' in scope
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
| `- error: cannot find type 'NSLayoutDimension' in scope
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:24:20: error: cannot find type 'NSLayoutDimension' in scope
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
| `- error: cannot find type 'NSLayoutDimension' in scope
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:25:21: error: cannot find type 'NSLayoutXAxisAnchor' in scope
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
27 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:26:21: error: cannot find type 'NSLayoutYAxisAnchor' in scope
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- error: cannot find type 'NSLayoutYAxisAnchor' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:32:27: error: cannot find type 'LayoutGuide' in scope
30 | public protocol LayoutContainerView: LayoutContainer {
31 | @available(macOS 11.0, iOS 11.0, tvOS 11.0, *)
32 | var safeAreaLayoutGuide: LayoutGuide { get }
| `- error: cannot find type 'LayoutGuide' in scope
33 | @available(macOS 11.0, iOS 9.0, tvOS 9.0, *)
34 | var layoutMarginsGuide: LayoutGuide { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:34:26: error: cannot find type 'LayoutGuide' in scope
32 | var safeAreaLayoutGuide: LayoutGuide { get }
33 | @available(macOS 11.0, iOS 9.0, tvOS 9.0, *)
34 | var layoutMarginsGuide: LayoutGuide { get }
| `- error: cannot find type 'LayoutGuide' in scope
35 | }
36 |
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:39:73: error: cannot find type 'NSLayoutConstraint' in scope
37 | @resultBuilder
38 | public struct ConstraintBuilder {
39 | public static func buildBlock(_ components: NSLayoutConstraint...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
40 | Array(components)
41 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:39:46: error: cannot find type 'NSLayoutConstraint' in scope
37 | @resultBuilder
38 | public struct ConstraintBuilder {
39 | public static func buildBlock(_ components: NSLayoutConstraint...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
40 | Array(components)
41 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:45:78: error: cannot find type 'NSLayoutConstraint' in scope
43 | []
44 | }
45 | public static func buildBlock(_ components: [NSLayoutConstraint]...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:45:50: error: cannot find type 'NSLayoutConstraint' in scope
43 | []
44 | }
45 | public static func buildBlock(_ components: [NSLayoutConstraint]...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:42:41: error: cannot find type 'NSLayoutConstraint' in scope
40 | Array(components)
41 | }
42 | public static func buildBlock() -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
43 | []
44 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:48:79: error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
48 | public static func buildEither(first component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:48:54: error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
48 | public static func buildEither(first component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:51:80: error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
51 | public static func buildEither(second component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:51:55: error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
51 | public static func buildEither(second component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:54:78: error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
54 | public static func buildOptional(_ component: [NSLayoutConstraint]?) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:54:52: error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
54 | public static func buildOptional(_ component: [NSLayoutConstraint]?) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:57:78: error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
57 | public static func buildExpression(_ expression: NSLayoutConstraint) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
58 | [expression]
59 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:57:54: error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
57 | public static func buildExpression(_ expression: NSLayoutConstraint) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
58 | [expression]
59 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:73:72: error: cannot find type 'NSLayoutConstraint' in scope
71 | /// ```
72 | /// - Parameter builder: Constraint builder to add the constraints from
73 | func applyConstraints(@ConstraintBuilder _ builder: (Constrained) -> [NSLayoutConstraint])
| `- error: cannot find type 'NSLayoutConstraint' in scope
74 |
75 | /// Extends all edges to the edges of the provided view or guide
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:73:24: error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
71 | /// ```
72 | /// - Parameter builder: Constraint builder to add the constraints from
73 | func applyConstraints(@ConstraintBuilder _ builder: (Constrained) -> [NSLayoutConstraint])
| `- error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
74 |
75 | /// Extends all edges to the edges of the provided view or guide
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:88:51: error: cannot find type 'NSLayoutConstraint' in scope
86 | /// - Note: Store the returned layout constraint and use `updatingMultiplier(_:)` to change the actual aspect ratio.
87 | /// The ratio is in height divided by width.
88 | func aspectFit(in other: any LayoutContainer) -> NSLayoutConstraint
| `- error: cannot find type 'NSLayoutConstraint' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:92:11: error: cannot find type 'LayoutGuide' in scope
90 |
91 | // Conformance to `ConstraintBuildable` for `NSLayoutGuide` and `UILayoutGuide`
92 | extension LayoutGuide: ConstraintBuildable {
| `- error: cannot find type 'LayoutGuide' in scope
93 | public func applyConstraints(@ConstraintBuilder _ builder: (LayoutGuide) -> [NSLayoutConstraint]) {
94 | NSLayoutConstraint.activate(builder(self))
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:140:58: error: cannot find type 'NSLayoutConstraint' in scope
138 | }
139 |
140 | public func aspectFit(in other: any LayoutContainer) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
141 | let aspectRatioConstraint = heightAnchor.constraint(equalTo: widthAnchor, multiplier: 1)
142 | applyConstraints {
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:7:18: error: cannot find type 'NSLayoutConstraint' in scope
5 | #endif
6 |
7 | public extension NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
8 | /// Activates all constraints created in the `builder` closure;
9 | /// - Parameter builder: Closure in which all constraints should be created or referenced
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:25:18: error: cannot find type 'NSLayoutConstraint' in scope
23 | }
24 |
25 | public extension NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
26 | /// Updates constraint priority and returns itself, allowing for chaining this method after creation
27 | func withPriority(_ priority: LayoutPriority) -> NSLayoutConstraint {
[5/7] Compiling ConstraintBuilder ConstraintBuilder.swift
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:17:21: error: cannot find type 'NSLayoutXAxisAnchor' in scope
15 | // Anchors shared by views and layout guides
16 | public protocol LayoutContainer {
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:18:22: error: cannot find type 'NSLayoutXAxisAnchor' in scope
16 | public protocol LayoutContainer {
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:19:18: error: cannot find type 'NSLayoutXAxisAnchor' in scope
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:20:19: error: cannot find type 'NSLayoutXAxisAnchor' in scope
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:21:17: error: cannot find type 'NSLayoutYAxisAnchor' in scope
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
| `- error: cannot find type 'NSLayoutYAxisAnchor' in scope
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:22:20: error: cannot find type 'NSLayoutYAxisAnchor' in scope
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- error: cannot find type 'NSLayoutYAxisAnchor' in scope
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:23:19: error: cannot find type 'NSLayoutDimension' in scope
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
| `- error: cannot find type 'NSLayoutDimension' in scope
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:24:20: error: cannot find type 'NSLayoutDimension' in scope
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
| `- error: cannot find type 'NSLayoutDimension' in scope
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:25:21: error: cannot find type 'NSLayoutXAxisAnchor' in scope
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- error: cannot find type 'NSLayoutXAxisAnchor' in scope
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
27 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:26:21: error: cannot find type 'NSLayoutYAxisAnchor' in scope
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- error: cannot find type 'NSLayoutYAxisAnchor' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:32:27: error: cannot find type 'LayoutGuide' in scope
30 | public protocol LayoutContainerView: LayoutContainer {
31 | @available(macOS 11.0, iOS 11.0, tvOS 11.0, *)
32 | var safeAreaLayoutGuide: LayoutGuide { get }
| `- error: cannot find type 'LayoutGuide' in scope
33 | @available(macOS 11.0, iOS 9.0, tvOS 9.0, *)
34 | var layoutMarginsGuide: LayoutGuide { get }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:34:26: error: cannot find type 'LayoutGuide' in scope
32 | var safeAreaLayoutGuide: LayoutGuide { get }
33 | @available(macOS 11.0, iOS 9.0, tvOS 9.0, *)
34 | var layoutMarginsGuide: LayoutGuide { get }
| `- error: cannot find type 'LayoutGuide' in scope
35 | }
36 |
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:39:73: error: cannot find type 'NSLayoutConstraint' in scope
37 | @resultBuilder
38 | public struct ConstraintBuilder {
39 | public static func buildBlock(_ components: NSLayoutConstraint...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
40 | Array(components)
41 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:39:46: error: cannot find type 'NSLayoutConstraint' in scope
37 | @resultBuilder
38 | public struct ConstraintBuilder {
39 | public static func buildBlock(_ components: NSLayoutConstraint...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
40 | Array(components)
41 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:45:78: error: cannot find type 'NSLayoutConstraint' in scope
43 | []
44 | }
45 | public static func buildBlock(_ components: [NSLayoutConstraint]...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:45:50: error: cannot find type 'NSLayoutConstraint' in scope
43 | []
44 | }
45 | public static func buildBlock(_ components: [NSLayoutConstraint]...) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:42:41: error: cannot find type 'NSLayoutConstraint' in scope
40 | Array(components)
41 | }
42 | public static func buildBlock() -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
43 | []
44 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:48:79: error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
48 | public static func buildEither(first component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:48:54: error: cannot find type 'NSLayoutConstraint' in scope
46 | components.flatMap { $0 }
47 | }
48 | public static func buildEither(first component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:51:80: error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
51 | public static func buildEither(second component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:51:55: error: cannot find type 'NSLayoutConstraint' in scope
49 | component
50 | }
51 | public static func buildEither(second component: [NSLayoutConstraint]) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:54:78: error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
54 | public static func buildOptional(_ component: [NSLayoutConstraint]?) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:54:52: error: cannot find type 'NSLayoutConstraint' in scope
52 | component
53 | }
54 | public static func buildOptional(_ component: [NSLayoutConstraint]?) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:57:78: error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
57 | public static func buildExpression(_ expression: NSLayoutConstraint) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
58 | [expression]
59 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:57:54: error: cannot find type 'NSLayoutConstraint' in scope
55 | component ?? []
56 | }
57 | public static func buildExpression(_ expression: NSLayoutConstraint) -> [NSLayoutConstraint] {
| `- error: cannot find type 'NSLayoutConstraint' in scope
58 | [expression]
59 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:73:72: error: cannot find type 'NSLayoutConstraint' in scope
71 | /// ```
72 | /// - Parameter builder: Constraint builder to add the constraints from
73 | func applyConstraints(@ConstraintBuilder _ builder: (Constrained) -> [NSLayoutConstraint])
| `- error: cannot find type 'NSLayoutConstraint' in scope
74 |
75 | /// Extends all edges to the edges of the provided view or guide
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:73:24: error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
71 | /// ```
72 | /// - Parameter builder: Constraint builder to add the constraints from
73 | func applyConstraints(@ConstraintBuilder _ builder: (Constrained) -> [NSLayoutConstraint])
| `- error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
74 |
75 | /// Extends all edges to the edges of the provided view or guide
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:88:51: error: cannot find type 'NSLayoutConstraint' in scope
86 | /// - Note: Store the returned layout constraint and use `updatingMultiplier(_:)` to change the actual aspect ratio.
87 | /// The ratio is in height divided by width.
88 | func aspectFit(in other: any LayoutContainer) -> NSLayoutConstraint
| `- error: cannot find type 'NSLayoutConstraint' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:92:11: error: cannot find type 'LayoutGuide' in scope
90 |
91 | // Conformance to `ConstraintBuildable` for `NSLayoutGuide` and `UILayoutGuide`
92 | extension LayoutGuide: ConstraintBuildable {
| `- error: cannot find type 'LayoutGuide' in scope
93 | public func applyConstraints(@ConstraintBuilder _ builder: (LayoutGuide) -> [NSLayoutConstraint]) {
94 | NSLayoutConstraint.activate(builder(self))
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:140:58: error: cannot find type 'NSLayoutConstraint' in scope
138 | }
139 |
140 | public func aspectFit(in other: any LayoutContainer) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
141 | let aspectRatioConstraint = heightAnchor.constraint(equalTo: widthAnchor, multiplier: 1)
142 | applyConstraints {
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:93:62: error: cannot find type 'LayoutGuide' in scope
91 | // Conformance to `ConstraintBuildable` for `NSLayoutGuide` and `UILayoutGuide`
92 | extension LayoutGuide: ConstraintBuildable {
93 | public func applyConstraints(@ConstraintBuilder _ builder: (LayoutGuide) -> [NSLayoutConstraint]) {
| `- error: cannot find type 'LayoutGuide' in scope
94 | NSLayoutConstraint.activate(builder(self))
95 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:93:79: error: cannot find type 'NSLayoutConstraint' in scope
91 | // Conformance to `ConstraintBuildable` for `NSLayoutGuide` and `UILayoutGuide`
92 | extension LayoutGuide: ConstraintBuildable {
93 | public func applyConstraints(@ConstraintBuilder _ builder: (LayoutGuide) -> [NSLayoutConstraint]) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
94 | NSLayoutConstraint.activate(builder(self))
95 | }
[6/7] Compiling ConstraintBuilder Collection+ConstraintBuildable.swift
/host/spi-builder-workspace/Sources/ConstraintBuilder/Collection+ConstraintBuildable.swift:9:87: error: cannot find type 'NSLayoutConstraint' in scope
7 |
8 | extension Collection where Element: ConstraintBuildable {
9 | public func applyConstraints(@ConstraintBuilder _ builder: (Element.Constrained) -> [NSLayoutConstraint]) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
10 | for container in self {
11 | container.applyConstraints(builder)
/host/spi-builder-workspace/Sources/ConstraintBuilder/Collection+ConstraintBuildable.swift:9:31: error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
7 |
8 | extension Collection where Element: ConstraintBuildable {
9 | public func applyConstraints(@ConstraintBuilder _ builder: (Element.Constrained) -> [NSLayoutConstraint]) {
| `- error: result builder attribute 'ConstraintBuilder' can only be applied to a parameter of function type
10 | for container in self {
11 | container.applyConstraints(builder)
/host/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:73:72: error: cannot find type 'NSLayoutConstraint' in scope
71 | /// ```
72 | /// - Parameter builder: Constraint builder to add the constraints from
73 | func applyConstraints(@ConstraintBuilder _ builder: (Constrained) -> [NSLayoutConstraint])
| `- error: cannot find type 'NSLayoutConstraint' in scope
74 |
75 | /// Extends all edges to the edges of the provided view or guide
[7/7] Compiling ConstraintBuilder NSLayoutConstraint.swift
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:7:18: error: cannot find type 'NSLayoutConstraint' in scope
5 | #endif
6 |
7 | public extension NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
8 | /// Activates all constraints created in the `builder` closure;
9 | /// - Parameter builder: Closure in which all constraints should be created or referenced
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:25:18: error: cannot find type 'NSLayoutConstraint' in scope
23 | }
24 |
25 | public extension NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
26 | /// Updates constraint priority and returns itself, allowing for chaining this method after creation
27 | func withPriority(_ priority: LayoutPriority) -> NSLayoutConstraint {
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:20:56: error: cannot find type 'NSLayoutConstraint' in scope
18 | /// }
19 | /// ```
20 | class func build(@ConstraintBuilder _ builder: () -> [NSLayoutConstraint]) {
| `- error: cannot find type 'NSLayoutConstraint' in scope
21 | activate(builder())
22 | }
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:27:51: error: cannot find type 'NSLayoutConstraint' in scope
25 | public extension NSLayoutConstraint {
26 | /// Updates constraint priority and returns itself, allowing for chaining this method after creation
27 | func withPriority(_ priority: LayoutPriority) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
28 | self.priority = priority
29 | return self
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:27:32: error: cannot find type 'LayoutPriority' in scope
25 | public extension NSLayoutConstraint {
26 | /// Updates constraint priority and returns itself, allowing for chaining this method after creation
27 | func withPriority(_ priority: LayoutPriority) -> NSLayoutConstraint {
| `- error: cannot find type 'LayoutPriority' in scope
28 | self.priority = priority
29 | return self
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:37:76: error: cannot find type 'NSLayoutConstraint' in scope
35 | /// - activated: Wether the current (old) constraint should be deactivated and the new constraint activated
36 | /// - Returns: New copy of the receiving layout constraint with updated multiplier
37 | func updatingMultiplier(_ multiplier: CGFloat, activated: Bool = true) -> NSLayoutConstraint {
| `- error: cannot find type 'NSLayoutConstraint' in scope
38 | guard multiplier != self.multiplier else {
39 | return self
/host/spi-builder-workspace/Sources/ConstraintBuilder/Extensions/NSLayoutConstraint.swift:37:40: error: cannot find type 'CGFloat' in scope
35 | /// - activated: Wether the current (old) constraint should be deactivated and the new constraint activated
36 | /// - Returns: New copy of the receiving layout constraint with updated multiplier
37 | func updatingMultiplier(_ multiplier: CGFloat, activated: Bool = true) -> NSLayoutConstraint {
| `- error: cannot find type 'CGFloat' in scope
38 | guard multiplier != self.multiplier else {
39 | return self
BUILD FAILURE 6.0 linux