The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JSONPatch, reference master (1eb123), with Swift 6.1 for Android on 29 May 2025 03:57:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/raymccrae/swift-jsonpatch.git
Reference: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
========================================
Build
========================================
Selected platform:         android
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
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JSONPatch",
  "name" : "JSONPatch",
  "path" : "/host/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 ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling JSONPatch NSArray+DeepCopy.swift
[4/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 |     }
[5/12] Compiling JSONPatch JSONPatchGenerator.swift
[6/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 |
[7/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)
[8/12] Compiling JSONPatch JSONPatch.swift
[9/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 |     }
[10/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 |     }
[11/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 |     }
[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-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/10] Compiling JSONPatch NSArray+DeepCopy.swift
[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 JSONPatchGenerator.swift
[5/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()
[6/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)
[7/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 |     }
[8/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 |     }
[9/11] 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 |     }
[10/11] Compiling JSONPatch JSONPatch.swift
[11/11] Compiling JSONPatch JSONError.swift
BUILD FAILURE 6.1 android