The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JSONPatch, reference v1.0.6 (1eb123), with Swift 6.1 for Wasm on 9 May 2026 02:21:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

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 /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
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:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/raymccrae/swift-jsonpatch.git
https://github.com/raymccrae/swift-jsonpatch.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling JSONPatch JSONPatch.swift
[4/12] Compiling JSONPatch JSONError.swift
/host/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 |
/host/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 |
[5/12] Emitting module JSONPatch
/host/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 |
/host/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 |
/host/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.
/host/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 JSONElement.swift
/host/spi-builder-workspace/Sources/JSONPatch/JSONElement.swift:164:59: error: 'NSDictionary' is not convertible to '[AnyHashable : Any]'
162 |             let mutable = dictionary.mutableCopy() as! NSMutableDictionary
163 |             #else
164 |             let mutable = NSMutableDictionary(dictionary: dictionary)
    |                                                           |- error: 'NSDictionary' is not convertible to '[AnyHashable : Any]'
    |                                                           `- note: did you mean to use 'as!' to force downcast?
165 |             #endif
166 |             self = .mutableObject(value: mutable)
/host/spi-builder-workspace/Sources/JSONPatch/JSONEquality.swift:32:16: error: cannot find 'CFNumberGetType' in scope
 30 |         return objCType.pointee == 0x63 // character code for 'c'
 31 |         #else
 32 |         return CFNumberGetType(self) == .charType
    |                `- error: cannot find 'CFNumberGetType' in scope
 33 |         #endif
 34 |     }
[7/12] Compiling JSONPatch JSONEquality.swift
/host/spi-builder-workspace/Sources/JSONPatch/JSONElement.swift:164:59: error: 'NSDictionary' is not convertible to '[AnyHashable : Any]'
162 |             let mutable = dictionary.mutableCopy() as! NSMutableDictionary
163 |             #else
164 |             let mutable = NSMutableDictionary(dictionary: dictionary)
    |                                                           |- error: 'NSDictionary' is not convertible to '[AnyHashable : Any]'
    |                                                           `- note: did you mean to use 'as!' to force downcast?
165 |             #endif
166 |             self = .mutableObject(value: mutable)
/host/spi-builder-workspace/Sources/JSONPatch/JSONEquality.swift:32:16: error: cannot find 'CFNumberGetType' in scope
 30 |         return objCType.pointee == 0x63 // character code for 'c'
 31 |         #else
 32 |         return CFNumberGetType(self) == .charType
    |                `- error: cannot find 'CFNumberGetType' in scope
 33 |         #endif
 34 |     }
[8/12] Compiling JSONPatch NSArray+DeepCopy.swift
[9/12] Compiling JSONPatch JSONPointer.swift
/host/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.
/host/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 |     }
[10/12] Compiling JSONPatch JSONPatchGenerator.swift
[11/12] Compiling JSONPatch JSONPatchCodable.swift
/host/spi-builder-workspace/Sources/JSONPatch/JSONPatchCodable.swift:169:16: error: cannot find 'CFNumberGetType' in scope
167 |         }
168 |         #else
169 |         switch CFNumberGetType(value) {
    |                `- error: cannot find 'CFNumberGetType' in scope
170 |         case .charType:
171 |             try encode(value.boolValue)
[12/12] Compiling JSONPatch NSDictionary+DeepCopy.swift
/host/spi-builder-workspace/Sources/JSONPatch/NSDictionary+DeepCopy.swift:45:23: error: cannot assign through subscript: subscript is get-only
43 |             switch value {
44 |             case let array as NSArray:
45 |                 result[key] = array.deepMutableCopy()
   |                       `- error: cannot assign through subscript: subscript is get-only
46 |             case let dict as NSDictionary:
47 |                 result[key] = dict.deepMutableCopy()
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/10] Emitting module JSONPatch
/host/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 |     }
[3/11] Compiling JSONPatch JSONPointer.swift
/host/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 |     }
[4/11] Compiling JSONPatch JSONPatchCodable.swift
/host/spi-builder-workspace/Sources/JSONPatch/JSONPatchCodable.swift:169:16: error: cannot find 'CFNumberGetType' in scope
167 |         }
168 |         #else
169 |         switch CFNumberGetType(value) {
    |                `- error: cannot find 'CFNumberGetType' in scope
170 |         case .charType:
171 |             try encode(value.boolValue)
[5/11] Compiling JSONPatch NSArray+DeepCopy.swift
[6/11] Compiling JSONPatch JSONPatchGenerator.swift
[7/11] Compiling JSONPatch JSONError.swift
[8/11] Compiling JSONPatch JSONPatch.swift
[9/11] Compiling JSONPatch JSONElement.swift
/host/spi-builder-workspace/Sources/JSONPatch/JSONElement.swift:164:59: error: 'NSDictionary' is not convertible to '[AnyHashable : Any]'
162 |             let mutable = dictionary.mutableCopy() as! NSMutableDictionary
163 |             #else
164 |             let mutable = NSMutableDictionary(dictionary: dictionary)
    |                                                           |- error: 'NSDictionary' is not convertible to '[AnyHashable : Any]'
    |                                                           `- note: did you mean to use 'as!' to force downcast?
165 |             #endif
166 |             self = .mutableObject(value: mutable)
/host/spi-builder-workspace/Sources/JSONPatch/JSONEquality.swift:32:16: error: cannot find 'CFNumberGetType' in scope
 30 |         return objCType.pointee == 0x63 // character code for 'c'
 31 |         #else
 32 |         return CFNumberGetType(self) == .charType
    |                `- error: cannot find 'CFNumberGetType' in scope
 33 |         #endif
 34 |     }
[10/11] Compiling JSONPatch JSONEquality.swift
/host/spi-builder-workspace/Sources/JSONPatch/JSONElement.swift:164:59: error: 'NSDictionary' is not convertible to '[AnyHashable : Any]'
162 |             let mutable = dictionary.mutableCopy() as! NSMutableDictionary
163 |             #else
164 |             let mutable = NSMutableDictionary(dictionary: dictionary)
    |                                                           |- error: 'NSDictionary' is not convertible to '[AnyHashable : Any]'
    |                                                           `- note: did you mean to use 'as!' to force downcast?
165 |             #endif
166 |             self = .mutableObject(value: mutable)
/host/spi-builder-workspace/Sources/JSONPatch/JSONEquality.swift:32:16: error: cannot find 'CFNumberGetType' in scope
 30 |         return objCType.pointee == 0x63 // character code for 'c'
 31 |         #else
 32 |         return CFNumberGetType(self) == .charType
    |                `- error: cannot find 'CFNumberGetType' in scope
 33 |         #endif
 34 |     }
[11/11] Compiling JSONPatch NSDictionary+DeepCopy.swift
/host/spi-builder-workspace/Sources/JSONPatch/NSDictionary+DeepCopy.swift:45:23: error: cannot assign through subscript: subscript is get-only
43 |             switch value {
44 |             case let array as NSArray:
45 |                 result[key] = array.deepMutableCopy()
   |                       `- error: cannot assign through subscript: subscript is get-only
46 |             case let dict as NSDictionary:
47 |                 result[key] = dict.deepMutableCopy()
BUILD FAILURE 6.1 wasm