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 SimpleCoders, reference main (47fc03), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 02:54:40 UTC.

Swift 6 data race errors: 3

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/dankinsoid/SimpleCoders.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dankinsoid/SimpleCoders
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 47fc034 (no commit message provided)
Cloned https://github.com/dankinsoid/SimpleCoders.git
Revision (git rev-parse @):
47fc034d00e1f8b46a1a16c00052c7cc7a8634c1
SUCCESS checkout https://github.com/dankinsoid/SimpleCoders.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": "simplecoders",
      "name": "SimpleCoders",
      "url": "https://github.com/dankinsoid/SimpleCoders.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SimpleCoders",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/dankinsoid/SimpleCoders.git
[1/101] Fetching simplecoders
Fetched https://github.com/dankinsoid/SimpleCoders.git from cache (0.65s)
Creating working copy for https://github.com/dankinsoid/SimpleCoders.git
Working copy of https://github.com/dankinsoid/SimpleCoders.git resolved at main (47fc034)
warning: '.resolve-product-dependencies': dependency 'simplecoders' 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/dankinsoid/SimpleCoders.git
https://github.com/dankinsoid/SimpleCoders.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SimpleCoders",
  "name" : "SimpleCoders",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SimpleCoders",
      "targets" : [
        "SimpleCoders"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SimpleCoders",
      "module_type" : "SwiftTarget",
      "name" : "SimpleCoders",
      "path" : "Sources/SimpleCoders",
      "product_memberships" : [
        "SimpleCoders"
      ],
      "sources" : [
        "CodableProtocols.swift",
        "CodingStrategies/DateCodingStrategies.swift",
        "CodingStrategies/KeyCodingStrategies.swift",
        "CodingStrategy.swift",
        "DecodingUnboxer.swift",
        "EncodingBoxer.swift",
        "IntKey.swift",
        "OrderedDictionary/OrderedDictionary.swift",
        "OrderedDictionary/StringConvertibleHintProvider.swift",
        "PlainCodingKey.swift",
        "StringKey.swift",
        "TypeRevision/CodableTypes.swift",
        "TypeRevision/TypeRevision.swift",
        "TypeRevision/TypeRevisionDecoder.swift",
        "TypeRevision/TypeRevisionEncoder.swift",
        "Utils/CheckAllKeysDecoder.swift",
        "Utils/Ref.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/19] Compiling SimpleCoders CheckAllKeysDecoder.swift
[4/19] Compiling SimpleCoders TypeRevision.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCoders/TypeRevision/TypeRevisionDecoder.swift:102:36: warning: cast from '((Any) throws -> Bool) throws -> Any?' to unrelated type 'any Decodable' always fails
100 | 				result.type = type
101 | 				let allCases = iterable.allCases as any Collection
102 | 				if let result = allCases.first as? Decodable {
    |                                    `- warning: cast from '((Any) throws -> Bool) throws -> Any?' to unrelated type 'any Decodable' always fails
103 | 					return result
104 | 				}
[5/19] Compiling SimpleCoders TypeRevisionDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCoders/TypeRevision/TypeRevisionDecoder.swift:102:36: warning: cast from '((Any) throws -> Bool) throws -> Any?' to unrelated type 'any Decodable' always fails
100 | 				result.type = type
101 | 				let allCases = iterable.allCases as any Collection
102 | 				if let result = allCases.first as? Decodable {
    |                                    `- warning: cast from '((Any) throws -> Bool) throws -> Any?' to unrelated type 'any Decodable' always fails
103 | 					return result
104 | 				}
[6/19] Compiling SimpleCoders TypeRevisionEncoder.swift
[7/20] Compiling SimpleCoders KeyCodingStrategies.swift
[8/20] Compiling SimpleCoders CodingStrategy.swift
[9/20] Compiling SimpleCoders StringKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCoders/StringKey.swift:7:16: warning: stored property 'value' of 'Sendable'-conforming generic struct 'StringKey' has non-sendable type 'Value'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct StringKey<Value: LosslessStringConvertible>: CodingKey {
   |                         `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 4 |
 5 |     public var stringValue: String { value.description }
 6 |     public var intValue: Int? { Int(value.description) }
 7 |     public var value: Value
   |                `- warning: stored property 'value' of 'Sendable'-conforming generic struct 'StringKey' has non-sendable type 'Value'; this is an error in the Swift 6 language mode
 8 |
 9 |     public init?(stringValue: String) {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCoders/TypeRevision/CodableTypes.swift:5:23: warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | import Foundation
  2 |
  3 | public struct TypeInfo {
    |               `- note: consider making struct 'TypeInfo' conform to the 'Sendable' protocol
  4 |
  5 |     public static let any = TypeInfo(type: Any.self, container: .single(.null))
    |                       |- warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'any' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |
  7 |     public var type: Any.Type
[10/20] Compiling SimpleCoders CodableTypes.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCoders/StringKey.swift:7:16: warning: stored property 'value' of 'Sendable'-conforming generic struct 'StringKey' has non-sendable type 'Value'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct StringKey<Value: LosslessStringConvertible>: CodingKey {
   |                         `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 4 |
 5 |     public var stringValue: String { value.description }
 6 |     public var intValue: Int? { Int(value.description) }
 7 |     public var value: Value
   |                `- warning: stored property 'value' of 'Sendable'-conforming generic struct 'StringKey' has non-sendable type 'Value'; this is an error in the Swift 6 language mode
 8 |
 9 |     public init?(stringValue: String) {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCoders/TypeRevision/CodableTypes.swift:5:23: warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | import Foundation
  2 |
  3 | public struct TypeInfo {
    |               `- note: consider making struct 'TypeInfo' conform to the 'Sendable' protocol
  4 |
  5 |     public static let any = TypeInfo(type: Any.self, container: .single(.null))
    |                       |- warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'any' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |
  7 |     public var type: Any.Type
[11/20] Compiling SimpleCoders StringConvertibleHintProvider.swift
[12/20] Compiling SimpleCoders PlainCodingKey.swift
[13/20] Compiling SimpleCoders DecodingUnboxer.swift
[14/20] Compiling SimpleCoders EncodingBoxer.swift
[15/20] Emitting module SimpleCoders
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.swift:242:13: warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
240 |
241 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
242 | private let _iso8601Formatter: ISO8601DateFormatter = {
    |             |- warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let '_iso8601Formatter' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
243 |     let formatter = ISO8601DateFormatter()
244 |     formatter.formatOptions = .withInternetDateTime
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCoders/StringKey.swift:7:16: warning: stored property 'value' of 'Sendable'-conforming generic struct 'StringKey' has non-sendable type 'Value'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct StringKey<Value: LosslessStringConvertible>: CodingKey {
   |                         `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 4 |
 5 |     public var stringValue: String { value.description }
 6 |     public var intValue: Int? { Int(value.description) }
 7 |     public var value: Value
   |                `- warning: stored property 'value' of 'Sendable'-conforming generic struct 'StringKey' has non-sendable type 'Value'; this is an error in the Swift 6 language mode
 8 |
 9 |     public init?(stringValue: String) {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCoders/TypeRevision/CodableTypes.swift:5:23: warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | import Foundation
  2 |
  3 | public struct TypeInfo {
    |               `- note: consider making struct 'TypeInfo' conform to the 'Sendable' protocol
  4 |
  5 |     public static let any = TypeInfo(type: Any.self, container: .single(.null))
    |                       |- warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'any' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |
  7 |     public var type: Any.Type
[16/20] Compiling SimpleCoders IntKey.swift
[17/20] Compiling SimpleCoders OrderedDictionary.swift
[18/20] Compiling SimpleCoders CodableProtocols.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.swift:242:13: warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
240 |
241 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
242 | private let _iso8601Formatter: ISO8601DateFormatter = {
    |             |- warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let '_iso8601Formatter' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
243 |     let formatter = ISO8601DateFormatter()
244 |     formatter.formatOptions = .withInternetDateTime
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
[19/20] Compiling SimpleCoders DateCodingStrategies.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.swift:242:13: warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
240 |
241 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
242 | private let _iso8601Formatter: ISO8601DateFormatter = {
    |             |- warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let '_iso8601Formatter' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
243 |     let formatter = ISO8601DateFormatter()
244 |     formatter.formatOptions = .withInternetDateTime
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
[20/20] Compiling SimpleCoders Ref.swift
Build complete! (5.55s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SimpleCoders",
  "name" : "SimpleCoders",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SimpleCoders",
      "targets" : [
        "SimpleCoders"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SimpleCoders",
      "module_type" : "SwiftTarget",
      "name" : "SimpleCoders",
      "path" : "Sources/SimpleCoders",
      "product_memberships" : [
        "SimpleCoders"
      ],
      "sources" : [
        "CodableProtocols.swift",
        "CodingStrategies/DateCodingStrategies.swift",
        "CodingStrategies/KeyCodingStrategies.swift",
        "CodingStrategy.swift",
        "DecodingUnboxer.swift",
        "EncodingBoxer.swift",
        "IntKey.swift",
        "OrderedDictionary/OrderedDictionary.swift",
        "OrderedDictionary/StringConvertibleHintProvider.swift",
        "PlainCodingKey.swift",
        "StringKey.swift",
        "TypeRevision/CodableTypes.swift",
        "TypeRevision/TypeRevision.swift",
        "TypeRevision/TypeRevisionDecoder.swift",
        "TypeRevision/TypeRevisionEncoder.swift",
        "Utils/CheckAllKeysDecoder.swift",
        "Utils/Ref.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.