The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of SmoothGradient, reference 1.0.0 (61bf24), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 10:45:15 UTC.

Swift 6 data race errors: 4

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/raymondjavaxx/SmoothGradient.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/raymondjavaxx/SmoothGradient
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 61bf248 Add podspec (#5)
Cloned https://github.com/raymondjavaxx/SmoothGradient.git
Revision (git rev-parse @):
61bf248fad31c7921c9985b418e6e9297cd7b861
SUCCESS checkout https://github.com/raymondjavaxx/SmoothGradient.git at 1.0.0
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/12436] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (2.44s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.11.1 (0.68s)
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/233] Fetching smoothgradient
Fetched https://github.com/raymondjavaxx/SmoothGradient.git from cache (1.15s)
Creating working copy for https://github.com/raymondjavaxx/SmoothGradient.git
Working copy of https://github.com/raymondjavaxx/SmoothGradient.git resolved at 1.0.0 (61bf248)
warning: '.resolve-product-dependencies': dependency 'smoothgradient' 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/raymondjavaxx/SmoothGradient.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/8] Emitting module SmoothGradient
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:30: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
 19 | @available(tvOS, introduced: 14.0, deprecated: 17.0, message: "use UnitCurve instead")
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 22 |     let p1: UnitPoint
 23 |     let p2: UnitPoint
    :
 28 |
 29 |     /// A bezier curve that starts out slowly, then speeds up as it finishes.
 30 |     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: annotate 'easeIn' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |         p1: UnitPoint(x: 0.42, y: 0),
 32 |         p2: UnitPoint(x: 1, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:36: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
 19 | @available(tvOS, introduced: 14.0, deprecated: 17.0, message: "use UnitCurve instead")
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 22 |     let p1: UnitPoint
 23 |     let p2: UnitPoint
    :
 34 |
 35 |     /// A bezier curve that starts out quickly, then slows down as it approaches the end.
 36 |     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: annotate 'easeOut' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |         p1: UnitPoint(x: 0, y: 0),
 38 |         p2: UnitPoint(x: 0.58, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:42: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
 19 | @available(tvOS, introduced: 14.0, deprecated: 17.0, message: "use UnitCurve instead")
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 22 |     let p1: UnitPoint
 23 |     let p2: UnitPoint
    :
 40 |
 41 |     /// A bezier curve that starts out slowly, speeds up over the middle, then slows down again as it approaches the end.
 42 |     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: annotate 'easeInOut' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |         p1: UnitPoint(x: 0.42, y: 0),
 44 |         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 protocol requirement; 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 protocol requirement; 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),
SwiftUICore.ShapeStyle:12:10: note: 'resolve(in:)' declared here
10 |     associatedtype Resolved : ShapeStyle = Never
11 |     @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
12 |     func resolve(in environment: EnvironmentValues) -> Self.Resolved
   |          `- note: 'resolve(in:)' declared here
13 | }
[4/8] 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 protocol requirement; 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 protocol requirement; 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),
SwiftUICore.ShapeStyle:12:10: note: 'resolve(in:)' declared here
10 |     associatedtype Resolved : ShapeStyle = Never
11 |     @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
12 |     func resolve(in environment: EnvironmentValues) -> Self.Resolved
   |          `- note: 'resolve(in:)' declared here
13 | }
[5/8] Compiling SmoothGradient Curve.swift
[6/8] Compiling SmoothGradient CubicBezierCurve.swift
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:30: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
 19 | @available(tvOS, introduced: 14.0, deprecated: 17.0, message: "use UnitCurve instead")
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 22 |     let p1: UnitPoint
 23 |     let p2: UnitPoint
    :
 28 |
 29 |     /// A bezier curve that starts out slowly, then speeds up as it finishes.
 30 |     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: annotate 'easeIn' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |         p1: UnitPoint(x: 0.42, y: 0),
 32 |         p2: UnitPoint(x: 1, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:36: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
 19 | @available(tvOS, introduced: 14.0, deprecated: 17.0, message: "use UnitCurve instead")
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 22 |     let p1: UnitPoint
 23 |     let p2: UnitPoint
    :
 34 |
 35 |     /// A bezier curve that starts out quickly, then slows down as it approaches the end.
 36 |     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: annotate 'easeOut' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |         p1: UnitPoint(x: 0, y: 0),
 38 |         p2: UnitPoint(x: 0.58, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:42: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
 19 | @available(tvOS, introduced: 14.0, deprecated: 17.0, message: "use UnitCurve instead")
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 22 |     let p1: UnitPoint
 23 |     let p2: UnitPoint
    :
 40 |
 41 |     /// A bezier curve that starts out slowly, speeds up over the middle, then slows down again as it approaches the end.
 42 |     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: annotate 'easeInOut' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |         p1: UnitPoint(x: 0.42, y: 0),
 44 |         p2: UnitPoint(x: 0.58, y: 1)
[7/8] Compiling SmoothGradient Gradient+Smooth.swift
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:42: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
 19 | @available(tvOS, introduced: 14.0, deprecated: 17.0, message: "use UnitCurve instead")
 20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
 21 | public struct CubicBezierCurve: Curve {
    |               `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
 22 |     let p1: UnitPoint
 23 |     let p2: UnitPoint
    :
 40 |
 41 |     /// A bezier curve that starts out slowly, speeds up over the middle, then slows down again as it approaches the end.
 42 |     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: annotate 'easeInOut' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |         p1: UnitPoint(x: 0.42, y: 0),
 44 |         p2: UnitPoint(x: 0.58, y: 1)
[8/8] Compiling SmoothGradient GradientInterpolator.swift
Build complete! (15.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"
    }
  ],
  "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"
      ],
      "sources" : [
        "CubicBezierCurve.swift",
        "Curve.swift",
        "Gradient+Smooth.swift",
        "GradientInterpolator.swift",
        "SmoothLinearGradient.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.