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 Codability, reference master (337373), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 14:45:43 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yonaskolb/Codability.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/yonaskolb/Codability
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 337373f Update README.md
Cloned https://github.com/yonaskolb/Codability.git
Revision (git rev-parse @):
337373f57363ee0f66715757b02c7fdb17e5fa6f
SUCCESS checkout https://github.com/yonaskolb/Codability.git at master
========================================
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": "codability",
      "name": "Codability",
      "url": "https://github.com/yonaskolb/Codability.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Codability",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/yonaskolb/Codability.git
[1/126] Fetching codability
Fetched https://github.com/yonaskolb/Codability.git from cache (0.64s)
Creating working copy for https://github.com/yonaskolb/Codability.git
Working copy of https://github.com/yonaskolb/Codability.git resolved at master (337373f)
warning: '.resolve-product-dependencies': dependency 'codability' 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/yonaskolb/Codability.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/9] Compiling Codability RawCodingKey.swift
[4/9] Compiling Codability KeyedEncodingContainer+Any.swift
[5/9] Compiling Codability GenericDecodingContainer.swift
[6/9] Compiling Codability AnyCodable.swift
[7/9] Emitting module Codability
/Users/admin/builder/spi-builder-workspace/Sources/Codability/InvalidElementStrategy.swift:36:17: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public enum InvalidElementStrategy<T>: CustomStringConvertible {
    |                                    `- note: 'T' previously declared here
 11 |     case remove
 12 |     case fail
    :
 34 |     }
 35 |
 36 |     func toType<T>() -> InvalidElementStrategy<T> {
    |                 `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 37 |         switch self {
 38 |         case .remove:
[8/9] Compiling Codability InvalidElementStrategy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Codability/InvalidElementStrategy.swift:36:17: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public enum InvalidElementStrategy<T>: CustomStringConvertible {
    |                                    `- note: 'T' previously declared here
 11 |     case remove
 12 |     case fail
    :
 34 |     }
 35 |
 36 |     func toType<T>() -> InvalidElementStrategy<T> {
    |                 `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 37 |         switch self {
 38 |         case .remove:
[9/9] Compiling Codability KeyedDecodingContainer+Any.swift
Build complete! (8.45s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Codability",
  "name" : "Codability",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Codability",
      "targets" : [
        "Codability"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CodabilityTests",
      "module_type" : "SwiftTarget",
      "name" : "CodabilityTests",
      "path" : "Tests/CodabilityTests",
      "sources" : [
        "AnyCodableTests.swift",
        "InvalidElementTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Codability"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Codability",
      "module_type" : "SwiftTarget",
      "name" : "Codability",
      "path" : "Sources/Codability",
      "product_memberships" : [
        "Codability"
      ],
      "sources" : [
        "AnyCodable.swift",
        "GenericDecodingContainer.swift",
        "InvalidElementStrategy.swift",
        "KeyedDecodingContainer+Any.swift",
        "KeyedEncodingContainer+Any.swift",
        "RawCodingKey.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.