The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NativeMarkKit, reference master (c58eb7), with Swift 6.1 for Wasm on 28 May 2025 06:07:28 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

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)
[128/152] Compiling NativeMarkKit ThematicBreakAttachment.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)
[129/152] Compiling NativeMarkKit URLOpener.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)
[130/152] Compiling NativeMarkKit UnorderedListMarkerFormat+Render.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)
[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 Document.swift
[135/152] Compiling NativeMarkKit Element.swift
[136/152] Compiling NativeMarkKit InlineText.swift
[137/152] Compiling NativeMarkKit Link.swift
[138/152] Compiling NativeMarkKit LinkDefinition.swift
[139/152] Compiling NativeMarkKit ListInfo.swift
[140/152] Compiling NativeMarkKit ListInfoKind.swift
[141/152] Compiling NativeMarkKit ListItem.swift
[142/152] Compiling NativeMarkKit TaskListItemMark.swift
[143/152] Compiling NativeMarkKit ATXHeadingBlockStarter.swift
[144/152] Compiling NativeMarkKit Block.swift
[145/152] Compiling NativeMarkKit BlockCloser.swift
[146/152] Compiling NativeMarkKit BlockContinuationParser.swift
[147/152] Compiling NativeMarkKit BlockKind.swift
[148/152] Compiling NativeMarkKit BlockParser.swift
[149/152] Compiling NativeMarkKit BlockQuoteBlockParser.swift
[150/152] Compiling NativeMarkKit BlockQuoteStarter.swift
[151/152] Compiling NativeMarkKit BlockStartParser.swift
[152/152] Compiling NativeMarkKit DocumentBlockParser.swift
BUILD FAILURE 6.1 wasm