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.0 for macOS (SPM) on 28 Nov 2024 09:31:18 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: 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.73s)
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.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 StandardConvertible.swift
[4/17] Compiling Coercion StringConvertible.swift
[5/17] 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 |
[6/17] 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 |
[7/17] Compiling Coercion UIntConvertible.swift
[8/17] Compiling Coercion BoolConvertible.swift
[9/17] Compiling Coercion DataConvertible.swift
[10/17] Compiling Coercion IntConvertible.swift
[11/17] 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 |
[12/17] 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 |
[13/17] 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 |
[14/17] 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 |
[15/17] 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 |
[16/17] Compiling Coercion BinaryInteger+Coercion.swift
[17/17] Compiling Coercion Bool+Coercion.swift
[18/18] Compiling Coercion String+Coercion.swift
Build complete! (11.20s)
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.