The Swift Package Index logo.Swift Package Index

Build Information

Successful build of LocalizerKit, reference main (45b55e), with Swift 6.1 for macOS (SPM) on 23 Sep 2025 09:26:18 UTC.

Swift 6 data race errors: 3

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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SummaCristian/LocalizerKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SummaCristian/LocalizerKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 45b55e0 Update swift.yml
Cloned https://github.com/SummaCristian/LocalizerKit.git
Revision (git rev-parse @):
45b55e08efb77e3cd68bdd398d3edcaf771f4cf0
SUCCESS checkout https://github.com/SummaCristian/LocalizerKit.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": "localizerkit",
      "name": "LocalizerKit",
      "url": "https://github.com/SummaCristian/LocalizerKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LocalizerKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/SummaCristian/LocalizerKit.git
[1/109] Fetching localizerkit
Fetched https://github.com/SummaCristian/LocalizerKit.git from cache (1.00s)
Creating working copy for https://github.com/SummaCristian/LocalizerKit.git
Working copy of https://github.com/SummaCristian/LocalizerKit.git resolved at main (45b55e0)
warning: '.resolve-product-dependencies': dependency 'localizerkit' 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/SummaCristian/LocalizerKit.git
https://github.com/SummaCristian/LocalizerKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LocalizerKit",
  "name" : "LocalizerKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "LocalizerKit",
      "targets" : [
        "LocalizerKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LocalizerKit",
      "module_type" : "SwiftTarget",
      "name" : "LocalizerKit",
      "path" : "Sources/LocalizerKit",
      "product_memberships" : [
        "LocalizerKit"
      ],
      "sources" : [
        "LocalizedAppModifier.swift",
        "LocalizedKeyProtocol.swift",
        "LocalizedLanguage.swift",
        "Localizer.swift",
        "LocalizerKit.swift",
        "LocalizerRegistry.swift",
        "LocalizerSettings.swift",
        "SupportedLanguage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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/11] Compiling LocalizerKit LocalizedAppModifier.swift
[4/11] Compiling LocalizerKit LocalizerKit.swift
[5/11] Emitting module LocalizerKit
/Users/admin/builder/spi-builder-workspace/Sources/LocalizerKit/Localizer.swift:14:23: warning: static property 'overrideSystemLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |     /// When `true`, `selectedLanguage` is used for localization instead of `Locale.preferredLanguages`.
13 |     @AppStorage("Localizer.overrideSystemLanguages")
14 |     public static var overrideSystemLanguages: Bool = false
   |                       |- warning: static property 'overrideSystemLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'overrideSystemLanguages' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'overrideSystemLanguages' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     /// The currently selected app language used when overriding system preferences.
/Users/admin/builder/spi-builder-workspace/Sources/LocalizerKit/Localizer.swift:20:23: warning: static property 'selectedLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |     /// This value is stored using `@AppStorage` and defaults to `.en`.
19 |     @AppStorage("Localizer.selectedLanguage")
20 |     public static var selectedLanguage: SupportedLanguage = .en
   |                       |- warning: static property 'selectedLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'selectedLanguage' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'selectedLanguage' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |     /// Returns the language that should be used for localization, based on override and registration status.
/Users/admin/builder/spi-builder-workspace/Sources/LocalizerKit/LocalizerRegistry.swift:15:24: warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     /// Each `SupportedLanguage` maps to a dictionary of localized strings,
14 |     /// where keys are raw string values from the language's `Key` enum.
15 |     private static var bundles: [SupportedLanguage: [String: String]] = [:]
   |                        |- warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'bundles' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'bundles' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     /// Registers a localization bundle for a given language type.
[6/11] Compiling LocalizerKit LocalizedKeyProtocol.swift
[7/11] Compiling LocalizerKit LocalizerRegistry.swift
/Users/admin/builder/spi-builder-workspace/Sources/LocalizerKit/LocalizerRegistry.swift:15:24: warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     /// Each `SupportedLanguage` maps to a dictionary of localized strings,
14 |     /// where keys are raw string values from the language's `Key` enum.
15 |     private static var bundles: [SupportedLanguage: [String: String]] = [:]
   |                        |- warning: static property 'bundles' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'bundles' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'bundles' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     /// Registers a localization bundle for a given language type.
[8/11] Compiling LocalizerKit SupportedLanguage.swift
[9/11] Compiling LocalizerKit LocalizedLanguage.swift
[10/11] Compiling LocalizerKit Localizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/LocalizerKit/Localizer.swift:14:23: warning: static property 'overrideSystemLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |     /// When `true`, `selectedLanguage` is used for localization instead of `Locale.preferredLanguages`.
13 |     @AppStorage("Localizer.overrideSystemLanguages")
14 |     public static var overrideSystemLanguages: Bool = false
   |                       |- warning: static property 'overrideSystemLanguages' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'overrideSystemLanguages' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'overrideSystemLanguages' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     /// The currently selected app language used when overriding system preferences.
/Users/admin/builder/spi-builder-workspace/Sources/LocalizerKit/Localizer.swift:20:23: warning: static property 'selectedLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |     /// This value is stored using `@AppStorage` and defaults to `.en`.
19 |     @AppStorage("Localizer.selectedLanguage")
20 |     public static var selectedLanguage: SupportedLanguage = .en
   |                       |- warning: static property 'selectedLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'selectedLanguage' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'selectedLanguage' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |     /// Returns the language that should be used for localization, based on override and registration status.
[11/11] Compiling LocalizerKit LocalizerSettings.swift
Build complete! (8.98s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LocalizerKit",
  "name" : "LocalizerKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "LocalizerKit",
      "targets" : [
        "LocalizerKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LocalizerKit",
      "module_type" : "SwiftTarget",
      "name" : "LocalizerKit",
      "path" : "Sources/LocalizerKit",
      "product_memberships" : [
        "LocalizerKit"
      ],
      "sources" : [
        "LocalizedAppModifier.swift",
        "LocalizedKeyProtocol.swift",
        "LocalizedLanguage.swift",
        "Localizer.swift",
        "LocalizerKit.swift",
        "LocalizerRegistry.swift",
        "LocalizerSettings.swift",
        "SupportedLanguage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.