The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SmoothGradient, reference 1.0.1 (77ac16), with Swift 6.1 for macOS (SPM) on 28 Jun 2025 21:18:09 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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/raymondjavaxx/SmoothGradient.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/raymondjavaxx/SmoothGradient
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 77ac160 Version bump (#9)
Cloned https://github.com/raymondjavaxx/SmoothGradient.git
Revision (git rev-parse @):
77ac160533ce312f92b566754731e07b20315a41
SUCCESS checkout https://github.com/raymondjavaxx/SmoothGradient.git at 1.0.1
Fetching https://github.com/pointfreeco/swift-snapshot-testing from cache
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (1.41s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.11.1 (4.46s)
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.11.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "smoothgradient",
      "name": "SmoothGradient",
      "url": "https://github.com/raymondjavaxx/SmoothGradient.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SmoothGradient",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/raymondjavaxx/SmoothGradient.git
[1/245] Fetching smoothgradient
Fetched https://github.com/raymondjavaxx/SmoothGradient.git from cache (0.98s)
Creating working copy for https://github.com/raymondjavaxx/SmoothGradient.git
Working copy of https://github.com/raymondjavaxx/SmoothGradient.git resolved at 1.0.1 (77ac160)
warning: '.resolve-product-dependencies': dependency 'smoothgradient' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/raymondjavaxx/SmoothGradient.git
https://github.com/raymondjavaxx/SmoothGradient.git
{
  "dependencies" : [
    {
      "identity" : "swift-snapshot-testing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.11.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-snapshot-testing"
    }
  ],
  "manifest_display_name" : "SmoothGradient",
  "name" : "SmoothGradient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "SmoothGradient",
      "targets" : [
        "SmoothGradient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SmoothGradientTests",
      "module_type" : "SwiftTarget",
      "name" : "SmoothGradientTests",
      "path" : "Tests/SmoothGradientTests",
      "product_dependencies" : [
        "SnapshotTesting"
      ],
      "sources" : [
        "CubicBezierCurveTests.swift",
        "GradientSmoothTests.swift",
        "SmoothLinearGradientTests.swift"
      ],
      "target_dependencies" : [
        "SmoothGradient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SmoothGradient",
      "module_type" : "SwiftTarget",
      "name" : "SmoothGradient",
      "path" : "Sources/SmoothGradient",
      "product_memberships" : [
        "SmoothGradient"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/PrivacyInfo.xcprivacy",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "CubicBezierCurve.swift",
        "Curve.swift",
        "Gradient+Smooth.swift",
        "GradientInterpolator.swift",
        "SmoothLinearGradient.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
[1/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/10] Compiling SmoothGradient SmoothLinearGradient.swift
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/SmoothLinearGradient.swift:76: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
 14 | /// A smooth linear gradient.
 15 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
 16 | public struct SmoothLinearGradient: ShapeStyle, View {
    |                                     `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 17 |     let from: Gradient.Stop
 18 |     let to: Gradient.Stop
    :
 74 |     }
 75 |
 76 |     public func resolve(in environment: EnvironmentValues) -> LinearGradient {
    |                 |- 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
 77 |         LinearGradient(
 78 |             gradient: .smooth(from: from, to: to, curve: curve, steps: steps),
[5/10] Compiling SmoothGradient Gradient+Smooth.swift
[6/10] Compiling SmoothGradient CubicBezierCurve.swift
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:31:23: warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
 22 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 23 |     let p1: UnitPoint
 24 |     let p2: UnitPoint
    :
 29 |
 30 |     /// A bezier curve that starts out slowly, then speeds up as it finishes.
 31 |     public static let easeIn = CubicBezierCurve(
    |                       |- warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'easeIn' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |         p1: UnitPoint(x: 0.42, y: 0),
 33 |         p2: UnitPoint(x: 1, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:37:23: warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
 22 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 23 |     let p1: UnitPoint
 24 |     let p2: UnitPoint
    :
 35 |
 36 |     /// A bezier curve that starts out quickly, then slows down as it approaches the end.
 37 |     public static let easeOut = CubicBezierCurve(
    |                       |- warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'easeOut' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |         p1: UnitPoint(x: 0, y: 0),
 39 |         p2: UnitPoint(x: 0.58, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:43:23: warning: static property 'easeInOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
 22 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 23 |     let p1: UnitPoint
 24 |     let p2: UnitPoint
    :
 41 |
 42 |     /// A bezier curve that starts out slowly, speeds up over the middle, then slows down again as it approaches the end.
 43 |     public static let easeInOut = CubicBezierCurve(
    |                       |- warning: static property 'easeInOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'easeInOut' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |         p1: UnitPoint(x: 0.42, y: 0),
 45 |         p2: UnitPoint(x: 0.58, y: 1)
[7/10] Emitting module SmoothGradient
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:31:23: warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
 22 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 23 |     let p1: UnitPoint
 24 |     let p2: UnitPoint
    :
 29 |
 30 |     /// A bezier curve that starts out slowly, then speeds up as it finishes.
 31 |     public static let easeIn = CubicBezierCurve(
    |                       |- warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'easeIn' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |         p1: UnitPoint(x: 0.42, y: 0),
 33 |         p2: UnitPoint(x: 1, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:37:23: warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
 22 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 23 |     let p1: UnitPoint
 24 |     let p2: UnitPoint
    :
 35 |
 36 |     /// A bezier curve that starts out quickly, then slows down as it approaches the end.
 37 |     public static let easeOut = CubicBezierCurve(
    |                       |- warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'easeOut' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |         p1: UnitPoint(x: 0, y: 0),
 39 |         p2: UnitPoint(x: 0.58, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:43:23: warning: static property 'easeInOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
 22 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 23 |     let p1: UnitPoint
 24 |     let p2: UnitPoint
    :
 41 |
 42 |     /// A bezier curve that starts out slowly, speeds up over the middle, then slows down again as it approaches the end.
 43 |     public static let easeInOut = CubicBezierCurve(
    |                       |- warning: static property 'easeInOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'easeInOut' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |         p1: UnitPoint(x: 0.42, y: 0),
 45 |         p2: UnitPoint(x: 0.58, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/SmoothLinearGradient.swift:76: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
 14 | /// A smooth linear gradient.
 15 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
 16 | public struct SmoothLinearGradient: ShapeStyle, View {
    |                                     `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
 17 |     let from: Gradient.Stop
 18 |     let to: Gradient.Stop
    :
 74 |     }
 75 |
 76 |     public func resolve(in environment: EnvironmentValues) -> LinearGradient {
    |                 |- 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
 77 |         LinearGradient(
 78 |             gradient: .smooth(from: from, to: to, curve: curve, steps: steps),
[8/10] Compiling SmoothGradient resource_bundle_accessor.swift
[9/10] Compiling SmoothGradient Curve.swift
[10/10] Compiling SmoothGradient GradientInterpolator.swift
Build complete! (8.40s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-snapshot-testing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.11.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-snapshot-testing"
    }
  ],
  "manifest_display_name" : "SmoothGradient",
  "name" : "SmoothGradient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "SmoothGradient",
      "targets" : [
        "SmoothGradient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SmoothGradientTests",
      "module_type" : "SwiftTarget",
      "name" : "SmoothGradientTests",
      "path" : "Tests/SmoothGradientTests",
      "product_dependencies" : [
        "SnapshotTesting"
      ],
      "sources" : [
        "CubicBezierCurveTests.swift",
        "GradientSmoothTests.swift",
        "SmoothLinearGradientTests.swift"
      ],
      "target_dependencies" : [
        "SmoothGradient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SmoothGradient",
      "module_type" : "SwiftTarget",
      "name" : "SmoothGradient",
      "path" : "Sources/SmoothGradient",
      "product_memberships" : [
        "SmoothGradient"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/PrivacyInfo.xcprivacy",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "CubicBezierCurve.swift",
        "Curve.swift",
        "Gradient+Smooth.swift",
        "GradientInterpolator.swift",
        "SmoothLinearGradient.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.