The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Sankey, reference master (1440b4), with Swift 6.3 for macOS (SPM) on 15 Apr 2026 10:08:16 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.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/maxhumber/Sankey.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/maxhumber/Sankey
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 1440b44 minor readme corrections
Cloned https://github.com/maxhumber/Sankey.git
Revision (git rev-parse @):
1440b44c5f58fb006364fd260bed05b7d6ad67f9
SUCCESS checkout https://github.com/maxhumber/Sankey.git at master
========================================
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",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "sankey",
      "name": "Sankey",
      "url": "https://github.com/maxhumber/Sankey.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Sankey",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/maxhumber/Sankey.git
[1/564] Fetching sankey
Fetched https://github.com/maxhumber/Sankey.git from cache (1.47s)
Creating working copy for https://github.com/maxhumber/Sankey.git
Working copy of https://github.com/maxhumber/Sankey.git resolved at master (1440b44)
warning: '.resolve-product-dependencies': dependency 'sankey' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/maxhumber/Sankey.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[1/4] Copying d3.min.js
[2/4] Copying d3-sankey.min.js
[3/4] Write swift-version--6988338F2F200930.txt
[5/15] Compiling Sankey SankeyResources.swift
[6/15] Compiling Sankey SankeyOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SankeyOptions.swift:7:27: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct SankeyOptions {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var nodeAlignment: SankeyNodeAlignment = .justify
 5 |     var nodeWidth: Double = 8
 6 |     var nodePadding: Double = 24
 7 |     var nodeDefaultColor: Color = .primary
   |                           `- error: 'Color' is only available in macOS 10.15 or newer
 8 |     var nodeOpacity: Double = 0.6
 9 |     var linkDefaultColor: Color = .primary
/Users/admin/builder/spi-builder-workspace/Sources/SankeyOptions.swift:7:36: error: 'primary' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct SankeyOptions {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var nodeAlignment: SankeyNodeAlignment = .justify
 5 |     var nodeWidth: Double = 8
 6 |     var nodePadding: Double = 24
 7 |     var nodeDefaultColor: Color = .primary
   |                                    `- error: 'primary' is only available in macOS 10.15 or newer
 8 |     var nodeOpacity: Double = 0.6
 9 |     var linkDefaultColor: Color = .primary
/Users/admin/builder/spi-builder-workspace/Sources/SankeyOptions.swift:9:27: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct SankeyOptions {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var nodeAlignment: SankeyNodeAlignment = .justify
 5 |     var nodeWidth: Double = 8
   :
 7 |     var nodeDefaultColor: Color = .primary
 8 |     var nodeOpacity: Double = 0.6
 9 |     var linkDefaultColor: Color = .primary
   |                           `- error: 'Color' is only available in macOS 10.15 or newer
10 |     var linkOpacity: Double = 0.2
11 |     var linkColorMode: SankeyLinkColorMode? = nil
/Users/admin/builder/spi-builder-workspace/Sources/SankeyOptions.swift:9:36: error: 'primary' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct SankeyOptions {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var nodeAlignment: SankeyNodeAlignment = .justify
 5 |     var nodeWidth: Double = 8
   :
 7 |     var nodeDefaultColor: Color = .primary
 8 |     var nodeOpacity: Double = 0.6
 9 |     var linkDefaultColor: Color = .primary
   |                                    `- error: 'primary' is only available in macOS 10.15 or newer
10 |     var linkOpacity: Double = 0.2
11 |     var linkColorMode: SankeyLinkColorMode? = nil
/Users/admin/builder/spi-builder-workspace/Sources/SankeyOptions.swift:13:21: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct SankeyOptions {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var nodeAlignment: SankeyNodeAlignment = .justify
 5 |     var nodeWidth: Double = 8
   :
11 |     var linkColorMode: SankeyLinkColorMode? = nil
12 |     var labelPadding: Double = 8
13 |     var labelColor: Color = .primary
   |                     `- error: 'Color' is only available in macOS 10.15 or newer
14 |     var labelOpacity: Double = 0.8
15 |     var labelFontSize: Double = 16
/Users/admin/builder/spi-builder-workspace/Sources/SankeyOptions.swift:13:30: error: 'primary' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct SankeyOptions {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var nodeAlignment: SankeyNodeAlignment = .justify
 5 |     var nodeWidth: Double = 8
   :
11 |     var linkColorMode: SankeyLinkColorMode? = nil
12 |     var labelPadding: Double = 8
13 |     var labelColor: Color = .primary
   |                              `- error: 'primary' is only available in macOS 10.15 or newer
14 |     var labelOpacity: Double = 0.8
15 |     var labelFontSize: Double = 16
[7/16] Compiling Sankey SankeyNode.swift
/Users/admin/builder/spi-builder-workspace/Sources/SankeyNode.swift:6:23: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct SankeyNode: Encodable, Identifiable {
   |               `- note: add '@available' attribute to enclosing struct
 4 |     public var id: String
 5 |     public var label: String?
 6 |     public var color: Color?
   |                       `- error: 'Color' is only available in macOS 10.15 or newer
 7 |
 8 |     var hex: HexColor? {
/Users/admin/builder/spi-builder-workspace/Sources/SankeyNode.swift:18:60: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct SankeyNode: Encodable, Identifiable {
   |               `- note: add '@available' attribute to enclosing struct
 4 |     public var id: String
 5 |     public var label: String?
   :
16 |     ///   - label: An optional display label. If nil, id will be used as the label
17 |     ///   - color: An optional `Color` for the node. Defaults to `nil`
18 |     public init(_ id: String, label: String? = nil, color: Color? = nil) {
   |            |                                               `- error: 'Color' is only available in macOS 10.15 or newer
   |            `- note: add '@available' attribute to enclosing initializer
19 |         self.id = id
20 |         self.label = label
[8/16] Compiling Sankey SankeyLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/SankeyLink.swift:7:23: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct SankeyLink: Encodable {
   |               `- note: add '@available' attribute to enclosing struct
 4 |     public var value: Double
 5 |     public var source: String
 6 |     public var target: String
 7 |     public var color: Color?
   |                       `- error: 'Color' is only available in macOS 10.15 or newer
 8 |
 9 |     var hex: HexColor? {
/Users/admin/builder/spi-builder-workspace/Sources/SankeyLink.swift:20:81: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct SankeyLink: Encodable {
   |               `- note: add '@available' attribute to enclosing struct
 4 |     public var value: Double
 5 |     public var source: String
   :
18 |     ///   - to: The id of the target node
19 |     ///   - color: An optional `Color` to represent the link's color. Defaults to `nil`
20 |     public init(_ value: Double, from source: String, to target: String, color: Color? = nil) {
   |            |                                                                    `- error: 'Color' is only available in macOS 10.15 or newer
   |            `- note: add '@available' attribute to enclosing initializer
21 |         self.source = source
22 |         self.target = target
[9/16] Compiling Sankey resource_bundle_accessor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/16] Emitting module Sankey
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:4:30: error: cannot find type 'UIViewRepresentable' in scope
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |                              `- error: cannot find type 'UIViewRepresentable' in scope
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
  6 |     public var data: SankeyData
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:25:31: error: 'ColorScheme' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
23 |     }
24 |
25 |     func hex(for colorScheme: ColorScheme) -> String {
   |          |                    `- error: 'ColorScheme' is only available in macOS 10.15 or newer
   |          `- note: add '@available' attribute to enclosing instance method
26 |         colorScheme == .dark ? dark.hex : light.hex
27 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:29:16: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
27 |     }
28 |
29 |     var light: Color {
   |         |      `- error: 'Color' is only available in macOS 10.15 or newer
   |         `- note: add '@available' attribute to enclosing property
30 |         var environment = EnvironmentValues()
31 |         environment.colorScheme = .light
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:35:15: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
33 |     }
34 |
35 |     var dark: Color {
   |         |     `- error: 'Color' is only available in macOS 10.15 or newer
   |         `- note: add '@available' attribute to enclosing property
36 |         var environment = EnvironmentValues()
37 |         environment.colorScheme = .dark
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:3:11: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | |         `- error: 'Color' is only available in macOS 10.15 or newer
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/HexColor.swift:7:19: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct HexColor: Encodable {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var light: String
 5 |     var dark: String
 6 |
 7 |     init(_ color: Color) {
   |     |             `- error: 'Color' is only available in macOS 10.15 or newer
   |     `- note: add '@available' attribute to enclosing initializer
 8 |         self.light = color.light.hex
 9 |         self.dark = color.dark.hex
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:5:20: error: 'colorScheme' is only available in macOS 10.15 or newer
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
    |                    `- error: 'colorScheme' is only available in macOS 10.15 or newer
  6 |     public var data: SankeyData
  7 |     var options = SankeyOptions()
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:5:58: error: 'ColorScheme' is only available in macOS 10.15 or newer
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
    |                                                          `- error: 'ColorScheme' is only available in macOS 10.15 or newer
  6 |     public var data: SankeyData
  7 |     var options = SankeyOptions()
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:5:6: error: 'Environment' is only available in macOS 10.15 or newer
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
  6 |     public var data: SankeyData
  7 |     var options = SankeyOptions()
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:13:37: error: cannot find type 'Context' in scope
 11 |     }
 12 |
 13 |     public func makeUIView(context: Context) -> WKWebView {
    |                                     `- error: cannot find type 'Context' in scope
 14 |         let webView = WKWebView()
 15 |         webView.isOpaque = false
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:21:61: error: cannot find type 'Context' in scope
 19 |     }
 20 |
 21 |     public func updateUIView(_ webView: WKWebView, context: Context) {
    |                                                             `- error: cannot find type 'Context' in scope
 22 |         loadHTML(webView)
 23 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:49:43: error: 'Color' is only available in macOS 10.15 or newer
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
  6 |     public var data: SankeyData
    :
 47 |
 48 |     /// Sets the default color for nodes
 49 |     public func nodeDefaultColor(_ color: Color) -> SankeyDiagram {
    |                 |                         `- error: 'Color' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing instance method
 50 |         var new = self
 51 |         new.options.nodeDefaultColor = color
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:63:43: error: 'Color' is only available in macOS 10.15 or newer
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
  6 |     public var data: SankeyData
    :
 61 |
 62 |     /// Sets the default color for links
 63 |     public func linkDefaultColor(_ color: Color) -> SankeyDiagram {
    |                 |                         `- error: 'Color' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing instance method
 64 |         var new = self
 65 |         new.options.linkDefaultColor = color
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:91:37: error: 'Color' is only available in macOS 10.15 or newer
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
  6 |     public var data: SankeyData
    :
 89 |
 90 |     /// Sets the color of labels
 91 |     public func labelColor(_ color: Color) -> SankeyDiagram {
    |                 |                   `- error: 'Color' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing instance method
 92 |         var new = self
 93 |         new.options.labelColor = color
/Users/admin/builder/spi-builder-workspace/Sources/SankeyLink.swift:7:23: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct SankeyLink: Encodable {
   |               `- note: add '@available' attribute to enclosing struct
 4 |     public var value: Double
 5 |     public var source: String
 6 |     public var target: String
 7 |     public var color: Color?
   |                       `- error: 'Color' is only available in macOS 10.15 or newer
 8 |
 9 |     var hex: HexColor? {
/Users/admin/builder/spi-builder-workspace/Sources/SankeyLink.swift:20:81: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct SankeyLink: Encodable {
   |               `- note: add '@available' attribute to enclosing struct
 4 |     public var value: Double
 5 |     public var source: String
   :
18 |     ///   - to: The id of the target node
19 |     ///   - color: An optional `Color` to represent the link's color. Defaults to `nil`
20 |     public init(_ value: Double, from source: String, to target: String, color: Color? = nil) {
   |            |                                                                    `- error: 'Color' is only available in macOS 10.15 or newer
   |            `- note: add '@available' attribute to enclosing initializer
21 |         self.source = source
22 |         self.target = target
/Users/admin/builder/spi-builder-workspace/Sources/SankeyNode.swift:6:23: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct SankeyNode: Encodable, Identifiable {
   |               `- note: add '@available' attribute to enclosing struct
 4 |     public var id: String
 5 |     public var label: String?
 6 |     public var color: Color?
   |                       `- error: 'Color' is only available in macOS 10.15 or newer
 7 |
 8 |     var hex: HexColor? {
/Users/admin/builder/spi-builder-workspace/Sources/SankeyNode.swift:18:60: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct SankeyNode: Encodable, Identifiable {
   |               `- note: add '@available' attribute to enclosing struct
 4 |     public var id: String
 5 |     public var label: String?
   :
16 |     ///   - label: An optional display label. If nil, id will be used as the label
17 |     ///   - color: An optional `Color` for the node. Defaults to `nil`
18 |     public init(_ id: String, label: String? = nil, color: Color? = nil) {
   |            |                                               `- error: 'Color' is only available in macOS 10.15 or newer
   |            `- note: add '@available' attribute to enclosing initializer
19 |         self.id = id
20 |         self.label = label
/Users/admin/builder/spi-builder-workspace/Sources/SankeyOptions.swift:7:27: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct SankeyOptions {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var nodeAlignment: SankeyNodeAlignment = .justify
 5 |     var nodeWidth: Double = 8
 6 |     var nodePadding: Double = 24
 7 |     var nodeDefaultColor: Color = .primary
   |                           `- error: 'Color' is only available in macOS 10.15 or newer
 8 |     var nodeOpacity: Double = 0.6
 9 |     var linkDefaultColor: Color = .primary
/Users/admin/builder/spi-builder-workspace/Sources/SankeyOptions.swift:7:36: error: 'primary' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct SankeyOptions {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var nodeAlignment: SankeyNodeAlignment = .justify
 5 |     var nodeWidth: Double = 8
 6 |     var nodePadding: Double = 24
 7 |     var nodeDefaultColor: Color = .primary
   |                                    `- error: 'primary' is only available in macOS 10.15 or newer
 8 |     var nodeOpacity: Double = 0.6
 9 |     var linkDefaultColor: Color = .primary
/Users/admin/builder/spi-builder-workspace/Sources/SankeyOptions.swift:9:27: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct SankeyOptions {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var nodeAlignment: SankeyNodeAlignment = .justify
 5 |     var nodeWidth: Double = 8
   :
 7 |     var nodeDefaultColor: Color = .primary
 8 |     var nodeOpacity: Double = 0.6
 9 |     var linkDefaultColor: Color = .primary
   |                           `- error: 'Color' is only available in macOS 10.15 or newer
10 |     var linkOpacity: Double = 0.2
11 |     var linkColorMode: SankeyLinkColorMode? = nil
/Users/admin/builder/spi-builder-workspace/Sources/SankeyOptions.swift:9:36: error: 'primary' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct SankeyOptions {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var nodeAlignment: SankeyNodeAlignment = .justify
 5 |     var nodeWidth: Double = 8
   :
 7 |     var nodeDefaultColor: Color = .primary
 8 |     var nodeOpacity: Double = 0.6
 9 |     var linkDefaultColor: Color = .primary
   |                                    `- error: 'primary' is only available in macOS 10.15 or newer
10 |     var linkOpacity: Double = 0.2
11 |     var linkColorMode: SankeyLinkColorMode? = nil
/Users/admin/builder/spi-builder-workspace/Sources/SankeyOptions.swift:13:21: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct SankeyOptions {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var nodeAlignment: SankeyNodeAlignment = .justify
 5 |     var nodeWidth: Double = 8
   :
11 |     var linkColorMode: SankeyLinkColorMode? = nil
12 |     var labelPadding: Double = 8
13 |     var labelColor: Color = .primary
   |                     `- error: 'Color' is only available in macOS 10.15 or newer
14 |     var labelOpacity: Double = 0.8
15 |     var labelFontSize: Double = 16
/Users/admin/builder/spi-builder-workspace/Sources/SankeyOptions.swift:13:30: error: 'primary' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct SankeyOptions {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var nodeAlignment: SankeyNodeAlignment = .justify
 5 |     var nodeWidth: Double = 8
   :
11 |     var linkColorMode: SankeyLinkColorMode? = nil
12 |     var labelPadding: Double = 8
13 |     var labelColor: Color = .primary
   |                              `- error: 'primary' is only available in macOS 10.15 or newer
14 |     var labelOpacity: Double = 0.8
15 |     var labelFontSize: Double = 16
[11/16] Compiling Sankey Color+.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:25:31: error: 'ColorScheme' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
23 |     }
24 |
25 |     func hex(for colorScheme: ColorScheme) -> String {
   |          |                    `- error: 'ColorScheme' is only available in macOS 10.15 or newer
   |          `- note: add '@available' attribute to enclosing instance method
26 |         colorScheme == .dark ? dark.hex : light.hex
27 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:29:16: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
27 |     }
28 |
29 |     var light: Color {
   |         |      `- error: 'Color' is only available in macOS 10.15 or newer
   |         `- note: add '@available' attribute to enclosing property
30 |         var environment = EnvironmentValues()
31 |         environment.colorScheme = .light
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:35:15: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
33 |     }
34 |
35 |     var dark: Color {
   |         |     `- error: 'Color' is only available in macOS 10.15 or newer
   |         `- note: add '@available' attribute to enclosing property
36 |         var environment = EnvironmentValues()
37 |         environment.colorScheme = .dark
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:3:11: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | |         `- error: 'Color' is only available in macOS 10.15 or newer
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:12:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
   |     `- note: add '@available' attribute to enclosing initializer
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
 6 |         hexSanitized = hexSanitized.replacingOccurrences(of: "#", with: "")
   :
10 |         let green = Double((rgb & 0x00FF00) >> 8) / 255.0
11 |         let blue = Double(rgb & 0x0000FF) / 255.0
12 |         self.init(red: red, green: green, blue: blue)
   |              |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
13 |     }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:16:23: error: cannot find 'UIColor' in scope
14 |
15 |     var hex: String {
16 |         let uiColor = UIColor(self)
   |                       `- error: cannot find 'UIColor' in scope
17 |         var red: CGFloat = 0
18 |         var green: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:30:27: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
27 |     }
28 |
29 |     var light: Color {
   |         `- note: add '@available' attribute to enclosing property
30 |         var environment = EnvironmentValues()
   |                           |- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
   |                           `- note: add 'if #available' version check
31 |         environment.colorScheme = .light
32 |         return Color(resolve(in: environment))
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:31:21: error: 'colorScheme' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
27 |     }
28 |
29 |     var light: Color {
   |         `- note: add '@available' attribute to enclosing property
30 |         var environment = EnvironmentValues()
31 |         environment.colorScheme = .light
   |                     |- error: 'colorScheme' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
32 |         return Color(resolve(in: environment))
33 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:32:16: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
27 |     }
28 |
29 |     var light: Color {
   |         `- note: add '@available' attribute to enclosing property
30 |         var environment = EnvironmentValues()
31 |         environment.colorScheme = .light
32 |         return Color(resolve(in: environment))
   |                |- error: 'Color' is only available in macOS 10.15 or newer
   |                `- note: add 'if #available' version check
33 |     }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:32:16: error: 'init(_:)' is only available in macOS 14.0 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
27 |     }
28 |
29 |     var light: Color {
   |         `- note: add '@available' attribute to enclosing property
30 |         var environment = EnvironmentValues()
31 |         environment.colorScheme = .light
32 |         return Color(resolve(in: environment))
   |                |- error: 'init(_:)' is only available in macOS 14.0 or newer
   |                `- note: add 'if #available' version check
33 |     }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:32:22: error: 'resolve(in:)' is only available in macOS 14.0 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
27 |     }
28 |
29 |     var light: Color {
   |         `- note: add '@available' attribute to enclosing property
30 |         var environment = EnvironmentValues()
31 |         environment.colorScheme = .light
32 |         return Color(resolve(in: environment))
   |                      |- error: 'resolve(in:)' is only available in macOS 14.0 or newer
   |                      `- note: add 'if #available' version check
33 |     }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:36:27: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
33 |     }
34 |
35 |     var dark: Color {
   |         `- note: add '@available' attribute to enclosing property
36 |         var environment = EnvironmentValues()
   |                           |- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
   |                           `- note: add 'if #available' version check
37 |         environment.colorScheme = .dark
38 |         return Color(resolve(in: environment))
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:37:21: error: 'colorScheme' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
33 |     }
34 |
35 |     var dark: Color {
   |         `- note: add '@available' attribute to enclosing property
36 |         var environment = EnvironmentValues()
37 |         environment.colorScheme = .dark
   |                     |- error: 'colorScheme' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
38 |         return Color(resolve(in: environment))
39 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:38:16: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
33 |     }
34 |
35 |     var dark: Color {
   |         `- note: add '@available' attribute to enclosing property
36 |         var environment = EnvironmentValues()
37 |         environment.colorScheme = .dark
38 |         return Color(resolve(in: environment))
   |                |- error: 'Color' is only available in macOS 10.15 or newer
   |                `- note: add 'if #available' version check
39 |     }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:38:16: error: 'init(_:)' is only available in macOS 14.0 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
33 |     }
34 |
35 |     var dark: Color {
   |         `- note: add '@available' attribute to enclosing property
36 |         var environment = EnvironmentValues()
37 |         environment.colorScheme = .dark
38 |         return Color(resolve(in: environment))
   |                |- error: 'init(_:)' is only available in macOS 14.0 or newer
   |                `- note: add 'if #available' version check
39 |     }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/Color+.swift:38:22: error: 'resolve(in:)' is only available in macOS 14.0 or newer
 1 | import SwiftUI
 2 |
 3 | extension Color {
   | `- note: add '@available' attribute to enclosing extension
 4 |     init(hex: String) {
 5 |         var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines)
   :
33 |     }
34 |
35 |     var dark: Color {
   |         `- note: add '@available' attribute to enclosing property
36 |         var environment = EnvironmentValues()
37 |         environment.colorScheme = .dark
38 |         return Color(resolve(in: environment))
   |                      |- error: 'resolve(in:)' is only available in macOS 14.0 or newer
   |                      `- note: add 'if #available' version check
39 |     }
40 | }
[12/16] Compiling Sankey HexColor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/HexColor.swift:7:19: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | struct HexColor: Encodable {
   |        `- note: add '@available' attribute to enclosing struct
 4 |     var light: String
 5 |     var dark: String
 6 |
 7 |     init(_ color: Color) {
   |     |             `- error: 'Color' is only available in macOS 10.15 or newer
   |     `- note: add '@available' attribute to enclosing initializer
 8 |         self.light = color.light.hex
 9 |         self.dark = color.dark.hex
[13/16] Compiling Sankey SankeyData.swift
/Users/admin/builder/spi-builder-workspace/Sources/SankeyData.swift:19:37: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
 1 | import Foundation
 2 |
 3 | public struct SankeyData: Encodable, CustomStringConvertible {
   |               `- note: add '@available' attribute to enclosing struct
 4 |     public var nodes: [SankeyNode]
 5 |     public var links: [SankeyLink]
   :
15 |     }
16 |
17 |     public var description: String {
   |                `- note: add '@available' attribute to enclosing property
18 |         let encoder = JSONEncoder()
19 |         encoder.outputFormatting = .withoutEscapingSlashes
   |                                     |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
   |                                     `- note: add 'if #available' version check
20 |         guard let data = try? encoder.encode(self), let string = String(data: data, encoding: .utf8) else { return "{}" }
21 |         return string
[14/16] Compiling Sankey SankeyDiagram.swift
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:5:20: error: 'colorScheme' is only available in macOS 10.15 or newer
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
    |                    `- error: 'colorScheme' is only available in macOS 10.15 or newer
  6 |     public var data: SankeyData
  7 |     var options = SankeyOptions()
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:5:58: error: 'ColorScheme' is only available in macOS 10.15 or newer
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
    |                                                          `- error: 'ColorScheme' is only available in macOS 10.15 or newer
  6 |     public var data: SankeyData
  7 |     var options = SankeyOptions()
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:5:6: error: 'Environment' is only available in macOS 10.15 or newer
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
  6 |     public var data: SankeyData
  7 |     var options = SankeyOptions()
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:13:37: error: cannot find type 'Context' in scope
 11 |     }
 12 |
 13 |     public func makeUIView(context: Context) -> WKWebView {
    |                                     `- error: cannot find type 'Context' in scope
 14 |         let webView = WKWebView()
 15 |         webView.isOpaque = false
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:21:61: error: cannot find type 'Context' in scope
 19 |     }
 20 |
 21 |     public func updateUIView(_ webView: WKWebView, context: Context) {
    |                                                             `- error: cannot find type 'Context' in scope
 22 |         loadHTML(webView)
 23 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:49:43: error: 'Color' is only available in macOS 10.15 or newer
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
  6 |     public var data: SankeyData
    :
 47 |
 48 |     /// Sets the default color for nodes
 49 |     public func nodeDefaultColor(_ color: Color) -> SankeyDiagram {
    |                 |                         `- error: 'Color' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing instance method
 50 |         var new = self
 51 |         new.options.nodeDefaultColor = color
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:63:43: error: 'Color' is only available in macOS 10.15 or newer
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
  6 |     public var data: SankeyData
    :
 61 |
 62 |     /// Sets the default color for links
 63 |     public func linkDefaultColor(_ color: Color) -> SankeyDiagram {
    |                 |                         `- error: 'Color' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing instance method
 64 |         var new = self
 65 |         new.options.linkDefaultColor = color
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:91:37: error: 'Color' is only available in macOS 10.15 or newer
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |               `- note: add '@available' attribute to enclosing struct
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
  6 |     public var data: SankeyData
    :
 89 |
 90 |     /// Sets the color of labels
 91 |     public func labelColor(_ color: Color) -> SankeyDiagram {
    |                 |                   `- error: 'Color' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing instance method
 92 |         var new = self
 93 |         new.options.labelColor = color
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:4:30: error: cannot find type 'UIViewRepresentable' in scope
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |                              `- error: cannot find type 'UIViewRepresentable' in scope
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
  6 |     public var data: SankeyData
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:15:17: error: cannot assign to property: 'isOpaque' is a get-only property
 13 |     public func makeUIView(context: Context) -> WKWebView {
 14 |         let webView = WKWebView()
 15 |         webView.isOpaque = false
    |                 `- error: cannot assign to property: 'isOpaque' is a get-only property
 16 |         webView.scrollView.isScrollEnabled = false
 17 |         loadHTML(webView)
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:16:17: error: value of type 'WKWebView' has no member 'scrollView'
 14 |         let webView = WKWebView()
 15 |         webView.isOpaque = false
 16 |         webView.scrollView.isScrollEnabled = false
    |                 `- error: value of type 'WKWebView' has no member 'scrollView'
 17 |         loadHTML(webView)
 18 |         return webView
[15/16] Compiling Sankey SankeyDiagram+deprecated.swift
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:4:30: error: cannot find type 'UIViewRepresentable' in scope
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |                              `- error: cannot find type 'UIViewRepresentable' in scope
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
  6 |     public var data: SankeyData
/Users/admin/builder/spi-builder-workspace/Sources/Deprecated/SankeyDiagram+deprecated.swift:69:51: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension SankeyDiagram {
   | `- note: add '@available' attribute to enclosing extension
 4 |     /// Initializes a `SankeyDiagram` with an array of customizable options
 5 |     ///
   :
67 |         options.nodeWidth = nodeWidth ?? options.nodeWidth
68 |         options.nodePadding = nodePadding ?? options.nodePadding
69 |         options.labelColor = nodeLabelColor.map { Color(hex: $0) } ?? options.labelColor
   |                                                   |- error: 'Color' is only available in macOS 10.15 or newer
   |                                                   `- note: add 'if #available' version check
70 |         options.labelFontSize = nodeLabelFontSize ?? options.labelFontSize
71 |         options.labelFontFamily = nodeLabelFontName ?? options.labelFontFamily
/Users/admin/builder/spi-builder-workspace/Sources/Deprecated/SankeyDiagram+deprecated.swift:78:56: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension SankeyDiagram {
   | `- note: add '@available' attribute to enclosing extension
 4 |     /// Initializes a `SankeyDiagram` with an array of customizable options
 5 |     ///
   :
76 |         // linkColors - Deprecated
77 |         options.linkColorMode = linkColorMode
78 |         options.linkDefaultColor = linkColorFill.map { Color(hex: $0) } ?? options.linkDefaultColor
   |                                                        |- error: 'Color' is only available in macOS 10.15 or newer
   |                                                        `- note: add 'if #available' version check
79 |         options.linkOpacity = linkColorFillOpacity ?? options.linkOpacity
80 |         // linkColorStroke - Deprecated
[16/16] Compiling Sankey SankeyLink+deprecated.swift
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:4:30: error: cannot find type 'UIViewRepresentable' in scope
  2 | import WebKit
  3 |
  4 | public struct SankeyDiagram: UIViewRepresentable {
    |                              `- error: cannot find type 'UIViewRepresentable' in scope
  5 |     @Environment(\.colorScheme) private var colorScheme: ColorScheme
  6 |     public var data: SankeyData
/Users/admin/builder/spi-builder-workspace/Sources/Deprecated/SankeyDiagram+deprecated.swift:69:51: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension SankeyDiagram {
   | `- note: add '@available' attribute to enclosing extension
 4 |     /// Initializes a `SankeyDiagram` with an array of customizable options
 5 |     ///
   :
67 |         options.nodeWidth = nodeWidth ?? options.nodeWidth
68 |         options.nodePadding = nodePadding ?? options.nodePadding
69 |         options.labelColor = nodeLabelColor.map { Color(hex: $0) } ?? options.labelColor
   |                                                   |- error: 'Color' is only available in macOS 10.15 or newer
   |                                                   `- note: add 'if #available' version check
70 |         options.labelFontSize = nodeLabelFontSize ?? options.labelFontSize
71 |         options.labelFontFamily = nodeLabelFontName ?? options.labelFontFamily
/Users/admin/builder/spi-builder-workspace/Sources/Deprecated/SankeyDiagram+deprecated.swift:78:56: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | extension SankeyDiagram {
   | `- note: add '@available' attribute to enclosing extension
 4 |     /// Initializes a `SankeyDiagram` with an array of customizable options
 5 |     ///
   :
76 |         // linkColors - Deprecated
77 |         options.linkColorMode = linkColorMode
78 |         options.linkDefaultColor = linkColorFill.map { Color(hex: $0) } ?? options.linkDefaultColor
   |                                                        |- error: 'Color' is only available in macOS 10.15 or newer
   |                                                        `- note: add 'if #available' version check
79 |         options.linkOpacity = linkColorFillOpacity ?? options.linkOpacity
80 |         // linkColorStroke - Deprecated
BUILD FAILURE 6.3 macosSpm