This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 ISO8601DurationFormatter with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kkla320/ISO8601DurationFormatter.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kkla320/ISO8601DurationFormatter
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6a17d8d Merge pull request #12 from kkla320/revert-11-MoveSources
Cloned https://github.com/kkla320/ISO8601DurationFormatter.git
Revision (git rev-parse @):
6a17d8d384abb553ad83c7971d96a6837c9663da
SUCCESS checkout https://github.com/kkla320/ISO8601DurationFormatter.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/kkla320/ISO8601DurationFormatter.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/9] Compiling ISO8601DurationFormatter Operators.swift
[4/9] Compiling ISO8601DurationFormatter ISO8601DurationFormatter.swift
[5/9] Compiling ISO8601DurationFormatter String+append.swift
[6/9] Compiling ISO8601DurationFormatter DateComponents+ISO8601Duration.swift
[7/9] Emitting module ISO8601DurationFormatter
/Users/admin/builder/spi-builder-workspace/Sources/ISO8601DurationFormatter/Dictionary+mappings.swift:4:16: warning: static property 'dateUnitMapping' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | extension Dictionary where Key == Character, Value == Calendar.Component {
4 |     static var dateUnitMapping: Self = ["Y": .year, "M": .month, "W": .weekOfYear, "D": .day]
  |                |- warning: static property 'dateUnitMapping' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  |                |- note: convert 'dateUnitMapping' to a 'let' constant to make 'Sendable' shared state immutable
  |                |- note: annotate 'dateUnitMapping' 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
5 |     static var timeUnitMapping: Self = ["H": .hour, "M": .minute, "S": .second]
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/ISO8601DurationFormatter/Dictionary+mappings.swift:5:16: warning: static property 'timeUnitMapping' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
3 | extension Dictionary where Key == Character, Value == Calendar.Component {
4 |     static var dateUnitMapping: Self = ["Y": .year, "M": .month, "W": .weekOfYear, "D": .day]
5 |     static var timeUnitMapping: Self = ["H": .hour, "M": .minute, "S": .second]
  |                |- warning: static property 'timeUnitMapping' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  |                |- note: convert 'timeUnitMapping' to a 'let' constant to make 'Sendable' shared state immutable
  |                |- note: annotate 'timeUnitMapping' 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
6 | }
7 |
[8/9] Compiling ISO8601DurationFormatter Dictionary+mappings.swift
/Users/admin/builder/spi-builder-workspace/Sources/ISO8601DurationFormatter/Dictionary+mappings.swift:4:16: warning: static property 'dateUnitMapping' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | extension Dictionary where Key == Character, Value == Calendar.Component {
4 |     static var dateUnitMapping: Self = ["Y": .year, "M": .month, "W": .weekOfYear, "D": .day]
  |                |- warning: static property 'dateUnitMapping' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  |                |- note: convert 'dateUnitMapping' to a 'let' constant to make 'Sendable' shared state immutable
  |                |- note: annotate 'dateUnitMapping' 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
5 |     static var timeUnitMapping: Self = ["H": .hour, "M": .minute, "S": .second]
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/ISO8601DurationFormatter/Dictionary+mappings.swift:5:16: warning: static property 'timeUnitMapping' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
3 | extension Dictionary where Key == Character, Value == Calendar.Component {
4 |     static var dateUnitMapping: Self = ["Y": .year, "M": .month, "W": .weekOfYear, "D": .day]
5 |     static var timeUnitMapping: Self = ["H": .hour, "M": .minute, "S": .second]
  |                |- warning: static property 'timeUnitMapping' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  |                |- note: convert 'timeUnitMapping' to a 'let' constant to make 'Sendable' shared state immutable
  |                |- note: annotate 'timeUnitMapping' 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
6 | }
7 |
[9/9] Compiling ISO8601DurationFormatter DateComponents+init.swift
/Users/admin/builder/spi-builder-workspace/Sources/ISO8601DurationFormatter/Dictionary+mappings.swift:4:16: warning: static property 'dateUnitMapping' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | extension Dictionary where Key == Character, Value == Calendar.Component {
4 |     static var dateUnitMapping: Self = ["Y": .year, "M": .month, "W": .weekOfYear, "D": .day]
  |                |- warning: static property 'dateUnitMapping' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  |                |- note: convert 'dateUnitMapping' to a 'let' constant to make 'Sendable' shared state immutable
  |                |- note: annotate 'dateUnitMapping' 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
5 |     static var timeUnitMapping: Self = ["H": .hour, "M": .minute, "S": .second]
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/ISO8601DurationFormatter/Dictionary+mappings.swift:5:16: warning: static property 'timeUnitMapping' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
3 | extension Dictionary where Key == Character, Value == Calendar.Component {
4 |     static var dateUnitMapping: Self = ["Y": .year, "M": .month, "W": .weekOfYear, "D": .day]
5 |     static var timeUnitMapping: Self = ["H": .hour, "M": .minute, "S": .second]
  |                |- warning: static property 'timeUnitMapping' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  |                |- note: convert 'timeUnitMapping' to a 'let' constant to make 'Sendable' shared state immutable
  |                |- note: annotate 'timeUnitMapping' 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
6 | }
7 |
Build complete! (18.88s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ISO8601DurationFormatter",
  "name" : "ISO8601DurationFormatter",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "ISO8601DurationFormatter",
      "targets" : [
        "ISO8601DurationFormatter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ISO8601DurationFormatterTests",
      "module_type" : "SwiftTarget",
      "name" : "ISO8601DurationFormatterTests",
      "path" : "Tests/ISO8601DurationFormatterTests",
      "sources" : [
        "DateComponentsTests.swift",
        "ISO8601DurationFormatterTests.swift"
      ],
      "target_dependencies" : [
        "ISO8601DurationFormatter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ISO8601DurationFormatter",
      "module_type" : "SwiftTarget",
      "name" : "ISO8601DurationFormatter",
      "path" : "Sources/ISO8601DurationFormatter",
      "product_memberships" : [
        "ISO8601DurationFormatter"
      ],
      "sources" : [
        "DateComponents+ISO8601Duration.swift",
        "DateComponents+init.swift",
        "Dictionary+mappings.swift",
        "ISO8601DurationFormatter.swift",
        "Operators.swift",
        "String+append.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.