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 Localization, reference main (65150a), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 02:46:51 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/Localization.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/Localization
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 65150a9 Added option to pass extra parameters into the count variation
Cloned https://github.com/elegantchaos/Localization.git
Revision (git rev-parse @):
65150a9efe7d37f79c9988ce432bed8cdd5b71cf
SUCCESS checkout https://github.com/elegantchaos/Localization.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": "localization",
      "name": "Localization",
      "url": "https://github.com/elegantchaos/Localization.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Localization",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/elegantchaos/Localization.git
[1/110] Fetching localization
Fetched https://github.com/elegantchaos/Localization.git from cache (0.67s)
Creating working copy for https://github.com/elegantchaos/Localization.git
Working copy of https://github.com/elegantchaos/Localization.git resolved at main (65150a9)
warning: '.resolve-product-dependencies': dependency 'localization' 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/Localization.git
https://github.com/elegantchaos/Localization.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Localization",
  "name" : "Localization",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Localization",
      "targets" : [
        "Localization"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "LocalizationShared",
      "targets" : [
        "Localization"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LocalizationTests",
      "module_type" : "SwiftTarget",
      "name" : "LocalizationTests",
      "path" : "Tests/LocalizationTests",
      "sources" : [
        "LocalizationTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Localization"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Localization",
      "module_type" : "SwiftTarget",
      "name" : "Localization",
      "path" : "Sources/Localization",
      "product_memberships" : [
        "Localization",
        "LocalizationShared"
      ],
      "sources" : [
        "Localization.swift",
        "String+Localization.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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/6] Write sources
[1/6] Write swift-version-2F0A5646E1D333AE.txt
[3/9] Compiling Localization String+Localization.swift
[4/9] Emitting module Localization
/Users/admin/builder/spi-builder-workspace/Sources/Localization/Localization.swift:10:16: warning: static property 'bundlesToSearch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 | /// Singleton which supports registering bundles to search for localizations.
 9 | public class Localization {
10 |     static var bundlesToSearch: [Bundle] = [Bundle.main]
   |                |- warning: static property 'bundlesToSearch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'bundlesToSearch' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'bundlesToSearch' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 |     /// Register a bundle to be searched when looking for localizations.
[5/9] Compiling Localization Localization.swift
/Users/admin/builder/spi-builder-workspace/Sources/Localization/Localization.swift:10:16: warning: static property 'bundlesToSearch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 | /// Singleton which supports registering bundles to search for localizations.
 9 | public class Localization {
10 |     static var bundlesToSearch: [Bundle] = [Bundle.main]
   |                |- warning: static property 'bundlesToSearch' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'bundlesToSearch' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'bundlesToSearch' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 |     /// Register a bundle to be searched when looking for localizations.
[5/9] Write Objects.LinkFileList
[7/9] Archiving libLocalization.a
[8/9] Linking libLocalizationShared.dylib
Build complete! (4.42s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Localization",
  "name" : "Localization",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Localization",
      "targets" : [
        "Localization"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "LocalizationShared",
      "targets" : [
        "Localization"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LocalizationTests",
      "module_type" : "SwiftTarget",
      "name" : "LocalizationTests",
      "path" : "Tests/LocalizationTests",
      "sources" : [
        "LocalizationTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Localization"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Localization",
      "module_type" : "SwiftTarget",
      "name" : "Localization",
      "path" : "Sources/Localization",
      "product_memberships" : [
        "Localization",
        "LocalizationShared"
      ],
      "sources" : [
        "Localization.swift",
        "String+Localization.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.