Build Information
Failed to build NativeMarkKit, reference master (c58eb7
), with Swift 6.1 for Linux on 26 Apr 2025 22:35:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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
| `- note: candidate would match if 'TextContainerStyle' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'TextContainerStyle' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'TextContainerStyle' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(TextContainerStyle, TextContainerStyle) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(TextContainerStyle, TextContainerStyle) -> Bool'
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:81:9: error: cannot find 'NativeBezierPath' in scope
79 | }
80 | color.setFill()
81 | NativeBezierPath(rect: frame).fill()
| `- error: cannot find 'NativeBezierPath' in scope
82 | }
83 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:15:24: error: cannot find type 'NativeColor' in scope
13 | final class ThematicBreakAttachment: NativeTextAttachment {
14 | let thickness: CGFloat
15 | private let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
16 |
17 | init(thickness: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:28:51: error: cannot find type 'NSTextContainer' in scope
26 | }
27 |
28 | override func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
29 | let maxWidth = textContainer?.size.width ?? lineFrag.width
30 | return CGRect(x: 0, y: 0, width: min(maxWidth, lineFrag.width), height: thickness)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:25:14: error: value of type 'CGRect' has no member 'fill'
23 | override func draw(in rect: CGRect) {
24 | color.set()
25 | rect.fill()
| `- error: value of type 'CGRect' has no member 'fill'
26 | }
27 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/URLOpener.swift:15:16: error: Unsupported platform
13 | UIApplication.shared.open(url)
14 | #else
15 | #error("Unsupported platform")
| `- error: Unsupported platform
16 | #endif
17 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByHeight.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByHeight.swift:13:56: error: cannot find type 'NativeImage' in scope
11 | public init() {}
12 |
13 | public func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
14 | let aspectRatio = image.size.height / image.size.width
15 | let height = min(lineFragment.height, image.size.height)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByWidth.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByWidth.swift:13:56: error: cannot find type 'NativeImage' in scope
11 | public init() {}
12 |
13 | public func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
14 | let aspectRatio = image.size.width / image.size.height
15 | let width = min(lineFragment.width, image.size.width)
[131/152] Compiling NativeMarkKit UnorderedListMarkerFormatValue.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:21:8: error: Unsupported platform
19 | import UIKit
20 | #else
21 | #error("Unsupported platform")
| `- error: Unsupported platform
22 | #endif
23 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:24:29: error: cannot find type 'NSTextAttachment' in scope
22 | #endif
23 |
24 | class NativeTextAttachment: NSTextAttachment {
| `- error: cannot find type 'NSTextAttachment' in scope
25 | var characterIndex: Int?
26 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:43:42: error: cannot find type 'NSTextContainer' in scope
41 | }
42 |
43 | func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
44 | // override point
45 | return .zero
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:49:123: error: cannot find type 'NativeImage' in scope
47 |
48 | // These are used by iOS. They exist for macOS, but aren't called.
49 | override func image(forBounds imageBounds: CGRect, textContainer: NSTextContainer?, characterIndex charIndex: Int) -> NativeImage? {
| `- error: cannot find type 'NativeImage' in scope
50 | NativeImage.make(size: imageBounds.size) {
51 | let bounds = CGRect(origin: .zero, size: imageBounds.size)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:49:71: error: cannot find type 'NSTextContainer' in scope
47 |
48 | // These are used by iOS. They exist for macOS, but aren't called.
49 | override func image(forBounds imageBounds: CGRect, textContainer: NSTextContainer?, characterIndex charIndex: Int) -> NativeImage? {
| `- error: cannot find type 'NSTextContainer' in scope
50 | NativeImage.make(size: imageBounds.size) {
51 | let bounds = CGRect(origin: .zero, size: imageBounds.size)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:56:55: error: cannot find type 'NSTextContainer' in scope
54 | }
55 |
56 | override func attachmentBounds(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect, glyphPosition position: CGPoint, characterIndex charIndex: Int) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
57 | self.characterIndex = charIndex
58 | return lineFragment(for: textContainer, proposedLineFragment: lineFrag)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:28:9: error: 'super' cannot be used in class 'NativeTextAttachment' because it has no superclass
26 |
27 | init() {
28 | super.init(data: nil, ofType: nil)
| `- error: 'super' cannot be used in class 'NativeTextAttachment' because it has no superclass
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:28:26: error: 'nil' requires a contextual type
26 |
27 | init() {
28 | super.init(data: nil, ofType: nil)
| `- error: 'nil' requires a contextual type
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:28:39: error: 'nil' requires a contextual type
26 |
27 | init() {
28 | super.init(data: nil, ofType: nil)
| `- error: 'nil' requires a contextual type
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:448:49: error: cannot find type 'NSTextAttachment' in scope
446 | }
447 |
448 | func renderTextAttachment(_ textAttachment: NSTextAttachment, with state: State, into result: NSMutableAttributedString) {
| `- error: cannot find type 'NSTextAttachment' in scope
449 | let startLocation = result.length
450 | result.append(NSAttributedString(attachment: textAttachment))
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:459:87: error: cannot find type 'NativeFont' in scope
457 | }
458 |
459 | func defaultFont(at characterIndex: Int, in result: NSMutableAttributedString) -> NativeFont {
| `- error: cannot find type 'NativeFont' in scope
460 | let limitedCharacterIndex = max(min(characterIndex, result.length - 1), 0)
461 | return result.attribute(.font, at: limitedCharacterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:14:48: error: missing argument for parameter 'string' in call
12 |
13 | func render(_ document: Document, with stylesheet: StyleSheet, environment: Environment) -> NSAttributedString {
14 | let result = NSMutableAttributedString()
| `- error: missing argument for parameter 'string' in call
15 | let state = State(stylesheet: stylesheet, environment: environment)
16 | state.push(.document)
Foundation.NSMutableAttributedString.init:2:17: note: 'init(string:)' declared here
1 | class NSMutableAttributedString {
2 | override public init(string: String)}
| `- note: 'init(string:)' declared here
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:183:57: error: cannot find type 'NativeColor' in scope
181 | let attributes = state.attributes()
182 | let thickness = attributes[.thematicBreakThickness] as? CGFloat ?? 1.0
183 | let color = attributes[.thematicBreakColor] as? NativeColor ?? .adaptableSeparatorColor
| `- error: cannot find type 'NativeColor' in scope
184 | let attachment = ThematicBreakAttachment(thickness: thickness, color: color)
185 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:17:37: error: cannot find type 'NativeColor' in scope
15 | private let color: NativeColor
16 |
17 | init(thickness: CGFloat, color: NativeColor) {
| `- error: cannot find type 'NativeColor' in scope
18 | self.thickness = thickness
19 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:228:59: error: cannot find type 'NativeColor' in scope
226 | let borderValue = attrs[.blockBorder] as? BorderValue
227 | let paddingValue = attrs[.blockPadding] as? PaddingValue
228 | let backgroundValue = attrs[.blockBackground] as? NativeColor
| `- error: cannot find type 'NativeColor' in scope
229 | return TextContainerStyle(margin: marginValue?.margin,
230 | border: borderValue?.border,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:282:30: error: cannot find 'TaskItemTextAttachment' in scope
280 | if case .paragraph(let p) = item.elements.first, let taskListItemMark = p.taskListItemMark {
281 | let isChecked = taskListItemMark.contentText != " "
282 | let attachment = TaskItemTextAttachment(isChecked: isChecked)
| `- error: cannot find 'TaskItemTextAttachment' in scope
283 | let startLocation = result.length
284 | result.append(NSAttributedString(attachment: attachment))
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:284:27: error: no exact matches in call to initializer
282 | let attachment = TaskItemTextAttachment(isChecked: isChecked)
283 | let startLocation = result.length
284 | result.append(NSAttributedString(attachment: attachment))
| `- error: no exact matches in call to initializer
285 | result.addAttributes(state.attributes(),
286 | range: NSRange(location: startLocation, length: result.length - startLocation))
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
1 | class NSAttributedString {
2 | public init(string: String)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
3 |
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
1 | class NSAttributedString {
2 | public init(attributedString: NSAttributedString)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:450:23: error: no exact matches in call to initializer
448 | func renderTextAttachment(_ textAttachment: NSTextAttachment, with state: State, into result: NSMutableAttributedString) {
449 | let startLocation = result.length
450 | result.append(NSAttributedString(attachment: textAttachment))
| `- error: no exact matches in call to initializer
451 | result.addAttributes(state.attributes(), range: NSRange(location: startLocation, length: result.length - startLocation))
452 | }
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
1 | class NSAttributedString {
2 | public init(string: String)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
3 |
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
1 | class NSAttributedString {
2 | public init(attributedString: NSAttributedString)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:456:23: error: no exact matches in call to initializer
454 | func insertSpacer(_ lengthInPoints: CGFloat, at characterIndex: Int, in result: NSMutableAttributedString) {
455 | let attachment = SpacerAttachment(lengthInPoints: lengthInPoints)
456 | result.insert(NSAttributedString(attachment: attachment), at: characterIndex)
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'SpacerAttachment')
| `- note: candidate expects value of type 'NSAttributedString' for parameter #1 (got 'SpacerAttachment')
457 | }
458 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/SpacerAttachment.swift:16:51: error: cannot find type 'NSTextContainer' in scope
14 | }
15 |
16 | override func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
17 | CGRect(x: 0, y: 0, width: lengthInPoints, height: 1)
18 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:13:8: error: Unsupported platform
11 | }
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:16:28: error: cannot find type 'NSTextContainer' in scope
14 | #endif
15 |
16 | final class TextContainer: NSTextContainer {
| `- error: cannot find type 'NSTextContainer' in scope
17 | var origin: CGPoint = .zero
18 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:29:18: error: property does not override any property from its superclass
27 | }
28 |
29 | override var isSimpleRectangularTextContainer: Bool { false }
| `- error: property does not override any property from its superclass
30 | }
31 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:20:9: error: 'super' cannot be used in class 'TextContainer' because it has no superclass
18 |
19 | init() {
20 | super.init(size: .zero)
| `- error: 'super' cannot be used in class 'TextContainer' because it has no superclass
21 | lineFragmentPadding = 0
22 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:20:27: error: cannot infer contextual base in reference to member 'zero'
18 |
19 | init() {
20 | super.init(size: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
21 | lineFragmentPadding = 0
22 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:21:9: error: cannot find 'lineFragmentPadding' in scope
19 | init() {
20 | super.init(size: .zero)
21 | lineFragmentPadding = 0
| `- error: cannot find 'lineFragmentPadding' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:25:9: error: 'super' cannot be used in class 'TextContainer' because it has no superclass
23 |
24 | required init(coder: NSCoder) {
25 | super.init(coder: coder)
| `- error: 'super' cannot be used in class 'TextContainer' because it has no superclass
26 | lineFragmentPadding = 0
27 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:26:9: error: cannot find 'lineFragmentPadding' in scope
24 | required init(coder: NSCoder) {
25 | super.init(coder: coder)
26 | lineFragmentPadding = 0
| `- error: cannot find 'lineFragmentPadding' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:27:46: error: value of type 'LayoutManager' has no member 'textContainers'
25 |
26 | func makeTextContainer() -> TextContainer {
27 | if let textContainer = layoutManager.textContainers.at(nextTextContainerToUse) as? TextContainer {
| `- error: value of type 'LayoutManager' has no member 'textContainers'
28 | textContainer.origin = .zero
29 | nextTextContainerToUse += 1 // nice, reuse
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:28:37: error: cannot infer contextual base in reference to member 'zero'
26 | func makeTextContainer() -> TextContainer {
27 | if let textContainer = layoutManager.textContainers.at(nextTextContainerToUse) as? TextContainer {
28 | textContainer.origin = .zero
| `- error: cannot infer contextual base in reference to member 'zero'
29 | nextTextContainerToUse += 1 // nice, reuse
30 | return textContainer
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:33:27: error: value of type 'LayoutManager' has no member 'addTextContainer'
31 | } else {
32 | let textContainer = TextContainer()
33 | layoutManager.addTextContainer(textContainer)
| `- error: value of type 'LayoutManager' has no member 'addTextContainer'
34 | nextTextContainerToUse += 1 // can't use this one, so skip it
35 | return textContainer
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:40:29: error: value of type 'LayoutManager' has no member 'textContainers'
38 |
39 | func removeUnusedTextContainers() {
40 | while layoutManager.textContainers.count > nextTextContainerToUse {
| `- error: value of type 'LayoutManager' has no member 'textContainers'
41 | layoutManager.removeTextContainer(at: layoutManager.textContainers.count - 1)
42 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:41:27: error: value of type 'LayoutManager' has no member 'removeTextContainer'
39 | func removeUnusedTextContainers() {
40 | while layoutManager.textContainers.count > nextTextContainerToUse {
41 | layoutManager.removeTextContainer(at: layoutManager.textContainers.count - 1)
| `- error: value of type 'LayoutManager' has no member 'removeTextContainer'
42 | }
43 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:41:65: error: value of type 'LayoutManager' has no member 'textContainers'
39 | func removeUnusedTextContainers() {
40 | while layoutManager.textContainers.count > nextTextContainerToUse {
41 | layoutManager.removeTextContainer(at: layoutManager.textContainers.count - 1)
| `- error: value of type 'LayoutManager' has no member 'textContainers'
42 | }
43 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:8:8: error: type 'TextContainerStyle' does not conform to protocol 'Equatable'
6 | #endif
7 |
8 | struct TextContainerStyle: Equatable {
| |- error: type 'TextContainerStyle' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
9 | let margin: PointMargin?
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'TextContainerStyle' to 'Equatable'
13 | }
14 |
Swift.==:1:24: note: candidate would match if 'TextContainerStyle' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'TextContainerStyle' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'TextContainerStyle' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'TextContainerStyle' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(TextContainerStyle, TextContainerStyle) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(TextContainerStyle, TextContainerStyle) -> Bool'
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:81:9: error: cannot find 'NativeBezierPath' in scope
79 | }
80 | color.setFill()
81 | NativeBezierPath(rect: frame).fill()
| `- error: cannot find 'NativeBezierPath' in scope
82 | }
83 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:15:24: error: cannot find type 'NativeColor' in scope
13 | final class ThematicBreakAttachment: NativeTextAttachment {
14 | let thickness: CGFloat
15 | private let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
16 |
17 | init(thickness: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:28:51: error: cannot find type 'NSTextContainer' in scope
26 | }
27 |
28 | override func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
29 | let maxWidth = textContainer?.size.width ?? lineFrag.width
30 | return CGRect(x: 0, y: 0, width: min(maxWidth, lineFrag.width), height: thickness)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:25:14: error: value of type 'CGRect' has no member 'fill'
23 | override func draw(in rect: CGRect) {
24 | color.set()
25 | rect.fill()
| `- error: value of type 'CGRect' has no member 'fill'
26 | }
27 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/URLOpener.swift:15:16: error: Unsupported platform
13 | UIApplication.shared.open(url)
14 | #else
15 | #error("Unsupported platform")
| `- error: Unsupported platform
16 | #endif
17 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByHeight.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByHeight.swift:13:56: error: cannot find type 'NativeImage' in scope
11 | public init() {}
12 |
13 | public func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
14 | let aspectRatio = image.size.height / image.size.width
15 | let height = min(lineFragment.height, image.size.height)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByWidth.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByWidth.swift:13:56: error: cannot find type 'NativeImage' in scope
11 | public init() {}
12 |
13 | public func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
14 | let aspectRatio = image.size.width / image.size.height
15 | let width = min(lineFragment.width, image.size.width)
[132/152] Compiling NativeMarkKit AspectScaleDownByHeight.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:21:8: error: Unsupported platform
19 | import UIKit
20 | #else
21 | #error("Unsupported platform")
| `- error: Unsupported platform
22 | #endif
23 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:24:29: error: cannot find type 'NSTextAttachment' in scope
22 | #endif
23 |
24 | class NativeTextAttachment: NSTextAttachment {
| `- error: cannot find type 'NSTextAttachment' in scope
25 | var characterIndex: Int?
26 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:43:42: error: cannot find type 'NSTextContainer' in scope
41 | }
42 |
43 | func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
44 | // override point
45 | return .zero
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:49:123: error: cannot find type 'NativeImage' in scope
47 |
48 | // These are used by iOS. They exist for macOS, but aren't called.
49 | override func image(forBounds imageBounds: CGRect, textContainer: NSTextContainer?, characterIndex charIndex: Int) -> NativeImage? {
| `- error: cannot find type 'NativeImage' in scope
50 | NativeImage.make(size: imageBounds.size) {
51 | let bounds = CGRect(origin: .zero, size: imageBounds.size)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:49:71: error: cannot find type 'NSTextContainer' in scope
47 |
48 | // These are used by iOS. They exist for macOS, but aren't called.
49 | override func image(forBounds imageBounds: CGRect, textContainer: NSTextContainer?, characterIndex charIndex: Int) -> NativeImage? {
| `- error: cannot find type 'NSTextContainer' in scope
50 | NativeImage.make(size: imageBounds.size) {
51 | let bounds = CGRect(origin: .zero, size: imageBounds.size)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:56:55: error: cannot find type 'NSTextContainer' in scope
54 | }
55 |
56 | override func attachmentBounds(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect, glyphPosition position: CGPoint, characterIndex charIndex: Int) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
57 | self.characterIndex = charIndex
58 | return lineFragment(for: textContainer, proposedLineFragment: lineFrag)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:28:9: error: 'super' cannot be used in class 'NativeTextAttachment' because it has no superclass
26 |
27 | init() {
28 | super.init(data: nil, ofType: nil)
| `- error: 'super' cannot be used in class 'NativeTextAttachment' because it has no superclass
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:28:26: error: 'nil' requires a contextual type
26 |
27 | init() {
28 | super.init(data: nil, ofType: nil)
| `- error: 'nil' requires a contextual type
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:28:39: error: 'nil' requires a contextual type
26 |
27 | init() {
28 | super.init(data: nil, ofType: nil)
| `- error: 'nil' requires a contextual type
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:448:49: error: cannot find type 'NSTextAttachment' in scope
446 | }
447 |
448 | func renderTextAttachment(_ textAttachment: NSTextAttachment, with state: State, into result: NSMutableAttributedString) {
| `- error: cannot find type 'NSTextAttachment' in scope
449 | let startLocation = result.length
450 | result.append(NSAttributedString(attachment: textAttachment))
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:459:87: error: cannot find type 'NativeFont' in scope
457 | }
458 |
459 | func defaultFont(at characterIndex: Int, in result: NSMutableAttributedString) -> NativeFont {
| `- error: cannot find type 'NativeFont' in scope
460 | let limitedCharacterIndex = max(min(characterIndex, result.length - 1), 0)
461 | return result.attribute(.font, at: limitedCharacterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:14:48: error: missing argument for parameter 'string' in call
12 |
13 | func render(_ document: Document, with stylesheet: StyleSheet, environment: Environment) -> NSAttributedString {
14 | let result = NSMutableAttributedString()
| `- error: missing argument for parameter 'string' in call
15 | let state = State(stylesheet: stylesheet, environment: environment)
16 | state.push(.document)
Foundation.NSMutableAttributedString.init:2:17: note: 'init(string:)' declared here
1 | class NSMutableAttributedString {
2 | override public init(string: String)}
| `- note: 'init(string:)' declared here
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:183:57: error: cannot find type 'NativeColor' in scope
181 | let attributes = state.attributes()
182 | let thickness = attributes[.thematicBreakThickness] as? CGFloat ?? 1.0
183 | let color = attributes[.thematicBreakColor] as? NativeColor ?? .adaptableSeparatorColor
| `- error: cannot find type 'NativeColor' in scope
184 | let attachment = ThematicBreakAttachment(thickness: thickness, color: color)
185 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:17:37: error: cannot find type 'NativeColor' in scope
15 | private let color: NativeColor
16 |
17 | init(thickness: CGFloat, color: NativeColor) {
| `- error: cannot find type 'NativeColor' in scope
18 | self.thickness = thickness
19 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:228:59: error: cannot find type 'NativeColor' in scope
226 | let borderValue = attrs[.blockBorder] as? BorderValue
227 | let paddingValue = attrs[.blockPadding] as? PaddingValue
228 | let backgroundValue = attrs[.blockBackground] as? NativeColor
| `- error: cannot find type 'NativeColor' in scope
229 | return TextContainerStyle(margin: marginValue?.margin,
230 | border: borderValue?.border,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:282:30: error: cannot find 'TaskItemTextAttachment' in scope
280 | if case .paragraph(let p) = item.elements.first, let taskListItemMark = p.taskListItemMark {
281 | let isChecked = taskListItemMark.contentText != " "
282 | let attachment = TaskItemTextAttachment(isChecked: isChecked)
| `- error: cannot find 'TaskItemTextAttachment' in scope
283 | let startLocation = result.length
284 | result.append(NSAttributedString(attachment: attachment))
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:284:27: error: no exact matches in call to initializer
282 | let attachment = TaskItemTextAttachment(isChecked: isChecked)
283 | let startLocation = result.length
284 | result.append(NSAttributedString(attachment: attachment))
| `- error: no exact matches in call to initializer
285 | result.addAttributes(state.attributes(),
286 | range: NSRange(location: startLocation, length: result.length - startLocation))
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
1 | class NSAttributedString {
2 | public init(string: String)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
3 |
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
1 | class NSAttributedString {
2 | public init(attributedString: NSAttributedString)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:450:23: error: no exact matches in call to initializer
448 | func renderTextAttachment(_ textAttachment: NSTextAttachment, with state: State, into result: NSMutableAttributedString) {
449 | let startLocation = result.length
450 | result.append(NSAttributedString(attachment: textAttachment))
| `- error: no exact matches in call to initializer
451 | result.addAttributes(state.attributes(), range: NSRange(location: startLocation, length: result.length - startLocation))
452 | }
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
1 | class NSAttributedString {
2 | public init(string: String)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
3 |
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
1 | class NSAttributedString {
2 | public init(attributedString: NSAttributedString)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:456:23: error: no exact matches in call to initializer
454 | func insertSpacer(_ lengthInPoints: CGFloat, at characterIndex: Int, in result: NSMutableAttributedString) {
455 | let attachment = SpacerAttachment(lengthInPoints: lengthInPoints)
456 | result.insert(NSAttributedString(attachment: attachment), at: characterIndex)
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'SpacerAttachment')
| `- note: candidate expects value of type 'NSAttributedString' for parameter #1 (got 'SpacerAttachment')
457 | }
458 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/SpacerAttachment.swift:16:51: error: cannot find type 'NSTextContainer' in scope
14 | }
15 |
16 | override func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
17 | CGRect(x: 0, y: 0, width: lengthInPoints, height: 1)
18 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:13:8: error: Unsupported platform
11 | }
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:16:28: error: cannot find type 'NSTextContainer' in scope
14 | #endif
15 |
16 | final class TextContainer: NSTextContainer {
| `- error: cannot find type 'NSTextContainer' in scope
17 | var origin: CGPoint = .zero
18 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:29:18: error: property does not override any property from its superclass
27 | }
28 |
29 | override var isSimpleRectangularTextContainer: Bool { false }
| `- error: property does not override any property from its superclass
30 | }
31 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:20:9: error: 'super' cannot be used in class 'TextContainer' because it has no superclass
18 |
19 | init() {
20 | super.init(size: .zero)
| `- error: 'super' cannot be used in class 'TextContainer' because it has no superclass
21 | lineFragmentPadding = 0
22 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:20:27: error: cannot infer contextual base in reference to member 'zero'
18 |
19 | init() {
20 | super.init(size: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
21 | lineFragmentPadding = 0
22 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:21:9: error: cannot find 'lineFragmentPadding' in scope
19 | init() {
20 | super.init(size: .zero)
21 | lineFragmentPadding = 0
| `- error: cannot find 'lineFragmentPadding' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:25:9: error: 'super' cannot be used in class 'TextContainer' because it has no superclass
23 |
24 | required init(coder: NSCoder) {
25 | super.init(coder: coder)
| `- error: 'super' cannot be used in class 'TextContainer' because it has no superclass
26 | lineFragmentPadding = 0
27 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:26:9: error: cannot find 'lineFragmentPadding' in scope
24 | required init(coder: NSCoder) {
25 | super.init(coder: coder)
26 | lineFragmentPadding = 0
| `- error: cannot find 'lineFragmentPadding' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:27:46: error: value of type 'LayoutManager' has no member 'textContainers'
25 |
26 | func makeTextContainer() -> TextContainer {
27 | if let textContainer = layoutManager.textContainers.at(nextTextContainerToUse) as? TextContainer {
| `- error: value of type 'LayoutManager' has no member 'textContainers'
28 | textContainer.origin = .zero
29 | nextTextContainerToUse += 1 // nice, reuse
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:28:37: error: cannot infer contextual base in reference to member 'zero'
26 | func makeTextContainer() -> TextContainer {
27 | if let textContainer = layoutManager.textContainers.at(nextTextContainerToUse) as? TextContainer {
28 | textContainer.origin = .zero
| `- error: cannot infer contextual base in reference to member 'zero'
29 | nextTextContainerToUse += 1 // nice, reuse
30 | return textContainer
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:33:27: error: value of type 'LayoutManager' has no member 'addTextContainer'
31 | } else {
32 | let textContainer = TextContainer()
33 | layoutManager.addTextContainer(textContainer)
| `- error: value of type 'LayoutManager' has no member 'addTextContainer'
34 | nextTextContainerToUse += 1 // can't use this one, so skip it
35 | return textContainer
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:40:29: error: value of type 'LayoutManager' has no member 'textContainers'
38 |
39 | func removeUnusedTextContainers() {
40 | while layoutManager.textContainers.count > nextTextContainerToUse {
| `- error: value of type 'LayoutManager' has no member 'textContainers'
41 | layoutManager.removeTextContainer(at: layoutManager.textContainers.count - 1)
42 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:41:27: error: value of type 'LayoutManager' has no member 'removeTextContainer'
39 | func removeUnusedTextContainers() {
40 | while layoutManager.textContainers.count > nextTextContainerToUse {
41 | layoutManager.removeTextContainer(at: layoutManager.textContainers.count - 1)
| `- error: value of type 'LayoutManager' has no member 'removeTextContainer'
42 | }
43 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:41:65: error: value of type 'LayoutManager' has no member 'textContainers'
39 | func removeUnusedTextContainers() {
40 | while layoutManager.textContainers.count > nextTextContainerToUse {
41 | layoutManager.removeTextContainer(at: layoutManager.textContainers.count - 1)
| `- error: value of type 'LayoutManager' has no member 'textContainers'
42 | }
43 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:8:8: error: type 'TextContainerStyle' does not conform to protocol 'Equatable'
6 | #endif
7 |
8 | struct TextContainerStyle: Equatable {
| |- error: type 'TextContainerStyle' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
9 | let margin: PointMargin?
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'TextContainerStyle' to 'Equatable'
13 | }
14 |
Swift.==:1:24: note: candidate would match if 'TextContainerStyle' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'TextContainerStyle' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'TextContainerStyle' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'TextContainerStyle' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(TextContainerStyle, TextContainerStyle) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(TextContainerStyle, TextContainerStyle) -> Bool'
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:81:9: error: cannot find 'NativeBezierPath' in scope
79 | }
80 | color.setFill()
81 | NativeBezierPath(rect: frame).fill()
| `- error: cannot find 'NativeBezierPath' in scope
82 | }
83 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:15:24: error: cannot find type 'NativeColor' in scope
13 | final class ThematicBreakAttachment: NativeTextAttachment {
14 | let thickness: CGFloat
15 | private let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
16 |
17 | init(thickness: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:28:51: error: cannot find type 'NSTextContainer' in scope
26 | }
27 |
28 | override func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
29 | let maxWidth = textContainer?.size.width ?? lineFrag.width
30 | return CGRect(x: 0, y: 0, width: min(maxWidth, lineFrag.width), height: thickness)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:25:14: error: value of type 'CGRect' has no member 'fill'
23 | override func draw(in rect: CGRect) {
24 | color.set()
25 | rect.fill()
| `- error: value of type 'CGRect' has no member 'fill'
26 | }
27 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/URLOpener.swift:15:16: error: Unsupported platform
13 | UIApplication.shared.open(url)
14 | #else
15 | #error("Unsupported platform")
| `- error: Unsupported platform
16 | #endif
17 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByHeight.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByHeight.swift:13:56: error: cannot find type 'NativeImage' in scope
11 | public init() {}
12 |
13 | public func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
14 | let aspectRatio = image.size.height / image.size.width
15 | let height = min(lineFragment.height, image.size.height)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByWidth.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByWidth.swift:13:56: error: cannot find type 'NativeImage' in scope
11 | public init() {}
12 |
13 | public func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
14 | let aspectRatio = image.size.width / image.size.height
15 | let width = min(lineFragment.width, image.size.width)
[133/152] Compiling NativeMarkKit AspectScaleDownByWidth.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:21:8: error: Unsupported platform
19 | import UIKit
20 | #else
21 | #error("Unsupported platform")
| `- error: Unsupported platform
22 | #endif
23 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:24:29: error: cannot find type 'NSTextAttachment' in scope
22 | #endif
23 |
24 | class NativeTextAttachment: NSTextAttachment {
| `- error: cannot find type 'NSTextAttachment' in scope
25 | var characterIndex: Int?
26 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:43:42: error: cannot find type 'NSTextContainer' in scope
41 | }
42 |
43 | func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
44 | // override point
45 | return .zero
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:49:123: error: cannot find type 'NativeImage' in scope
47 |
48 | // These are used by iOS. They exist for macOS, but aren't called.
49 | override func image(forBounds imageBounds: CGRect, textContainer: NSTextContainer?, characterIndex charIndex: Int) -> NativeImage? {
| `- error: cannot find type 'NativeImage' in scope
50 | NativeImage.make(size: imageBounds.size) {
51 | let bounds = CGRect(origin: .zero, size: imageBounds.size)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:49:71: error: cannot find type 'NSTextContainer' in scope
47 |
48 | // These are used by iOS. They exist for macOS, but aren't called.
49 | override func image(forBounds imageBounds: CGRect, textContainer: NSTextContainer?, characterIndex charIndex: Int) -> NativeImage? {
| `- error: cannot find type 'NSTextContainer' in scope
50 | NativeImage.make(size: imageBounds.size) {
51 | let bounds = CGRect(origin: .zero, size: imageBounds.size)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:56:55: error: cannot find type 'NSTextContainer' in scope
54 | }
55 |
56 | override func attachmentBounds(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect, glyphPosition position: CGPoint, characterIndex charIndex: Int) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
57 | self.characterIndex = charIndex
58 | return lineFragment(for: textContainer, proposedLineFragment: lineFrag)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:28:9: error: 'super' cannot be used in class 'NativeTextAttachment' because it has no superclass
26 |
27 | init() {
28 | super.init(data: nil, ofType: nil)
| `- error: 'super' cannot be used in class 'NativeTextAttachment' because it has no superclass
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:28:26: error: 'nil' requires a contextual type
26 |
27 | init() {
28 | super.init(data: nil, ofType: nil)
| `- error: 'nil' requires a contextual type
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:28:39: error: 'nil' requires a contextual type
26 |
27 | init() {
28 | super.init(data: nil, ofType: nil)
| `- error: 'nil' requires a contextual type
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:448:49: error: cannot find type 'NSTextAttachment' in scope
446 | }
447 |
448 | func renderTextAttachment(_ textAttachment: NSTextAttachment, with state: State, into result: NSMutableAttributedString) {
| `- error: cannot find type 'NSTextAttachment' in scope
449 | let startLocation = result.length
450 | result.append(NSAttributedString(attachment: textAttachment))
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:459:87: error: cannot find type 'NativeFont' in scope
457 | }
458 |
459 | func defaultFont(at characterIndex: Int, in result: NSMutableAttributedString) -> NativeFont {
| `- error: cannot find type 'NativeFont' in scope
460 | let limitedCharacterIndex = max(min(characterIndex, result.length - 1), 0)
461 | return result.attribute(.font, at: limitedCharacterIndex, effectiveRange: nil) as? NativeFont ?? TextStyle.body.makeFont()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:14:48: error: missing argument for parameter 'string' in call
12 |
13 | func render(_ document: Document, with stylesheet: StyleSheet, environment: Environment) -> NSAttributedString {
14 | let result = NSMutableAttributedString()
| `- error: missing argument for parameter 'string' in call
15 | let state = State(stylesheet: stylesheet, environment: environment)
16 | state.push(.document)
Foundation.NSMutableAttributedString.init:2:17: note: 'init(string:)' declared here
1 | class NSMutableAttributedString {
2 | override public init(string: String)}
| `- note: 'init(string:)' declared here
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:183:57: error: cannot find type 'NativeColor' in scope
181 | let attributes = state.attributes()
182 | let thickness = attributes[.thematicBreakThickness] as? CGFloat ?? 1.0
183 | let color = attributes[.thematicBreakColor] as? NativeColor ?? .adaptableSeparatorColor
| `- error: cannot find type 'NativeColor' in scope
184 | let attachment = ThematicBreakAttachment(thickness: thickness, color: color)
185 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:17:37: error: cannot find type 'NativeColor' in scope
15 | private let color: NativeColor
16 |
17 | init(thickness: CGFloat, color: NativeColor) {
| `- error: cannot find type 'NativeColor' in scope
18 | self.thickness = thickness
19 | self.color = color
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:228:59: error: cannot find type 'NativeColor' in scope
226 | let borderValue = attrs[.blockBorder] as? BorderValue
227 | let paddingValue = attrs[.blockPadding] as? PaddingValue
228 | let backgroundValue = attrs[.blockBackground] as? NativeColor
| `- error: cannot find type 'NativeColor' in scope
229 | return TextContainerStyle(margin: marginValue?.margin,
230 | border: borderValue?.border,
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:282:30: error: cannot find 'TaskItemTextAttachment' in scope
280 | if case .paragraph(let p) = item.elements.first, let taskListItemMark = p.taskListItemMark {
281 | let isChecked = taskListItemMark.contentText != " "
282 | let attachment = TaskItemTextAttachment(isChecked: isChecked)
| `- error: cannot find 'TaskItemTextAttachment' in scope
283 | let startLocation = result.length
284 | result.append(NSAttributedString(attachment: attachment))
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:284:27: error: no exact matches in call to initializer
282 | let attachment = TaskItemTextAttachment(isChecked: isChecked)
283 | let startLocation = result.length
284 | result.append(NSAttributedString(attachment: attachment))
| `- error: no exact matches in call to initializer
285 | result.addAttributes(state.attributes(),
286 | range: NSRange(location: startLocation, length: result.length - startLocation))
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
1 | class NSAttributedString {
2 | public init(string: String)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
3 |
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
1 | class NSAttributedString {
2 | public init(attributedString: NSAttributedString)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:450:23: error: no exact matches in call to initializer
448 | func renderTextAttachment(_ textAttachment: NSTextAttachment, with state: State, into result: NSMutableAttributedString) {
449 | let startLocation = result.length
450 | result.append(NSAttributedString(attachment: textAttachment))
| `- error: no exact matches in call to initializer
451 | result.addAttributes(state.attributes(), range: NSRange(location: startLocation, length: result.length - startLocation))
452 | }
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
1 | class NSAttributedString {
2 | public init(string: String)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(string:)')
3 |
Foundation.NSAttributedString.init:2:8: note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
1 | class NSAttributedString {
2 | public init(attributedString: NSAttributedString)}
| `- note: incorrect labels for candidate (have: '(attachment:)', expected: '(attributedString:)')
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/Renderer.swift:456:23: error: no exact matches in call to initializer
454 | func insertSpacer(_ lengthInPoints: CGFloat, at characterIndex: Int, in result: NSMutableAttributedString) {
455 | let attachment = SpacerAttachment(lengthInPoints: lengthInPoints)
456 | result.insert(NSAttributedString(attachment: attachment), at: characterIndex)
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'SpacerAttachment')
| `- note: candidate expects value of type 'NSAttributedString' for parameter #1 (got 'SpacerAttachment')
457 | }
458 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/SpacerAttachment.swift:16:51: error: cannot find type 'NSTextContainer' in scope
14 | }
15 |
16 | override func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
17 | CGRect(x: 0, y: 0, width: lengthInPoints, height: 1)
18 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:13:8: error: Unsupported platform
11 | }
12 | #else
13 | #error("Unsupported platform")
| `- error: Unsupported platform
14 | #endif
15 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:16:28: error: cannot find type 'NSTextContainer' in scope
14 | #endif
15 |
16 | final class TextContainer: NSTextContainer {
| `- error: cannot find type 'NSTextContainer' in scope
17 | var origin: CGPoint = .zero
18 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:29:18: error: property does not override any property from its superclass
27 | }
28 |
29 | override var isSimpleRectangularTextContainer: Bool { false }
| `- error: property does not override any property from its superclass
30 | }
31 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:20:9: error: 'super' cannot be used in class 'TextContainer' because it has no superclass
18 |
19 | init() {
20 | super.init(size: .zero)
| `- error: 'super' cannot be used in class 'TextContainer' because it has no superclass
21 | lineFragmentPadding = 0
22 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:20:27: error: cannot infer contextual base in reference to member 'zero'
18 |
19 | init() {
20 | super.init(size: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
21 | lineFragmentPadding = 0
22 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:21:9: error: cannot find 'lineFragmentPadding' in scope
19 | init() {
20 | super.init(size: .zero)
21 | lineFragmentPadding = 0
| `- error: cannot find 'lineFragmentPadding' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:25:9: error: 'super' cannot be used in class 'TextContainer' because it has no superclass
23 |
24 | required init(coder: NSCoder) {
25 | super.init(coder: coder)
| `- error: 'super' cannot be used in class 'TextContainer' because it has no superclass
26 | lineFragmentPadding = 0
27 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainer.swift:26:9: error: cannot find 'lineFragmentPadding' in scope
24 | required init(coder: NSCoder) {
25 | super.init(coder: coder)
26 | lineFragmentPadding = 0
| `- error: cannot find 'lineFragmentPadding' in scope
27 | }
28 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:27:46: error: value of type 'LayoutManager' has no member 'textContainers'
25 |
26 | func makeTextContainer() -> TextContainer {
27 | if let textContainer = layoutManager.textContainers.at(nextTextContainerToUse) as? TextContainer {
| `- error: value of type 'LayoutManager' has no member 'textContainers'
28 | textContainer.origin = .zero
29 | nextTextContainerToUse += 1 // nice, reuse
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:28:37: error: cannot infer contextual base in reference to member 'zero'
26 | func makeTextContainer() -> TextContainer {
27 | if let textContainer = layoutManager.textContainers.at(nextTextContainerToUse) as? TextContainer {
28 | textContainer.origin = .zero
| `- error: cannot infer contextual base in reference to member 'zero'
29 | nextTextContainerToUse += 1 // nice, reuse
30 | return textContainer
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:33:27: error: value of type 'LayoutManager' has no member 'addTextContainer'
31 | } else {
32 | let textContainer = TextContainer()
33 | layoutManager.addTextContainer(textContainer)
| `- error: value of type 'LayoutManager' has no member 'addTextContainer'
34 | nextTextContainerToUse += 1 // can't use this one, so skip it
35 | return textContainer
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:40:29: error: value of type 'LayoutManager' has no member 'textContainers'
38 |
39 | func removeUnusedTextContainers() {
40 | while layoutManager.textContainers.count > nextTextContainerToUse {
| `- error: value of type 'LayoutManager' has no member 'textContainers'
41 | layoutManager.removeTextContainer(at: layoutManager.textContainers.count - 1)
42 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:41:27: error: value of type 'LayoutManager' has no member 'removeTextContainer'
39 | func removeUnusedTextContainers() {
40 | while layoutManager.textContainers.count > nextTextContainerToUse {
41 | layoutManager.removeTextContainer(at: layoutManager.textContainers.count - 1)
| `- error: value of type 'LayoutManager' has no member 'removeTextContainer'
42 | }
43 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:41:65: error: value of type 'LayoutManager' has no member 'textContainers'
39 | func removeUnusedTextContainers() {
40 | while layoutManager.textContainers.count > nextTextContainerToUse {
41 | layoutManager.removeTextContainer(at: layoutManager.textContainers.count - 1)
| `- error: value of type 'LayoutManager' has no member 'textContainers'
42 | }
43 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:8:8: error: type 'TextContainerStyle' does not conform to protocol 'Equatable'
6 | #endif
7 |
8 | struct TextContainerStyle: Equatable {
| |- error: type 'TextContainerStyle' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
9 | let margin: PointMargin?
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'TextContainerStyle' to 'Equatable'
13 | }
14 |
Swift.==:1:24: note: candidate would match if 'TextContainerStyle' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'TextContainerStyle' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'TextContainerStyle' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'TextContainerStyle' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'TextContainerStyle' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'TextContainerStyle' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'TextContainerStyle' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'TextContainerStyle' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(TextContainerStyle, TextContainerStyle) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(TextContainerStyle, TextContainerStyle) -> Bool'
3 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:81:9: error: cannot find 'NativeBezierPath' in scope
79 | }
80 | color.setFill()
81 | NativeBezierPath(rect: frame).fill()
| `- error: cannot find 'NativeBezierPath' in scope
82 | }
83 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:15:24: error: cannot find type 'NativeColor' in scope
13 | final class ThematicBreakAttachment: NativeTextAttachment {
14 | let thickness: CGFloat
15 | private let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
16 |
17 | init(thickness: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:28:51: error: cannot find type 'NSTextContainer' in scope
26 | }
27 |
28 | override func lineFragment(for textContainer: NSTextContainer?, proposedLineFragment lineFrag: CGRect) -> CGRect {
| `- error: cannot find type 'NSTextContainer' in scope
29 | let maxWidth = textContainer?.size.width ?? lineFrag.width
30 | return CGRect(x: 0, y: 0, width: min(maxWidth, lineFrag.width), height: thickness)
/host/spi-builder-workspace/Sources/NativeMarkKit/render/ThematicBreakAttachment.swift:25:14: error: value of type 'CGRect' has no member 'fill'
23 | override func draw(in rect: CGRect) {
24 | color.set()
25 | rect.fill()
| `- error: value of type 'CGRect' has no member 'fill'
26 | }
27 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/URLOpener.swift:15:16: error: Unsupported platform
13 | UIApplication.shared.open(url)
14 | #else
15 | #error("Unsupported platform")
| `- error: Unsupported platform
16 | #endif
17 | }
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByHeight.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByHeight.swift:13:56: error: cannot find type 'NativeImage' in scope
11 | public init() {}
12 |
13 | public func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
14 | let aspectRatio = image.size.height / image.size.width
15 | let height = min(lineFragment.height, image.size.height)
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByWidth.swift:7:8: error: Unsupported platform
5 | import UIKit
6 | #else
7 | #error("Unsupported platform")
| `- error: Unsupported platform
8 | #endif
9 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/AspectScaleDownByWidth.swift:13:56: error: cannot find type 'NativeImage' in scope
11 | public init() {}
12 |
13 | public func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize {
| `- error: cannot find type 'NativeImage' in scope
14 | let aspectRatio = image.size.width / image.size.height
15 | let width = min(lineFragment.width, image.size.width)
[134/152] Compiling NativeMarkKit OpenBracketParser.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[135/152] Compiling NativeMarkKit SpacesAndNewlineParser.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[136/152] Compiling NativeMarkKit StringParser.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[137/152] Compiling NativeMarkKit TextCursor.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[138/152] Compiling NativeMarkKit TextPosition.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[139/152] Compiling NativeMarkKit TextRange.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[140/152] Compiling NativeMarkKit TextResult.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[141/152] Compiling NativeMarkKit Lexer.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[142/152] Compiling NativeMarkKit Line.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[143/152] Compiling NativeMarkKit LineColumn.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[144/152] Compiling NativeMarkKit LineColumnCount.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[145/152] Compiling NativeMarkKit AbstractView.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[146/152] Compiling NativeMarkKit AccessibleURL.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[147/152] Compiling NativeMarkKit BlockQuoteTextContainerLayout.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[148/152] Compiling NativeMarkKit BorderValue.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[149/152] Compiling NativeMarkKit CGRect+Render.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[150/152] Compiling NativeMarkKit CompositeTextContainerLayout .swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[151/152] Compiling NativeMarkKit ContainerBreakValue.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
[152/152] Compiling NativeMarkKit Environment.swift
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:13:26: error: cannot find type 'NSTextStorage' in scope
11 |
12 | final class AbstractView: NSObject {
13 | private let storage: NSTextStorage
| `- error: cannot find type 'NSTextStorage' in scope
14 | private let layoutManager = LayoutManager()
15 | private let environment: Environment
/host/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:43:24: error: cannot find 'NSTextStorage' in scope
41 | self.environment = environment
42 |
43 | self.storage = NSTextStorage()
| `- error: cannot find 'NSTextStorage' in scope
44 | super.init()
45 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerLayoutBuilder.swift:13:19: error: cannot find type 'NSTextStorage' in scope
11 | private let layoutManager: LayoutManager
12 |
13 | init(storage: NSTextStorage, layoutManager: LayoutManager) {
| `- error: cannot find type 'NSTextStorage' in scope
14 | self.layoutManager = layoutManager
15 | self.containerBreaks = storage.containerBreaks()
/host/spi-builder-workspace/Sources/NativeMarkKit/style/Border.swift:16:23: error: cannot find type 'NativeColor' in scope
14 | public let shape: BorderShape
15 | public let width: CGFloat
16 | public let color: NativeColor
| `- error: cannot find type 'NativeColor' in scope
17 |
18 | public init(shape: BorderShape, width: CGFloat, color: NativeColor) {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/BorderValue.swift:10:19: error: type 'Border' does not conform to protocol 'Equatable'
8 | }
9 |
10 | override func isEqual(_ object: Any?) -> Bool {
| `- error: type 'Border' does not conform to protocol 'Equatable'
11 | guard let other = object as? BorderValue else {
12 | return false
/host/spi-builder-workspace/Sources/NativeMarkKit/render/CGRect+Render.swift:28:8: error: Unsupported platform
26 | }
27 | #else
28 | #error("Unsupported platform")
| `- error: Unsupported platform
29 | #endif
30 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:12:26: error: cannot find type 'NativeColor' in scope
10 | let border: Border?
11 | let padding: PointPadding?
12 | let backgroundColor: NativeColor?
| `- error: cannot find type 'NativeColor' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:50: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:63: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:77: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/render/TextContainerStyle.swift:16:99: error: 'nil' requires a contextual type
14 |
15 | extension TextContainerStyle {
16 | static let none = TextContainerStyle(margin: nil, border: nil, padding: nil, backgroundColor: nil)
| `- error: 'nil' requires a contextual type
17 |
18 | func measure(maxWidth: CGFloat, content: (CGFloat) -> CGSize) -> CGSize {
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageLoader.swift:4:64: error: cannot find type 'NativeImage' in scope
2 |
3 | public protocol ImageLoader {
4 | func loadImage(_ urlString: String, completion: @escaping (NativeImage?) -> Void)
| `- error: cannot find type 'NativeImage' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/NativeMarkKit/style/ImageSizer.swift:11:49: error: cannot find type 'NativeImage' in scope
9 |
10 | public protocol ImageSizer {
11 | func imageSize(_ urlString: String?, image: NativeImage, lineFragment: CGRect) -> CGSize
| `- error: cannot find type 'NativeImage' in scope
12 | }
13 |
BUILD FAILURE 6.1 linux