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 swift-json-testing 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/davdroman/swift-json-testing.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/davdroman/swift-json-testing
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b6d7261 Bump actions/checkout to v4 (#15)
Cloned https://github.com/davdroman/swift-json-testing.git
Revision (git rev-parse @):
b6d7261594b9e2f8f954e4c088c01c7a54181a5f
SUCCESS checkout https://github.com/davdroman/swift-json-testing.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/davdroman/swift-json-testing.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/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/13] Compiling XCTestDynamicOverlay Unimplemented.swift
[6/13] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[7/13] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[8/13] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[9/13] Compiling XCTestDynamicOverlay Deprecations.swift
[10/13] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[11/13] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[12/13] Compiling XCTestDynamicOverlay XCTFail.swift
[13/13] Emitting module XCTestDynamicOverlay
[14/38] Compiling CustomDump Mirror.swift
[15/38] Compiling CustomDump String.swift
[16/38] Compiling CustomDump Box.swift
[17/38] Compiling CustomDump CollectionDifference.swift
[18/40] Compiling CustomDump Unordered.swift
[19/40] Compiling CustomDump XCTAssertNoDifference.swift
[20/40] Compiling CustomDump CustomDumpRepresentable.swift
[21/40] Compiling CustomDump CustomDumpStringConvertible.swift
[22/40] Compiling CustomDump Diff.swift
[23/40] Compiling CustomDump UserNotifications.swift
[24/40] Compiling CustomDump UserNotificationsUI.swift
[25/40] Compiling CustomDump CustomDumpReflectable.swift
[26/40] Emitting module CustomDump
[27/40] Compiling CustomDump CoreImage.swift
[28/40] Compiling CustomDump CoreLocation.swift
[29/40] Compiling CustomDump CoreMotion.swift
[30/40] Compiling CustomDump Foundation.swift
[31/40] Compiling CustomDump GameKit.swift
[32/40] Compiling CustomDump KeyPath.swift
[33/40] Compiling CustomDump Dump.swift
[34/40] Compiling CustomDump AnyType.swift
[35/40] Compiling CustomDump Photos.swift
[36/40] Compiling CustomDump Speech.swift
[37/40] Compiling CustomDump StoreKit.swift
[38/40] Compiling CustomDump Swift.swift
[39/40] Compiling CustomDump SwiftUI.swift
[40/40] Compiling CustomDump UIKit.swift
[41/49] Compiling JSONTesting JSON+Debugging.swift
[42/49] Compiling JSONTesting XCTAssertJSONConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONTesting/XCTAssertJSONConfiguration.swift:20:13: warning: var 'XCTAssertJSONConfiguration' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | private var XCTAssertJSONConfiguration = XCTAssertJSON.Configuration(
   |             |- warning: var 'XCTAssertJSONConfiguration' 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 'XCTAssertJSONConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'XCTAssertJSONConfiguration' 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
21 |     encoder: JSONEncoder(),
22 |     decoder: JSONDecoder()
[43/49] Compiling JSONTesting XCTAssertJSON.swift
[44/49] Compiling JSONTesting JSON+Literals.swift
[45/49] Compiling JSONTesting JSON+Codable.swift
[46/49] Emitting module JSONTesting
/Users/admin/builder/spi-builder-workspace/Sources/JSONTesting/JSON+Serialization.swift:7:14: warning: associated value 'jsonToDataConversionError' of 'Sendable'-conforming enum 'Error' has non-sendable type 'JSON'; this is an error in the Swift 6 language mode
 5 |     public enum Error: LocalizedError {
 6 |         case dataToJSONConversionError(Data)
 7 |         case jsonToDataConversionError(JSON)
   |              `- warning: associated value 'jsonToDataConversionError' of 'Sendable'-conforming enum 'Error' has non-sendable type 'JSON'; this is an error in the Swift 6 language mode
 8 |
 9 |         public var errorDescription: String? {
/Users/admin/builder/spi-builder-workspace/Sources/JSONTesting/JSON.swift:3:13: note: consider making enum 'JSON' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public enum JSON: Hashable {
   |             `- note: consider making enum 'JSON' conform to the 'Sendable' protocol
 4 |     case string(String)
 5 |     case number(Decimal)
/Users/admin/builder/spi-builder-workspace/Sources/JSONTesting/XCTAssertJSONConfiguration.swift:20:13: warning: var 'XCTAssertJSONConfiguration' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | private var XCTAssertJSONConfiguration = XCTAssertJSON.Configuration(
   |             |- warning: var 'XCTAssertJSONConfiguration' 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 'XCTAssertJSONConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'XCTAssertJSONConfiguration' 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
21 |     encoder: JSONEncoder(),
22 |     decoder: JSONDecoder()
[47/49] Compiling JSONTesting JSON+Serialization.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONTesting/JSON+Serialization.swift:7:14: warning: associated value 'jsonToDataConversionError' of 'Sendable'-conforming enum 'Error' has non-sendable type 'JSON'; this is an error in the Swift 6 language mode
 5 |     public enum Error: LocalizedError {
 6 |         case dataToJSONConversionError(Data)
 7 |         case jsonToDataConversionError(JSON)
   |              `- warning: associated value 'jsonToDataConversionError' of 'Sendable'-conforming enum 'Error' has non-sendable type 'JSON'; this is an error in the Swift 6 language mode
 8 |
 9 |         public var errorDescription: String? {
/Users/admin/builder/spi-builder-workspace/Sources/JSONTesting/JSON.swift:3:13: note: consider making enum 'JSON' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public enum JSON: Hashable {
   |             `- note: consider making enum 'JSON' conform to the 'Sendable' protocol
 4 |     case string(String)
 5 |     case number(Decimal)
[48/49] Compiling JSONTesting JSON.swift
[49/49] Compiling JSONTesting Exports.swift
Build complete! (52.20s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4232] Fetching swift-custom-dump
[721/6588] Fetching swift-custom-dump, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (1.20s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.20s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.0.0 (0.69s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.0.2 (0.70s)
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.0.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.0.2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-custom-dump",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-custom-dump"
    }
  ],
  "manifest_display_name" : "swift-json-testing",
  "name" : "swift-json-testing",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "JSONTesting",
      "targets" : [
        "JSONTesting"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JSONTestingTests",
      "module_type" : "SwiftTarget",
      "name" : "JSONTestingTests",
      "path" : "Tests/JSONTestingTests",
      "sources" : [
        "JSONTests.swift",
        "Sequence+AdjacentPairs.swift",
        "XCTAssertJSONTests.swift"
      ],
      "target_dependencies" : [
        "JSONTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSONTesting",
      "module_type" : "SwiftTarget",
      "name" : "JSONTesting",
      "path" : "Sources/JSONTesting",
      "product_dependencies" : [
        "CustomDump"
      ],
      "product_memberships" : [
        "JSONTesting"
      ],
      "sources" : [
        "Exports.swift",
        "JSON+Codable.swift",
        "JSON+Debugging.swift",
        "JSON+Literals.swift",
        "JSON+Serialization.swift",
        "JSON.swift",
        "XCTAssertJSON.swift",
        "XCTAssertJSONConfiguration.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.