The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build PatchouliJSON, reference 0.9.5 (89b9b1), with Swift 6.1 for Wasm on 29 May 2025 12:15:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexhunsley/patchouli-jsonpatch.git
Reference: 0.9.5
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/alexhunsley/patchouli-jsonpatch
 * tag               0.9.5      -> FETCH_HEAD
HEAD is now at 89b9b1d Update README.md
Cloned https://github.com/alexhunsley/patchouli-jsonpatch.git
Revision (git rev-parse @):
89b9b1d595780f580c4636db082798cd08cc24d1
SUCCESS checkout https://github.com/alexhunsley/patchouli-jsonpatch.git at 0.9.5
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/alexhunsley/patchouli-jsonpatch.git
https://github.com/alexhunsley/patchouli-jsonpatch.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "patchouli-core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.9.1",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/alexhunsley/patchouli-core"
    },
    {
      "identity" : "swift-jsonpatch",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/raymccrae/swift-jsonpatch.git"
    }
  ],
  "manifest_display_name" : "PatchouliJSON",
  "name" : "PatchouliJSON",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PatchouliJSON",
      "targets" : [
        "PatchouliJSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PatchouliJSONTests",
      "module_type" : "SwiftTarget",
      "name" : "PatchouliJSONTests",
      "path" : "Tests",
      "sources" : [
        "Sources/PatchouliJSONTests.swift",
        "Sources/TestHepers.swift"
      ],
      "target_dependencies" : [
        "PatchouliJSON"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PatchouliJSON",
      "module_type" : "SwiftTarget",
      "name" : "PatchouliJSON",
      "path" : "Sources",
      "product_dependencies" : [
        "PatchouliCore",
        "JSONPatch"
      ],
      "product_memberships" : [
        "PatchouliJSON"
      ],
      "sources" : [
        "DSL+JSONPatchType.swift",
        "JSONSimpleContentBuilder.swift",
        "ModuleExports.swift",
        "PatchTypes/JSONPatchType.swift",
        "Util/String+Util.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/raymccrae/swift-jsonpatch.git
Fetching https://github.com/alexhunsley/patchouli-core
[1/614] Fetching swift-jsonpatch
[32/1071] Fetching swift-jsonpatch, patchouli-core
Fetched https://github.com/alexhunsley/patchouli-core from cache (0.41s)
[271/614] Fetching swift-jsonpatch
Fetched https://github.com/raymccrae/swift-jsonpatch.git from cache (0.67s)
Computing version for https://github.com/alexhunsley/patchouli-core
Computed https://github.com/alexhunsley/patchouli-core at 0.9.5 (1.42s)
Computing version for https://github.com/raymccrae/swift-jsonpatch.git
Computed https://github.com/raymccrae/swift-jsonpatch.git at 1.0.6 (3.40s)
Creating working copy for https://github.com/raymccrae/swift-jsonpatch.git
Working copy of https://github.com/raymccrae/swift-jsonpatch.git resolved at 1.0.6
Creating working copy for https://github.com/alexhunsley/patchouli-core
Working copy of https://github.com/alexhunsley/patchouli-core resolved at 0.9.5
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/22] Compiling JSONPatch JSONError.swift
[6/22] Emitting module JSONPatch
[7/22] Compiling JSONPatch JSONElement.swift
/host/spi-builder-workspace/.build/checkouts/swift-jsonpatch/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/.build/checkouts/swift-jsonpatch/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/22] Compiling JSONPatch JSONEquality.swift
/host/spi-builder-workspace/.build/checkouts/swift-jsonpatch/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/.build/checkouts/swift-jsonpatch/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/23] Compiling PatchouliCore StringPatchType.swift
[10/23] Emitting module PatchouliCore
[11/24] Compiling JSONPatch JSONPointer.swift
[12/24] Compiling JSONPatch NSArray+DeepCopy.swift
[13/24] Compiling PatchouliCore PatchType.swift
[16/24] Compiling PatchouliCore PatchouliError.swift
[17/24] Compiling PatchouliCore DSL+StringPatch.swift
[18/24] Compiling JSONPatch JSONPatchGenerator.swift
[19/24] Compiling JSONPatch JSONPatchCodable.swift
/host/spi-builder-workspace/.build/checkouts/swift-jsonpatch/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)
[20/24] Compiling JSONPatch NSDictionary+DeepCopy.swift
/host/spi-builder-workspace/.build/checkouts/swift-jsonpatch/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()
[21/24] Compiling PatchouliCore Patchable.swift
[22/24] Compiling PatchouliCore PatchedContent+Reduce.swift
[23/24] Compiling JSONPatch JSONPatch.swift
[24/24] Compiling PatchouliCore String+Util.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': found 6 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/Resources/patchouli-core-logo-1.jpg
    /host/spi-builder-workspace/Tests/Resources/patchouli-json-logo-1-scaled-256x254.png
    /host/spi-builder-workspace/Tests/Resources/patchouli-json-logo-1.png
    /host/spi-builder-workspace/Tests/Resources/UserList.json
    /host/spi-builder-workspace/Tests/Resources/patchouli-core-logo-1-scaled-378x379.jpg
    /host/spi-builder-workspace/Tests/Resources/patchouli-json-logo-1-scaled-378x375.png
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/19] Compiling PatchouliCore PatchouliError.swift
[3/20] Compiling PatchouliCore Patchable.swift
[4/20] Compiling PatchouliCore PatchedContent+Reduce.swift
[5/20] Compiling PatchouliCore PatchType.swift
[6/20] Compiling PatchouliCore DSL+StringPatch.swift
[7/20] Compiling JSONPatch JSONError.swift
[8/21] Compiling JSONPatch JSONElement.swift
[9/21] Compiling JSONPatch JSONEquality.swift
[10/21] Emitting module PatchouliCore
[11/21] Compiling PatchouliCore String+Util.swift
[12/21] Compiling JSONPatch NSArray+DeepCopy.swift
[13/21] Compiling PatchouliCore StringPatchType.swift
[15/22] Compiling JSONPatch NSDictionary+DeepCopy.swift
/host/spi-builder-workspace/.build/checkouts/swift-jsonpatch/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()
[16/22] Emitting module JSONPatch
[17/22] Compiling JSONPatch JSONPointer.swift
[18/22] Compiling JSONPatch JSONPatchGenerator.swift
[19/22] Compiling JSONPatch JSONPatchCodable.swift
/host/spi-builder-workspace/.build/checkouts/swift-jsonpatch/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)
[20/22] Compiling JSONPatch JSONPatch.swift
/host/spi-builder-workspace/.build/checkouts/swift-jsonpatch/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/.build/checkouts/swift-jsonpatch/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 |     }
/host/spi-builder-workspace/.build/checkouts/swift-jsonpatch/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/.build/checkouts/swift-jsonpatch/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 |     }
BUILD FAILURE 6.1 wasm