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 main (1e79db), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 23:29:37 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/TelemTobi/Localite
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1e79dbe Update README.md
Cloned https://github.com/TelemTobi/Localite.git
Revision (git rev-parse @):
1e79dbe11ad887e78202a68114de1b6ab711f40a
SUCCESS checkout https://github.com/TelemTobi/Localite.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": "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
[1/175] Fetching localite
Fetched https://github.com/TelemTobi/Localite.git from cache (0.81s)
Creating working copy for https://github.com/TelemTobi/Localite.git
Working copy of https://github.com/TelemTobi/Localite.git resolved at main (1e79dbe)
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 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()
[4/6] Compiling Localite VersionsStorage.swift
[5/6] Compiling Localite FilesStorage.swift
[6/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?
Build complete! (4.21s)
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.