The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Sankey, reference master (1440b4), with Swift 6.0 for macOS (SPM) on 4 Dec 2024 23:31:13 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.5
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",
  "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",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/maxhumber/Sankey.git
[1/564] Fetching sankey
Fetched https://github.com/maxhumber/Sankey.git from cache (1.44s)
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.0
Building package at path:  $PWD
https://github.com/maxhumber/Sankey.git
https://github.com/maxhumber/Sankey.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Sankey",
  "name" : "Sankey",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "Sankey",
      "targets" : [
        "Sankey"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SankeyTests",
      "module_type" : "SwiftTarget",
      "name" : "SankeyTests",
      "path" : "Tests/SankeyTests",
      "sources" : [
        "SankeyTests.swift"
      ],
      "target_dependencies" : [
        "Sankey"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Sankey",
      "module_type" : "SwiftTarget",
      "name" : "Sankey",
      "path" : "Sources",
      "product_memberships" : [
        "Sankey"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Resources/d3-sankey.min.js",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Resources/d3.min.js",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Deprecated/SankeyDiagram+deprecated.swift",
        "Deprecated/SankeyLink+deprecated.swift",
        "Helpers/Color+.swift",
        "Helpers/HexColor.swift",
        "SankeyData.swift",
        "SankeyDiagram.swift",
        "SankeyLink.swift",
        "SankeyNode.swift",
        "SankeyOptions.swift",
        "SankeyResources.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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/4] Write sources
[1/4] Copying d3-sankey.min.js
[2/4] Copying d3.min.js
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/15] Compiling Sankey SankeyResources.swift
[6/15] Compiling Sankey SankeyOptions.swift
/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: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: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
/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: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: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
[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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/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 | }
[9/16] Emitting module Sankey
/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/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: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: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
/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/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: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: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
[10/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
[11/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
[12/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/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: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: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
/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
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:14:23: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 11 |     }
 12 |
 13 |     public func makeUIView(context: Context) -> WKWebView {
    |                 `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
 14 |         let webView = WKWebView()
    |                       `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 15 |         webView.isOpaque = false
 16 |         webView.scrollView.isScrollEnabled = false
WebKit.WKWebView:211:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
209 |     open var writingToolsActive: Bool { get }
210 |     public convenience init(frame frameRect: NSRect)
211 |     @MainActor public convenience init()
    |                                   `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/SankeyDiagram.swift:121:17: warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
118 |     // MARK: - Private Implementation Details
119 |
120 |     private func loadHTML(_ webView: WKWebView) {
    |                  `- note: add '@MainActor' to make instance method 'loadHTML' part of global actor 'MainActor'
121 |         webView.loadHTMLString(generateHTML(), baseURL: nil)
    |                 `- warning: call to main actor-isolated instance method 'loadHTMLString(_:baseURL:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 |     }
123 |
WebKit.WKWebView:19:15: note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
 17 |     @available(swift, obsoleted: 3, renamed: "loadFileURL(_:allowingReadAccessTo:)")
 18 |     open func loadFileURL(_ URL: URL, allowingReadAccessToURL readAccessURL: URL) -> WKNavigation?
 19 |     open func loadHTMLString(_ string: String, baseURL: URL?) -> WKNavigation?
    |               `- note: calls to instance method 'loadHTMLString(_:baseURL:)' from outside of its actor context are implicitly asynchronous
 20 |     @available(macOS 10.11, *)
 21 |     open func load(_ data: Data, mimeType MIMEType: String, characterEncodingName: String, baseURL: URL) -> WKNavigation?
[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+deprecated.swift
/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: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: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
/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
[15/16] Compiling Sankey SankeyLink+deprecated.swift
/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: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: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
/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 resource_bundle_accessor.swift
BUILD FAILURE 6.0 macosSpm