Build Information
Failed to build NSAttributedStringBuilder, reference master (873f3e
), with Swift 5.10 for Linux on 26 Jul 2024 08:51:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.48.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ethanhuang13/NSAttributedStringBuilder.git
Reference: master
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
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 873f3e3 Update indentation for conditional code
Cloned https://github.com/ethanhuang13/NSAttributedStringBuilder.git
Revision (git rev-parse @):
873f3e3b27cceac11c84e269dde9c610ddb2a018
SUCCESS checkout https://github.com/ethanhuang13/NSAttributedStringBuilder.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $PWD
https://github.com/ethanhuang13/NSAttributedStringBuilder.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:f0b51be07fbc8a0d4d15ad969175777a256c8ed4ef7ff1497c5f9d7800160a18
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling NSAttributedStringBuilder Link.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:9:18: error: cannot find type 'NSAttributedString' in scope
public extension NSAttributedString {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:7:25: error: cannot find type 'NSAttributedString' in scope
public typealias Link = NSAttributedString.Link
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
public typealias Attributes = [NSAttributedString.Key: Any]
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
var attributedString: NSAttributedString { get }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:13:44: error: cannot find type 'URL' in scope
public init(_ string: String, url: URL, attributes: Attributes = [:]) {
^~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:25:25: error: cannot find type 'URL' in scope
public let url: URL
^~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:28:38: error: cannot find type 'NSAttributedString' in scope
public var attributedString: NSAttributedString {
^~~~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/9] Compiling NSAttributedStringBuilder ImageAttachment.swift
[5/9] Compiling NSAttributedStringBuilder AText.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:9:18: error: cannot find type 'NSAttributedString' in scope
public extension NSAttributedString {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:7:26: error: cannot find type 'NSAttributedString' in scope
public typealias AText = NSAttributedString.AttrText
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
public typealias Attributes = [NSAttributedString.Key: Any]
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
var attributedString: NSAttributedString { get }
^~~~~~~~~~~~~~~~~~
[6/9] Emitting module NSAttributedStringBuilder
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:9:18: error: cannot find type 'NSAttributedString' in scope
public extension NSAttributedString {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:7:26: error: cannot find type 'NSAttributedString' in scope
public typealias AText = NSAttributedString.AttrText
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
public typealias Attributes = [NSAttributedString.Key: Any]
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
var attributedString: NSAttributedString { get }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:29:27: error: cannot find type 'NSAttributedString' in scope
var attributedString: NSAttributedString {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:33:36: error: cannot find type 'NSAttributedString' in scope
func attribute(_ newAttribute: NSAttributedString.Key, value: Any) -> Component {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:49:35: error: cannot find type 'Color' in scope
func backgroundColor(_ color: Color) -> Component {
^~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:53:43: error: cannot find type 'CGFloat' in scope
func baselineOffset(_ baselineOffset: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:57:23: error: cannot find type 'Font' in scope
func font(_ font: Font) -> Component {
^~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:61:35: error: cannot find type 'Color' in scope
func foregroundColor(_ color: Color) -> Component {
^~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:65:33: error: cannot find type 'CGFloat' in scope
func expansion(_ expansion: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:69:26: error: cannot find type 'CGFloat' in scope
func kerning(_ kern: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:24: error: cannot find type 'Color' in scope
func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
^~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:46: error: cannot find type 'CGFloat' in scope
func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:58: error: cannot find type 'CGFloat' in scope
func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:70: error: cannot find type 'CGFloat' in scope
func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:89:31: error: cannot find type 'NSUnderlineStyle' in scope
func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:89:56: error: cannot find type 'Color' in scope
func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
^~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:98:24: error: cannot find type 'CGFloat' in scope
func stroke(width: CGFloat, color: Color? = nil) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:98:40: error: cannot find type 'Color' in scope
func stroke(width: CGFloat, color: Color? = nil) -> Component {
^~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:107:35: error: cannot find type 'NSAttributedString' in scope
func textEffect(_ textEffect: NSAttributedString.TextEffectStyle) -> Component {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:111:29: error: cannot find type 'NSUnderlineStyle' in scope
func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:111:54: error: cannot find type 'Color' in scope
func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
^~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:120:47: error: cannot find type 'NSWritingDirection' in scope
func writingDirection(_ writingDirection: NSWritingDirection) -> Component {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:134:43: error: cannot find type 'NSParagraphStyle' in scope
func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Component {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:138:43: error: cannot find type 'NSMutableParagraphStyle' in scope
func paragraphStyle(_ paragraphStyle: NSMutableParagraphStyle) -> Component {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:142:48: error: cannot find type 'NSMutableParagraphStyle' in scope
private func getMutableParagraphStyle() -> NSMutableParagraphStyle {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:153:33: error: cannot find type 'NSTextAlignment' in scope
func alignment(_ alignment: NSTextAlignment) -> Component {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:159:40: error: cannot find type 'CGFloat' in scope
func firstLineHeadIndent(_ indent: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:165:31: error: cannot find type 'CGFloat' in scope
func headIndent(_ indent: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:171:31: error: cannot find type 'CGFloat' in scope
func tailIndent(_ indent: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:177:42: error: cannot find type 'NSLineBreakMode' in scope
func lineBreakeMode(_ lineBreakMode: NSLineBreakMode) -> Component {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:183:31: error: cannot find type 'CGFloat' in scope
func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:183:53: error: cannot find type 'CGFloat' in scope
func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:183:75: error: cannot find type 'CGFloat' in scope
func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:191:33: error: cannot find type 'CGFloat' in scope
func lineSpacing(_ spacing: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:197:38: error: cannot find type 'CGFloat' in scope
func paragraphSpacing(_ spacing: CGFloat, before: CGFloat = 0) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:197:55: error: cannot find type 'CGFloat' in scope
func paragraphSpacing(_ spacing: CGFloat, before: CGFloat = 0) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:204:55: error: cannot find type 'NSWritingDirection' in scope
func baseWritingDirection(_ baseWritingDirection: NSWritingDirection) -> Component {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:223:33: error: cannot find type 'NSTextTab' in scope
func tabsStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Component {
^~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:223:62: error: cannot find type 'CGFloat' in scope
func tabsStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:9:18: error: cannot find type 'NSAttributedString' in scope
public extension NSAttributedString {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Link.swift:7:25: error: cannot find type 'NSAttributedString' in scope
public typealias Link = NSAttributedString.Link
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:25:18: error: cannot find type 'NSAttributedString' in scope
public extension NSAttributedString {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:16:66: error: cannot find type 'NSAttributedString' in scope
public static func buildBlock(_ components: Component...) -> NSAttributedString {
^~~~~~~~~~~~~~~~~~
[7/9] Compiling NSAttributedStringBuilder Component.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
public typealias Attributes = [NSAttributedString.Key: Any]
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
var attributedString: NSAttributedString { get }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:29:27: error: cannot find type 'NSAttributedString' in scope
var attributedString: NSAttributedString {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:33:36: error: cannot find type 'NSAttributedString' in scope
func attribute(_ newAttribute: NSAttributedString.Key, value: Any) -> Component {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:49:35: error: cannot find type 'Color' in scope
func backgroundColor(_ color: Color) -> Component {
^~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:53:43: error: cannot find type 'CGFloat' in scope
func baselineOffset(_ baselineOffset: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:57:23: error: cannot find type 'Font' in scope
func font(_ font: Font) -> Component {
^~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:61:35: error: cannot find type 'Color' in scope
func foregroundColor(_ color: Color) -> Component {
^~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:65:33: error: cannot find type 'CGFloat' in scope
func expansion(_ expansion: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:69:26: error: cannot find type 'CGFloat' in scope
func kerning(_ kern: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:24: error: cannot find type 'Color' in scope
func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
^~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:46: error: cannot find type 'CGFloat' in scope
func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:58: error: cannot find type 'CGFloat' in scope
func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:81:70: error: cannot find type 'CGFloat' in scope
func shadow(color: Color? = nil, radius: CGFloat, x: CGFloat, y: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:89:31: error: cannot find type 'NSUnderlineStyle' in scope
func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:89:56: error: cannot find type 'Color' in scope
func strikethrough(style: NSUnderlineStyle, color: Color? = nil) -> Component {
^~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:98:24: error: cannot find type 'CGFloat' in scope
func stroke(width: CGFloat, color: Color? = nil) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:98:40: error: cannot find type 'Color' in scope
func stroke(width: CGFloat, color: Color? = nil) -> Component {
^~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:107:35: error: cannot find type 'NSAttributedString' in scope
func textEffect(_ textEffect: NSAttributedString.TextEffectStyle) -> Component {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:111:29: error: cannot find type 'NSUnderlineStyle' in scope
func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:111:54: error: cannot find type 'Color' in scope
func underline(_ style: NSUnderlineStyle, color: Color? = nil) -> Component {
^~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:120:47: error: cannot find type 'NSWritingDirection' in scope
func writingDirection(_ writingDirection: NSWritingDirection) -> Component {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:134:43: error: cannot find type 'NSParagraphStyle' in scope
func paragraphStyle(_ paragraphStyle: NSParagraphStyle) -> Component {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:138:43: error: cannot find type 'NSMutableParagraphStyle' in scope
func paragraphStyle(_ paragraphStyle: NSMutableParagraphStyle) -> Component {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:142:48: error: cannot find type 'NSMutableParagraphStyle' in scope
private func getMutableParagraphStyle() -> NSMutableParagraphStyle {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:153:33: error: cannot find type 'NSTextAlignment' in scope
func alignment(_ alignment: NSTextAlignment) -> Component {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:159:40: error: cannot find type 'CGFloat' in scope
func firstLineHeadIndent(_ indent: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:165:31: error: cannot find type 'CGFloat' in scope
func headIndent(_ indent: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:171:31: error: cannot find type 'CGFloat' in scope
func tailIndent(_ indent: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:177:42: error: cannot find type 'NSLineBreakMode' in scope
func lineBreakeMode(_ lineBreakMode: NSLineBreakMode) -> Component {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:183:31: error: cannot find type 'CGFloat' in scope
func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:183:53: error: cannot find type 'CGFloat' in scope
func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:183:75: error: cannot find type 'CGFloat' in scope
func lineHeight(multiple: CGFloat = 0, maximum: CGFloat = 0, minimum: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:191:33: error: cannot find type 'CGFloat' in scope
func lineSpacing(_ spacing: CGFloat) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:197:38: error: cannot find type 'CGFloat' in scope
func paragraphSpacing(_ spacing: CGFloat, before: CGFloat = 0) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:197:55: error: cannot find type 'CGFloat' in scope
func paragraphSpacing(_ spacing: CGFloat, before: CGFloat = 0) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:204:55: error: cannot find type 'NSWritingDirection' in scope
func baseWritingDirection(_ baseWritingDirection: NSWritingDirection) -> Component {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:223:33: error: cannot find type 'NSTextTab' in scope
func tabsStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Component {
^~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:223:62: error: cannot find type 'CGFloat' in scope
func tabsStops(_ tabStops: [NSTextTab], defaultInterval: CGFloat = 0) -> Component {
^~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/AText.swift:7:26: error: cannot find type 'NSAttributedString' in scope
public typealias AText = NSAttributedString.AttrText
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:50:22: error: reference to member 'backgroundColor' cannot be resolved without a contextual type
attributes([.backgroundColor: color])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:54:22: error: reference to member 'baselineOffset' cannot be resolved without a contextual type
attributes([.baselineOffset: baselineOffset])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:58:22: error: reference to member 'font' cannot be resolved without a contextual type
attributes([.font: font])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:62:22: error: reference to member 'foregroundColor' cannot be resolved without a contextual type
attributes([.foregroundColor: color])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:66:22: error: reference to member 'expansion' cannot be resolved without a contextual type
attributes([.expansion: expansion])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:70:22: error: reference to member 'kern' cannot be resolved without a contextual type
attributes([.kern: kern])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:74:22: error: reference to member 'ligature' cannot be resolved without a contextual type
attributes([.ligature: ligature.rawValue])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:78:22: error: reference to member 'obliqueness' cannot be resolved without a contextual type
attributes([.obliqueness: obliqueness])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:82:22: error: cannot find 'NSShadow' in scope
let shadow = NSShadow()
^~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:85:32: error: cannot infer contextual base in reference to member 'init'
shadow.shadowOffset = .init(width: x, height: y)
~^~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:86:29: error: reference to member 'shadow' cannot be resolved without a contextual type
return attributes([.shadow: shadow])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:91:33: error: reference to member 'strikethroughStyle' cannot be resolved without a contextual type
return attributes([.strikethroughStyle: style.rawValue,
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:92:33: error: reference to member 'strikethroughColor' cannot be resolved without a contextual type
.strikethroughColor: color])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:94:33: error: reference to member 'strikethroughStyle' cannot be resolved without a contextual type
return attributes([.strikethroughStyle: style.rawValue])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:100:33: error: reference to member 'strokeWidth' cannot be resolved without a contextual type
return attributes([.strokeWidth: width,
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:101:33: error: reference to member 'strokeColor' cannot be resolved without a contextual type
.strokeColor: color])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:103:33: error: reference to member 'strokeWidth' cannot be resolved without a contextual type
return attributes([.strokeWidth: width])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:108:22: error: reference to member 'textEffect' cannot be resolved without a contextual type
attributes([.textEffect: textEffect])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:113:33: error: reference to member 'underlineStyle' cannot be resolved without a contextual type
return attributes([.underlineStyle: style.rawValue,
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:114:33: error: reference to member 'underlineColor' cannot be resolved without a contextual type
.underlineColor: color])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:116:33: error: reference to member 'underlineStyle' cannot be resolved without a contextual type
return attributes([.underlineStyle: style.rawValue])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:121:22: error: reference to member 'writingDirection' cannot be resolved without a contextual type
attributes([.writingDirection: writingDirection.rawValue])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:135:22: error: reference to member 'paragraphStyle' cannot be resolved without a contextual type
attributes([.paragraphStyle: paragraphStyle])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:139:22: error: reference to member 'paragraphStyle' cannot be resolved without a contextual type
attributes([.paragraphStyle: paragraphStyle])
^
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:143:54: error: cannot find type 'NSMutableParagraphStyle' in scope
if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:143:34: error: cannot infer contextual base in reference to member 'paragraphStyle'
if let mps = attributes[.paragraphStyle] as? NSMutableParagraphStyle {
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:145:60: error: cannot find type 'NSParagraphStyle' in scope
} else if let ps = attributes[.paragraphStyle] as? NSParagraphStyle,
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:145:40: error: cannot infer contextual base in reference to member 'paragraphStyle'
} else if let ps = attributes[.paragraphStyle] as? NSParagraphStyle,
~^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:146:50: error: cannot find type 'NSMutableParagraphStyle' in scope
let mps = ps.mutableCopy() as? NSMutableParagraphStyle {
^~~~~~~~~~~~~~~~~~~~~~~
[8/9] Compiling NSAttributedStringBuilder StaticComponents.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
public typealias Attributes = [NSAttributedString.Key: Any]
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
var attributedString: NSAttributedString { get }
^~~~~~~~~~~~~~~~~~
[9/9] Compiling NSAttributedStringBuilder NSAttributedStringBuilder.swift
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:25:18: error: cannot find type 'NSAttributedString' in scope
public extension NSAttributedString {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:12:32: error: cannot find type 'NSAttributedString' in scope
public typealias Attributes = [NSAttributedString.Key: Any]
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:16:66: error: cannot find type 'NSAttributedString' in scope
public static func buildBlock(_ components: Component...) -> NSAttributedString {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:17:19: error: cannot find 'NSMutableAttributedString' in scope
let mas = NSMutableAttributedString(string: "")
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:12:27: error: cannot find type 'NSAttributedString' in scope
var attributedString: NSAttributedString { get }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/Components/Component.swift:29:27: error: cannot find type 'NSAttributedString' in scope
var attributedString: NSAttributedString {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NSAttributedStringBuilder/NSAttributedStringBuilder.swift:26:66: error: cannot find type 'NSAttributedString' in scope
convenience init(@NSAttributedStringBuilder _ builder: () -> NSAttributedString) {
^~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux