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 main (b6d726), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 14:32:09 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: 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
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/4511] Fetching swift-custom-dump
[1174/9496] Fetching swift-custom-dump, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (1.52s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.52s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.0.0 (0.67s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.0.2 (0.64s)
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
========================================
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
[1/254] Fetching swift-json-testing
Fetched https://github.com/davdroman/swift-json-testing.git from cache (0.76s)
Fetching https://github.com/pointfreeco/swift-custom-dump from cache
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.47s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (0.49s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.46s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.4.2 (0.51s)
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 main (b6d7261)
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
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
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 Unimplemented.swift
[7/13] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[8/13] Compiling XCTestDynamicOverlay XCTFail.swift
[9/13] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[10/13] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[11/13] Emitting module XCTestDynamicOverlay
[12/13] Compiling XCTestDynamicOverlay Deprecations.swift
[13/13] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[14/38] Compiling CustomDump Mirror.swift
[15/38] Compiling CustomDump String.swift
[16/40] Compiling CustomDump Box.swift
[17/40] Compiling CustomDump CollectionDifference.swift
[18/40] Compiling CustomDump Dump.swift
[19/40] Compiling CustomDump AnyType.swift
[20/40] Compiling CustomDump Unordered.swift
[21/40] Compiling CustomDump XCTAssertNoDifference.swift
[22/40] Compiling CustomDump CustomDumpRepresentable.swift
[23/40] Compiling CustomDump CustomDumpStringConvertible.swift
[24/40] Compiling CustomDump Diff.swift
[25/40] Emitting module CustomDump
[26/40] Compiling CustomDump CoreImage.swift
[27/40] Compiling CustomDump CoreLocation.swift
[28/40] Compiling CustomDump CoreMotion.swift
[29/40] Compiling CustomDump Foundation.swift
[30/40] Compiling CustomDump GameKit.swift
[31/40] Compiling CustomDump KeyPath.swift
[32/40] Compiling CustomDump Photos.swift
[33/40] Compiling CustomDump Speech.swift
[34/40] Compiling CustomDump StoreKit.swift
[35/40] Compiling CustomDump Swift.swift
[36/40] Compiling CustomDump SwiftUI.swift
[37/40] Compiling CustomDump UIKit.swift
[38/40] Compiling CustomDump UserNotifications.swift
[39/40] Compiling CustomDump UserNotificationsUI.swift
[40/40] Compiling CustomDump CustomDumpReflectable.swift
[41/49] Compiling JSONTesting JSON+Literals.swift
[42/49] Compiling JSONTesting JSON+Codable.swift
[43/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()
[44/49] Compiling JSONTesting JSON.swift
[45/49] Compiling JSONTesting JSON+Debugging.swift
[46/49] Compiling JSONTesting XCTAssertJSON.swift
[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] 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()
[49/49] Compiling JSONTesting Exports.swift
Build complete! (25.03s)
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.