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 Localizer, reference 1.0.2 (6fa620), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 06:31:33 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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mihaelisaev/Localizer.git
Reference: 1.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mihaelisaev/Localizer
 * tag               1.0.2      -> FETCH_HEAD
HEAD is now at 6fa620d Add README.md
Cloned https://github.com/mihaelisaev/Localizer.git
Revision (git rev-parse @):
6fa620dce9c52d2aab1aca9348f9d8427cfde509
SUCCESS checkout https://github.com/mihaelisaev/Localizer.git at 1.0.2
========================================
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": "localizer",
      "name": "Localizer",
      "url": "https://github.com/mihaelisaev/Localizer.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Localizer",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/mihaelisaev/Localizer.git
[1/46] Fetching localizer
Fetched https://github.com/mihaelisaev/Localizer.git from cache (0.65s)
Creating working copy for https://github.com/mihaelisaev/Localizer.git
Working copy of https://github.com/mihaelisaev/Localizer.git resolved at 1.0.2 (6fa620d)
warning: '.resolve-product-dependencies': dependency 'localizer' 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/mihaelisaev/Localizer.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 -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--7754E27361AE5C74.txt
[3/8] Emitting module Localizer
/Users/admin/builder/spi-builder-workspace/Classes/Localizer.swift:3:13: warning: var 'localizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | private var localizer = Localizer()
   |             |- warning: var 'localizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'localizer' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'localizer' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 4 |
 5 | public final class Localizer: Localizable {
[4/8] Compiling Localizer String+LocalizedString.swift
[5/8] Compiling Localizer Localizer.swift
/Users/admin/builder/spi-builder-workspace/Classes/Localizer.swift:3:13: warning: var 'localizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | private var localizer = Localizer()
   |             |- warning: var 'localizer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'localizer' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'localizer' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 4 |
 5 | public final class Localizer: Localizable {
[6/8] Compiling Localizer Localizable.swift
[7/8] Compiling Localizer Language.swift
[8/8] Compiling Localizer LocalizedString.swift
Build complete! (7.42s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Localizer",
  "name" : "Localizer",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Localizer",
      "targets" : [
        "Localizer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LocalizerTests",
      "module_type" : "SwiftTarget",
      "name" : "LocalizerTests",
      "path" : "Tests/LocalizerTests",
      "sources" : [
        "LocalizerTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Localizer"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Localizer",
      "module_type" : "SwiftTarget",
      "name" : "Localizer",
      "path" : "Classes",
      "product_memberships" : [
        "Localizer"
      ],
      "sources" : [
        "Language.swift",
        "Localizable.swift",
        "LocalizedString.swift",
        "Localizer.swift",
        "String+LocalizedString.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.