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, reference 0.2.0 (de4870), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 14:32:16 UTC.

Swift 6 data race errors: 2

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/davdroman/swift-json-testing.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/davdroman/swift-json-testing
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at de48704 Update dependencies and minimum Swift version (#10)
Cloned https://github.com/davdroman/swift-json-testing.git
Revision (git rev-parse @):
de48704db4af7d448bc27aea305b39494fed6eec
SUCCESS checkout https://github.com/davdroman/swift-json-testing.git at 0.2.0
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4511] Fetching swift-custom-dump
[407/9496] Fetching swift-custom-dump, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (1.61s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.61s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.0.0 (0.65s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.0.2 (0.63s)
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
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
========================================
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": "swift-json-testing",
      "name": "swift-json-testing",
      "url": "https://github.com/davdroman/swift-json-testing.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-json-testing",
      "dependencies": [
        {
          "identity": "swift-custom-dump",
          "name": "swift-custom-dump",
          "url": "https://github.com/pointfreeco/swift-custom-dump",
          "version": "1.3.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-custom-dump",
          "dependencies": [
            {
              "identity": "xctest-dynamic-overlay",
              "name": "xctest-dynamic-overlay",
              "url": "https://github.com/pointfreeco/xctest-dynamic-overlay",
              "version": "1.4.2",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xctest-dynamic-overlay",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/davdroman/swift-json-testing.git
[3/254] Fetching swift-json-testing
Fetched https://github.com/davdroman/swift-json-testing.git from cache (0.77s)
Fetching https://github.com/pointfreeco/swift-custom-dump from cache
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.48s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (0.46s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.47s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.4.2 (0.46s)
Creating working copy for https://github.com/davdroman/swift-json-testing.git
Working copy of https://github.com/davdroman/swift-json-testing.git resolved at 0.2.0 (de48704)
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.4.2
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
warning: '.resolve-product-dependencies': dependency 'swift-json-testing' is not used by any target
Found 1 product dependencies
  - swift-custom-dump
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/davdroman/swift-json-testing.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/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/13] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[6/13] Compiling XCTestDynamicOverlay XCTFail.swift
[7/13] Compiling XCTestDynamicOverlay Unimplemented.swift
[8/13] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[9/13] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[10/13] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[11/13] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[12/13] Compiling XCTestDynamicOverlay Deprecations.swift
[13/13] Emitting module XCTestDynamicOverlay
[14/38] Compiling CustomDump Dump.swift
[15/38] Compiling CustomDump AnyType.swift
[16/38] Compiling CustomDump Box.swift
[17/38] Compiling CustomDump CollectionDifference.swift
[18/40] Compiling CustomDump Mirror.swift
[19/40] Compiling CustomDump String.swift
[20/40] Compiling CustomDump UserNotifications.swift
[21/40] Compiling CustomDump UserNotificationsUI.swift
[22/40] Compiling CustomDump CustomDumpReflectable.swift
[23/40] Compiling CustomDump Unordered.swift
[24/40] Compiling CustomDump XCTAssertNoDifference.swift
[25/40] Emitting module CustomDump
[26/40] Compiling CustomDump Foundation.swift
[27/40] Compiling CustomDump GameKit.swift
[28/40] Compiling CustomDump KeyPath.swift
[29/40] Compiling CustomDump Photos.swift
[30/40] Compiling CustomDump Speech.swift
[31/40] Compiling CustomDump StoreKit.swift
[32/40] Compiling CustomDump CustomDumpRepresentable.swift
[33/40] Compiling CustomDump CustomDumpStringConvertible.swift
[34/40] Compiling CustomDump Diff.swift
[35/40] Compiling CustomDump CoreImage.swift
[36/40] Compiling CustomDump CoreLocation.swift
[37/40] Compiling CustomDump CoreMotion.swift
[38/40] Compiling CustomDump Swift.swift
[39/40] Compiling CustomDump SwiftUI.swift
[40/40] Compiling CustomDump UIKit.swift
[41/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 nonisolated 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 nonisolated 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()
[42/49] Compiling JSONTesting XCTAssertJSON.swift
[43/49] Compiling JSONTesting JSON+Literals.swift
[44/49] Compiling JSONTesting Exports.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 nonisolated 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 nonisolated 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+Debugging.swift
[48/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)
[49/49] Compiling JSONTesting JSON.swift
Build complete! (23.18s)
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.