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 ISO639, reference 1.3.2 (92cb77), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 10:53:38 UTC.

Swift 6 data race errors: 2

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftPackageRepository/ISO639.swift.git
Reference: 1.3.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SwiftPackageRepository/ISO639.swift
 * tag               1.3.2      -> FETCH_HEAD
HEAD is now at 92cb77c added base ukraine
Cloned https://github.com/SwiftPackageRepository/ISO639.swift.git
Revision (git rev-parse @):
92cb77c9b0da6ec1d9ad5fd8043257c90ccc0a65
SUCCESS checkout https://github.com/SwiftPackageRepository/ISO639.swift.git at 1.3.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": "iso639.swift",
      "name": "ISO639",
      "url": "https://github.com/SwiftPackageRepository/ISO639.swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ISO639.swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/SwiftPackageRepository/ISO639.swift.git
[1/539] Fetching iso639.swift
Fetched https://github.com/SwiftPackageRepository/ISO639.swift.git from cache (1.23s)
Creating working copy for https://github.com/SwiftPackageRepository/ISO639.swift.git
Working copy of https://github.com/SwiftPackageRepository/ISO639.swift.git resolved at 1.3.2 (92cb77c)
warning: '.resolve-product-dependencies': dependency 'iso639.swift' 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/SwiftPackageRepository/ISO639.swift.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
Building for debugging...
[0/22] Copying Localizable.strings
[18/22] Copying Info.plist
[18/22] Write sources
[20/22] Copying Localizable.strings
[21/22] Write swift-version--7754E27361AE5C74.txt
[23/39] Compiling ISO639 String+Extensions.swift
[24/39] Compiling ISO639 WritingSystem.swift
[25/40] Compiling ISO639 LanguageSymbols+Characters.swift
[26/40] Compiling ISO639 LanguageSymbols.swift
[27/40] Compiling ISO639 Language.swift
[28/40] Compiling ISO639 LanguageArray+Extensions.swift
[29/40] Compiling ISO639 ChineseLanguageSymbols.swift
[30/40] Compiling ISO639 JapaneseLanguageSymbols.swift
[31/40] Compiling ISO639 LetterCase.swift
/Users/admin/builder/spi-builder-workspace/Sources/ISO639/LocaleHelper.swift:11:23: warning: static property 'currentLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | internal struct LocaleHelper {
11 |     public static var currentLanguageCode: String? = Locale.current.languageCode?.cutLanguageCode()
   |                       |- warning: static property 'currentLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'currentLanguageCode' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'currentLanguageCode' 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
12 |     public static var preferredLanguageCodes: [String] = Locale.preferredLanguages.map { $0.cutLanguageCode() }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/ISO639/LocaleHelper.swift:12:23: warning: static property 'preferredLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | internal struct LocaleHelper {
11 |     public static var currentLanguageCode: String? = Locale.current.languageCode?.cutLanguageCode()
12 |     public static var preferredLanguageCodes: [String] = Locale.preferredLanguages.map { $0.cutLanguageCode() }
   |                       |- warning: static property 'preferredLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'preferredLanguageCodes' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'preferredLanguageCodes' 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
13 | }
14 |
[32/40] Compiling ISO639 LocaleHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/ISO639/LocaleHelper.swift:11:23: warning: static property 'currentLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | internal struct LocaleHelper {
11 |     public static var currentLanguageCode: String? = Locale.current.languageCode?.cutLanguageCode()
   |                       |- warning: static property 'currentLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'currentLanguageCode' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'currentLanguageCode' 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
12 |     public static var preferredLanguageCodes: [String] = Locale.preferredLanguages.map { $0.cutLanguageCode() }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/ISO639/LocaleHelper.swift:12:23: warning: static property 'preferredLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | internal struct LocaleHelper {
11 |     public static var currentLanguageCode: String? = Locale.current.languageCode?.cutLanguageCode()
12 |     public static var preferredLanguageCodes: [String] = Locale.preferredLanguages.map { $0.cutLanguageCode() }
   |                       |- warning: static property 'preferredLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'preferredLanguageCodes' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'preferredLanguageCodes' 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
13 | }
14 |
[33/40] Compiling ISO639 ISO639Alpha1.swift
[34/40] Compiling ISO639 ISO639Alpha2.swift
[35/40] Emitting module ISO639
/Users/admin/builder/spi-builder-workspace/Sources/ISO639/LocaleHelper.swift:11:23: warning: static property 'currentLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | internal struct LocaleHelper {
11 |     public static var currentLanguageCode: String? = Locale.current.languageCode?.cutLanguageCode()
   |                       |- warning: static property 'currentLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'currentLanguageCode' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'currentLanguageCode' 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
12 |     public static var preferredLanguageCodes: [String] = Locale.preferredLanguages.map { $0.cutLanguageCode() }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/ISO639/LocaleHelper.swift:12:23: warning: static property 'preferredLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | internal struct LocaleHelper {
11 |     public static var currentLanguageCode: String? = Locale.current.languageCode?.cutLanguageCode()
12 |     public static var preferredLanguageCodes: [String] = Locale.preferredLanguages.map { $0.cutLanguageCode() }
   |                       |- warning: static property 'preferredLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'preferredLanguageCodes' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'preferredLanguageCodes' 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
13 | }
14 |
[36/40] Compiling ISO639 Character+Extensions.swift
[37/40] Compiling ISO639 CharacterArray+Extensions.swift
[38/40] Compiling ISO639 Language+All.swift
/Users/admin/builder/spi-builder-workspace/Sources/ISO639/LocaleHelper.swift:11:23: warning: static property 'currentLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | internal struct LocaleHelper {
11 |     public static var currentLanguageCode: String? = Locale.current.languageCode?.cutLanguageCode()
   |                       |- warning: static property 'currentLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'currentLanguageCode' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'currentLanguageCode' 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
12 |     public static var preferredLanguageCodes: [String] = Locale.preferredLanguages.map { $0.cutLanguageCode() }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/ISO639/LocaleHelper.swift:12:23: warning: static property 'preferredLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | internal struct LocaleHelper {
11 |     public static var currentLanguageCode: String? = Locale.current.languageCode?.cutLanguageCode()
12 |     public static var preferredLanguageCodes: [String] = Locale.preferredLanguages.map { $0.cutLanguageCode() }
   |                       |- warning: static property 'preferredLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'preferredLanguageCodes' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'preferredLanguageCodes' 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
13 | }
14 |
[39/40] Compiling ISO639 Language+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/ISO639/LocaleHelper.swift:11:23: warning: static property 'currentLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | internal struct LocaleHelper {
11 |     public static var currentLanguageCode: String? = Locale.current.languageCode?.cutLanguageCode()
   |                       |- warning: static property 'currentLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'currentLanguageCode' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'currentLanguageCode' 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
12 |     public static var preferredLanguageCodes: [String] = Locale.preferredLanguages.map { $0.cutLanguageCode() }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/ISO639/LocaleHelper.swift:12:23: warning: static property 'preferredLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | internal struct LocaleHelper {
11 |     public static var currentLanguageCode: String? = Locale.current.languageCode?.cutLanguageCode()
12 |     public static var preferredLanguageCodes: [String] = Locale.preferredLanguages.map { $0.cutLanguageCode() }
   |                       |- warning: static property 'preferredLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'preferredLanguageCodes' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'preferredLanguageCodes' 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
13 | }
14 |
[40/40] Compiling ISO639 resource_bundle_accessor.swift
Build complete! (11.29s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/Localizable.strings
Build complete.
{
  "default_localization" : "en",
  "dependencies" : [
  ],
  "manifest_display_name" : "ISO639",
  "name" : "ISO639",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "ISO639",
      "targets" : [
        "ISO639"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ISO639Tests",
      "module_type" : "SwiftTarget",
      "name" : "ISO639Tests",
      "path" : "Tests/ISO639Tests",
      "sources" : [
        "GenerateResourcesTests.swift",
        "LanguageCharactersTests.swift",
        "LanguageTests.swift",
        "String+ExtensionsTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ISO639"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ISO639",
      "module_type" : "SwiftTarget",
      "name" : "ISO639",
      "path" : "Sources/ISO639",
      "product_memberships" : [
        "ISO639"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/bg.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "bg"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/cs.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "cs"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/da.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "da"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/de.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "de"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/el.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "el"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/en.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "en"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/es.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "es"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/fi.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "fi"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/fr.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "fr"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/it.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "it"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/ja.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "ja"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/lv.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "lv"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/nl.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "nl"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/pl.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "pl"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/pt.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "pt"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/ro.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "ro"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/ru.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "ru"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/uk.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "uk"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ISO639/Resources/zh.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "zh"
            }
          }
        }
      ],
      "sources" : [
        "Character+Extensions.swift",
        "CharacterArray+Extensions.swift",
        "ISO639Alpha1.swift",
        "ISO639Alpha2.swift",
        "Language+All.swift",
        "Language+Extensions.swift",
        "Language.swift",
        "LanguageArray+Extensions.swift",
        "LanguageSymbols+Characters.swift",
        "LanguageSymbols.swift",
        "LanguageSymbols/ChineseLanguageSymbols.swift",
        "LanguageSymbols/JapaneseLanguageSymbols.swift",
        "LetterCase.swift",
        "LocaleHelper.swift",
        "String+Extensions.swift",
        "WritingSystem.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.