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

Swift 6 data race errors: 1

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/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Pircate/CleanJSON.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/19] Compiling CleanJSON Defaultable.swift
[4/19] Compiling CleanJSON JSONAdapter.swift
[5/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 non-isolated 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 non-isolated 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
[6/19] 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.
[7/19] 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.
[8/19] Compiling CleanJSON DecodingError+CleanJSON.swift
[9/19] Compiling CleanJSON DecodingStrategy.swift
[10/19] Compiling CleanJSON CleanJSONUnkeyedDecodingContainer.swift
[11/19] Compiling CleanJSON CodingKeysConverter.swift
[12/19] Compiling CleanJSON CleanJSONKey.swift
[13/19] Compiling CleanJSON CleanJSONKeyedDecodingContainer.swift
[14/19] 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 non-isolated 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 non-isolated 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
[15/19] Compiling CleanJSON ToJSON.swift
[16/19] Compiling CleanJSON _CleanJSONDecoder+Decode.swift
[17/19] Compiling CleanJSON CaseDefaultable.swift
[18/19] Compiling CleanJSON CleanDecoder.swift
[19/19] Compiling CleanJSON _CleanJSONDecoder+SingleValueDecodingContainer.swift
[20/20] Compiling CleanJSON _CleanJSONDecoder.swift
Build complete! (21.76s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.