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 Localite, reference 1.0.1 (f35578), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 23:29:10 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/TelemTobi/Localite.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/TelemTobi/Localite
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at f355781 Update LocaliteTests.swift
Cloned https://github.com/TelemTobi/Localite.git
Revision (git rev-parse @):
f355781300d889f2a21f627de3de3d7ed0f54b0e
SUCCESS checkout https://github.com/TelemTobi/Localite.git at 1.0.1
========================================
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": "localite",
      "name": "Localite",
      "url": "https://github.com/TelemTobi/Localite.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Localite",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/TelemTobi/Localite.git
[2/175] Fetching localite
Fetched https://github.com/TelemTobi/Localite.git from cache (0.77s)
Creating working copy for https://github.com/TelemTobi/Localite.git
Working copy of https://github.com/TelemTobi/Localite.git resolved at 1.0.1 (f355781)
warning: '.resolve-product-dependencies': dependency 'localite' 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/TelemTobi/Localite.git
https://github.com/TelemTobi/Localite.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Localite",
  "name" : "Localite",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Localite",
      "targets" : [
        "Localite"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LocaliteTests",
      "module_type" : "SwiftTarget",
      "name" : "LocaliteTests",
      "path" : "Tests/LocaliteTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LocaliteTests/Resources/base.strings",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LocaliteTests/Resources/english.strings",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LocaliteTests/Resources/hebrew.strings",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LocaliteTests/Resources/japanese.strings",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "FilesStorageTests.swift",
        "LocaliteTests.swift",
        "VersionsStorageTests.swift"
      ],
      "target_dependencies" : [
        "Localite"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Localite",
      "module_type" : "SwiftTarget",
      "name" : "Localite",
      "path" : "Sources/Localite",
      "product_memberships" : [
        "Localite"
      ],
      "sources" : [
        "Helpers/FilesStorage.swift",
        "Helpers/VersionsStorage.swift",
        "Localite.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
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/6] Compiling Localite VersionsStorage.swift
[4/6] Emitting module Localite
/Users/admin/builder/spi-builder-workspace/Sources/Localite/Localite.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Localite' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | /// `Localite` is a lightweight localization package designed for the remote management of strings files.
 11 | public class Localite {
    |              `- note: class 'Localite' does not conform to the 'Sendable' protocol
 12 |
 13 |     /// Returns the shared `Localite` instance.
 14 |     public static let shared = Localite()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Localite' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |
 16 |     internal var localiteBundle: Bundle?
[5/6] Compiling Localite FilesStorage.swift
[6/6] Compiling Localite Localite.swift
/Users/admin/builder/spi-builder-workspace/Sources/Localite/Localite.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Localite' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | /// `Localite` is a lightweight localization package designed for the remote management of strings files.
 11 | public class Localite {
    |              `- note: class 'Localite' does not conform to the 'Sendable' protocol
 12 |
 13 |     /// Returns the shared `Localite` instance.
 14 |     public static let shared = Localite()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Localite' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |
 16 |     internal var localiteBundle: Bundle?
/Users/admin/builder/spi-builder-workspace/Sources/Localite/Localite.swift:88:17: warning: capture of 'self' with non-sendable type 'Localite?' in a '@Sendable' closure
  9 |
 10 | /// `Localite` is a lightweight localization package designed for the remote management of strings files.
 11 | public class Localite {
    |              `- note: class 'Localite' does not conform to the 'Sendable' protocol
 12 |
 13 |     /// Returns the shared `Localite` instance.
    :
 86 |             guard let data, error == nil, (response as? HTTPURLResponse)?.statusCode ?? 0 < 400 else {
 87 |                 print("Localite error - Fetching failed " + (error?.localizedDescription ?? ""))
 88 |                 self?.computeLocaliteBundle(for: language)
    |                 `- warning: capture of 'self' with non-sendable type 'Localite?' in a '@Sendable' closure
 89 |                 return
 90 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Localite/Localite.swift:92:13: warning: capture of 'completion' with non-sendable type '(Data) -> Void' in a '@Sendable' closure
 90 |             }
 91 |
 92 |             completion(data)
    |             |- warning: capture of 'completion' with non-sendable type '(Data) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 93 |         }
 94 |         .resume()
Build complete! (4.54s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Localite",
  "name" : "Localite",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Localite",
      "targets" : [
        "Localite"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LocaliteTests",
      "module_type" : "SwiftTarget",
      "name" : "LocaliteTests",
      "path" : "Tests/LocaliteTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LocaliteTests/Resources/base.strings",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LocaliteTests/Resources/english.strings",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LocaliteTests/Resources/hebrew.strings",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LocaliteTests/Resources/japanese.strings",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "FilesStorageTests.swift",
        "LocaliteTests.swift",
        "VersionsStorageTests.swift"
      ],
      "target_dependencies" : [
        "Localite"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Localite",
      "module_type" : "SwiftTarget",
      "name" : "Localite",
      "path" : "Sources/Localite",
      "product_memberships" : [
        "Localite"
      ],
      "sources" : [
        "Helpers/FilesStorage.swift",
        "Helpers/VersionsStorage.swift",
        "Localite.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.