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 Easing, reference 3.0.1 (5dc356), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 05:03:34 UTC.

Swift 6 data race errors: 4

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/psharanda/Easing.git
Reference: 3.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/psharanda/Easing
 * tag               3.0.1      -> FETCH_HEAD
HEAD is now at 5dc356f Update README.md
Cloned https://github.com/psharanda/Easing.git
Revision (git rev-parse @):
5dc356fdf098635ebc86631737d72c29db8386c3
SUCCESS checkout https://github.com/psharanda/Easing.git at 3.0.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/psharanda/Easing.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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-117DEE11B69C53C9.txt
[3/11] Compiling Easing UIColor+Interpolatable.swift
[4/11] Compiling Easing Interpolatable.swift
[5/11] Compiling Easing CubicBezierInterpolator.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utils/CubicBezierInterpolator.swift:86:24: warning: static property 'dict' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 84 |     {
 85 |         enum Cache {
 86 |             static var dict: [SampleKey: [Double]] = [:]
    |                        |- warning: static property 'dict' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'dict' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'dict' 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
 87 |         }
 88 |
[6/11] Compiling Easing CGPath+PathElements.swift
[7/11] Compiling Easing Easing.swift
[8/11] Compiling Easing CGPrimitives+Interpolatable.swift
[9/11] Compiling Easing UIBezierPath+Interpolatable.swift
[10/11] Emitting module Easing
/Users/admin/builder/spi-builder-workspace/Sources/Easing/Easing+CAMediaTimeFunction.swift:10:20: warning: static property 'caEaseIn' is not concurrency-safe because non-'Sendable' type 'Easing' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 |     public extension Easing {
10 |         static let caEaseIn: Easing = {
   |                    |- warning: static property 'caEaseIn' is not concurrency-safe because non-'Sendable' type 'Easing' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'caEaseIn' 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
11 |             let f = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeIn)
12 |             return Easing.cubicBezierEasingForMediaFunction(f)
/Users/admin/builder/spi-builder-workspace/Sources/Easing/Easing.swift:7:13: note: consider making enum 'Easing' conform to the 'Sendable' protocol
  5 | import Foundation
  6 |
  7 | public enum Easing {
    |             `- note: consider making enum 'Easing' conform to the 'Sendable' protocol
  8 |     case linear
  9 |
/Users/admin/builder/spi-builder-workspace/Sources/Easing/Easing+CAMediaTimeFunction.swift:15:20: warning: static property 'caEaseOut' is not concurrency-safe because non-'Sendable' type 'Easing' may have shared mutable state; this is an error in the Swift 6 language mode
13 |         }()
14 |
15 |         static let caEaseOut: Easing = {
   |                    |- warning: static property 'caEaseOut' is not concurrency-safe because non-'Sendable' type 'Easing' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'caEaseOut' 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
16 |             let f = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut)
17 |             return Easing.cubicBezierEasingForMediaFunction(f)
/Users/admin/builder/spi-builder-workspace/Sources/Easing/Easing.swift:7:13: note: consider making enum 'Easing' conform to the 'Sendable' protocol
  5 | import Foundation
  6 |
  7 | public enum Easing {
    |             `- note: consider making enum 'Easing' conform to the 'Sendable' protocol
  8 |     case linear
  9 |
/Users/admin/builder/spi-builder-workspace/Sources/Easing/Easing+CAMediaTimeFunction.swift:20:20: warning: static property 'caEaseInEaseOut' is not concurrency-safe because non-'Sendable' type 'Easing' may have shared mutable state; this is an error in the Swift 6 language mode
18 |         }()
19 |
20 |         static let caEaseInEaseOut: Easing = {
   |                    |- warning: static property 'caEaseInEaseOut' is not concurrency-safe because non-'Sendable' type 'Easing' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'caEaseInEaseOut' 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
21 |             let f = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut)
22 |             return Easing.cubicBezierEasingForMediaFunction(f)
/Users/admin/builder/spi-builder-workspace/Sources/Easing/Easing.swift:7:13: note: consider making enum 'Easing' conform to the 'Sendable' protocol
  5 | import Foundation
  6 |
  7 | public enum Easing {
    |             `- note: consider making enum 'Easing' conform to the 'Sendable' protocol
  8 |     case linear
  9 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils/CubicBezierInterpolator.swift:86:24: warning: static property 'dict' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 84 |     {
 85 |         enum Cache {
 86 |             static var dict: [SampleKey: [Double]] = [:]
    |                        |- warning: static property 'dict' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'dict' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'dict' 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
 87 |         }
 88 |
[11/11] Compiling Easing Easing+CAMediaTimeFunction.swift
/Users/admin/builder/spi-builder-workspace/Sources/Easing/Easing+CAMediaTimeFunction.swift:10:20: warning: static property 'caEaseIn' is not concurrency-safe because non-'Sendable' type 'Easing' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 |     public extension Easing {
10 |         static let caEaseIn: Easing = {
   |                    |- warning: static property 'caEaseIn' is not concurrency-safe because non-'Sendable' type 'Easing' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'caEaseIn' 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
11 |             let f = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeIn)
12 |             return Easing.cubicBezierEasingForMediaFunction(f)
/Users/admin/builder/spi-builder-workspace/Sources/Easing/Easing.swift:7:13: note: consider making enum 'Easing' conform to the 'Sendable' protocol
  5 | import Foundation
  6 |
  7 | public enum Easing {
    |             `- note: consider making enum 'Easing' conform to the 'Sendable' protocol
  8 |     case linear
  9 |
/Users/admin/builder/spi-builder-workspace/Sources/Easing/Easing+CAMediaTimeFunction.swift:15:20: warning: static property 'caEaseOut' is not concurrency-safe because non-'Sendable' type 'Easing' may have shared mutable state; this is an error in the Swift 6 language mode
13 |         }()
14 |
15 |         static let caEaseOut: Easing = {
   |                    |- warning: static property 'caEaseOut' is not concurrency-safe because non-'Sendable' type 'Easing' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'caEaseOut' 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
16 |             let f = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut)
17 |             return Easing.cubicBezierEasingForMediaFunction(f)
/Users/admin/builder/spi-builder-workspace/Sources/Easing/Easing.swift:7:13: note: consider making enum 'Easing' conform to the 'Sendable' protocol
  5 | import Foundation
  6 |
  7 | public enum Easing {
    |             `- note: consider making enum 'Easing' conform to the 'Sendable' protocol
  8 |     case linear
  9 |
/Users/admin/builder/spi-builder-workspace/Sources/Easing/Easing+CAMediaTimeFunction.swift:20:20: warning: static property 'caEaseInEaseOut' is not concurrency-safe because non-'Sendable' type 'Easing' may have shared mutable state; this is an error in the Swift 6 language mode
18 |         }()
19 |
20 |         static let caEaseInEaseOut: Easing = {
   |                    |- warning: static property 'caEaseInEaseOut' is not concurrency-safe because non-'Sendable' type 'Easing' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'caEaseInEaseOut' 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
21 |             let f = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut)
22 |             return Easing.cubicBezierEasingForMediaFunction(f)
/Users/admin/builder/spi-builder-workspace/Sources/Easing/Easing.swift:7:13: note: consider making enum 'Easing' conform to the 'Sendable' protocol
  5 | import Foundation
  6 |
  7 | public enum Easing {
    |             `- note: consider making enum 'Easing' conform to the 'Sendable' protocol
  8 |     case linear
  9 |
Build complete! (10.54s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Easing",
  "name" : "Easing",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "Easing",
      "targets" : [
        "Easing"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EasingTests",
      "module_type" : "SwiftTarget",
      "name" : "EasingTests",
      "path" : "Tests",
      "sources" : [
        "EasingTests.swift"
      ],
      "target_dependencies" : [
        "Easing"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Easing",
      "module_type" : "SwiftTarget",
      "name" : "Easing",
      "path" : "Sources",
      "product_memberships" : [
        "Easing"
      ],
      "sources" : [
        "Easing/Easing+CAMediaTimeFunction.swift",
        "Easing/Easing.swift",
        "Interpolatable/CGPrimitives+Interpolatable.swift",
        "Interpolatable/Interpolatable.swift",
        "Interpolatable/UIBezierPath+Interpolatable.swift",
        "Interpolatable/UIColor+Interpolatable.swift",
        "Utils/CGPath+PathElements.swift",
        "Utils/CubicBezierInterpolator.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.