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 v1.1.3 (df699e), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 09:31:37 UTC.

Swift 6 data race errors: 1

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/elegantchaos/Coercion.git
Reference: v1.1.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/Coercion
 * tag               v1.1.3     -> FETCH_HEAD
HEAD is now at df699eb Fixed NSDate date coercion
Cloned https://github.com/elegantchaos/Coercion.git
Revision (git rev-parse @):
df699ebd4707bcfd99fcad4b9f6c09ddc1208af9
SUCCESS checkout https://github.com/elegantchaos/Coercion.git at v1.1.3
========================================
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.78s)
Creating working copy for https://github.com/elegantchaos/Coercion.git
Working copy of https://github.com/elegantchaos/Coercion.git resolved at v1.1.3 (df699eb)
warning: '.resolve-product-dependencies': dependency 'coercion' 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/elegantchaos/Coercion.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 -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/17] Compiling Coercion StringConvertible.swift
[4/18] Compiling Coercion UIntConvertible.swift
[5/18] Compiling Coercion String+Coercion.swift
[6/18] Compiling Coercion IntConvertible.swift
[7/18] Compiling Coercion DateConvertible.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: annotate 'shared' 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
30 |     var dateFormatter = ISO8601DateFormatter()
31 |
[8/18] Compiling Coercion DoubleConvertible.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: annotate 'shared' 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
30 |     var dateFormatter = ISO8601DateFormatter()
31 |
[9/18] Compiling Coercion StandardConvertible.swift
[10/18] Compiling Coercion Dictionary+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: annotate 'shared' 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
30 |     var dateFormatter = ISO8601DateFormatter()
31 |
[11/18] Compiling Coercion Double+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: annotate 'shared' 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
30 |     var dateFormatter = ISO8601DateFormatter()
31 |
[12/18] Compiling Coercion BoolConvertible.swift
[13/18] Compiling Coercion DataConvertible.swift
[14/18] Compiling Coercion BinaryInteger+Coercion.swift
[15/18] Compiling Coercion Bool+Coercion.swift
[16/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: annotate 'shared' 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
30 |     var dateFormatter = ISO8601DateFormatter()
31 |
[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: annotate 'shared' 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
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: annotate 'shared' 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
30 |     var dateFormatter = ISO8601DateFormatter()
31 |
Build complete! (10.89s)
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.