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 DictionaryCoding, reference main (6c2daf), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 02:52:05 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/DictionaryCoding.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/DictionaryCoding
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6c2dafa updated to MIT license
Cloned https://github.com/elegantchaos/DictionaryCoding.git
Revision (git rev-parse @):
6c2dafae704a75900c0f9ffcfa93f4e72dae366f
SUCCESS checkout https://github.com/elegantchaos/DictionaryCoding.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": "dictionarycoding",
      "name": "DictionaryCoding",
      "url": "https://github.com/elegantchaos/DictionaryCoding.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DictionaryCoding",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/elegantchaos/DictionaryCoding.git
[5/475] Fetching dictionarycoding
Fetched https://github.com/elegantchaos/DictionaryCoding.git from cache (0.73s)
Creating working copy for https://github.com/elegantchaos/DictionaryCoding.git
Working copy of https://github.com/elegantchaos/DictionaryCoding.git resolved at main (6c2dafa)
warning: '.resolve-product-dependencies': dependency 'dictionarycoding' 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/DictionaryCoding.git
https://github.com/elegantchaos/DictionaryCoding.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DictionaryCoding",
  "name" : "DictionaryCoding",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "DictionaryCoding",
      "targets" : [
        "DictionaryCoding"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DictionaryCodingTests",
      "module_type" : "SwiftTarget",
      "name" : "DictionaryCodingTests",
      "path" : "Tests/DictionaryCodingTests",
      "sources" : [
        "CombineTests.swift",
        "DictionaryDecodingTests.swift",
        "DictionaryEncodingTests.swift"
      ],
      "target_dependencies" : [
        "DictionaryCoding"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DictionaryCoding",
      "module_type" : "SwiftTarget",
      "name" : "DictionaryCoding",
      "path" : "Sources/DictionaryCoding",
      "product_memberships" : [
        "DictionaryCoding"
      ],
      "sources" : [
        "DictionaryCodingKey.swift",
        "DictionaryDecoder.swift",
        "DictionaryEncoder.swift",
        "DictionaryErrors.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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/7] Compiling DictionaryCoding DictionaryErrors.swift
[4/7] Compiling DictionaryCoding DictionaryCodingKey.swift
[5/7] Compiling DictionaryCoding DictionaryDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1356:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1354 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
1355 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
1356 | internal var _iso8601Formatter: ISO8601DateFormatter = {
     |              |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |              |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
     |              |- note: add '@MainActor' to make var '_iso8601Formatter' part of global actor 'MainActor'
     |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1357 |     let formatter = ISO8601DateFormatter()
1358 |     formatter.formatOptions = .withInternetDateTime
[6/7] Compiling DictionaryCoding DictionaryEncoder.swift
[7/7] Emitting module DictionaryCoding
/Users/admin/builder/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1356:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1354 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
1355 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
1356 | internal var _iso8601Formatter: ISO8601DateFormatter = {
     |              |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |              |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
     |              |- note: add '@MainActor' to make var '_iso8601Formatter' part of global actor 'MainActor'
     |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1357 |     let formatter = ISO8601DateFormatter()
1358 |     formatter.formatOptions = .withInternetDateTime
Build complete! (4.41s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DictionaryCoding",
  "name" : "DictionaryCoding",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "DictionaryCoding",
      "targets" : [
        "DictionaryCoding"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DictionaryCodingTests",
      "module_type" : "SwiftTarget",
      "name" : "DictionaryCodingTests",
      "path" : "Tests/DictionaryCodingTests",
      "sources" : [
        "CombineTests.swift",
        "DictionaryDecodingTests.swift",
        "DictionaryEncodingTests.swift"
      ],
      "target_dependencies" : [
        "DictionaryCoding"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DictionaryCoding",
      "module_type" : "SwiftTarget",
      "name" : "DictionaryCoding",
      "path" : "Sources/DictionaryCoding",
      "product_memberships" : [
        "DictionaryCoding"
      ],
      "sources" : [
        "DictionaryCodingKey.swift",
        "DictionaryDecoder.swift",
        "DictionaryEncoder.swift",
        "DictionaryErrors.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.