The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WKMarkdownView, reference 1.3.1 (a23dcd), with Swift 6.1 for macOS (SPM) on 24 Jun 2025 17:45:00 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/weihas/WKMarkdownView.git
Reference: 1.3.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/weihas/WKMarkdownView
 * tag               1.3.1      -> FETCH_HEAD
HEAD is now at a23dcd3 [style] Support SPM Index
Cloned https://github.com/weihas/WKMarkdownView.git
Revision (git rev-parse @):
a23dcd3340fc7f7846c0244d54feb6008916f2bc
SUCCESS checkout https://github.com/weihas/WKMarkdownView.git at 1.3.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "wkmarkdownview",
      "name": "WKMarkdownView",
      "url": "https://github.com/weihas/WKMarkdownView.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WKMarkdownView",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/weihas/WKMarkdownView.git
[3/140] Fetching wkmarkdownview
Fetched https://github.com/weihas/WKMarkdownView.git from cache (0.98s)
Creating working copy for https://github.com/weihas/WKMarkdownView.git
Working copy of https://github.com/weihas/WKMarkdownView.git resolved at 1.3.1 (a23dcd3)
warning: '.resolve-product-dependencies': dependency 'wkmarkdownview' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/weihas/WKMarkdownView.git
https://github.com/weihas/WKMarkdownView.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WKMarkdownView",
  "name" : "WKMarkdownView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "WKMarkdownView",
      "targets" : [
        "WKMarkdownView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WKMarkdownViewTests",
      "module_type" : "SwiftTarget",
      "name" : "WKMarkdownViewTests",
      "path" : "Tests/WKMarkdownViewTests",
      "sources" : [
        "WKMarkDownKitTests.swift"
      ],
      "target_dependencies" : [
        "WKMarkdownView"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WKMarkdownView",
      "module_type" : "SwiftTarget",
      "name" : "WKMarkdownView",
      "path" : "Sources/WKMarkdownView",
      "product_memberships" : [
        "WKMarkdownView"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/Resources/fonts",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/Resources/index.html",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/Resources/katex/auto-render.min.js",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/Resources/katex/katex.min.css",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/Resources/katex/katex.min.js",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/Resources/marked/markdown.css",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/Resources/marked/marked.min.js",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "MarkdownView.swift",
        "WKMarkdownView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/9] Write sources
[1/9] Copying katex.min.css
[2/9] Copying auto-render.min.js
[3/9] Copying markdown.css
[4/9] Copying katex.min.js
[4/9] Copying index.html
[4/9] Copying marked.min.js
[7/9] Copying fonts
[8/9] Write swift-version-2F0A5646E1D333AE.txt
[10/13] Compiling WKMarkdownView resource_bundle_accessor.swift
[11/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(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(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(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(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 |
macro expansion #isolation:1:1: error: 'MainActor' 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
    |   +--- macro expansion #isolation --------------------------------
    |   |1 | nil
    |   |  | `- error: 'MainActor' 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 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/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
[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:42:29: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 |     /// Creates the UIKit view (WKMarkdownView) to be used in SwiftUI
41 |     func makeUIView(context: Context) -> WKMarkdownView {
   |          `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
42 |         let configuration = WKWebViewConfiguration()
   |                             `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 |         let markdownView = WKMarkdownView(frame: .zero, configuration: configuration)
44 |         markdownView.scrollView.isScrollEnabled = false // Disable internal scrolling
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 64 |
 65 | + (void)initialize;
 66 | - (instancetype)init
    | `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
 68 |     NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/MarkdownView.swift:43:28: warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 |     /// Creates the UIKit view (WKMarkdownView) to be used in SwiftUI
41 |     func makeUIView(context: Context) -> WKMarkdownView {
   |          `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
42 |         let configuration = WKWebViewConfiguration()
43 |         let markdownView = WKMarkdownView(frame: .zero, configuration: configuration)
   |                            `- warning: call to main actor-isolated initializer 'init(frame:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 |         markdownView.scrollView.isScrollEnabled = false // Disable internal scrolling
45 |         markdownView.backgroundColor = .clear
/Users/admin/builder/spi-builder-workspace/Sources/WKMarkdownView/WKMarkdownView.swift:43:21: note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
 41 |
 42 |     /// Designated initializer for WKMarkdownView
 43 |     public override init(frame: CGRect, configuration: WKWebViewConfiguration) {
    |                     |- note: calls to initializer 'init(frame:configuration:)' from outside of its actor context are implicitly asynchronous
    |                     `- note: main actor isolation inferred from inheritance from class 'WKWebView'
 44 |         super.init(frame: frame, configuration: configuration)
 45 |         self.navigationDelegate = self
/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(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(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
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/5] Compiling WKMarkdownView resource_bundle_accessor.swift
[3/5] 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(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(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(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(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 |
macro expansion #isolation:1:1: error: 'MainActor' 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
    |   +--- macro expansion #isolation --------------------------------
    |   |1 | nil
    |   |  | `- error: 'MainActor' 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 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] 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
[5/5] 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(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(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.1 macosSpm