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 master (8459c9), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 05:06:32 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 -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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/psharanda/Easing.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/psharanda/Easing
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8459c9d Update README.md
Cloned https://github.com/psharanda/Easing.git
Revision (git rev-parse @):
8459c9da9c90cb75a774edc6c4d73f4584964f57
SUCCESS checkout https://github.com/psharanda/Easing.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": "easing",
      "name": "Easing",
      "url": "https://github.com/psharanda/Easing.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Easing",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/psharanda/Easing.git
[1/279] Fetching easing
Fetched https://github.com/psharanda/Easing.git from cache (1.35s)
Creating working copy for https://github.com/psharanda/Easing.git
Working copy of https://github.com/psharanda/Easing.git resolved at master (8459c9d)
warning: '.resolve-product-dependencies': dependency 'easing' 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/psharanda/Easing.git
{
  "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"
}
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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/11] Compiling Easing UIBezierPath+Interpolatable.swift
[4/11] Compiling Easing UIColor+Interpolatable.swift
[5/11] Compiling Easing Interpolatable.swift
[6/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 |
[7/11] Compiling Easing CGPrimitives+Interpolatable.swift
[8/11] Compiling Easing CGPath+PathElements.swift
[9/11] Compiling Easing Easing.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.64s)
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.