The Swift Package Index logo.Swift Package Index

Build Information

Successful build of JSONPatch, reference v1.0.6 (1eb123), with Swift 6.1 for macOS (SPM) on 9 May 2026 02:22:16 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/raymccrae/swift-jsonpatch.git
Reference: v1.0.6
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/raymccrae/swift-jsonpatch
 * tag               v1.0.6     -> FETCH_HEAD
HEAD is now at 1eb1236 Merge pull request #7 from chrisschlitt/feature/linux-support
Cloned https://github.com/raymccrae/swift-jsonpatch.git
Revision (git rev-parse @):
1eb12363c1ee681712d2a42d2ee6f0322f92cf31
SUCCESS checkout https://github.com/raymccrae/swift-jsonpatch.git at v1.0.6
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/raymccrae/swift-jsonpatch.git
https://github.com/raymccrae/swift-jsonpatch.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JSONPatch",
  "name" : "JSONPatch",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JSONPatch",
      "targets" : [
        "JSONPatch"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JSONPatchTests",
      "module_type" : "SwiftTarget",
      "name" : "JSONPatchTests",
      "path" : "Tests",
      "sources" : [
        "JSONPatchTests/ArrayTests.swift",
        "JSONPatchTests/Bundle.swift",
        "JSONPatchTests/JSONCodableTests.swift",
        "JSONPatchTests/JSONElementTests.swift",
        "JSONPatchTests/JSONFileTestCase.swift",
        "JSONPatchTests/JSONPatchGeneratorTests.swift",
        "JSONPatchTests/JSONPatchTests.swift",
        "JSONPatchTests/JSONPointerTests.swift",
        "JSONPatchTests/TestFileTestCase.swift"
      ],
      "target_dependencies" : [
        "JSONPatch"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSONPatch",
      "module_type" : "SwiftTarget",
      "name" : "JSONPatch",
      "path" : "Sources/JSONPatch",
      "product_memberships" : [
        "JSONPatch"
      ],
      "sources" : [
        "JSONElement.swift",
        "JSONEquality.swift",
        "JSONError.swift",
        "JSONPatch.swift",
        "JSONPatchCodable.swift",
        "JSONPatchGenerator.swift",
        "JSONPointer.swift",
        "NSArray+DeepCopy.swift",
        "NSDictionary+DeepCopy.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/12] Compiling JSONPatch NSDictionary+DeepCopy.swift
[4/12] Compiling JSONPatch NSArray+DeepCopy.swift
[5/12] Emitting module JSONPatch
/Users/admin/builder/spi-builder-workspace/Sources/JSONPatch/JSONError.swift:30:10: warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
28 |     case unknownPatchOperation
29 |     case missingRequiredPatchField(op: String, index: Int, field: String)
30 |     case patchTestFailed(path: String, expected: Any, found: Any?)
   |          `- warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/Sources/JSONPatch/JSONError.swift:30:10: warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
28 |     case unknownPatchOperation
29 |     case missingRequiredPatchField(op: String, index: Int, field: String)
30 |     case patchTestFailed(path: String, expected: Any, found: Any?)
   |          `- warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/Sources/JSONPatch/JSONPointer.swift:40:16: warning: static property 'wholeDocument' is not concurrency-safe because non-'Sendable' type 'JSONPointer' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// A JSON Pointer implementation, based on RFC 6901.
 24 | /// https://tools.ietf.org/html/rfc6901
 25 | public struct JSONPointer {
    |               `- note: consider making struct 'JSONPointer' conform to the 'Sendable' protocol
 26 |
 27 |     /// An array of the unescaped components of the json-pointer.
    :
 38 |
 39 |     /// A json-pointer that represents the whole json document.
 40 |     static let wholeDocument: JSONPointer = JSONPointer(components: [])
    |                |- warning: static property 'wholeDocument' is not concurrency-safe because non-'Sendable' type 'JSONPointer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'wholeDocument' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 41 |
 42 |     /// A string representation of the json-pointer.
/Users/admin/builder/spi-builder-workspace/Sources/JSONPatch/JSONPointer.swift:186:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSONPointer' to 'Hashable' by implementing 'hash(into:)' instead
184 |     }
185 |     #else
186 |     public var hashValue: Int {
    |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSONPointer' to 'Hashable' by implementing 'hash(into:)' instead
187 |         return components.hashValue
188 |     }
[6/12] Compiling JSONPatch JSONPatchGenerator.swift
[7/12] Compiling JSONPatch JSONPatchCodable.swift
[8/12] Compiling JSONPatch JSONError.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONPatch/JSONError.swift:30:10: warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
28 |     case unknownPatchOperation
29 |     case missingRequiredPatchField(op: String, index: Int, field: String)
30 |     case patchTestFailed(path: String, expected: Any, found: Any?)
   |          `- warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/Sources/JSONPatch/JSONError.swift:30:10: warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
28 |     case unknownPatchOperation
29 |     case missingRequiredPatchField(op: String, index: Int, field: String)
30 |     case patchTestFailed(path: String, expected: Any, found: Any?)
   |          `- warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
31 | }
32 |
[9/12] Compiling JSONPatch JSONEquality.swift
[10/12] Compiling JSONPatch JSONPatch.swift
[11/12] Compiling JSONPatch JSONElement.swift
[12/12] Compiling JSONPatch JSONPointer.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONPatch/JSONPointer.swift:40:16: warning: static property 'wholeDocument' is not concurrency-safe because non-'Sendable' type 'JSONPointer' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// A JSON Pointer implementation, based on RFC 6901.
 24 | /// https://tools.ietf.org/html/rfc6901
 25 | public struct JSONPointer {
    |               `- note: consider making struct 'JSONPointer' conform to the 'Sendable' protocol
 26 |
 27 |     /// An array of the unescaped components of the json-pointer.
    :
 38 |
 39 |     /// A json-pointer that represents the whole json document.
 40 |     static let wholeDocument: JSONPointer = JSONPointer(components: [])
    |                |- warning: static property 'wholeDocument' is not concurrency-safe because non-'Sendable' type 'JSONPointer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'wholeDocument' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 41 |
 42 |     /// A string representation of the json-pointer.
/Users/admin/builder/spi-builder-workspace/Sources/JSONPatch/JSONPointer.swift:186:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSONPointer' to 'Hashable' by implementing 'hash(into:)' instead
184 |     }
185 |     #else
186 |     public var hashValue: Int {
    |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSONPointer' to 'Hashable' by implementing 'hash(into:)' instead
187 |         return components.hashValue
188 |     }
Build complete! (5.46s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JSONPatch",
  "name" : "JSONPatch",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JSONPatch",
      "targets" : [
        "JSONPatch"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JSONPatchTests",
      "module_type" : "SwiftTarget",
      "name" : "JSONPatchTests",
      "path" : "Tests",
      "sources" : [
        "JSONPatchTests/ArrayTests.swift",
        "JSONPatchTests/Bundle.swift",
        "JSONPatchTests/JSONCodableTests.swift",
        "JSONPatchTests/JSONElementTests.swift",
        "JSONPatchTests/JSONFileTestCase.swift",
        "JSONPatchTests/JSONPatchGeneratorTests.swift",
        "JSONPatchTests/JSONPatchTests.swift",
        "JSONPatchTests/JSONPointerTests.swift",
        "JSONPatchTests/TestFileTestCase.swift"
      ],
      "target_dependencies" : [
        "JSONPatch"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSONPatch",
      "module_type" : "SwiftTarget",
      "name" : "JSONPatch",
      "path" : "Sources/JSONPatch",
      "product_memberships" : [
        "JSONPatch"
      ],
      "sources" : [
        "JSONElement.swift",
        "JSONEquality.swift",
        "JSONError.swift",
        "JSONPatch.swift",
        "JSONPatchCodable.swift",
        "JSONPatchGenerator.swift",
        "JSONPointer.swift",
        "NSArray+DeepCopy.swift",
        "NSDictionary+DeepCopy.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.