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 Coercion, reference main (d1cbf3), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 18:25:10 UTC.

Swift 6 data race errors: 1

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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/elegantchaos/Coercion.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/Coercion
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d1cbf3a Added asUInt
Cloned https://github.com/elegantchaos/Coercion.git
Revision (git rev-parse @):
d1cbf3a59358e30702748f0b1f1f877e054b8c4f
SUCCESS checkout https://github.com/elegantchaos/Coercion.git at main
========================================
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": "coercion",
      "name": "Coercion",
      "url": "https://github.com/elegantchaos/Coercion.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Coercion",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/elegantchaos/Coercion.git
[1/274] Fetching coercion
Fetched https://github.com/elegantchaos/Coercion.git from cache (0.77s)
Creating working copy for https://github.com/elegantchaos/Coercion.git
Working copy of https://github.com/elegantchaos/Coercion.git resolved at main (d1cbf3a)
warning: '.resolve-product-dependencies': dependency 'coercion' 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/elegantchaos/Coercion.git
https://github.com/elegantchaos/Coercion.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Coercion",
  "name" : "Coercion",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "Coercion",
      "targets" : [
        "Coercion"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CoercionTests",
      "module_type" : "SwiftTarget",
      "name" : "CoercionTests",
      "path" : "Tests/CoercionTests",
      "sources" : [
        "CoercionTests.swift",
        "ConverterProtocolTests.swift",
        "ConverterTests.swift",
        "DictionaryCoercionTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Coercion"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Coercion",
      "module_type" : "SwiftTarget",
      "name" : "Coercion",
      "path" : "Sources/Coercion",
      "product_memberships" : [
        "Coercion"
      ],
      "sources" : [
        "BinaryInteger+Coercion.swift",
        "Bool+Coercion.swift",
        "Converter.swift",
        "Date+Coercion.swift",
        "Dictionary+Coercion.swift",
        "Double+Coercion.swift",
        "Protocols/BoolConvertible.swift",
        "Protocols/DataConvertible.swift",
        "Protocols/DateConvertible.swift",
        "Protocols/DoubleConvertible.swift",
        "Protocols/IntConvertible.swift",
        "Protocols/StandardConvertible.swift",
        "Protocols/StringConvertible.swift",
        "Protocols/UIntConvertible.swift",
        "String+Coercion.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/17] Compiling Coercion StringConvertible.swift
[4/18] Compiling Coercion String+Coercion.swift
[5/18] Compiling Coercion UIntConvertible.swift
[6/18] Compiling Coercion IntConvertible.swift
[7/18] Compiling Coercion StandardConvertible.swift
[8/18] Compiling Coercion DateConvertible.swift
[9/18] Compiling Coercion DoubleConvertible.swift
[10/18] Compiling Coercion Dictionary+Coercion.swift
[11/18] Compiling Coercion Double+Coercion.swift
[12/18] Compiling Coercion BoolConvertible.swift
[13/18] Compiling Coercion DataConvertible.swift
[14/18] Emitting module Coercion
/Users/admin/builder/spi-builder-workspace/Sources/Coercion/Converter.swift:29:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StandardConverter' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public struct StandardConverter: Converter {
   |               `- note: consider making struct 'StandardConverter' conform to the 'Sendable' protocol
29 |     public static let shared = StandardConverter()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StandardConverter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |     var dateFormatter = ISO8601DateFormatter()
31 |
[15/18] Compiling Coercion BinaryInteger+Coercion.swift
[16/18] Compiling Coercion Bool+Coercion.swift
[17/18] Compiling Coercion Converter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Coercion/Converter.swift:29:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StandardConverter' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public struct StandardConverter: Converter {
   |               `- note: consider making struct 'StandardConverter' conform to the 'Sendable' protocol
29 |     public static let shared = StandardConverter()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StandardConverter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |     var dateFormatter = ISO8601DateFormatter()
31 |
[18/18] Compiling Coercion Date+Coercion.swift
/Users/admin/builder/spi-builder-workspace/Sources/Coercion/Converter.swift:29:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StandardConverter' may have shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public struct StandardConverter: Converter {
   |               `- note: consider making struct 'StandardConverter' conform to the 'Sendable' protocol
29 |     public static let shared = StandardConverter()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StandardConverter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |     var dateFormatter = ISO8601DateFormatter()
31 |
Build complete! (4.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Coercion",
  "name" : "Coercion",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "Coercion",
      "targets" : [
        "Coercion"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CoercionTests",
      "module_type" : "SwiftTarget",
      "name" : "CoercionTests",
      "path" : "Tests/CoercionTests",
      "sources" : [
        "CoercionTests.swift",
        "ConverterProtocolTests.swift",
        "ConverterTests.swift",
        "DictionaryCoercionTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Coercion"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Coercion",
      "module_type" : "SwiftTarget",
      "name" : "Coercion",
      "path" : "Sources/Coercion",
      "product_memberships" : [
        "Coercion"
      ],
      "sources" : [
        "BinaryInteger+Coercion.swift",
        "Bool+Coercion.swift",
        "Converter.swift",
        "Date+Coercion.swift",
        "Dictionary+Coercion.swift",
        "Double+Coercion.swift",
        "Protocols/BoolConvertible.swift",
        "Protocols/DataConvertible.swift",
        "Protocols/DateConvertible.swift",
        "Protocols/DoubleConvertible.swift",
        "Protocols/IntConvertible.swift",
        "Protocols/StandardConvertible.swift",
        "Protocols/StringConvertible.swift",
        "Protocols/UIntConvertible.swift",
        "String+Coercion.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.