Build Information
Failed to build LemmyKit, reference main (93cc81), with Swift 6.4 for Android on 26 Sep 2026 00:16:57 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shadone/LemmyKit.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/shadone/LemmyKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 93cc816 docs: CLAUDE.md — parent-scoped comment fetch now bakes in a 50-item page limit
Submodule path 'Lemmy-OpenAPI-Spec': checked out 'e0b80a53371649316e239869918cd99321c71815'
Submodule 'Lemmy-OpenAPI-Spec' (https://github.com/shadone/Lemmy-OpenAPI-Spec) registered for path 'Lemmy-OpenAPI-Spec'
Cloning into '/host/spi-builder-workspace/Lemmy-OpenAPI-Spec'...
Cloned https://github.com/shadone/LemmyKit.git
Revision (git rev-parse @):
93cc816c9426ab553dadc90ddf0a4f898722efe7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/shadone/LemmyKit.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.4
Building package at path: $PWD
https://github.com/shadone/LemmyKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/apple/swift-openapi-urlsession
Fetching https://github.com/apple/swift-openapi-generator
Fetching https://github.com/apple/swift-openapi-runtime
[1/1183] Fetching swift-openapi-urlsession
[983/8111] Fetching swift-openapi-urlsession, swift-openapi-runtime
Fetched https://github.com/apple/swift-openapi-urlsession (0.49s)
[3118/6928] Fetching swift-openapi-runtime
Fetched https://github.com/apple/swift-openapi-runtime (0.55s)
[1/18407] Fetching swift-openapi-generator
Fetched https://github.com/apple/swift-openapi-generator (0.95s)
Computing version for https://github.com/apple/swift-openapi-urlsession
Computed https://github.com/apple/swift-openapi-urlsession at 1.3.1 (2.13s)
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/apple/swift-http-types
[1/1939] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types (0.49s)
[1/27779] Fetching swift-collections
Fetched https://github.com/apple/swift-collections (1.35s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 1.12.1 (1.54s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.8.0 (0.22s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.7.1 (0.30s)
Computing version for https://github.com/apple/swift-openapi-generator
Computed https://github.com/apple/swift-openapi-generator at 1.13.1 (0.28s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/jpsim/Yams
Fetching https://github.com/apple/swift-algorithms
Fetching https://github.com/mattpolzin/OpenAPIKit
[1/6159] Fetching swift-algorithms
[6160/18020] Fetching swift-algorithms, yams
[6161/36965] Fetching swift-algorithms, yams, swift-argument-parser
Fetched https://github.com/apple/swift-algorithms (0.54s)
[428/30806] Fetching yams, swift-argument-parser
[30807/205973] Fetching yams, swift-argument-parser, openapikit
Fetched https://github.com/apple/swift-argument-parser (5.31s)
Fetched https://github.com/jpsim/Yams (5.32s)
Fetched https://github.com/mattpolzin/OpenAPIKit (5.37s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (6.46s)
Fetching https://github.com/apple/swift-numerics.git
[1/6640] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git (0.60s)
Computing version for https://github.com/mattpolzin/OpenAPIKit
Computed https://github.com/mattpolzin/OpenAPIKit at 6.4.0 (0.79s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.17s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.19s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 6.2.2 (0.16s)
Creating working copy for https://github.com/mattpolzin/OpenAPIKit
Working copy of https://github.com/mattpolzin/OpenAPIKit resolved at 6.4.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-openapi-generator
Working copy of https://github.com/apple/swift-openapi-generator resolved at 1.13.1
Creating working copy for https://github.com/apple/swift-openapi-urlsession
Working copy of https://github.com/apple/swift-openapi-urlsession resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.8.0
Creating working copy for https://github.com/apple/swift-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.2.1
Creating working copy for https://github.com/jpsim/Yams
Working copy of https://github.com/jpsim/Yams resolved at 6.2.2
Creating working copy for https://github.com/apple/swift-openapi-runtime
Working copy of https://github.com/apple/swift-openapi-runtime resolved at 1.12.1
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 717]
[Planning deferred tasks]
[104 / 278] InternalCollectionsUtilities
[145 / 284] RealModule
[151 / 310] CYaml
[153 / 328] OpenAPIKitCore
[156 / 328] Yams
[156 / 328] RealModule
[164 / 328] Yams
[165 / 328] InternalCollectionsUtilities
[176 / 328] Yams
[176 / 328] HTTPTypes
[187 / 328] Yams-product
[188 / 328] Yams-product
[189 / 328] Yams-product
[191 / 328] RealModule
[192 / 328] RealModule-product
[195 / 328] RealModule
[197 / 328] OpenAPIKitCore
[198 / 329] RealModule
[201 / 329] OpenAPIKitCore
[204 / 329] OpenAPIKitCore
[207 / 330] Yams
[208 / 330] Yams
[210 / 330] SpanPreview
[213 / 330] InternalCollectionsUtilities
[215 / 330] InternalCollectionsUtilities
[216 / 331] OpenAPIKitCore
[220 / 331] HTTPTypes
[221 / 331] InternalCollectionsUtilities
[224 / 331] OpenAPIRuntime
[226 / 332] InternalCollectionsUtilities
[230 / 333] ArgumentParserToolInfo
[232 / 335] LemmyKit_LemmyKitTests
[235 / 343] OpenAPIRuntime
[238 / 343] SpanPreview
[245 / 361] OpenAPIKit30
[254 / 370] OpenAPIRuntime
[256 / 371] SpanPreview
[258 / 371] SpanPreview
[260 / 372] OpenAPIRuntime
[271 / 372] HTTPTypes
[273 / 373] OpenAPIRuntime
[279 / 373] OpenAPIKit
[281 / 373] OpenAPIKit30
[282 / 373] OpenAPIRuntime
[283 / 373] OpenAPIKit30-product
[284 / 373] OpenAPIKit30-product
[286 / 373] OpenAPIKit30
[288 / 374] OpenAPIRuntime
[289 / 374] OpenAPIKit
[289 / 374] OpenAPIKit30
[291 / 374] OpenAPIKitCompat
[292 / 374] OpenAPIKitCompat
[293 / 374] OpenAPIKit-product
[295 / 374] OpenAPIKit
[296 / 374] OpenAPIKit
[297 / 374] HTTPTypes
[297 / 374] DequeModule
[299 / 374] HTTPTypes
[301 / 374] ArgumentParserToolInfo
[304 / 375] ArgumentParserToolInfo
[307 / 378] OpenAPIKitCompat
[308 / 378] LemmyKit_LemmyKitTests
[313 / 379] OpenAPIKitCompat
[317 / 382] Algorithms
[321 / 398] DequeModule
[322 / 398] DequeModule
[323 / 398] DequeModule
[325 / 399] OpenAPIKitCompat
[327 / 400] OpenAPIKitCompat
[329 / 400] OpenAPIKit
[333 / 400] DequeModule
[335 / 400] Algorithms
[336 / 400] Algorithms
[337 / 400] Algorithms
[337 / 400] DequeModule
[339 / 400] Algorithms
[340 / 400] Algorithms
[343 / 401] Algorithms
[349 / 410] ArgumentParser
[352 / 411] ArgumentParser
[352 / 412] DequeModule
[354 / 412] DequeModule
[363 / 412] ArgumentParser
[366 / 412] DequeModule-product
[367 / 412] DequeModule-product
[368 / 413] OpenAPIURLSession
[373 / 413] Algorithms
[377 / 422] OpenAPIURLSession
[380 / 431] _OpenAPIGeneratorCore
[383 / 431] _OpenAPIGeneratorCore
[383 / 431] OpenAPIURLSession
[385 / 431] _OpenAPIGeneratorCore
[387 / 431] OpenAPIURLSession
[389 / 432] OpenAPIURLSession
[393 / 432] OpenAPIURLSession
[394 / 432] OpenAPIURLSession
[401 / 432] OpenAPIURLSession
[402 / 432] OpenAPIRuntime
[405 / 432] Algorithms
[409 / 442] swift-openapi-generator-product
[409 / 442] _OpenAPIGeneratorCore
[412 / 442] swift-openapi-generator-product
[413 / 442] swift-openapi-generator-product
[416 / 442] swift-openapi-generator-product
[417 / 443] swift-openapi-generator-product
[419 / 443]
[421 / 443] swift-openapi-generator-product
[424 / 444] _OpenAPIGeneratorCore
[427 / 445] _OpenAPIGeneratorCore
[428 / 445] swift-openapi-generator-product
[429 / 445] LemmyKitV4Generated
Swift OpenAPI Generator is running with the following configuration:
- OpenAPI document path: /host/spi-builder-workspace/Sources/LemmyKitV4Generated/openapi.yaml
- Configuration path: /host/spi-builder-workspace/Sources/LemmyKitV4Generated/openapi-generator-config.yaml
- Generator modes: types, client
- Access modifier: package
- Naming strategy: defensive
- Name overrides: <none>
- Type overrides: <none>
- Feature flags: <none>
- Output file names: Types.swift, Types+Components.swift, Types+Operations.swift, Types+Components+Schemas.swift, Types+Components+Parameters.swift, Types+Components+RequestBodies.swift, Types+Components+Responses.swift, Types+Components+Headers.swift, Client.swift
- Output directory: /host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources
- Diagnostics output path: <none - logs to stderr>
- Current directory: /host/spi-builder-workspace
- Plugin source: build
- Is dry run: false
- Additional imports: <none>
- Additional file comments: <none>Writing data to file Client.swift...
Writing data to file Types.swift...
Writing data to file Types+Components.swift...
Writing data to file Types+Operations.swift...
Writing data to file Types+Components+Schemas.swift...
Writing data to file Types+Components+Parameters.swift...
Writing data to file Types+Components+RequestBodies.swift...
Writing data to file Types+Components+Responses.swift...
Writing data to file Types+Components+Headers.swift...
Writing data to file Server.swift...
[439 / 455] LemmyKitV4Generated
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Headers.swift:2:26: [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m1 |[0;0m // Generated by swift-openapi-generator, do not modify.
[0;36m2 |[0;0m @_spi(Generated) package import OpenAPIRuntime
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m3 |[0;0m #if os(Linux)
[0;36m4 |[0;0m @preconcurrency package import struct Foundation.URL
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Headers.swift:8:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m6 |[0;0m @preconcurrency package import struct Foundation.Date
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Headers.swift:9:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m11 |[0;0m #endif
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Headers.swift:10:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m extension Components {
[#UnusedImportAccess]: <https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access>
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Responses.swift:2:26: [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m1 |[0;0m // Generated by swift-openapi-generator, do not modify.
[0;36m2 |[0;0m @_spi(Generated) package import OpenAPIRuntime
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m3 |[0;0m #if os(Linux)
[0;36m4 |[0;0m @preconcurrency package import struct Foundation.URL
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Responses.swift:8:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m6 |[0;0m @preconcurrency package import struct Foundation.Date
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Responses.swift:9:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m11 |[0;0m #endif
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Responses.swift:10:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m extension Components {
[#UnusedImportAccess]: <https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access>
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+RequestBodies.swift:2:26: [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m1 |[0;0m // Generated by swift-openapi-generator, do not modify.
[0;36m2 |[0;0m @_spi(Generated) package import OpenAPIRuntime
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m3 |[0;0m #if os(Linux)
[0;36m4 |[0;0m @preconcurrency package import struct Foundation.URL
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+RequestBodies.swift:8:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m6 |[0;0m @preconcurrency package import struct Foundation.Date
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+RequestBodies.swift:9:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m11 |[0;0m #endif
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+RequestBodies.swift:10:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m extension Components {
[#UnusedImportAccess]: <https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access>
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types.swift:2:26: [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m1 |[0;0m // Generated by swift-openapi-generator, do not modify.
[0;36m2 |[0;0m @_spi(Generated) package import OpenAPIRuntime
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m3 |[0;0m #if os(Linux)
[0;36m4 |[0;0m @preconcurrency package import struct Foundation.URL
[#UnusedImportAccess]: <https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access>
[444 / 455] LemmyKitV4Generated
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Schemas.swift:2:26: [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m1 |[0;0m // Generated by swift-openapi-generator, do not modify.
[0;36m2 |[0;0m @_spi(Generated) package import OpenAPIRuntime
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m3 |[0;0m #if os(Linux)
[0;36m4 |[0;0m @preconcurrency package import struct Foundation.URL
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Schemas.swift:8:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m6 |[0;0m @preconcurrency package import struct Foundation.Date
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Schemas.swift:9:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m11 |[0;0m #endif
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Schemas.swift:10:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m extension Components {
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Parameters.swift:2:26: [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m1 |[0;0m // Generated by swift-openapi-generator, do not modify.
[0;36m2 |[0;0m @_spi(Generated) package import OpenAPIRuntime
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m3 |[0;0m #if os(Linux)
[0;36m4 |[0;0m @preconcurrency package import struct Foundation.URL
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Parameters.swift:8:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m6 |[0;0m @preconcurrency package import struct Foundation.Date
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Parameters.swift:9:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m11 |[0;0m #endif
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components+Parameters.swift:10:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m extension Components {
[#UnusedImportAccess]: <https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access>
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components.swift:2:26: [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m1 |[0;0m // Generated by swift-openapi-generator, do not modify.
[0;36m2 |[0;0m @_spi(Generated) package import OpenAPIRuntime
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'OpenAPIRuntime' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m3 |[0;0m #if os(Linux)
[0;36m4 |[0;0m @preconcurrency package import struct Foundation.URL
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components.swift:8:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m6 |[0;0m @preconcurrency package import struct Foundation.Date
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components.swift:9:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m11 |[0;0m #endif
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Components.swift:10:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m /// Types generated from the components section of the OpenAPI document.
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Operations.swift:8:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m6 |[0;0m @preconcurrency package import struct Foundation.Date
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Operations.swift:9:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m11 |[0;0m #endif
/host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKitV4Generated/destination/OpenAPIGenerator/GeneratedSources/Types+Operations.swift:10:9: [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m8 |[0;0m package import struct Foundation.URL
[0;36m9 |[0;0m package import struct Foundation.Data
[0;36m10 |[0;0m package import struct Foundation.Date
[0;36m|[0;0m `- [1;33mwarning: [1;39mpackage import of 'Foundation' was not used in package declarations[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access\UnusedImportAccess]8;;\]
[0;36m11 |[0;0m #endif
[0;36m12 |[0;0m /// API operations, with input and output types, generated from `#/paths` in the OpenAPI document.
[#UnusedImportAccess]: <https://docs.swift.org/compiler/documentation/diagnostics/unused-import-access>
[447 / 456] LemmyKitV4Generated
[448 / 456] LemmyKit
Swift OpenAPI Generator is running with the following configuration:
- OpenAPI document path: /host/spi-builder-workspace/Sources/LemmyKit/openapi.yaml
- Configuration path: /host/spi-builder-workspace/Sources/LemmyKit/openapi-generator-config.yaml
- Generator modes: types, client
- Access modifier: public
- Naming strategy: defensive
- Name overrides: <none>
- Type overrides: <none>
- Feature flags: <none>
- Output file names: Types.swift, Types+Components.swift, Types+Operations.swift, Types+Components+Schemas.swift, Types+Components+Parameters.swift, Types+Components+RequestBodies.swift, Types+Components+Responses.swift, Types+Components+Headers.swift, Client.swift
- Output directory: /host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKit/destination/OpenAPIGenerator/GeneratedSources
- Diagnostics output path: <none - logs to stderr>
- Current directory: /host/spi-builder-workspace
- Plugin source: build
- Is dry run: false
- Additional imports: <none>
- Additional file comments: <none>Writing data to file Client.swift...
Writing data to file Types.swift...
Writing data to file Types+Components.swift...
Writing data to file Types+Operations.swift...
Writing data to file Types+Components+Schemas.swift...
Writing data to file Types+Components+Parameters.swift...
Writing data to file Types+Components+RequestBodies.swift...
Writing data to file Types+Components+Responses.swift...
Writing data to file Types+Components+Headers.swift...
Writing data to file Server.swift...
[449 / 457] LemmyKit
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile LemmyApi+UploadImage.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: [1;31merror: [1;39mcannot find 'URLRequest' in scope[0;0m
[0;36m52 |[0;0m )
[0;36m53 |[0;0m
[0;36m54 |[0;0m var request = [4;39mURLRequest[0;0m(url: endpoint)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'URLRequest' in scope[0;0m
[0;36m55 |[0;0m request.httpMethod = "POST"
[0;36m56 |[0;0m request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m63 |[0;0m
[0;36m64 |[0;0m let data: Data
[0;36m65 |[0;0m let response: [4;39mURLResponse[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m66 |[0;0m do {
[0;36m67 |[0;0m (data, response) = try await URLSession.shared.data(for: request)
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:67:53: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m65 |[0;0m let response: URLResponse
[0;36m66 |[0;0m do {
[0;36m67 |[0;0m (data, response) = try await [4;39mURLSession[0;0m.[4;39mshared[0;0m.data(for: request)
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m68 |[0;0m } catch {
[0;36m69 |[0;0m throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: [1;33mwarning: [1;39mconditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds[0;0m
[0;36m70 |[0;0m }
[0;36m71 |[0;0m
[0;36m72 |[0;0m guard let httpResponse = response as? HTTPURLResponse else {
[0;36m|[0;0m `- [1;33mwarning: [1;39mconditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds[0;0m
[0;36m73 |[0;0m throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
[0;36m74 |[0;0m }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m70 |[0;0m }
[0;36m71 |[0;0m
[0;36m72 |[0;0m guard let httpResponse = response as? [4;39mHTTPURLResponse[0;0m else {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m73 |[0;0m throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
[0;36m74 |[0;0m }
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:76:29: [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m74 |[0;0m }
[0;36m75 |[0;0m
[0;36m76 |[0;0m switch [4;39mhttpResponse[0;0m.[4;39mstatusCode[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m77 |[0;0m case 200, 201:
[0;36m78 |[0;0m break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m80 |[0;0m throw LemmyApiError.unauthorized(message: nil)
[0;36m81 |[0;0m default:
[0;36m82 |[0;0m throw LemmyApiError.unknownServerError(httpStatusCode: [4;39mhttpResponse[0;0m.[4;39mstatusCode[0;0m, error: nil)
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m83 |[0;0m }
[0;36m84 |[0;0m
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m94 |[0;0m
[0;36m95 |[0;0m guard let image = uploadResponse.files.first else {
[0;36m96 |[0;0m throw LemmyApiError.unknownServerError(httpStatusCode: [4;39mhttpResponse[0;0m.[4;39mstatusCode[0;0m, error: nil)
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m97 |[0;0m }
[0;36m98 |[0;0m
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -c -filelist /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/sources-1 -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+SavePost.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+SavePostNeutral.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+SaveUserSettings.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+SaveUserSettingsNeutral.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+Search.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+SearchNeutral.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+TransferCommunity.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UnreadCountsNeutral.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UpdateTotp.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImageNeutral.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+ValidateAuth.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+VerifyEmail.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+VoteCommentNeutral.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+VotePostNeutral.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApi.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApiError+fromClientError.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyApiError.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/LemmyCredential.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/Neutral/ApiVersion.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/Neutral/Comment.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/Neutral/CommentActions.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/Neutral/CommentSort.swift -primary-file /host/spi-builder-workspace/Sources/LemmyKit/Neutral/CommentView.swift -supplementary-output-file-map /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/supplementaryOutputs-86 -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name LemmyKit -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyKit_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+SavePost.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+SavePostNeutral.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+SaveUserSettings.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+SaveUserSettingsNeutral.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+Search.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+SearchNeutral.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+TransferCommunity.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+UnreadCountsNeutral.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+UpdateTotp.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+UploadImage.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+UploadImageNeutral.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+ValidateAuth.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+VerifyEmail.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+VoteCommentNeutral.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+VotePostNeutral.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApiError+fromClientError.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApiError.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyCredential.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/ApiVersion.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/Comment.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/CommentActions.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/CommentSort.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/CommentView.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+SavePost.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+SavePostNeutral.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+SaveUserSettings.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+SaveUserSettingsNeutral.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+Search.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+SearchNeutral.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+TransferCommunity.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+UnreadCountsNeutral.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+UpdateTotp.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+UploadImage.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+UploadImageNeutral.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+ValidateAuth.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+VerifyEmail.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+VoteCommentNeutral.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi+VotePostNeutral.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApi.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApiError+fromClientError.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyApiError.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/LemmyCredential.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/ApiVersion.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/Comment.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/CommentActions.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/CommentSort.o -index-unit-output-path /LemmyKit.build/Debug-android-aarch64/LemmyKit-t.build/Objects-normal/aarch64/CommentView.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
[458 / 470] LemmyKit
error: Build failed
BUILD FAILURE 6.4 android