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, reference main (6a17d8), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 03:05:51 UTC.

Swift 6 data race errors: 2

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/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
========================================
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": "iso8601durationformatter",
      "name": "ISO8601DurationFormatter",
      "url": "https://github.com/kkla320/ISO8601DurationFormatter.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ISO8601DurationFormatter",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/kkla320/ISO8601DurationFormatter.git
[3/262] Fetching iso8601durationformatter
Fetched https://github.com/kkla320/ISO8601DurationFormatter.git from cache (0.62s)
Creating working copy for https://github.com/kkla320/ISO8601DurationFormatter.git
Working copy of https://github.com/kkla320/ISO8601DurationFormatter.git resolved at main (6a17d8d)
warning: '.resolve-product-dependencies': dependency 'iso8601durationformatter' 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/kkla320/ISO8601DurationFormatter.git
https://github.com/kkla320/ISO8601DurationFormatter.git
{
  "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"
}
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/9] Compiling ISO8601DurationFormatter String+append.swift
[4/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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'dateUnitMapping' part of global actor 'MainActor'
  |                `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'timeUnitMapping' part of global actor 'MainActor'
  |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | }
7 |
[5/9] Compiling ISO8601DurationFormatter ISO8601DurationFormatter.swift
[6/9] Compiling ISO8601DurationFormatter Operators.swift
[7/9] Compiling ISO8601DurationFormatter DateComponents+ISO8601Duration.swift
[8/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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'dateUnitMapping' part of global actor 'MainActor'
  |                `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'timeUnitMapping' part of global actor 'MainActor'
  |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | }
7 |
[9/9] Compiling ISO8601DurationFormatter DateComponents+init.swift
Build complete! (4.18s)
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.