The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of ISO8601DurationFormatter, reference v2.0.0 (f12307), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 03:05:41 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: v2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kkla320/ISO8601DurationFormatter
 * tag               v2.0.0     -> FETCH_HEAD
HEAD is now at f123074 Merge pull request #8 from kkla320/develop
Cloned https://github.com/kkla320/ISO8601DurationFormatter.git
Revision (git rev-parse @):
f123074262af4e8d6840d3869b7e3a0fc7180a2a
SUCCESS checkout https://github.com/kkla320/ISO8601DurationFormatter.git at v2.0.0
========================================
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
[1/262] Fetching iso8601durationformatter
Fetched https://github.com/kkla320/ISO8601DurationFormatter.git from cache (0.68s)
Creating working copy for https://github.com/kkla320/ISO8601DurationFormatter.git
Working copy of https://github.com/kkla320/ISO8601DurationFormatter.git resolved at v2.0.0 (f123074)
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 Operators.swift
[4/9] Compiling ISO8601DurationFormatter String+append.swift
[5/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 |
[6/9] Compiling ISO8601DurationFormatter ISO8601DurationFormatter.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 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 |
[8/9] Compiling ISO8601DurationFormatter DateComponents+init.swift
[9/9] Compiling ISO8601DurationFormatter DateComponents+ISO8601Duration.swift
Build complete! (4.35s)
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.