The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WKMarkdownView, reference main (fcce1c), with Swift 6.2 for macOS (SPM) on 20 Apr 2026 15:06:03 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/weihas/WKMarkdownView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/weihas/WKMarkdownView
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at fcce1c0 doc: update README
Cloned https://github.com/weihas/WKMarkdownView.git
Revision (git rev-parse @):
fcce1c04049ad60f0b99b89a99e4df2acced46d3
SUCCESS checkout https://github.com/weihas/WKMarkdownView.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/weihas/WKMarkdownView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/9] Write sources
[1/9] Copying katex.min.css
[1/9] Copying marked.min.js
[1/9] Copying index.html
[2/9] Copying auto-render.min.js
[2/9] Copying markdown.css
[6/9] Copying katex.min.js
[7/9] Copying fonts
[8/9] Write swift-version--3CB7CFEC50E0D141.txt
[10/13] Compiling WKMarkdownView resource_bundle_accessor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/13] Emitting module WKMarkdownView
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
10 |
11 | /// A SwiftUI view that renders Markdown content and automatically adjusts its height
12 | public struct MarkdownView: View {
   |               `- note: add '@available' attribute to enclosing struct
13 |     /// The Markdown string to render
14 |     var markdown: String
15 |
16 |     /// The calculated height of the content, updated dynamically
17 |     @State private var contentHeight: CGFloat = 0
   |      `- error: 'State' is only available in macOS 10.15 or newer
18 |
19 |     /// Initializes the Markdown view with given content
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:26:27: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | /// A SwiftUI view that renders Markdown content and automatically adjusts its height
12 | public struct MarkdownView: View {
   |               `- note: add '@available' attribute to enclosing struct
13 |     /// The Markdown string to render
14 |     var markdown: String
   :
24 |
25 |     /// The view body that embeds the underlying UIKit-based web view
26 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add '@available' attribute to enclosing property
27 |         MarkdownWebView(markdown: markdown, contentHeight: $contentHeight)
28 |             .frame(height: contentHeight) // Adjust frame height based on content
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:38:6: error: 'Binding' is only available in macOS 10.15 or newer
31 |
32 | /// A UIViewRepresentable wrapper for a WKWebView-based Markdown renderer
33 | struct MarkdownWebView: UIViewRepresentable {
   |        `- note: add '@available' attribute to enclosing struct
34 |     /// The Markdown string to render
35 |     let markdown: String
36 |
37 |     /// A binding to the dynamic height of the content
38 |     @Binding var contentHeight: CGFloat
   |      `- error: 'Binding' is only available in macOS 10.15 or newer
39 |
40 |     /// Creates the UIKit view (WKMarkdownView) to be used in SwiftUI
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:41:30: error: cannot find type 'Context' in scope
39 |
40 |     /// Creates the UIKit view (WKMarkdownView) to be used in SwiftUI
41 |     func makeUIView(context: Context) -> WKMarkdownView {
   |                              `- error: cannot find type 'Context' in scope
42 |         let configuration = WKWebViewConfiguration()
43 |         let markdownView = WKMarkdownView(frame: .zero, configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:50:59: error: cannot find type 'Context' in scope
48 |
49 |     /// Updates the view when SwiftUI state changes
50 |     func updateUIView(_ webView: WKMarkdownView, context: Context) {
   |                                                           `- error: cannot find type 'Context' in scope
51 |         Task {
52 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:33:25: error: cannot find type 'UIViewRepresentable' in scope
31 |
32 | /// A UIViewRepresentable wrapper for a WKWebView-based Markdown renderer
33 | struct MarkdownWebView: UIViewRepresentable {
   |                         `- error: cannot find type 'UIViewRepresentable' in scope
34 |     /// The Markdown string to render
35 |     let markdown: String
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:65:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
63 |
64 |
65 | #Preview {
   |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
66 |     MarkdownView(
67 |                  """
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:170:5: error: cannot use explicit 'return' statement in the body of result builder 'PreviewMacroBodyBuilder<NSView>'
168 | """
169 |
170 |     return WKMarkdownView(markdown: sampleMarkdown, enableLatex: true)
    |     |- error: cannot use explicit 'return' statement in the body of result builder 'PreviewMacroBodyBuilder<NSView>'
    |     `- note: remove 'return' statements to apply the result builder
171 | }
172 |
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:22:35: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
 11 | /// A custom WKWebView subclass used to render Markdown content,
 12 | /// with optional KaTeX math rendering support.
 13 | open class WKMarkdownView: WKWebView {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     /// The markdown string to be rendered
    :
 20 |
 21 |     /// Used to notify when the index.html has finished loading
 22 |     private var loadContinuation: CheckedContinuation<Void, Never>?
    |                                   `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
 23 |
 24 |     /// A task that loads the initial HTML template only once
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:25:30: error: 'Task' is only available in macOS 10.15 or newer
 11 | /// A custom WKWebView subclass used to render Markdown content,
 12 | /// with optional KaTeX math rendering support.
 13 | open class WKMarkdownView: WKWebView {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     /// The markdown string to be rendered
    :
 23 |
 24 |     /// A task that loads the initial HTML template only once
 25 |     private var loadingTask: Task<Void, Error>?
    |                              `- error: 'Task' is only available in macOS 10.15 or newer
 26 |
 27 |     /// Designated convenience initializer to create a WKMarkdownView with math rendering enabled or disabled
[12/13] Compiling WKMarkdownView WKMarkdownView.swift
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:22:35: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
 11 | /// A custom WKWebView subclass used to render Markdown content,
 12 | /// with optional KaTeX math rendering support.
 13 | open class WKMarkdownView: WKWebView {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     /// The markdown string to be rendered
    :
 20 |
 21 |     /// Used to notify when the index.html has finished loading
 22 |     private var loadContinuation: CheckedContinuation<Void, Never>?
    |                                   `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
 23 |
 24 |     /// A task that loads the initial HTML template only once
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:25:30: error: 'Task' is only available in macOS 10.15 or newer
 11 | /// A custom WKWebView subclass used to render Markdown content,
 12 | /// with optional KaTeX math rendering support.
 13 | open class WKMarkdownView: WKWebView {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     /// The markdown string to be rendered
    :
 23 |
 24 |     /// A task that loads the initial HTML template only once
 25 |     private var loadingTask: Task<Void, Error>?
    |                              `- error: 'Task' is only available in macOS 10.15 or newer
 26 |
 27 |     /// Designated convenience initializer to create a WKMarkdownView with math rendering enabled or disabled
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:170:5: error: cannot use explicit 'return' statement in the body of result builder 'PreviewMacroBodyBuilder<NSView>'
168 | """
169 |
170 |     return WKMarkdownView(markdown: sampleMarkdown, enableLatex: true)
    |     |- error: cannot use explicit 'return' statement in the body of result builder 'PreviewMacroBodyBuilder<NSView>'
    |     `- note: remove 'return' statements to apply the result builder
171 | }
172 |
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:39:9: error: 'Task' is only available in macOS 10.15 or newer
 11 | /// A custom WKWebView subclass used to render Markdown content,
 12 | /// with optional KaTeX math rendering support.
 13 | open class WKMarkdownView: WKWebView {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     /// The markdown string to be rendered
    :
 33 |
 34 |     /// Designated convenience initializer to create a WKMarkdownView with math rendering enabled or disabled
 35 |     public convenience init(markdown: String, enableLatex: Bool = true) {
    |                        `- note: add '@available' attribute to enclosing initializer
 36 |         let config = WKWebViewConfiguration()
 37 |         self.init(frame: .zero, configuration: config)
 38 |         self.enableLatex = enableLatex
 39 |         Task { try await updateMarkdown(markdown) }
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 40 |     }
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:39:9: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
 11 | /// A custom WKWebView subclass used to render Markdown content,
 12 | /// with optional KaTeX math rendering support.
 13 | open class WKMarkdownView: WKWebView {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     /// The markdown string to be rendered
    :
 33 |
 34 |     /// Designated convenience initializer to create a WKMarkdownView with math rendering enabled or disabled
 35 |     public convenience init(markdown: String, enableLatex: Bool = true) {
    |                        `- note: add '@available' attribute to enclosing initializer
 36 |         let config = WKWebViewConfiguration()
 37 |         self.init(frame: .zero, configuration: config)
 38 |         self.enableLatex = enableLatex
 39 |         Task { try await updateMarkdown(markdown) }
    |         |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 40 |     }
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:46:9: error: cannot assign to property: 'isOpaque' is a get-only property
 44 |         super.init(frame: frame, configuration: configuration)
 45 |         self.navigationDelegate = self
 46 |         isOpaque = false // Make background transparent
    |         `- error: cannot assign to property: 'isOpaque' is a get-only property
 47 |         backgroundColor = .systemBackground
 48 |
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:47:9: error: cannot find 'backgroundColor' in scope
 45 |         self.navigationDelegate = self
 46 |         isOpaque = false // Make background transparent
 47 |         backgroundColor = .systemBackground
    |         `- error: cannot find 'backgroundColor' in scope
 48 |
 49 |         // Start loading local index.html from bundle
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:50:23: error: 'Task' is only available in macOS 10.15 or newer
 11 | /// A custom WKWebView subclass used to render Markdown content,
 12 | /// with optional KaTeX math rendering support.
 13 | open class WKMarkdownView: WKWebView {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     /// The markdown string to be rendered
    :
 41 |
 42 |     /// Designated initializer for WKMarkdownView
 43 |     public override init(frame: CGRect, configuration: WKWebViewConfiguration) {
    |                     `- note: add '@available' attribute to enclosing initializer
 44 |         super.init(frame: frame, configuration: configuration)
 45 |         self.navigationDelegate = self
    :
 48 |
 49 |         // Start loading local index.html from bundle
 50 |         loadingTask = Task {
    |                       |- error: 'Task' is only available in macOS 10.15 or newer
    |                       `- note: add 'if #available' version check
 51 |             try await loadIndexHTML()
 52 |             loadingTask = nil
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:50:23: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
 11 | /// A custom WKWebView subclass used to render Markdown content,
 12 | /// with optional KaTeX math rendering support.
 13 | open class WKMarkdownView: WKWebView {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     /// The markdown string to be rendered
    :
 41 |
 42 |     /// Designated initializer for WKMarkdownView
 43 |     public override init(frame: CGRect, configuration: WKWebViewConfiguration) {
    |                     `- note: add '@available' attribute to enclosing initializer
 44 |         super.init(frame: frame, configuration: configuration)
 45 |         self.navigationDelegate = self
    :
 48 |
 49 |         // Start loading local index.html from bundle
 50 |         loadingTask = Task {
    |                       |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
    |                       `- note: add 'if #available' version check
 51 |             try await loadIndexHTML()
 52 |             loadingTask = nil
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:62:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 11 | /// A custom WKWebView subclass used to render Markdown content,
 12 | /// with optional KaTeX math rendering support.
 13 | open class WKMarkdownView: WKWebView {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     /// The markdown string to be rendered
    :
 59 |
 60 |     /// Loads the local HTML file `index.html` into the webview.
 61 |     private func loadIndexHTML() async throws {
    |                  `- note: add '@available' attribute to enclosing instance method
 62 |         await withCheckedContinuation { continuation in
    |               |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
 63 |             self.loadContinuation = continuation
 64 |
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:68:30: error: 'resume()' is only available in macOS 10.15 or newer
 11 | /// A custom WKWebView subclass used to render Markdown content,
 12 | /// with optional KaTeX math rendering support.
 13 | open class WKMarkdownView: WKWebView {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     /// The markdown string to be rendered
    :
 59 |
 60 |     /// Loads the local HTML file `index.html` into the webview.
 61 |     private func loadIndexHTML() async throws {
    |                  `- note: add '@available' attribute to enclosing instance method
 62 |         await withCheckedContinuation { continuation in
 63 |             self.loadContinuation = continuation
    :
 66 |             guard let indexURL = Bundle.module.url(forResource: "index", withExtension: "html") else {
 67 |                 assertionFailure("Missing index.html in bundle")
 68 |                 continuation.resume()
    |                              |- error: 'resume()' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 69 |                 return
 70 |             }
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:62:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:62:39: note: expanded code originates here
 11 | /// A custom WKWebView subclass used to render Markdown content,
 12 | /// with optional KaTeX math rendering support.
 13 | open class WKMarkdownView: WKWebView {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     /// The markdown string to be rendered
    :
 59 |
 60 |     /// Loads the local HTML file `index.html` into the webview.
 61 |     private func loadIndexHTML() async throws {
    |                  `- note: add '@available' attribute to enclosing instance method
 62 |         await withCheckedContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift
    |60 |
    |61 |
    |62 |                                       #isolation
    |   |                                        `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------
 63 |             self.loadContinuation = continuation
 64 |
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:81:32: error: 'value' is only available in macOS 10.15 or newer
 11 | /// A custom WKWebView subclass used to render Markdown content,
 12 | /// with optional KaTeX math rendering support.
 13 | open class WKMarkdownView: WKWebView {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     /// The markdown string to be rendered
    :
 78 |     /// Ensures JavaScript evaluation happens after `index.html` has been loaded
 79 |     @discardableResult
 80 |     open override func evaluateJavaScript(_ javaScriptString: String) async throws -> Any? {
    |                        `- note: add '@available' attribute to enclosing instance method
 81 |         try await loadingTask?.value
    |                                |- error: 'value' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 82 |         return try await super.evaluateJavaScript(javaScriptString)
 83 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:131:26: error: 'resume()' is only available in macOS 10.15 or newer
123 |
124 | // MARK: - WKNavigationDelegate
125 | extension WKMarkdownView: WKNavigationDelegate {
    | `- note: add '@available' attribute to enclosing extension
126 |
127 |     /// Called when webview finishes loading index.html, resumes the load continuation
128 |     open func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
    |               `- note: add '@available' attribute to enclosing instance method
129 |         if let continuation = loadContinuation {
130 |             loadContinuation = nil
131 |             continuation.resume()
    |                          |- error: 'resume()' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
132 |         }
133 |     }
[13/13] Compiling WKMarkdownView MarkdownView.swift
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
10 |
11 | /// A SwiftUI view that renders Markdown content and automatically adjusts its height
12 | public struct MarkdownView: View {
   |               `- note: add '@available' attribute to enclosing struct
13 |     /// The Markdown string to render
14 |     var markdown: String
15 |
16 |     /// The calculated height of the content, updated dynamically
17 |     @State private var contentHeight: CGFloat = 0
   |      `- error: 'State' is only available in macOS 10.15 or newer
18 |
19 |     /// Initializes the Markdown view with given content
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:26:27: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | /// A SwiftUI view that renders Markdown content and automatically adjusts its height
12 | public struct MarkdownView: View {
   |               `- note: add '@available' attribute to enclosing struct
13 |     /// The Markdown string to render
14 |     var markdown: String
   :
24 |
25 |     /// The view body that embeds the underlying UIKit-based web view
26 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add '@available' attribute to enclosing property
27 |         MarkdownWebView(markdown: markdown, contentHeight: $contentHeight)
28 |             .frame(height: contentHeight) // Adjust frame height based on content
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:38:6: error: 'Binding' is only available in macOS 10.15 or newer
31 |
32 | /// A UIViewRepresentable wrapper for a WKWebView-based Markdown renderer
33 | struct MarkdownWebView: UIViewRepresentable {
   |        `- note: add '@available' attribute to enclosing struct
34 |     /// The Markdown string to render
35 |     let markdown: String
36 |
37 |     /// A binding to the dynamic height of the content
38 |     @Binding var contentHeight: CGFloat
   |      `- error: 'Binding' is only available in macOS 10.15 or newer
39 |
40 |     /// Creates the UIKit view (WKMarkdownView) to be used in SwiftUI
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:41:30: error: cannot find type 'Context' in scope
39 |
40 |     /// Creates the UIKit view (WKMarkdownView) to be used in SwiftUI
41 |     func makeUIView(context: Context) -> WKMarkdownView {
   |                              `- error: cannot find type 'Context' in scope
42 |         let configuration = WKWebViewConfiguration()
43 |         let markdownView = WKMarkdownView(frame: .zero, configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:50:59: error: cannot find type 'Context' in scope
48 |
49 |     /// Updates the view when SwiftUI state changes
50 |     func updateUIView(_ webView: WKMarkdownView, context: Context) {
   |                                                           `- error: cannot find type 'Context' in scope
51 |         Task {
52 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:33:25: error: cannot find type 'UIViewRepresentable' in scope
31 |
32 | /// A UIViewRepresentable wrapper for a WKWebView-based Markdown renderer
33 | struct MarkdownWebView: UIViewRepresentable {
   |                         `- error: cannot find type 'UIViewRepresentable' in scope
34 |     /// The Markdown string to render
35 |     let markdown: String
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:65:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
63 |
64 |
65 | #Preview {
   |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
66 |     MarkdownView(
67 |                  """
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:170:5: error: cannot use explicit 'return' statement in the body of result builder 'PreviewMacroBodyBuilder<NSView>'
168 | """
169 |
170 |     return WKMarkdownView(markdown: sampleMarkdown, enableLatex: true)
    |     |- error: cannot use explicit 'return' statement in the body of result builder 'PreviewMacroBodyBuilder<NSView>'
    |     `- note: remove 'return' statements to apply the result builder
171 | }
172 |
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:28:14: error: value of type 'MarkdownWebView' has no member 'frame'
26 |     public var body: some View {
27 |         MarkdownWebView(markdown: markdown, contentHeight: $contentHeight)
28 |             .frame(height: contentHeight) // Adjust frame height based on content
   |              `- error: value of type 'MarkdownWebView' has no member 'frame'
29 |     }
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:44:22: error: value of type 'WKMarkdownView' has no member 'scrollView'
42 |         let configuration = WKWebViewConfiguration()
43 |         let markdownView = WKMarkdownView(frame: .zero, configuration: configuration)
44 |         markdownView.scrollView.isScrollEnabled = false // Disable internal scrolling
   |                      `- error: value of type 'WKMarkdownView' has no member 'scrollView'
45 |         markdownView.backgroundColor = .clear
46 |         return markdownView
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:45:22: error: value of type 'WKMarkdownView' has no member 'backgroundColor'
43 |         let markdownView = WKMarkdownView(frame: .zero, configuration: configuration)
44 |         markdownView.scrollView.isScrollEnabled = false // Disable internal scrolling
45 |         markdownView.backgroundColor = .clear
   |                      `- error: value of type 'WKMarkdownView' has no member 'backgroundColor'
46 |         return markdownView
47 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:45:41: error: cannot infer contextual base in reference to member 'clear'
43 |         let markdownView = WKMarkdownView(frame: .zero, configuration: configuration)
44 |         markdownView.scrollView.isScrollEnabled = false // Disable internal scrolling
45 |         markdownView.backgroundColor = .clear
   |                                         `- error: cannot infer contextual base in reference to member 'clear'
46 |         return markdownView
47 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:51:9: error: 'Task' is only available in macOS 10.15 or newer
31 |
32 | /// A UIViewRepresentable wrapper for a WKWebView-based Markdown renderer
33 | struct MarkdownWebView: UIViewRepresentable {
   |        `- note: add '@available' attribute to enclosing struct
34 |     /// The Markdown string to render
35 |     let markdown: String
   :
48 |
49 |     /// Updates the view when SwiftUI state changes
50 |     func updateUIView(_ webView: WKMarkdownView, context: Context) {
   |          `- note: add '@available' attribute to enclosing instance method
51 |         Task {
   |         |- error: 'Task' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
52 |             do {
53 |                 // Load the new markdown content asynchronously
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:51:9: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
31 |
32 | /// A UIViewRepresentable wrapper for a WKWebView-based Markdown renderer
33 | struct MarkdownWebView: UIViewRepresentable {
   |        `- note: add '@available' attribute to enclosing struct
34 |     /// The Markdown string to render
35 |     let markdown: String
   :
48 |
49 |     /// Updates the view when SwiftUI state changes
50 |     func updateUIView(_ webView: WKMarkdownView, context: Context) {
   |          `- note: add '@available' attribute to enclosing instance method
51 |         Task {
   |         |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
52 |             do {
53 |                 // Load the new markdown content asynchronously
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:56:17: error: setter for 'contentHeight' is only available in macOS 10.15 or newer
31 |
32 | /// A UIViewRepresentable wrapper for a WKWebView-based Markdown renderer
33 | struct MarkdownWebView: UIViewRepresentable {
   |        `- note: add '@available' attribute to enclosing struct
34 |     /// The Markdown string to render
35 |     let markdown: String
   :
48 |
49 |     /// Updates the view when SwiftUI state changes
50 |     func updateUIView(_ webView: WKMarkdownView, context: Context) {
   |          `- note: add '@available' attribute to enclosing instance method
51 |         Task {
52 |             do {
   :
54 |                 try await webView.updateMarkdown(markdown)
55 |                 // Measure and update the content height
56 |                 contentHeight = try await webView.contentHeight()
   |                 |- error: setter for 'contentHeight' is only available in macOS 10.15 or newer
   |                 `- note: add 'if #available' version check
57 |             } catch {
58 |                 print(error) // Handle rendering or layout errors
BUILD FAILURE 6.2 macosSpm