The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PatchouliJSON, reference main (89b9b1), with Swift 6.1 for Android on 29 May 2025 12:15:39 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/alexhunsley/patchouli-jsonpatch.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         android
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-4606859-0":/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
Fetching https://github.com/raymccrae/swift-jsonpatch.git
Fetching https://github.com/alexhunsley/patchouli-core
[1/614] Fetching swift-jsonpatch
[259/1071] Fetching swift-jsonpatch, patchouli-core
Fetched https://github.com/alexhunsley/patchouli-core from cache (1.14s)
Fetched https://github.com/raymccrae/swift-jsonpatch.git from cache (1.52s)
Computing version for https://github.com/alexhunsley/patchouli-core
Computed https://github.com/alexhunsley/patchouli-core at 0.9.5 (2.22s)
Computing version for https://github.com/raymccrae/swift-jsonpatch.git
Computed https://github.com/raymccrae/swift-jsonpatch.git at 1.0.6 (3.04s)
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] Emitting module JSONPatch
[6/23] Compiling PatchouliCore PatchouliError.swift
[7/23] 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()
[8/24] Emitting module PatchouliCore
[9/24] Compiling JSONPatch NSArray+DeepCopy.swift
[10/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)
[11/24] Compiling JSONPatch JSONPatchGenerator.swift
[12/24] Compiling JSONPatch JSONPointer.swift
[13/24] Compiling PatchouliCore StringPatchType.swift
[14/24] Compiling PatchouliCore DSL+StringPatch.swift
[15/24] Compiling JSONPatch JSONError.swift
[16/24] Compiling JSONPatch JSONPatch.swift
[17/24] Compiling PatchouliCore AddressedPatchItemsBuilder.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 |     }
[18/24] Compiling PatchouliCore DSL.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 |     }
[19/24] Compiling PatchouliCore Patchable.swift
[20/24] Compiling PatchouliCore PatchedContent+Reduce.swift
[21/24] Compiling PatchouliCore PatchType.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
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-json-logo-1.png
    /host/spi-builder-workspace/Tests/Resources/patchouli-json-logo-1-scaled-256x254.png
    /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
    /host/spi-builder-workspace/Tests/Resources/UserList.json
    /host/spi-builder-workspace/Tests/Resources/patchouli-core-logo-1.jpg
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/19] Compiling PatchouliCore Patchable.swift
[3/20] Compiling JSONPatch NSArray+DeepCopy.swift
[4/21] Compiling PatchouliCore DSL+StringPatch.swift
[5/21] Compiling PatchouliCore PatchedContent+Reduce.swift
[6/21] Compiling PatchouliCore PatchouliError.swift
[7/21] Compiling PatchouliCore StringPatchType.swift
[8/21] Compiling PatchouliCore PatchType.swift
[9/21] Emitting module PatchouliCore
[10/21] Compiling JSONPatch JSONElement.swift
[11/21] Compiling JSONPatch JSONEquality.swift
[12/21] 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()
[13/21] Compiling PatchouliCore String+Util.swift
[14/22] Compiling JSONPatch JSONPointer.swift
[15/22] Compiling JSONPatch JSONPatchGenerator.swift
[16/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)
[17/22] Compiling JSONPatch JSONError.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 |     }
[20/22] Compiling JSONPatch JSONPatch.swift
[21/22] Emitting module JSONPatch
BUILD FAILURE 6.1 android