Build Information
Failed to build NSAttributedStringBuilder, reference 0.4.1 (18662b
), with Swift 6.1 for Linux on 26 Apr 2025 11:03:22 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.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ethanhuang13/NSAttributedStringBuilder.git
Reference: 0.4.1
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/ethanhuang13/NSAttributedStringBuilder
* tag 0.4.1 -> FETCH_HEAD
HEAD is now at 18662b3 Version bump to 0.4.1
Cloned https://github.com/ethanhuang13/NSAttributedStringBuilder.git
Revision (git rev-parse @):
18662b33975c9ec8c80a1bd9b4e30d09612ee7ee
SUCCESS checkout https://github.com/ethanhuang13/NSAttributedStringBuilder.git at 0.4.1
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/ethanhuang13/NSAttributedStringBuilder.git
https://github.com/ethanhuang13/NSAttributedStringBuilder.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "NSAttributedStringBuilder",
"name" : "NSAttributedStringBuilder",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "NSAttributedStringBuilder",
"targets" : [
"NSAttributedStringBuilder"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NSAttributedStringBuilderTests",
"module_type" : "SwiftTarget",
"name" : "NSAttributedStringBuilderTests",
"path" : "Tests/NSAttributedStringBuilderTests",
"sources" : [
"ComponentBasicModifierTests.swift",
"ComponentParagraphSylteModifierTests.swift",
"NSAttributedStringBuilderTests.swift",
"StaticComponentsTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"NSAttributedStringBuilder"
],
"type" : "test"
},
{
"c99name" : "NSAttributedStringBuilder",
"module_type" : "SwiftTarget",
"name" : "NSAttributedStringBuilder",
"path" : "Sources/NSAttributedStringBuilder",
"product_memberships" : [
"NSAttributedStringBuilder"
],
"sources" : [
"Components/AText.swift",
"Components/Component.swift",
"Components/ImageAttachment.swift",
"Components/Link.swift",
"Components/StaticComponents.swift",
"NSAttributedStringBuilder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling NSAttributedStringBuilder NSAttributedStringBuilder.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
10 | #endif
11 |
12 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
13 |
14 | @resultBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:16:66: error: cannot find type 'NSAttributedString' in scope
14 | @resultBuilder
15 | public enum NSAttributedStringBuilder {
16 | public static func buildBlock(_ components: Component...) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
17 | let mas = NSMutableAttributedString(string: "")
18 | for component in components {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:25:18: error: cannot find type 'NSAttributedString' in scope
23 | }
24 |
25 | public extension NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
26 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
27 | self.init(attributedString: builder())
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:17:19: error: cannot find 'NSMutableAttributedString' in scope
15 | public enum NSAttributedStringBuilder {
16 | public static func buildBlock(_ components: Component...) -> NSAttributedString {
17 | let mas = NSMutableAttributedString(string: "")
| `- error: cannot find 'NSMutableAttributedString' in scope
18 | for component in components {
19 | mas.append(component.attributedString)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
10 | var string: String { get }
11 | var attributes: Attributes { get }
12 | var attributedString: NSAttributedString { get }
| `- error: cannot find type 'NSAttributedString' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:29:27: error: cannot find type 'NSAttributedString' in scope
27 | }
28 |
29 | var attributedString: NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
30 | NSAttributedString(string: string, attributes: attributes)
31 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:26:66: error: cannot find type 'NSAttributedString' in scope
24 |
25 | public extension NSAttributedString {
26 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- error: cannot find type 'NSAttributedString' in scope
27 | self.init(attributedString: builder())
28 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/9] Emitting module NSAttributedStringBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:7:26: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | public typealias AText = NSAttributedString.AttrText
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public extension NSAttributedString {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:9:18: error: cannot find type 'NSAttributedString' in scope
7 | public typealias AText = NSAttributedString.AttrText
8 |
9 | public extension NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
10 | struct AttrText: Component {
11 | // MARK: Lifecycle
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
10 | #endif
11 |
12 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
13 |
14 | @resultBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
10 | var string: String { get }
11 | var attributes: Attributes { get }
12 | var attributedString: NSAttributedString { get }
| `- error: cannot find type 'NSAttributedString' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:29:27: error: cannot find type 'NSAttributedString' in scope
27 | }
28 |
29 | var attributedString: NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
30 | NSAttributedString(string: string, attributes: attributes)
31 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:33:36: error: cannot find type 'NSAttributedString' in scope
31 | }
32 |
33 | func attribute(_ newAttribute: NSAttributedString.Key, value: Any) -> Component {
| `- error: cannot find type 'NSAttributedString' in scope
34 | attributes([newAttribute: value])
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:49:35: error: cannot find type 'Color' in scope
47 |
48 | public extension Component {
49 | func backgroundColor(_ color: Color) -> Component {
| `- error: cannot find type 'Color' in scope
50 | attributes([.backgroundColor: color])
51 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:53:43: error: cannot find type 'CGFloat' in scope
51 | }
52 |
53 | func baselineOffset(_ baselineOffset: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
54 | attributes([.baselineOffset: baselineOffset])
55 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:57:23: error: cannot find type 'Font' in scope
55 | }
56 |
57 | func font(_ font: Font) -> Component {
| `- error: cannot find type 'Font' in scope
58 | attributes([.font: font])
59 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:61:35: error: cannot find type 'Color' in scope
59 | }
60 |
61 | func foregroundColor(_ color: Color) -> Component {
| `- error: cannot find type 'Color' in scope
62 | attributes([.foregroundColor: color])
63 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:65:33: error: cannot find type 'CGFloat' in scope
63 | }
64 |
65 | func expansion(_ expansion: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
66 | attributes([.expansion: expansion])
67 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:69:26: error: cannot find type 'CGFloat' in scope
67 | }
68 |
69 | func kerning(_ kern: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
70 | attributes([.kern: kern])
71 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:24: error: cannot find type 'Color' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'Color' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:46: error: cannot find type 'CGFloat' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:58: error: cannot find type 'CGFloat' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:70: error: cannot find type 'CGFloat' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:89:31: error: cannot find type 'NSUnderlineStyle' in scope
87 | }
88 |
89 | func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'NSUnderlineStyle' in scope
90 | if let color = color {
91 | return attributes([.strikethroughStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:89:56: error: cannot find type 'Color' in scope
87 | }
88 |
89 | func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'Color' in scope
90 | if let color = color {
91 | return attributes([.strikethroughStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:98:24: error: cannot find type 'CGFloat' in scope
96 | }
97 |
98 | func stroke(width: CGFloat, color: Color? = nil) -> Component {
| `- error: cannot find type 'CGFloat' in scope
99 | if let color = color {
100 | return attributes([.strokeWidth: width,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:98:40: error: cannot find type 'Color' in scope
96 | }
97 |
98 | func stroke(width: CGFloat, color: Color? = nil) -> Component {
| `- error: cannot find type 'Color' in scope
99 | if let color = color {
100 | return attributes([.strokeWidth: width,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:107:35: error: cannot find type 'NSAttributedString' in scope
105 | }
106 |
107 | func textEffect(_ textEffect: NSAttributedString.TextEffectStyle) -> Component {
| `- error: cannot find type 'NSAttributedString' in scope
108 | attributes([.textEffect: textEffect])
109 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:111:29: error: cannot find type 'NSUnderlineStyle' in scope
109 | }
110 |
111 | func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'NSUnderlineStyle' in scope
112 | if let color = color {
113 | return attributes([.underlineStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:111:54: error: cannot find type 'Color' in scope
109 | }
110 |
111 | func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'Color' in scope
112 | if let color = color {
113 | return attributes([.underlineStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:120:47: error: cannot find type 'NSWritingDirection' in scope
118 | }
119 |
120 | func writingDirection(_ writingDirection: NSWritingDirection) -> Component {
| `- error: cannot find type 'NSWritingDirection' in scope
121 | attributes([.writingDirection: writingDirection.rawValue])
122 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:134:43: error: cannot find type 'NSParagraphStyle' in scope
132 |
133 | public extension Component {
134 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Component {
| `- error: cannot find type 'NSParagraphStyle' in scope
135 | attributes([.paragraphStyle: paragraphStyle])
136 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:138:43: error: cannot find type 'NSMutableParagraphStyle' in scope
136 | }
137 |
138 | func paragraphStyle(_ paragraphStyle: NSMutableParagraphStyle) -> Component {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
139 | attributes([.paragraphStyle: paragraphStyle])
140 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:142:48: error: cannot find type 'NSMutableParagraphStyle' in scope
140 | }
141 |
142 | private func getMutableParagraphStyle() -> NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
143 | if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
144 | return mps
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:154:33: error: cannot find type 'NSTextAlignment' in scope
152 | }
153 |
154 | func alignment(_ alignment: NSTextAlignment) -> Component {
| `- error: cannot find type 'NSTextAlignment' in scope
155 | let paragraphStyle = getMutableParagraphStyle()
156 | paragraphStyle.alignment = alignment
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:160:40: error: cannot find type 'CGFloat' in scope
158 | }
159 |
160 | func firstLineHeadIndent(_ indent: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
161 | let paragraphStyle = getMutableParagraphStyle()
162 | paragraphStyle.firstLineHeadIndent = indent
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:166:31: error: cannot find type 'CGFloat' in scope
164 | }
165 |
166 | func headIndent(_ indent: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
167 | let paragraphStyle = getMutableParagraphStyle()
168 | paragraphStyle.headIndent = indent
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:172:31: error: cannot find type 'CGFloat' in scope
170 | }
171 |
172 | func tailIndent(_ indent: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
173 | let paragraphStyle = getMutableParagraphStyle()
174 | paragraphStyle.tailIndent = indent
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:178:42: error: cannot find type 'NSLineBreakMode' in scope
176 | }
177 |
178 | func lineBreakeMode(_ lineBreakMode: NSLineBreakMode) -> Component {
| `- error: cannot find type 'NSLineBreakMode' in scope
179 | let paragraphStyle = getMutableParagraphStyle()
180 | paragraphStyle.lineBreakMode = lineBreakMode
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:184:31: error: cannot find type 'CGFloat' in scope
182 | }
183 |
184 | func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
185 | let paragraphStyle = getMutableParagraphStyle()
186 | paragraphStyle.lineHeightMultiple = multiple
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:184:53: error: cannot find type 'CGFloat' in scope
182 | }
183 |
184 | func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
185 | let paragraphStyle = getMutableParagraphStyle()
186 | paragraphStyle.lineHeightMultiple = multiple
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:184:75: error: cannot find type 'CGFloat' in scope
182 | }
183 |
184 | func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
185 | let paragraphStyle = getMutableParagraphStyle()
186 | paragraphStyle.lineHeightMultiple = multiple
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:192:33: error: cannot find type 'CGFloat' in scope
190 | }
191 |
192 | func lineSpacing(_ spacing: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
193 | let paragraphStyle = getMutableParagraphStyle()
194 | paragraphStyle.lineSpacing = spacing
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:198:38: error: cannot find type 'CGFloat' in scope
196 | }
197 |
198 | func paragraphSpacing(_ spacing: CGFloat, before: CGFloat = 0) -> Component {
| `- error: cannot find type 'CGFloat' in scope
199 | let paragraphStyle = getMutableParagraphStyle()
200 | paragraphStyle.paragraphSpacing = spacing
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:198:55: error: cannot find type 'CGFloat' in scope
196 | }
197 |
198 | func paragraphSpacing(_ spacing: CGFloat, before: CGFloat = 0) -> Component {
| `- error: cannot find type 'CGFloat' in scope
199 | let paragraphStyle = getMutableParagraphStyle()
200 | paragraphStyle.paragraphSpacing = spacing
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:205:55: error: cannot find type 'NSWritingDirection' in scope
203 | }
204 |
205 | func baseWritingDirection(_ baseWritingDirection: NSWritingDirection) -> Component {
| `- error: cannot find type 'NSWritingDirection' in scope
206 | let paragraphStyle = getMutableParagraphStyle()
207 | paragraphStyle.baseWritingDirection = baseWritingDirection
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:224:33: error: cannot find type 'NSTextTab' in scope
222 | }
223 |
224 | func tabsStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Component {
| `- error: cannot find type 'NSTextTab' in scope
225 | let paragraphStyle = getMutableParagraphStyle()
226 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:224:62: error: cannot find type 'CGFloat' in scope
222 | }
223 |
224 | func tabsStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Component {
| `- error: cannot find type 'CGFloat' in scope
225 | let paragraphStyle = getMutableParagraphStyle()
226 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:7:25: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | public typealias Link = NSAttributedString.Link
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public extension NSAttributedString {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:9:18: error: cannot find type 'NSAttributedString' in scope
7 | public typealias Link = NSAttributedString.Link
8 |
9 | public extension NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
10 | struct Link: Component {
11 | // MARK: Lifecycle
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:16:66: error: cannot find type 'NSAttributedString' in scope
14 | @resultBuilder
15 | public enum NSAttributedStringBuilder {
16 | public static func buildBlock(_ components: Component...) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
17 | let mas = NSMutableAttributedString(string: "")
18 | for component in components {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:25:18: error: cannot find type 'NSAttributedString' in scope
23 | }
24 |
25 | public extension NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
26 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
27 | self.init(attributedString: builder())
[5/9] Compiling NSAttributedStringBuilder ImageAttachment.swift
[6/9] Compiling NSAttributedStringBuilder Component.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
10 | #endif
11 |
12 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
13 |
14 | @resultBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
10 | var string: String { get }
11 | var attributes: Attributes { get }
12 | var attributedString: NSAttributedString { get }
| `- error: cannot find type 'NSAttributedString' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:29:27: error: cannot find type 'NSAttributedString' in scope
27 | }
28 |
29 | var attributedString: NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
30 | NSAttributedString(string: string, attributes: attributes)
31 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:33:36: error: cannot find type 'NSAttributedString' in scope
31 | }
32 |
33 | func attribute(_ newAttribute: NSAttributedString.Key, value: Any) -> Component {
| `- error: cannot find type 'NSAttributedString' in scope
34 | attributes([newAttribute: value])
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:49:35: error: cannot find type 'Color' in scope
47 |
48 | public extension Component {
49 | func backgroundColor(_ color: Color) -> Component {
| `- error: cannot find type 'Color' in scope
50 | attributes([.backgroundColor: color])
51 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:53:43: error: cannot find type 'CGFloat' in scope
51 | }
52 |
53 | func baselineOffset(_ baselineOffset: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
54 | attributes([.baselineOffset: baselineOffset])
55 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:57:23: error: cannot find type 'Font' in scope
55 | }
56 |
57 | func font(_ font: Font) -> Component {
| `- error: cannot find type 'Font' in scope
58 | attributes([.font: font])
59 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:61:35: error: cannot find type 'Color' in scope
59 | }
60 |
61 | func foregroundColor(_ color: Color) -> Component {
| `- error: cannot find type 'Color' in scope
62 | attributes([.foregroundColor: color])
63 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:65:33: error: cannot find type 'CGFloat' in scope
63 | }
64 |
65 | func expansion(_ expansion: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
66 | attributes([.expansion: expansion])
67 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:69:26: error: cannot find type 'CGFloat' in scope
67 | }
68 |
69 | func kerning(_ kern: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
70 | attributes([.kern: kern])
71 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:24: error: cannot find type 'Color' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'Color' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:46: error: cannot find type 'CGFloat' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:58: error: cannot find type 'CGFloat' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:70: error: cannot find type 'CGFloat' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:89:31: error: cannot find type 'NSUnderlineStyle' in scope
87 | }
88 |
89 | func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'NSUnderlineStyle' in scope
90 | if let color = color {
91 | return attributes([.strikethroughStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:89:56: error: cannot find type 'Color' in scope
87 | }
88 |
89 | func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'Color' in scope
90 | if let color = color {
91 | return attributes([.strikethroughStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:98:24: error: cannot find type 'CGFloat' in scope
96 | }
97 |
98 | func stroke(width: CGFloat, color: Color? = nil) -> Component {
| `- error: cannot find type 'CGFloat' in scope
99 | if let color = color {
100 | return attributes([.strokeWidth: width,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:98:40: error: cannot find type 'Color' in scope
96 | }
97 |
98 | func stroke(width: CGFloat, color: Color? = nil) -> Component {
| `- error: cannot find type 'Color' in scope
99 | if let color = color {
100 | return attributes([.strokeWidth: width,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:107:35: error: cannot find type 'NSAttributedString' in scope
105 | }
106 |
107 | func textEffect(_ textEffect: NSAttributedString.TextEffectStyle) -> Component {
| `- error: cannot find type 'NSAttributedString' in scope
108 | attributes([.textEffect: textEffect])
109 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:111:29: error: cannot find type 'NSUnderlineStyle' in scope
109 | }
110 |
111 | func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'NSUnderlineStyle' in scope
112 | if let color = color {
113 | return attributes([.underlineStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:111:54: error: cannot find type 'Color' in scope
109 | }
110 |
111 | func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'Color' in scope
112 | if let color = color {
113 | return attributes([.underlineStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:120:47: error: cannot find type 'NSWritingDirection' in scope
118 | }
119 |
120 | func writingDirection(_ writingDirection: NSWritingDirection) -> Component {
| `- error: cannot find type 'NSWritingDirection' in scope
121 | attributes([.writingDirection: writingDirection.rawValue])
122 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:134:43: error: cannot find type 'NSParagraphStyle' in scope
132 |
133 | public extension Component {
134 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Component {
| `- error: cannot find type 'NSParagraphStyle' in scope
135 | attributes([.paragraphStyle: paragraphStyle])
136 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:138:43: error: cannot find type 'NSMutableParagraphStyle' in scope
136 | }
137 |
138 | func paragraphStyle(_ paragraphStyle: NSMutableParagraphStyle) -> Component {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
139 | attributes([.paragraphStyle: paragraphStyle])
140 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:142:48: error: cannot find type 'NSMutableParagraphStyle' in scope
140 | }
141 |
142 | private func getMutableParagraphStyle() -> NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
143 | if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
144 | return mps
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:154:33: error: cannot find type 'NSTextAlignment' in scope
152 | }
153 |
154 | func alignment(_ alignment: NSTextAlignment) -> Component {
| `- error: cannot find type 'NSTextAlignment' in scope
155 | let paragraphStyle = getMutableParagraphStyle()
156 | paragraphStyle.alignment = alignment
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:160:40: error: cannot find type 'CGFloat' in scope
158 | }
159 |
160 | func firstLineHeadIndent(_ indent: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
161 | let paragraphStyle = getMutableParagraphStyle()
162 | paragraphStyle.firstLineHeadIndent = indent
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:166:31: error: cannot find type 'CGFloat' in scope
164 | }
165 |
166 | func headIndent(_ indent: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
167 | let paragraphStyle = getMutableParagraphStyle()
168 | paragraphStyle.headIndent = indent
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:172:31: error: cannot find type 'CGFloat' in scope
170 | }
171 |
172 | func tailIndent(_ indent: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
173 | let paragraphStyle = getMutableParagraphStyle()
174 | paragraphStyle.tailIndent = indent
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:178:42: error: cannot find type 'NSLineBreakMode' in scope
176 | }
177 |
178 | func lineBreakeMode(_ lineBreakMode: NSLineBreakMode) -> Component {
| `- error: cannot find type 'NSLineBreakMode' in scope
179 | let paragraphStyle = getMutableParagraphStyle()
180 | paragraphStyle.lineBreakMode = lineBreakMode
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:184:31: error: cannot find type 'CGFloat' in scope
182 | }
183 |
184 | func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
185 | let paragraphStyle = getMutableParagraphStyle()
186 | paragraphStyle.lineHeightMultiple = multiple
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:184:53: error: cannot find type 'CGFloat' in scope
182 | }
183 |
184 | func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
185 | let paragraphStyle = getMutableParagraphStyle()
186 | paragraphStyle.lineHeightMultiple = multiple
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:184:75: error: cannot find type 'CGFloat' in scope
182 | }
183 |
184 | func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
185 | let paragraphStyle = getMutableParagraphStyle()
186 | paragraphStyle.lineHeightMultiple = multiple
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:192:33: error: cannot find type 'CGFloat' in scope
190 | }
191 |
192 | func lineSpacing(_ spacing: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
193 | let paragraphStyle = getMutableParagraphStyle()
194 | paragraphStyle.lineSpacing = spacing
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:198:38: error: cannot find type 'CGFloat' in scope
196 | }
197 |
198 | func paragraphSpacing(_ spacing: CGFloat, before: CGFloat = 0) -> Component {
| `- error: cannot find type 'CGFloat' in scope
199 | let paragraphStyle = getMutableParagraphStyle()
200 | paragraphStyle.paragraphSpacing = spacing
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:198:55: error: cannot find type 'CGFloat' in scope
196 | }
197 |
198 | func paragraphSpacing(_ spacing: CGFloat, before: CGFloat = 0) -> Component {
| `- error: cannot find type 'CGFloat' in scope
199 | let paragraphStyle = getMutableParagraphStyle()
200 | paragraphStyle.paragraphSpacing = spacing
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:205:55: error: cannot find type 'NSWritingDirection' in scope
203 | }
204 |
205 | func baseWritingDirection(_ baseWritingDirection: NSWritingDirection) -> Component {
| `- error: cannot find type 'NSWritingDirection' in scope
206 | let paragraphStyle = getMutableParagraphStyle()
207 | paragraphStyle.baseWritingDirection = baseWritingDirection
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:224:33: error: cannot find type 'NSTextTab' in scope
222 | }
223 |
224 | func tabsStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Component {
| `- error: cannot find type 'NSTextTab' in scope
225 | let paragraphStyle = getMutableParagraphStyle()
226 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:224:62: error: cannot find type 'CGFloat' in scope
222 | }
223 |
224 | func tabsStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Component {
| `- error: cannot find type 'CGFloat' in scope
225 | let paragraphStyle = getMutableParagraphStyle()
226 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:7:26: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | public typealias AText = NSAttributedString.AttrText
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public extension NSAttributedString {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:50:22: error: reference to member 'backgroundColor' cannot be resolved without a contextual type
48 | public extension Component {
49 | func backgroundColor(_ color: Color) -> Component {
50 | attributes([.backgroundColor: color])
| `- error: reference to member 'backgroundColor' cannot be resolved without a contextual type
51 | }
52 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:54:22: error: reference to member 'baselineOffset' cannot be resolved without a contextual type
52 |
53 | func baselineOffset(_ baselineOffset: CGFloat) -> Component {
54 | attributes([.baselineOffset: baselineOffset])
| `- error: reference to member 'baselineOffset' cannot be resolved without a contextual type
55 | }
56 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:58:22: error: reference to member 'font' cannot be resolved without a contextual type
56 |
57 | func font(_ font: Font) -> Component {
58 | attributes([.font: font])
| `- error: reference to member 'font' cannot be resolved without a contextual type
59 | }
60 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:62:22: error: reference to member 'foregroundColor' cannot be resolved without a contextual type
60 |
61 | func foregroundColor(_ color: Color) -> Component {
62 | attributes([.foregroundColor: color])
| `- error: reference to member 'foregroundColor' cannot be resolved without a contextual type
63 | }
64 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:66:22: error: reference to member 'expansion' cannot be resolved without a contextual type
64 |
65 | func expansion(_ expansion: CGFloat) -> Component {
66 | attributes([.expansion: expansion])
| `- error: reference to member 'expansion' cannot be resolved without a contextual type
67 | }
68 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:70:22: error: reference to member 'kern' cannot be resolved without a contextual type
68 |
69 | func kerning(_ kern: CGFloat) -> Component {
70 | attributes([.kern: kern])
| `- error: reference to member 'kern' cannot be resolved without a contextual type
71 | }
72 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:74:22: error: reference to member 'ligature' cannot be resolved without a contextual type
72 |
73 | func ligature(_ ligature: Ligature) -> Component {
74 | attributes([.ligature: ligature.rawValue])
| `- error: reference to member 'ligature' cannot be resolved without a contextual type
75 | }
76 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:78:22: error: reference to member 'obliqueness' cannot be resolved without a contextual type
76 |
77 | func obliqueness(_ obliqueness: Float) -> Component {
78 | attributes([.obliqueness: obliqueness])
| `- error: reference to member 'obliqueness' cannot be resolved without a contextual type
79 | }
80 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:82:22: error: cannot find 'NSShadow' in scope
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
82 | let shadow = NSShadow()
| `- error: cannot find 'NSShadow' in scope
83 | shadow.shadowColor = color
84 | shadow.shadowBlurRadius = radius
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:85:32: error: cannot infer contextual base in reference to member 'init'
83 | shadow.shadowColor = color
84 | shadow.shadowBlurRadius = radius
85 | shadow.shadowOffset = .init(width: x, height: y)
| `- error: cannot infer contextual base in reference to member 'init'
86 | return attributes([.shadow: shadow])
87 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:86:29: error: reference to member 'shadow' cannot be resolved without a contextual type
84 | shadow.shadowBlurRadius = radius
85 | shadow.shadowOffset = .init(width: x, height: y)
86 | return attributes([.shadow: shadow])
| `- error: reference to member 'shadow' cannot be resolved without a contextual type
87 | }
88 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:91:33: error: reference to member 'strikethroughStyle' cannot be resolved without a contextual type
89 | func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
90 | if let color = color {
91 | return attributes([.strikethroughStyle: style.rawValue,
| `- error: reference to member 'strikethroughStyle' cannot be resolved without a contextual type
92 | .strikethroughColor: color])
93 | } else {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:92:33: error: reference to member 'strikethroughColor' cannot be resolved without a contextual type
90 | if let color = color {
91 | return attributes([.strikethroughStyle: style.rawValue,
92 | .strikethroughColor: color])
| `- error: reference to member 'strikethroughColor' cannot be resolved without a contextual type
93 | } else {
94 | return attributes([.strikethroughStyle: style.rawValue])
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:94:33: error: reference to member 'strikethroughStyle' cannot be resolved without a contextual type
92 | .strikethroughColor: color])
93 | } else {
94 | return attributes([.strikethroughStyle: style.rawValue])
| `- error: reference to member 'strikethroughStyle' cannot be resolved without a contextual type
95 | }
96 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:100:33: error: reference to member 'strokeWidth' cannot be resolved without a contextual type
98 | func stroke(width: CGFloat, color: Color? = nil) -> Component {
99 | if let color = color {
100 | return attributes([.strokeWidth: width,
| `- error: reference to member 'strokeWidth' cannot be resolved without a contextual type
101 | .strokeColor: color])
102 | } else {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:101:33: error: reference to member 'strokeColor' cannot be resolved without a contextual type
99 | if let color = color {
100 | return attributes([.strokeWidth: width,
101 | .strokeColor: color])
| `- error: reference to member 'strokeColor' cannot be resolved without a contextual type
102 | } else {
103 | return attributes([.strokeWidth: width])
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:103:33: error: reference to member 'strokeWidth' cannot be resolved without a contextual type
101 | .strokeColor: color])
102 | } else {
103 | return attributes([.strokeWidth: width])
| `- error: reference to member 'strokeWidth' cannot be resolved without a contextual type
104 | }
105 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:108:22: error: reference to member 'textEffect' cannot be resolved without a contextual type
106 |
107 | func textEffect(_ textEffect: NSAttributedString.TextEffectStyle) -> Component {
108 | attributes([.textEffect: textEffect])
| `- error: reference to member 'textEffect' cannot be resolved without a contextual type
109 | }
110 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:113:33: error: reference to member 'underlineStyle' cannot be resolved without a contextual type
111 | func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
112 | if let color = color {
113 | return attributes([.underlineStyle: style.rawValue,
| `- error: reference to member 'underlineStyle' cannot be resolved without a contextual type
114 | .underlineColor: color])
115 | } else {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:114:33: error: reference to member 'underlineColor' cannot be resolved without a contextual type
112 | if let color = color {
113 | return attributes([.underlineStyle: style.rawValue,
114 | .underlineColor: color])
| `- error: reference to member 'underlineColor' cannot be resolved without a contextual type
115 | } else {
116 | return attributes([.underlineStyle: style.rawValue])
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:116:33: error: reference to member 'underlineStyle' cannot be resolved without a contextual type
114 | .underlineColor: color])
115 | } else {
116 | return attributes([.underlineStyle: style.rawValue])
| `- error: reference to member 'underlineStyle' cannot be resolved without a contextual type
117 | }
118 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:121:22: error: reference to member 'writingDirection' cannot be resolved without a contextual type
119 |
120 | func writingDirection(_ writingDirection: NSWritingDirection) -> Component {
121 | attributes([.writingDirection: writingDirection.rawValue])
| `- error: reference to member 'writingDirection' cannot be resolved without a contextual type
122 | }
123 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:135:22: error: reference to member 'paragraphStyle' cannot be resolved without a contextual type
133 | public extension Component {
134 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Component {
135 | attributes([.paragraphStyle: paragraphStyle])
| `- error: reference to member 'paragraphStyle' cannot be resolved without a contextual type
136 | }
137 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:139:22: error: reference to member 'paragraphStyle' cannot be resolved without a contextual type
137 |
138 | func paragraphStyle(_ paragraphStyle: NSMutableParagraphStyle) -> Component {
139 | attributes([.paragraphStyle: paragraphStyle])
| `- error: reference to member 'paragraphStyle' cannot be resolved without a contextual type
140 | }
141 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:143:54: error: cannot find type 'NSMutableParagraphStyle' in scope
141 |
142 | private func getMutableParagraphStyle() -> NSMutableParagraphStyle {
143 | if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
144 | return mps
145 | } else if let ps = attributes[.paragraphStyle] as? NSParagraphStyle,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:143:34: error: cannot infer contextual base in reference to member 'paragraphStyle'
141 |
142 | private func getMutableParagraphStyle() -> NSMutableParagraphStyle {
143 | if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
144 | return mps
145 | } else if let ps = attributes[.paragraphStyle] as? NSParagraphStyle,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:145:60: error: cannot find type 'NSParagraphStyle' in scope
143 | if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
144 | return mps
145 | } else if let ps = attributes[.paragraphStyle] as? NSParagraphStyle,
| `- error: cannot find type 'NSParagraphStyle' in scope
146 | let mps = ps.mutableCopy() as? NSMutableParagraphStyle
147 | {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:145:40: error: cannot infer contextual base in reference to member 'paragraphStyle'
143 | if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
144 | return mps
145 | } else if let ps = attributes[.paragraphStyle] as? NSParagraphStyle,
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
146 | let mps = ps.mutableCopy() as? NSMutableParagraphStyle
147 | {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:146:50: error: cannot find type 'NSMutableParagraphStyle' in scope
144 | return mps
145 | } else if let ps = attributes[.paragraphStyle] as? NSParagraphStyle,
146 | let mps = ps.mutableCopy() as? NSMutableParagraphStyle
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
147 | {
148 | return mps
[7/9] Compiling NSAttributedStringBuilder StaticComponents.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
10 | #endif
11 |
12 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
13 |
14 | @resultBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
10 | var string: String { get }
11 | var attributes: Attributes { get }
12 | var attributedString: NSAttributedString { get }
| `- error: cannot find type 'NSAttributedString' in scope
13 | }
14 |
[8/9] Compiling NSAttributedStringBuilder Link.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:7:25: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | public typealias Link = NSAttributedString.Link
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public extension NSAttributedString {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:9:18: error: cannot find type 'NSAttributedString' in scope
7 | public typealias Link = NSAttributedString.Link
8 |
9 | public extension NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
10 | struct Link: Component {
11 | // MARK: Lifecycle
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
10 | #endif
11 |
12 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
13 |
14 | @resultBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
10 | var string: String { get }
11 | var attributes: Attributes { get }
12 | var attributedString: NSAttributedString { get }
| `- error: cannot find type 'NSAttributedString' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:13:44: error: cannot find type 'URL' in scope
11 | // MARK: Lifecycle
12 |
13 | public init(_ string: String, url: URL, attributes: Attributes = [:]) {
| `- error: cannot find type 'URL' in scope
14 | self.string = string
15 | self.url = url
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:25:25: error: cannot find type 'URL' in scope
23 |
24 | public let string: String
25 | public let url: URL
| `- error: cannot find type 'URL' in scope
26 | public let attributes: Attributes
27 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:28:38: error: cannot find type 'NSAttributedString' in scope
26 | public let attributes: Attributes
27 |
28 | public var attributedString: NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
29 | NSAttributedString(string: string, attributes: attributes)
30 | }
[9/9] Compiling NSAttributedStringBuilder AText.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:7:26: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | public typealias AText = NSAttributedString.AttrText
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public extension NSAttributedString {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:9:18: error: cannot find type 'NSAttributedString' in scope
7 | public typealias AText = NSAttributedString.AttrText
8 |
9 | public extension NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
10 | struct AttrText: Component {
11 | // MARK: Lifecycle
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
10 | #endif
11 |
12 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
13 |
14 | @resultBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
10 | var string: String { get }
11 | var attributes: Attributes { get }
12 | var attributedString: NSAttributedString { get }
| `- error: cannot find type 'NSAttributedString' in scope
13 | }
14 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling NSAttributedStringBuilder StaticComponents.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
10 | #endif
11 |
12 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
13 |
14 | @resultBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
10 | var string: String { get }
11 | var attributes: Attributes { get }
12 | var attributedString: NSAttributedString { get }
| `- error: cannot find type 'NSAttributedString' in scope
13 | }
14 |
[3/8] Compiling NSAttributedStringBuilder ImageAttachment.swift
[4/8] Compiling NSAttributedStringBuilder Link.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:7:25: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | public typealias Link = NSAttributedString.Link
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public extension NSAttributedString {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:9:18: error: cannot find type 'NSAttributedString' in scope
7 | public typealias Link = NSAttributedString.Link
8 |
9 | public extension NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
10 | struct Link: Component {
11 | // MARK: Lifecycle
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
10 | #endif
11 |
12 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
13 |
14 | @resultBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
10 | var string: String { get }
11 | var attributes: Attributes { get }
12 | var attributedString: NSAttributedString { get }
| `- error: cannot find type 'NSAttributedString' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:13:44: error: cannot find type 'URL' in scope
11 | // MARK: Lifecycle
12 |
13 | public init(_ string: String, url: URL, attributes: Attributes = [:]) {
| `- error: cannot find type 'URL' in scope
14 | self.string = string
15 | self.url = url
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:25:25: error: cannot find type 'URL' in scope
23 |
24 | public let string: String
25 | public let url: URL
| `- error: cannot find type 'URL' in scope
26 | public let attributes: Attributes
27 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:28:38: error: cannot find type 'NSAttributedString' in scope
26 | public let attributes: Attributes
27 |
28 | public var attributedString: NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
29 | NSAttributedString(string: string, attributes: attributes)
30 | }
[5/8] Compiling NSAttributedStringBuilder NSAttributedStringBuilder.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
10 | #endif
11 |
12 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
13 |
14 | @resultBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:16:66: error: cannot find type 'NSAttributedString' in scope
14 | @resultBuilder
15 | public enum NSAttributedStringBuilder {
16 | public static func buildBlock(_ components: Component...) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
17 | let mas = NSMutableAttributedString(string: "")
18 | for component in components {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:25:18: error: cannot find type 'NSAttributedString' in scope
23 | }
24 |
25 | public extension NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
26 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
27 | self.init(attributedString: builder())
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:17:19: error: cannot find 'NSMutableAttributedString' in scope
15 | public enum NSAttributedStringBuilder {
16 | public static func buildBlock(_ components: Component...) -> NSAttributedString {
17 | let mas = NSMutableAttributedString(string: "")
| `- error: cannot find 'NSMutableAttributedString' in scope
18 | for component in components {
19 | mas.append(component.attributedString)
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
10 | var string: String { get }
11 | var attributes: Attributes { get }
12 | var attributedString: NSAttributedString { get }
| `- error: cannot find type 'NSAttributedString' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:29:27: error: cannot find type 'NSAttributedString' in scope
27 | }
28 |
29 | var attributedString: NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
30 | NSAttributedString(string: string, attributes: attributes)
31 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:26:66: error: cannot find type 'NSAttributedString' in scope
24 |
25 | public extension NSAttributedString {
26 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
| `- error: cannot find type 'NSAttributedString' in scope
27 | self.init(attributedString: builder())
28 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Emitting module NSAttributedStringBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:7:26: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | public typealias AText = NSAttributedString.AttrText
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public extension NSAttributedString {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:9:18: error: cannot find type 'NSAttributedString' in scope
7 | public typealias AText = NSAttributedString.AttrText
8 |
9 | public extension NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
10 | struct AttrText: Component {
11 | // MARK: Lifecycle
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
10 | #endif
11 |
12 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
13 |
14 | @resultBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
10 | var string: String { get }
11 | var attributes: Attributes { get }
12 | var attributedString: NSAttributedString { get }
| `- error: cannot find type 'NSAttributedString' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:29:27: error: cannot find type 'NSAttributedString' in scope
27 | }
28 |
29 | var attributedString: NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
30 | NSAttributedString(string: string, attributes: attributes)
31 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:33:36: error: cannot find type 'NSAttributedString' in scope
31 | }
32 |
33 | func attribute(_ newAttribute: NSAttributedString.Key, value: Any) -> Component {
| `- error: cannot find type 'NSAttributedString' in scope
34 | attributes([newAttribute: value])
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:49:35: error: cannot find type 'Color' in scope
47 |
48 | public extension Component {
49 | func backgroundColor(_ color: Color) -> Component {
| `- error: cannot find type 'Color' in scope
50 | attributes([.backgroundColor: color])
51 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:53:43: error: cannot find type 'CGFloat' in scope
51 | }
52 |
53 | func baselineOffset(_ baselineOffset: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
54 | attributes([.baselineOffset: baselineOffset])
55 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:57:23: error: cannot find type 'Font' in scope
55 | }
56 |
57 | func font(_ font: Font) -> Component {
| `- error: cannot find type 'Font' in scope
58 | attributes([.font: font])
59 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:61:35: error: cannot find type 'Color' in scope
59 | }
60 |
61 | func foregroundColor(_ color: Color) -> Component {
| `- error: cannot find type 'Color' in scope
62 | attributes([.foregroundColor: color])
63 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:65:33: error: cannot find type 'CGFloat' in scope
63 | }
64 |
65 | func expansion(_ expansion: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
66 | attributes([.expansion: expansion])
67 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:69:26: error: cannot find type 'CGFloat' in scope
67 | }
68 |
69 | func kerning(_ kern: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
70 | attributes([.kern: kern])
71 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:24: error: cannot find type 'Color' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'Color' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:46: error: cannot find type 'CGFloat' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:58: error: cannot find type 'CGFloat' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:70: error: cannot find type 'CGFloat' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:89:31: error: cannot find type 'NSUnderlineStyle' in scope
87 | }
88 |
89 | func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'NSUnderlineStyle' in scope
90 | if let color = color {
91 | return attributes([.strikethroughStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:89:56: error: cannot find type 'Color' in scope
87 | }
88 |
89 | func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'Color' in scope
90 | if let color = color {
91 | return attributes([.strikethroughStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:98:24: error: cannot find type 'CGFloat' in scope
96 | }
97 |
98 | func stroke(width: CGFloat, color: Color? = nil) -> Component {
| `- error: cannot find type 'CGFloat' in scope
99 | if let color = color {
100 | return attributes([.strokeWidth: width,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:98:40: error: cannot find type 'Color' in scope
96 | }
97 |
98 | func stroke(width: CGFloat, color: Color? = nil) -> Component {
| `- error: cannot find type 'Color' in scope
99 | if let color = color {
100 | return attributes([.strokeWidth: width,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:107:35: error: cannot find type 'NSAttributedString' in scope
105 | }
106 |
107 | func textEffect(_ textEffect: NSAttributedString.TextEffectStyle) -> Component {
| `- error: cannot find type 'NSAttributedString' in scope
108 | attributes([.textEffect: textEffect])
109 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:111:29: error: cannot find type 'NSUnderlineStyle' in scope
109 | }
110 |
111 | func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'NSUnderlineStyle' in scope
112 | if let color = color {
113 | return attributes([.underlineStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:111:54: error: cannot find type 'Color' in scope
109 | }
110 |
111 | func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'Color' in scope
112 | if let color = color {
113 | return attributes([.underlineStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:120:47: error: cannot find type 'NSWritingDirection' in scope
118 | }
119 |
120 | func writingDirection(_ writingDirection: NSWritingDirection) -> Component {
| `- error: cannot find type 'NSWritingDirection' in scope
121 | attributes([.writingDirection: writingDirection.rawValue])
122 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:134:43: error: cannot find type 'NSParagraphStyle' in scope
132 |
133 | public extension Component {
134 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Component {
| `- error: cannot find type 'NSParagraphStyle' in scope
135 | attributes([.paragraphStyle: paragraphStyle])
136 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:138:43: error: cannot find type 'NSMutableParagraphStyle' in scope
136 | }
137 |
138 | func paragraphStyle(_ paragraphStyle: NSMutableParagraphStyle) -> Component {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
139 | attributes([.paragraphStyle: paragraphStyle])
140 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:142:48: error: cannot find type 'NSMutableParagraphStyle' in scope
140 | }
141 |
142 | private func getMutableParagraphStyle() -> NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
143 | if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
144 | return mps
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:154:33: error: cannot find type 'NSTextAlignment' in scope
152 | }
153 |
154 | func alignment(_ alignment: NSTextAlignment) -> Component {
| `- error: cannot find type 'NSTextAlignment' in scope
155 | let paragraphStyle = getMutableParagraphStyle()
156 | paragraphStyle.alignment = alignment
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:160:40: error: cannot find type 'CGFloat' in scope
158 | }
159 |
160 | func firstLineHeadIndent(_ indent: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
161 | let paragraphStyle = getMutableParagraphStyle()
162 | paragraphStyle.firstLineHeadIndent = indent
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:166:31: error: cannot find type 'CGFloat' in scope
164 | }
165 |
166 | func headIndent(_ indent: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
167 | let paragraphStyle = getMutableParagraphStyle()
168 | paragraphStyle.headIndent = indent
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:172:31: error: cannot find type 'CGFloat' in scope
170 | }
171 |
172 | func tailIndent(_ indent: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
173 | let paragraphStyle = getMutableParagraphStyle()
174 | paragraphStyle.tailIndent = indent
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:178:42: error: cannot find type 'NSLineBreakMode' in scope
176 | }
177 |
178 | func lineBreakeMode(_ lineBreakMode: NSLineBreakMode) -> Component {
| `- error: cannot find type 'NSLineBreakMode' in scope
179 | let paragraphStyle = getMutableParagraphStyle()
180 | paragraphStyle.lineBreakMode = lineBreakMode
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:184:31: error: cannot find type 'CGFloat' in scope
182 | }
183 |
184 | func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
185 | let paragraphStyle = getMutableParagraphStyle()
186 | paragraphStyle.lineHeightMultiple = multiple
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:184:53: error: cannot find type 'CGFloat' in scope
182 | }
183 |
184 | func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
185 | let paragraphStyle = getMutableParagraphStyle()
186 | paragraphStyle.lineHeightMultiple = multiple
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:184:75: error: cannot find type 'CGFloat' in scope
182 | }
183 |
184 | func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
185 | let paragraphStyle = getMutableParagraphStyle()
186 | paragraphStyle.lineHeightMultiple = multiple
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:192:33: error: cannot find type 'CGFloat' in scope
190 | }
191 |
192 | func lineSpacing(_ spacing: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
193 | let paragraphStyle = getMutableParagraphStyle()
194 | paragraphStyle.lineSpacing = spacing
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:198:38: error: cannot find type 'CGFloat' in scope
196 | }
197 |
198 | func paragraphSpacing(_ spacing: CGFloat, before: CGFloat = 0) -> Component {
| `- error: cannot find type 'CGFloat' in scope
199 | let paragraphStyle = getMutableParagraphStyle()
200 | paragraphStyle.paragraphSpacing = spacing
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:198:55: error: cannot find type 'CGFloat' in scope
196 | }
197 |
198 | func paragraphSpacing(_ spacing: CGFloat, before: CGFloat = 0) -> Component {
| `- error: cannot find type 'CGFloat' in scope
199 | let paragraphStyle = getMutableParagraphStyle()
200 | paragraphStyle.paragraphSpacing = spacing
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:205:55: error: cannot find type 'NSWritingDirection' in scope
203 | }
204 |
205 | func baseWritingDirection(_ baseWritingDirection: NSWritingDirection) -> Component {
| `- error: cannot find type 'NSWritingDirection' in scope
206 | let paragraphStyle = getMutableParagraphStyle()
207 | paragraphStyle.baseWritingDirection = baseWritingDirection
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:224:33: error: cannot find type 'NSTextTab' in scope
222 | }
223 |
224 | func tabsStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Component {
| `- error: cannot find type 'NSTextTab' in scope
225 | let paragraphStyle = getMutableParagraphStyle()
226 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:224:62: error: cannot find type 'CGFloat' in scope
222 | }
223 |
224 | func tabsStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Component {
| `- error: cannot find type 'CGFloat' in scope
225 | let paragraphStyle = getMutableParagraphStyle()
226 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:7:25: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | public typealias Link = NSAttributedString.Link
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public extension NSAttributedString {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:9:18: error: cannot find type 'NSAttributedString' in scope
7 | public typealias Link = NSAttributedString.Link
8 |
9 | public extension NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
10 | struct Link: Component {
11 | // MARK: Lifecycle
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:16:66: error: cannot find type 'NSAttributedString' in scope
14 | @resultBuilder
15 | public enum NSAttributedStringBuilder {
16 | public static func buildBlock(_ components: Component...) -> NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
17 | let mas = NSMutableAttributedString(string: "")
18 | for component in components {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:25:18: error: cannot find type 'NSAttributedString' in scope
23 | }
24 |
25 | public extension NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
26 | convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
27 | self.init(attributedString: builder())
[7/8] Compiling NSAttributedStringBuilder Component.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
10 | #endif
11 |
12 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
13 |
14 | @resultBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
10 | var string: String { get }
11 | var attributes: Attributes { get }
12 | var attributedString: NSAttributedString { get }
| `- error: cannot find type 'NSAttributedString' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:29:27: error: cannot find type 'NSAttributedString' in scope
27 | }
28 |
29 | var attributedString: NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
30 | NSAttributedString(string: string, attributes: attributes)
31 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:33:36: error: cannot find type 'NSAttributedString' in scope
31 | }
32 |
33 | func attribute(_ newAttribute: NSAttributedString.Key, value: Any) -> Component {
| `- error: cannot find type 'NSAttributedString' in scope
34 | attributes([newAttribute: value])
35 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:49:35: error: cannot find type 'Color' in scope
47 |
48 | public extension Component {
49 | func backgroundColor(_ color: Color) -> Component {
| `- error: cannot find type 'Color' in scope
50 | attributes([.backgroundColor: color])
51 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:53:43: error: cannot find type 'CGFloat' in scope
51 | }
52 |
53 | func baselineOffset(_ baselineOffset: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
54 | attributes([.baselineOffset: baselineOffset])
55 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:57:23: error: cannot find type 'Font' in scope
55 | }
56 |
57 | func font(_ font: Font) -> Component {
| `- error: cannot find type 'Font' in scope
58 | attributes([.font: font])
59 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:61:35: error: cannot find type 'Color' in scope
59 | }
60 |
61 | func foregroundColor(_ color: Color) -> Component {
| `- error: cannot find type 'Color' in scope
62 | attributes([.foregroundColor: color])
63 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:65:33: error: cannot find type 'CGFloat' in scope
63 | }
64 |
65 | func expansion(_ expansion: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
66 | attributes([.expansion: expansion])
67 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:69:26: error: cannot find type 'CGFloat' in scope
67 | }
68 |
69 | func kerning(_ kern: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
70 | attributes([.kern: kern])
71 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:24: error: cannot find type 'Color' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'Color' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:46: error: cannot find type 'CGFloat' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:58: error: cannot find type 'CGFloat' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:70: error: cannot find type 'CGFloat' in scope
79 | }
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
82 | let shadow = NSShadow()
83 | shadow.shadowColor = color
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:89:31: error: cannot find type 'NSUnderlineStyle' in scope
87 | }
88 |
89 | func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'NSUnderlineStyle' in scope
90 | if let color = color {
91 | return attributes([.strikethroughStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:89:56: error: cannot find type 'Color' in scope
87 | }
88 |
89 | func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'Color' in scope
90 | if let color = color {
91 | return attributes([.strikethroughStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:98:24: error: cannot find type 'CGFloat' in scope
96 | }
97 |
98 | func stroke(width: CGFloat, color: Color? = nil) -> Component {
| `- error: cannot find type 'CGFloat' in scope
99 | if let color = color {
100 | return attributes([.strokeWidth: width,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:98:40: error: cannot find type 'Color' in scope
96 | }
97 |
98 | func stroke(width: CGFloat, color: Color? = nil) -> Component {
| `- error: cannot find type 'Color' in scope
99 | if let color = color {
100 | return attributes([.strokeWidth: width,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:107:35: error: cannot find type 'NSAttributedString' in scope
105 | }
106 |
107 | func textEffect(_ textEffect: NSAttributedString.TextEffectStyle) -> Component {
| `- error: cannot find type 'NSAttributedString' in scope
108 | attributes([.textEffect: textEffect])
109 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:111:29: error: cannot find type 'NSUnderlineStyle' in scope
109 | }
110 |
111 | func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'NSUnderlineStyle' in scope
112 | if let color = color {
113 | return attributes([.underlineStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:111:54: error: cannot find type 'Color' in scope
109 | }
110 |
111 | func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
| `- error: cannot find type 'Color' in scope
112 | if let color = color {
113 | return attributes([.underlineStyle: style.rawValue,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:120:47: error: cannot find type 'NSWritingDirection' in scope
118 | }
119 |
120 | func writingDirection(_ writingDirection: NSWritingDirection) -> Component {
| `- error: cannot find type 'NSWritingDirection' in scope
121 | attributes([.writingDirection: writingDirection.rawValue])
122 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:134:43: error: cannot find type 'NSParagraphStyle' in scope
132 |
133 | public extension Component {
134 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Component {
| `- error: cannot find type 'NSParagraphStyle' in scope
135 | attributes([.paragraphStyle: paragraphStyle])
136 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:138:43: error: cannot find type 'NSMutableParagraphStyle' in scope
136 | }
137 |
138 | func paragraphStyle(_ paragraphStyle: NSMutableParagraphStyle) -> Component {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
139 | attributes([.paragraphStyle: paragraphStyle])
140 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:142:48: error: cannot find type 'NSMutableParagraphStyle' in scope
140 | }
141 |
142 | private func getMutableParagraphStyle() -> NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
143 | if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
144 | return mps
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:154:33: error: cannot find type 'NSTextAlignment' in scope
152 | }
153 |
154 | func alignment(_ alignment: NSTextAlignment) -> Component {
| `- error: cannot find type 'NSTextAlignment' in scope
155 | let paragraphStyle = getMutableParagraphStyle()
156 | paragraphStyle.alignment = alignment
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:160:40: error: cannot find type 'CGFloat' in scope
158 | }
159 |
160 | func firstLineHeadIndent(_ indent: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
161 | let paragraphStyle = getMutableParagraphStyle()
162 | paragraphStyle.firstLineHeadIndent = indent
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:166:31: error: cannot find type 'CGFloat' in scope
164 | }
165 |
166 | func headIndent(_ indent: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
167 | let paragraphStyle = getMutableParagraphStyle()
168 | paragraphStyle.headIndent = indent
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:172:31: error: cannot find type 'CGFloat' in scope
170 | }
171 |
172 | func tailIndent(_ indent: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
173 | let paragraphStyle = getMutableParagraphStyle()
174 | paragraphStyle.tailIndent = indent
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:178:42: error: cannot find type 'NSLineBreakMode' in scope
176 | }
177 |
178 | func lineBreakeMode(_ lineBreakMode: NSLineBreakMode) -> Component {
| `- error: cannot find type 'NSLineBreakMode' in scope
179 | let paragraphStyle = getMutableParagraphStyle()
180 | paragraphStyle.lineBreakMode = lineBreakMode
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:184:31: error: cannot find type 'CGFloat' in scope
182 | }
183 |
184 | func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
185 | let paragraphStyle = getMutableParagraphStyle()
186 | paragraphStyle.lineHeightMultiple = multiple
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:184:53: error: cannot find type 'CGFloat' in scope
182 | }
183 |
184 | func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
185 | let paragraphStyle = getMutableParagraphStyle()
186 | paragraphStyle.lineHeightMultiple = multiple
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:184:75: error: cannot find type 'CGFloat' in scope
182 | }
183 |
184 | func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
185 | let paragraphStyle = getMutableParagraphStyle()
186 | paragraphStyle.lineHeightMultiple = multiple
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:192:33: error: cannot find type 'CGFloat' in scope
190 | }
191 |
192 | func lineSpacing(_ spacing: CGFloat) -> Component {
| `- error: cannot find type 'CGFloat' in scope
193 | let paragraphStyle = getMutableParagraphStyle()
194 | paragraphStyle.lineSpacing = spacing
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:198:38: error: cannot find type 'CGFloat' in scope
196 | }
197 |
198 | func paragraphSpacing(_ spacing: CGFloat, before: CGFloat = 0) -> Component {
| `- error: cannot find type 'CGFloat' in scope
199 | let paragraphStyle = getMutableParagraphStyle()
200 | paragraphStyle.paragraphSpacing = spacing
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:198:55: error: cannot find type 'CGFloat' in scope
196 | }
197 |
198 | func paragraphSpacing(_ spacing: CGFloat, before: CGFloat = 0) -> Component {
| `- error: cannot find type 'CGFloat' in scope
199 | let paragraphStyle = getMutableParagraphStyle()
200 | paragraphStyle.paragraphSpacing = spacing
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:205:55: error: cannot find type 'NSWritingDirection' in scope
203 | }
204 |
205 | func baseWritingDirection(_ baseWritingDirection: NSWritingDirection) -> Component {
| `- error: cannot find type 'NSWritingDirection' in scope
206 | let paragraphStyle = getMutableParagraphStyle()
207 | paragraphStyle.baseWritingDirection = baseWritingDirection
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:224:33: error: cannot find type 'NSTextTab' in scope
222 | }
223 |
224 | func tabsStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Component {
| `- error: cannot find type 'NSTextTab' in scope
225 | let paragraphStyle = getMutableParagraphStyle()
226 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:224:62: error: cannot find type 'CGFloat' in scope
222 | }
223 |
224 | func tabsStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Component {
| `- error: cannot find type 'CGFloat' in scope
225 | let paragraphStyle = getMutableParagraphStyle()
226 | paragraphStyle.tabStops = tabStops
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:7:26: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | public typealias AText = NSAttributedString.AttrText
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public extension NSAttributedString {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:50:22: error: reference to member 'backgroundColor' cannot be resolved without a contextual type
48 | public extension Component {
49 | func backgroundColor(_ color: Color) -> Component {
50 | attributes([.backgroundColor: color])
| `- error: reference to member 'backgroundColor' cannot be resolved without a contextual type
51 | }
52 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:54:22: error: reference to member 'baselineOffset' cannot be resolved without a contextual type
52 |
53 | func baselineOffset(_ baselineOffset: CGFloat) -> Component {
54 | attributes([.baselineOffset: baselineOffset])
| `- error: reference to member 'baselineOffset' cannot be resolved without a contextual type
55 | }
56 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:58:22: error: reference to member 'font' cannot be resolved without a contextual type
56 |
57 | func font(_ font: Font) -> Component {
58 | attributes([.font: font])
| `- error: reference to member 'font' cannot be resolved without a contextual type
59 | }
60 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:62:22: error: reference to member 'foregroundColor' cannot be resolved without a contextual type
60 |
61 | func foregroundColor(_ color: Color) -> Component {
62 | attributes([.foregroundColor: color])
| `- error: reference to member 'foregroundColor' cannot be resolved without a contextual type
63 | }
64 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:66:22: error: reference to member 'expansion' cannot be resolved without a contextual type
64 |
65 | func expansion(_ expansion: CGFloat) -> Component {
66 | attributes([.expansion: expansion])
| `- error: reference to member 'expansion' cannot be resolved without a contextual type
67 | }
68 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:70:22: error: reference to member 'kern' cannot be resolved without a contextual type
68 |
69 | func kerning(_ kern: CGFloat) -> Component {
70 | attributes([.kern: kern])
| `- error: reference to member 'kern' cannot be resolved without a contextual type
71 | }
72 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:74:22: error: reference to member 'ligature' cannot be resolved without a contextual type
72 |
73 | func ligature(_ ligature: Ligature) -> Component {
74 | attributes([.ligature: ligature.rawValue])
| `- error: reference to member 'ligature' cannot be resolved without a contextual type
75 | }
76 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:78:22: error: reference to member 'obliqueness' cannot be resolved without a contextual type
76 |
77 | func obliqueness(_ obliqueness: Float) -> Component {
78 | attributes([.obliqueness: obliqueness])
| `- error: reference to member 'obliqueness' cannot be resolved without a contextual type
79 | }
80 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:82:22: error: cannot find 'NSShadow' in scope
80 |
81 | func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
82 | let shadow = NSShadow()
| `- error: cannot find 'NSShadow' in scope
83 | shadow.shadowColor = color
84 | shadow.shadowBlurRadius = radius
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:85:32: error: cannot infer contextual base in reference to member 'init'
83 | shadow.shadowColor = color
84 | shadow.shadowBlurRadius = radius
85 | shadow.shadowOffset = .init(width: x, height: y)
| `- error: cannot infer contextual base in reference to member 'init'
86 | return attributes([.shadow: shadow])
87 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:86:29: error: reference to member 'shadow' cannot be resolved without a contextual type
84 | shadow.shadowBlurRadius = radius
85 | shadow.shadowOffset = .init(width: x, height: y)
86 | return attributes([.shadow: shadow])
| `- error: reference to member 'shadow' cannot be resolved without a contextual type
87 | }
88 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:91:33: error: reference to member 'strikethroughStyle' cannot be resolved without a contextual type
89 | func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
90 | if let color = color {
91 | return attributes([.strikethroughStyle: style.rawValue,
| `- error: reference to member 'strikethroughStyle' cannot be resolved without a contextual type
92 | .strikethroughColor: color])
93 | } else {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:92:33: error: reference to member 'strikethroughColor' cannot be resolved without a contextual type
90 | if let color = color {
91 | return attributes([.strikethroughStyle: style.rawValue,
92 | .strikethroughColor: color])
| `- error: reference to member 'strikethroughColor' cannot be resolved without a contextual type
93 | } else {
94 | return attributes([.strikethroughStyle: style.rawValue])
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:94:33: error: reference to member 'strikethroughStyle' cannot be resolved without a contextual type
92 | .strikethroughColor: color])
93 | } else {
94 | return attributes([.strikethroughStyle: style.rawValue])
| `- error: reference to member 'strikethroughStyle' cannot be resolved without a contextual type
95 | }
96 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:100:33: error: reference to member 'strokeWidth' cannot be resolved without a contextual type
98 | func stroke(width: CGFloat, color: Color? = nil) -> Component {
99 | if let color = color {
100 | return attributes([.strokeWidth: width,
| `- error: reference to member 'strokeWidth' cannot be resolved without a contextual type
101 | .strokeColor: color])
102 | } else {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:101:33: error: reference to member 'strokeColor' cannot be resolved without a contextual type
99 | if let color = color {
100 | return attributes([.strokeWidth: width,
101 | .strokeColor: color])
| `- error: reference to member 'strokeColor' cannot be resolved without a contextual type
102 | } else {
103 | return attributes([.strokeWidth: width])
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:103:33: error: reference to member 'strokeWidth' cannot be resolved without a contextual type
101 | .strokeColor: color])
102 | } else {
103 | return attributes([.strokeWidth: width])
| `- error: reference to member 'strokeWidth' cannot be resolved without a contextual type
104 | }
105 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:108:22: error: reference to member 'textEffect' cannot be resolved without a contextual type
106 |
107 | func textEffect(_ textEffect: NSAttributedString.TextEffectStyle) -> Component {
108 | attributes([.textEffect: textEffect])
| `- error: reference to member 'textEffect' cannot be resolved without a contextual type
109 | }
110 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:113:33: error: reference to member 'underlineStyle' cannot be resolved without a contextual type
111 | func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
112 | if let color = color {
113 | return attributes([.underlineStyle: style.rawValue,
| `- error: reference to member 'underlineStyle' cannot be resolved without a contextual type
114 | .underlineColor: color])
115 | } else {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:114:33: error: reference to member 'underlineColor' cannot be resolved without a contextual type
112 | if let color = color {
113 | return attributes([.underlineStyle: style.rawValue,
114 | .underlineColor: color])
| `- error: reference to member 'underlineColor' cannot be resolved without a contextual type
115 | } else {
116 | return attributes([.underlineStyle: style.rawValue])
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:116:33: error: reference to member 'underlineStyle' cannot be resolved without a contextual type
114 | .underlineColor: color])
115 | } else {
116 | return attributes([.underlineStyle: style.rawValue])
| `- error: reference to member 'underlineStyle' cannot be resolved without a contextual type
117 | }
118 | }
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:121:22: error: reference to member 'writingDirection' cannot be resolved without a contextual type
119 |
120 | func writingDirection(_ writingDirection: NSWritingDirection) -> Component {
121 | attributes([.writingDirection: writingDirection.rawValue])
| `- error: reference to member 'writingDirection' cannot be resolved without a contextual type
122 | }
123 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:135:22: error: reference to member 'paragraphStyle' cannot be resolved without a contextual type
133 | public extension Component {
134 | func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Component {
135 | attributes([.paragraphStyle: paragraphStyle])
| `- error: reference to member 'paragraphStyle' cannot be resolved without a contextual type
136 | }
137 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:139:22: error: reference to member 'paragraphStyle' cannot be resolved without a contextual type
137 |
138 | func paragraphStyle(_ paragraphStyle: NSMutableParagraphStyle) -> Component {
139 | attributes([.paragraphStyle: paragraphStyle])
| `- error: reference to member 'paragraphStyle' cannot be resolved without a contextual type
140 | }
141 |
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:143:54: error: cannot find type 'NSMutableParagraphStyle' in scope
141 |
142 | private func getMutableParagraphStyle() -> NSMutableParagraphStyle {
143 | if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
144 | return mps
145 | } else if let ps = attributes[.paragraphStyle] as? NSParagraphStyle,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:143:34: error: cannot infer contextual base in reference to member 'paragraphStyle'
141 |
142 | private func getMutableParagraphStyle() -> NSMutableParagraphStyle {
143 | if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
144 | return mps
145 | } else if let ps = attributes[.paragraphStyle] as? NSParagraphStyle,
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:145:60: error: cannot find type 'NSParagraphStyle' in scope
143 | if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
144 | return mps
145 | } else if let ps = attributes[.paragraphStyle] as? NSParagraphStyle,
| `- error: cannot find type 'NSParagraphStyle' in scope
146 | let mps = ps.mutableCopy() as? NSMutableParagraphStyle
147 | {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:145:40: error: cannot infer contextual base in reference to member 'paragraphStyle'
143 | if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
144 | return mps
145 | } else if let ps = attributes[.paragraphStyle] as? NSParagraphStyle,
| `- error: cannot infer contextual base in reference to member 'paragraphStyle'
146 | let mps = ps.mutableCopy() as? NSMutableParagraphStyle
147 | {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:146:50: error: cannot find type 'NSMutableParagraphStyle' in scope
144 | return mps
145 | } else if let ps = attributes[.paragraphStyle] as? NSParagraphStyle,
146 | let mps = ps.mutableCopy() as? NSMutableParagraphStyle
| `- error: cannot find type 'NSMutableParagraphStyle' in scope
147 | {
148 | return mps
[8/8] Compiling NSAttributedStringBuilder AText.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:7:26: error: cannot find type 'NSAttributedString' in scope
5 | #endif
6 |
7 | public typealias AText = NSAttributedString.AttrText
| `- error: cannot find type 'NSAttributedString' in scope
8 |
9 | public extension NSAttributedString {
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:9:18: error: cannot find type 'NSAttributedString' in scope
7 | public typealias AText = NSAttributedString.AttrText
8 |
9 | public extension NSAttributedString {
| `- error: cannot find type 'NSAttributedString' in scope
10 | struct AttrText: Component {
11 | // MARK: Lifecycle
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
10 | #endif
11 |
12 | public typealias Attributes = [NSAttributedString.Key: Any]
| `- error: cannot find type 'NSAttributedString' in scope
13 |
14 | @resultBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
10 | var string: String { get }
11 | var attributes: Attributes { get }
12 | var attributedString: NSAttributedString { get }
| `- error: cannot find type 'NSAttributedString' in scope
13 | }
14 |
BUILD FAILURE 6.1 linux