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 CleanJSON, reference master (8cfc48), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 12:51:10 UTC.

Swift 6 data race errors: 1

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/Pircate/CleanJSON.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Pircate/CleanJSON
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8cfc48a build: 新增 swiftlint
Cloned https://github.com/Pircate/CleanJSON.git
Revision (git rev-parse @):
8cfc48a79934e772f7d8ed36eb95916cfed8156c
SUCCESS checkout https://github.com/Pircate/CleanJSON.git at master
========================================
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": "cleanjson",
      "name": "CleanJSON",
      "url": "https://github.com/Pircate/CleanJSON.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CleanJSON",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Pircate/CleanJSON.git
[1/1895] Fetching cleanjson
Fetched https://github.com/Pircate/CleanJSON.git from cache (1.37s)
Creating working copy for https://github.com/Pircate/CleanJSON.git
Working copy of https://github.com/Pircate/CleanJSON.git resolved at master (8cfc48a)
warning: '.resolve-product-dependencies': dependency 'cleanjson' 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/Pircate/CleanJSON.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/19] Compiling CleanJSON ToJSON.swift
[4/19] Compiling CleanJSON _CleanJSONDecoder+Decode.swift
[5/19] Compiling CleanJSON _CleanJSONDecoder+SingleValueDecodingContainer.swift
[6/19] Compiling CleanJSON _CleanJSONDecoder+Unbox.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleanJSON/_CleanJSONDecoder+Unbox.swift:454:13: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
452 |
453 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
454 | private var _iso8601Formatter: ISO8601DateFormatter = {
    |             |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate '_iso8601Formatter' 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
455 |     let formatter = ISO8601DateFormatter()
456 |     formatter.formatOptions = .withInternetDateTime
[7/20] Compiling CleanJSON CleanJSONKey.swift
[8/20] Compiling CleanJSON CleanJSONKeyedDecodingContainer.swift
[9/20] Compiling CleanJSON DecodingError+CleanJSON.swift
[10/20] Compiling CleanJSON DecodingStrategy.swift
[11/20] Compiling CleanJSON CleanJSONUnkeyedDecodingContainer.swift
[12/20] Compiling CleanJSON CodingKeysConverter.swift
[13/20] Compiling CleanJSON CleanJSONDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleanJSON/CleanJSONDecoder.swift:23:12: warning: class 'CleanJSONDecoder' must restate inherited '@unchecked Sendable' conformance
 21 | }
 22 |
 23 | open class CleanJSONDecoder: JSONDecoder {
    |            `- warning: class 'CleanJSONDecoder' must restate inherited '@unchecked Sendable' conformance
 24 |
 25 |     /// Options set on the top-level encoder to pass down the decoding hierarchy.
[14/20] Compiling CleanJSON CleanJSONDecodingStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleanJSON/CleanJSONDecoder.swift:23:12: warning: class 'CleanJSONDecoder' must restate inherited '@unchecked Sendable' conformance
 21 | }
 22 |
 23 | open class CleanJSONDecoder: JSONDecoder {
    |            `- warning: class 'CleanJSONDecoder' must restate inherited '@unchecked Sendable' conformance
 24 |
 25 |     /// Options set on the top-level encoder to pass down the decoding hierarchy.
[15/20] Compiling CleanJSON CaseDefaultable.swift
[16/20] Compiling CleanJSON CleanDecoder.swift
[17/20] Emitting module CleanJSON
/Users/admin/builder/spi-builder-workspace/Sources/CleanJSON/CleanJSONDecoder.swift:23:12: warning: class 'CleanJSONDecoder' must restate inherited '@unchecked Sendable' conformance
 21 | }
 22 |
 23 | open class CleanJSONDecoder: JSONDecoder {
    |            `- warning: class 'CleanJSONDecoder' must restate inherited '@unchecked Sendable' conformance
 24 |
 25 |     /// Options set on the top-level encoder to pass down the decoding hierarchy.
/Users/admin/builder/spi-builder-workspace/Sources/CleanJSON/_CleanJSONDecoder+Unbox.swift:454:13: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
452 |
453 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
454 | private var _iso8601Formatter: ISO8601DateFormatter = {
    |             |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate '_iso8601Formatter' 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
455 |     let formatter = ISO8601DateFormatter()
456 |     formatter.formatOptions = .withInternetDateTime
[18/20] Compiling CleanJSON Defaultable.swift
[19/20] Compiling CleanJSON JSONAdapter.swift
[20/20] Compiling CleanJSON _CleanJSONDecoder.swift
Build complete! (18.01s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CleanJSON",
  "name" : "CleanJSON",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CleanJSON",
      "targets" : [
        "CleanJSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CleanJSONTests",
      "module_type" : "SwiftTarget",
      "name" : "CleanJSONTests",
      "path" : "Tests/CleanJSONTests",
      "sources" : [
        "CleanJSONTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CleanJSON"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CleanJSON",
      "module_type" : "SwiftTarget",
      "name" : "CleanJSON",
      "path" : "Sources/CleanJSON",
      "product_memberships" : [
        "CleanJSON"
      ],
      "sources" : [
        "CaseDefaultable.swift",
        "CleanDecoder.swift",
        "CleanJSONDecoder.swift",
        "CleanJSONDecodingStorage.swift",
        "CleanJSONKey.swift",
        "CleanJSONKeyedDecodingContainer.swift",
        "CleanJSONUnkeyedDecodingContainer.swift",
        "CodingKeysConverter.swift",
        "DecodingError+CleanJSON.swift",
        "DecodingStrategy.swift",
        "Defaultable.swift",
        "JSONAdapter.swift",
        "ToJSON.swift",
        "_CleanJSONDecoder+Decode.swift",
        "_CleanJSONDecoder+SingleValueDecodingContainer.swift",
        "_CleanJSONDecoder+Unbox.swift",
        "_CleanJSONDecoder.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.