The Swift Package Index logo.Swift Package Index

Build Information

Successful build of OKLCHGradient, reference main (ede198), with Swift 6.1 for macOS (SPM) on 28 Nov 2025 17:38:38 UTC.

Swift 6 data race errors: 4

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fwrs/OKLCHGradient.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fwrs/OKLCHGradient
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ede1989 Migrate to @available and lower the package-wide version requirement
Cloned https://github.com/fwrs/OKLCHGradient.git
Revision (git rev-parse @):
ede1989a8a5e11ece0ec8ad87168b3ab6fd3b234
SUCCESS checkout https://github.com/fwrs/OKLCHGradient.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/fwrs/OKLCHGradient.git
https://github.com/fwrs/OKLCHGradient.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OKLCHGradient",
  "name" : "OKLCHGradient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "OKLCHGradient",
      "targets" : [
        "OKLCHGradient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OKLCHGradient",
      "module_type" : "SwiftTarget",
      "name" : "OKLCHGradient",
      "path" : "Sources/OKLCHGradient",
      "product_memberships" : [
        "OKLCHGradient"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHGradient.metal",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "OKLCHAngularGradient.swift",
        "OKLCHEllipticalGradient.swift",
        "OKLCHLinearGradient.swift",
        "OKLCHRadialGradient.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[0/3] Copying OKLCHGradient.metal
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/10] Compiling OKLCHGradient Utils.swift
[5/10] Compiling OKLCHGradient resource_bundle_accessor.swift
[6/10] Compiling OKLCHGradient OKLCHEllipticalGradient.swift
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHEllipticalGradient.swift:32:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 3 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, *)
 4 | @available(watchOS, unavailable)
 5 | public struct OKLCHEllipticalGradient: ShapeStyle, View, Sendable {
   |                                        `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 6 |     let stops: [Gradient.Stop]
 7 |     let center: UnitPoint
   :
30 |     }
31 |
32 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
33 |         ShaderLibrary.bundle(Bundle.module).oklchEllipticalGradient(
34 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHEllipticalGradient.swift:48:9: warning: call to main actor-isolated initializer 'init(gradient:center:startRadiusFraction:endRadiusFraction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 |     }
24 |
25 |     public init(gradient: Gradient, center: UnitPoint = .center, startRadiusFraction: CGFloat = 0, endRadiusFraction: CGFloat = 0.5) {
   |            |- note: calls to initializer 'init(gradient:center:startRadiusFraction:endRadiusFraction:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
26 |         self.stops = gradient.stops
27 |         self.center = center
   :
45 | @available(watchOS, unavailable)
46 | public extension ShapeStyle where Self == OKLCHEllipticalGradient {
47 |     static func oklchEllipticalGradient(_ gradient: Gradient, center: UnitPoint = .center, startRadiusFraction: CGFloat = 0, endRadiusFraction: CGFloat = 0.5) -> OKLCHEllipticalGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchEllipticalGradient(_:center:startRadiusFraction:endRadiusFraction:)' part of global actor 'MainActor'
48 |         OKLCHEllipticalGradient(gradient: gradient, center: center, startRadiusFraction: startRadiusFraction, endRadiusFraction: endRadiusFraction)
   |         `- warning: call to main actor-isolated initializer 'init(gradient:center:startRadiusFraction:endRadiusFraction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |     }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHEllipticalGradient.swift:52:9: warning: call to main actor-isolated initializer 'init(colors:center:startRadiusFraction:endRadiusFraction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 9 |     let endRadiusFraction: CGFloat
10 |
11 |     public init(colors: [Color], center: UnitPoint = .center, startRadiusFraction: CGFloat = 0, endRadiusFraction: CGFloat = 0.5) {
   |            |- note: calls to initializer 'init(colors:center:startRadiusFraction:endRadiusFraction:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
12 |         self.stops = colors.evenlyDistributedStops
13 |         self.center = center
   :
49 |     }
50 |
51 |     static func oklchEllipticalGradient(colors: [Color], center: UnitPoint = .center, startRadiusFraction: CGFloat = 0, endRadiusFraction: CGFloat = 0.5) -> OKLCHEllipticalGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchEllipticalGradient(colors:center:startRadiusFraction:endRadiusFraction:)' part of global actor 'MainActor'
52 |         OKLCHEllipticalGradient(colors: colors, center: center, startRadiusFraction: startRadiusFraction, endRadiusFraction: endRadiusFraction)
   |         `- warning: call to main actor-isolated initializer 'init(colors:center:startRadiusFraction:endRadiusFraction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 |     }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHEllipticalGradient.swift:56:9: warning: call to main actor-isolated initializer 'init(stops:center:startRadiusFraction:endRadiusFraction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 |     }
17 |
18 |     public init(stops: [Gradient.Stop], center: UnitPoint = .center, startRadiusFraction: CGFloat = 0, endRadiusFraction: CGFloat = 0.5) {
   |            |- note: calls to initializer 'init(stops:center:startRadiusFraction:endRadiusFraction:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
19 |         self.stops = stops
20 |         self.center = center
   :
53 |     }
54 |
55 |     static func oklchEllipticalGradient(stops: [Gradient.Stop], center: UnitPoint = .center, startRadiusFraction: CGFloat = 0, endRadiusFraction: CGFloat = 0.5) -> OKLCHEllipticalGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchEllipticalGradient(stops:center:startRadiusFraction:endRadiusFraction:)' part of global actor 'MainActor'
56 |         OKLCHEllipticalGradient(stops: stops, center: center, startRadiusFraction: startRadiusFraction, endRadiusFraction: endRadiusFraction)
   |         `- warning: call to main actor-isolated initializer 'init(stops:center:startRadiusFraction:endRadiusFraction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 |     }
58 | }
[7/10] Compiling OKLCHGradient OKLCHLinearGradient.swift
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHLinearGradient.swift:28:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 3 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, *)
 4 | @available(watchOS, unavailable)
 5 | public struct OKLCHLinearGradient: ShapeStyle, View, Sendable {
   |                                    `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 6 |     let stops: [Gradient.Stop]
 7 |     let startPoint: UnitPoint
   :
26 |     }
27 |
28 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
29 |         ShaderLibrary.bundle(Bundle.module).oklchLinearGradient(
30 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHLinearGradient.swift:43:9: warning: call to main actor-isolated initializer 'init(gradient:startPoint:endPoint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 |     }
21 |
22 |     public init(gradient: Gradient, startPoint: UnitPoint, endPoint: UnitPoint) {
   |            |- note: calls to initializer 'init(gradient:startPoint:endPoint:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
23 |         self.stops = gradient.stops
24 |         self.startPoint = startPoint
   :
40 | @available(watchOS, unavailable)
41 | public extension ShapeStyle where Self == OKLCHLinearGradient {
42 |     static func oklchLinearGradient(_ gradient: Gradient, startPoint: UnitPoint, endPoint: UnitPoint) -> OKLCHLinearGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchLinearGradient(_:startPoint:endPoint:)' part of global actor 'MainActor'
43 |         OKLCHLinearGradient(gradient: gradient, startPoint: startPoint, endPoint: endPoint)
   |         `- warning: call to main actor-isolated initializer 'init(gradient:startPoint:endPoint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 |     }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHLinearGradient.swift:47:9: warning: call to main actor-isolated initializer 'init(colors:startPoint:endPoint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 8 |     let endPoint: UnitPoint
 9 |
10 |     public init(colors: [Color], startPoint: UnitPoint, endPoint: UnitPoint) {
   |            |- note: calls to initializer 'init(colors:startPoint:endPoint:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
11 |         self.stops = colors.evenlyDistributedStops
12 |         self.startPoint = startPoint
   :
44 |     }
45 |
46 |     static func oklchLinearGradient(colors: [Color], startPoint: UnitPoint, endPoint: UnitPoint) -> OKLCHLinearGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchLinearGradient(colors:startPoint:endPoint:)' part of global actor 'MainActor'
47 |         OKLCHLinearGradient(colors: colors, startPoint: startPoint, endPoint: endPoint)
   |         `- warning: call to main actor-isolated initializer 'init(colors:startPoint:endPoint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 |     }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHLinearGradient.swift:51:9: warning: call to main actor-isolated initializer 'init(stops:startPoint:endPoint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 |     }
15 |
16 |     public init(stops: [Gradient.Stop], startPoint: UnitPoint, endPoint: UnitPoint) {
   |            |- note: calls to initializer 'init(stops:startPoint:endPoint:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
17 |         self.stops = stops
18 |         self.startPoint = startPoint
   :
48 |     }
49 |
50 |     static func oklchLinearGradient(stops: [Gradient.Stop], startPoint: UnitPoint, endPoint: UnitPoint) -> OKLCHLinearGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchLinearGradient(stops:startPoint:endPoint:)' part of global actor 'MainActor'
51 |         OKLCHLinearGradient(stops: stops, startPoint: startPoint, endPoint: endPoint)
   |         `- warning: call to main actor-isolated initializer 'init(stops:startPoint:endPoint:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |     }
53 | }
[8/10] Emitting module OKLCHGradient
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:53:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 3 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, *)
 4 | @available(watchOS, unavailable)
 5 | public struct OKLCHAngularGradient: ShapeStyle, View, Sendable {
   |                                     `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 6 |     let stops: [Gradient.Stop]
 7 |     let center: UnitPoint
   :
51 |     }
52 |
53 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
54 |         ShaderLibrary.bundle(Bundle.module).oklchAngularGradient(
55 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHEllipticalGradient.swift:32:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 3 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, *)
 4 | @available(watchOS, unavailable)
 5 | public struct OKLCHEllipticalGradient: ShapeStyle, View, Sendable {
   |                                        `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 6 |     let stops: [Gradient.Stop]
 7 |     let center: UnitPoint
   :
30 |     }
31 |
32 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
33 |         ShaderLibrary.bundle(Bundle.module).oklchEllipticalGradient(
34 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHLinearGradient.swift:28:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 3 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, *)
 4 | @available(watchOS, unavailable)
 5 | public struct OKLCHLinearGradient: ShapeStyle, View, Sendable {
   |                                    `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 6 |     let stops: [Gradient.Stop]
 7 |     let startPoint: UnitPoint
   :
26 |     }
27 |
28 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
29 |         ShaderLibrary.bundle(Bundle.module).oklchLinearGradient(
30 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHRadialGradient.swift:32:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 3 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, *)
 4 | @available(watchOS, unavailable)
 5 | public struct OKLCHRadialGradient: ShapeStyle, View, Sendable {
   |                                    `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 6 |     let stops: [Gradient.Stop]
 7 |     let center: UnitPoint
   :
30 |     }
31 |
32 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
33 |         ShaderLibrary.bundle(Bundle.module).oklchRadialGradient(
34 |             .boundingRect,
[9/10] Compiling OKLCHGradient OKLCHAngularGradient.swift
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:53:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 3 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, *)
 4 | @available(watchOS, unavailable)
 5 | public struct OKLCHAngularGradient: ShapeStyle, View, Sendable {
   |                                     `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 6 |     let stops: [Gradient.Stop]
 7 |     let center: UnitPoint
   :
51 |     }
52 |
53 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
54 |         ShaderLibrary.bundle(Bundle.module).oklchAngularGradient(
55 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:69:9: warning: call to main actor-isolated initializer 'init(gradient:center:startAngle:endAngle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 |     }
24 |
25 |     public init(gradient: Gradient, center: UnitPoint, startAngle: Angle = .zero, endAngle: Angle = .zero) {
   |            |- note: calls to initializer 'init(gradient:center:startAngle:endAngle:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
26 |         self.stops = gradient.stops
27 |         self.center = center
   :
66 | @available(watchOS, unavailable)
67 | public extension ShapeStyle where Self == OKLCHAngularGradient {
68 |     static func oklchAngularGradient(_ gradient: Gradient, center: UnitPoint, startAngle: Angle, endAngle: Angle) -> OKLCHAngularGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchAngularGradient(_:center:startAngle:endAngle:)' part of global actor 'MainActor'
69 |         OKLCHAngularGradient(gradient: gradient, center: center, startAngle: startAngle, endAngle: endAngle)
   |         `- warning: call to main actor-isolated initializer 'init(gradient:center:startAngle:endAngle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 |     }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:73:9: warning: call to main actor-isolated initializer 'init(colors:center:startAngle:endAngle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 9 |     let endAngle: Angle
10 |
11 |     public init(colors: [Color], center: UnitPoint, startAngle: Angle, endAngle: Angle) {
   |            |- note: calls to initializer 'init(colors:center:startAngle:endAngle:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
12 |         self.stops = colors.evenlyDistributedStops
13 |         self.center = center
   :
70 |     }
71 |
72 |     static func oklchAngularGradient(colors: [Color], center: UnitPoint, startAngle: Angle, endAngle: Angle) -> OKLCHAngularGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchAngularGradient(colors:center:startAngle:endAngle:)' part of global actor 'MainActor'
73 |         OKLCHAngularGradient(colors: colors, center: center, startAngle: startAngle, endAngle: endAngle)
   |         `- warning: call to main actor-isolated initializer 'init(colors:center:startAngle:endAngle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
74 |     }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:77:9: warning: call to main actor-isolated initializer 'init(stops:center:startAngle:endAngle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 |     }
17 |
18 |     public init(stops: [Gradient.Stop], center: UnitPoint, startAngle: Angle, endAngle: Angle) {
   |            |- note: calls to initializer 'init(stops:center:startAngle:endAngle:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
19 |         self.stops = stops
20 |         self.center = center
   :
74 |     }
75 |
76 |     static func oklchAngularGradient(stops: [Gradient.Stop], center: UnitPoint, startAngle: Angle, endAngle: Angle) -> OKLCHAngularGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchAngularGradient(stops:center:startAngle:endAngle:)' part of global actor 'MainActor'
77 |         OKLCHAngularGradient(stops: stops, center: center, startAngle: startAngle, endAngle: endAngle)
   |         `- warning: call to main actor-isolated initializer 'init(stops:center:startAngle:endAngle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 |     }
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:85:9: warning: call to main actor-isolated initializer 'init(gradient:center:angle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 |     }
45 |
46 |     public init(gradient: Gradient, center: UnitPoint, angle: Angle = .zero) {
   |            |- note: calls to initializer 'init(gradient:center:angle:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
47 |         self.stops = gradient.stops
48 |         self.center = center
   :
82 | @available(watchOS, unavailable)
83 | public extension ShapeStyle where Self == OKLCHAngularGradient {
84 |     static func oklchConicGradient(_ gradient: Gradient, center: UnitPoint, angle: Angle = .zero) -> OKLCHAngularGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchConicGradient(_:center:angle:)' part of global actor 'MainActor'
85 |         OKLCHAngularGradient(gradient: gradient, center: center, angle: angle)
   |         `- warning: call to main actor-isolated initializer 'init(gradient:center:angle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
86 |     }
87 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:89:9: warning: call to main actor-isolated initializer 'init(colors:center:angle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     public init(colors: [Color], center: UnitPoint, angle: Angle = .zero) {
   |            |- note: calls to initializer 'init(colors:center:angle:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
33 |         self.stops = colors.evenlyDistributedStops
34 |         self.center = center
   :
86 |     }
87 |
88 |     static func oklchConicGradient(colors: [Color], center: UnitPoint, angle: Angle = .zero) -> OKLCHAngularGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchConicGradient(colors:center:angle:)' part of global actor 'MainActor'
89 |         OKLCHAngularGradient(colors: colors, center: center, angle: angle)
   |         `- warning: call to main actor-isolated initializer 'init(colors:center:angle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
90 |     }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHAngularGradient.swift:93:9: warning: call to main actor-isolated initializer 'init(stops:center:angle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 |     }
38 |
39 |     public init(stops: [Gradient.Stop], center: UnitPoint, angle: Angle = .zero) {
   |            |- note: calls to initializer 'init(stops:center:angle:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
40 |         self.stops = stops
41 |         self.center = center
   :
90 |     }
91 |
92 |     static func oklchConicGradient(stops: [Gradient.Stop], center: UnitPoint, angle: Angle = .zero) -> OKLCHAngularGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchConicGradient(stops:center:angle:)' part of global actor 'MainActor'
93 |         OKLCHAngularGradient(stops: stops, center: center, angle: angle)
   |         `- warning: call to main actor-isolated initializer 'init(stops:center:angle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
94 |     }
95 | }
[10/10] Compiling OKLCHGradient OKLCHRadialGradient.swift
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHRadialGradient.swift:32:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
 3 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, *)
 4 | @available(watchOS, unavailable)
 5 | public struct OKLCHRadialGradient: ShapeStyle, View, Sendable {
   |                                    `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 6 |     let stops: [Gradient.Stop]
 7 |     let center: UnitPoint
   :
30 |     }
31 |
32 |     public func resolve(in environment: EnvironmentValues) -> some ShapeStyle {
   |                 |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated requirement from protocol 'ShapeStyle'; this is an error in the Swift 6 language mode
   |                 `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
33 |         ShaderLibrary.bundle(Bundle.module).oklchRadialGradient(
34 |             .boundingRect,
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHRadialGradient.swift:48:9: warning: call to main actor-isolated initializer 'init(gradient:center:startRadius:endRadius:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 |     }
24 |
25 |     public init(gradient: Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) {
   |            |- note: calls to initializer 'init(gradient:center:startRadius:endRadius:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
26 |         self.stops = gradient.stops
27 |         self.center = center
   :
45 | @available(watchOS, unavailable)
46 | public extension ShapeStyle where Self == OKLCHRadialGradient {
47 |     static func oklchRadialGradient(_ gradient: Gradient, center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) -> OKLCHRadialGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchRadialGradient(_:center:startRadius:endRadius:)' part of global actor 'MainActor'
48 |         OKLCHRadialGradient(gradient: gradient, center: center, startRadius: startRadius, endRadius: endRadius)
   |         `- warning: call to main actor-isolated initializer 'init(gradient:center:startRadius:endRadius:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |     }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHRadialGradient.swift:52:9: warning: call to main actor-isolated initializer 'init(colors:center:startRadius:endRadius:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 9 |     let endRadius: CGFloat
10 |
11 |     public init(colors: [Color], center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) {
   |            |- note: calls to initializer 'init(colors:center:startRadius:endRadius:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
12 |         self.stops = colors.evenlyDistributedStops
13 |         self.center = center
   :
49 |     }
50 |
51 |     static func oklchRadialGradient(colors: [Color], center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) -> OKLCHRadialGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchRadialGradient(colors:center:startRadius:endRadius:)' part of global actor 'MainActor'
52 |         OKLCHRadialGradient(colors: colors, center: center, startRadius: startRadius, endRadius: endRadius)
   |         `- warning: call to main actor-isolated initializer 'init(colors:center:startRadius:endRadius:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 |     }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHRadialGradient.swift:56:9: warning: call to main actor-isolated initializer 'init(stops:center:startRadius:endRadius:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 |     }
17 |
18 |     public init(stops: [Gradient.Stop], center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) {
   |            |- note: calls to initializer 'init(stops:center:startRadius:endRadius:)' from outside of its actor context are implicitly asynchronous
   |            `- note: main actor isolation inferred from conformance to protocol 'View'
19 |         self.stops = stops
20 |         self.center = center
   :
53 |     }
54 |
55 |     static func oklchRadialGradient(stops: [Gradient.Stop], center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) -> OKLCHRadialGradient {
   |                 `- note: add '@MainActor' to make static method 'oklchRadialGradient(stops:center:startRadius:endRadius:)' part of global actor 'MainActor'
56 |         OKLCHRadialGradient(stops: stops, center: center, startRadius: startRadius, endRadius: endRadius)
   |         `- warning: call to main actor-isolated initializer 'init(stops:center:startRadius:endRadius:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 |     }
58 | }
Build complete! (8.93s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OKLCHGradient",
  "name" : "OKLCHGradient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "OKLCHGradient",
      "targets" : [
        "OKLCHGradient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OKLCHGradient",
      "module_type" : "SwiftTarget",
      "name" : "OKLCHGradient",
      "path" : "Sources/OKLCHGradient",
      "product_memberships" : [
        "OKLCHGradient"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/OKLCHGradient/OKLCHGradient.metal",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "OKLCHAngularGradient.swift",
        "OKLCHEllipticalGradient.swift",
        "OKLCHLinearGradient.swift",
        "OKLCHRadialGradient.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.