The Swift Package Index logo.Swift Package Index

Build Information

Failed to build papyrus, reference v0.6.16 (0a424d), with Swift 6.4 for Android on 20 Sep 2026 17:37:33 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/joshuawright11/papyrus.git
Reference: v0.6.16
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/joshuawright11/papyrus
 * tag               v0.6.16    -> FETCH_HEAD
HEAD is now at 0a424d9 sendable
Cloned https://github.com/joshuawright11/papyrus.git
Revision (git rev-parse @):
0a424d90f7a31b40e3b850a58062bb3aa701323f
SUCCESS checkout https://github.com/joshuawright11/papyrus.git at v0.6.16
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/joshuawright11/papyrus.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/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/pointfreeco/swift-macro-testing
Fetching https://github.com/apple/swift-syntax
Fetching https://github.com/Alamofire/Alamofire.git
[1/1002] Fetching swift-macro-testing
[1003/33896] Fetching swift-macro-testing, alamofire
[1332/113882] Fetching swift-macro-testing, alamofire, swift-syntax
Fetched https://github.com/pointfreeco/swift-macro-testing (3.23s)
Fetched https://github.com/apple/swift-syntax (3.26s)
Fetched https://github.com/Alamofire/Alamofire.git (3.27s)
Computing version for https://github.com/apple/swift-syntax
Computed https://github.com/apple/swift-syntax at 510.0.3 (4.44s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.12.2 (0.19s)
Computing version for https://github.com/pointfreeco/swift-macro-testing
Computed https://github.com/pointfreeco/swift-macro-testing at 0.7.0 (0.17s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/16416] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing (2.05s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.5 (2.23s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/5666] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump (0.55s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (0.75s)
Fetching https://github.com/pointfreeco/swift-issue-reporting
[1/6136] Fetching swift-issue-reporting
Fetched https://github.com/pointfreeco/swift-issue-reporting (0.75s)
Computing version for https://github.com/pointfreeco/swift-issue-reporting
Computed https://github.com/pointfreeco/swift-issue-reporting at 2.1.0 (1.86s)
Creating working copy for https://github.com/pointfreeco/swift-issue-reporting
Working copy of https://github.com/pointfreeco/swift-issue-reporting resolved at 2.1.0
Creating working copy for https://github.com/apple/swift-syntax
Working copy of https://github.com/apple/swift-syntax resolved at 510.0.3
Creating working copy for https://github.com/pointfreeco/swift-macro-testing
Working copy of https://github.com/pointfreeco/swift-macro-testing resolved at 0.7.0
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.5
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.3
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.12.2
warning: 'swift-macro-testing': Conflicting identity for swift-syntax: dependency 'github.com/swiftlang/swift-syntax' and dependency 'github.com/apple/swift-syntax' both point to the same package identity 'swift-syntax'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/pointfreeco/swift-macro-testing->github.com/swiftlang/swift-syntax (B) /host/spi-builder-workspace->github.com/apple/swift-syntax. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
warning: 'swift-snapshot-testing': Conflicting identity for swift-syntax: dependency 'github.com/swiftlang/swift-syntax' and dependency 'github.com/apple/swift-syntax' both point to the same package identity 'swift-syntax'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/pointfreeco/swift-macro-testing->github.com/swiftlang/swift-syntax (B) /host/spi-builder-workspace->github.com/apple/swift-syntax. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
warning: 'swift-macro-testing': Conflicting identity for swift-syntax: dependency 'github.com/swiftlang/swift-syntax' and dependency 'github.com/apple/swift-syntax' both point to the same package identity 'swift-syntax'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/pointfreeco/swift-macro-testing->github.com/swiftlang/swift-syntax (B) /host/spi-builder-workspace->github.com/apple/swift-syntax. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
warning: 'swift-snapshot-testing': Conflicting identity for swift-syntax: dependency 'github.com/swiftlang/swift-syntax' and dependency 'github.com/apple/swift-syntax' both point to the same package identity 'swift-syntax'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/pointfreeco/swift-macro-testing->github.com/swiftlang/swift-syntax (B) /host/spi-builder-workspace->github.com/apple/swift-syntax. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 682]
[Planning deferred tasks]
[141 / 279] Alamofire
[143 / 279] SwiftSyntax510
[146 / 280] SwiftSyntax510
[160 / 281] Alamofire
[168 / 283] Alamofire
[179 / 292] SwiftSyntax
[179 / 292] Alamofire
[179 / 292] SwiftSyntax
[191 / 317] SwiftParser
[195 / 317] SwiftDiagnostics
[201 / 317] SwiftBasicFormat
[205 / 317] SwiftParser
[206 / 317] SwiftParser
[211 / 317] SwiftParser
[216 / 317] SwiftParser-product
[217 / 317] SwiftParser-product
[218 / 317] SwiftParser-product
[220 / 317] SwiftOperators
[223 / 317] SwiftParserDiagnostics
[228 / 337] SwiftOperators
[229 / 338] SwiftParserDiagnostics
[239 / 339] SwiftParserDiagnostics
[244 / 339] SwiftParserDiagnostics
[245 / 339] SwiftParserDiagnostics
[249 / 339] SwiftOperators
[252 / 339] SwiftOperators
[254 / 339] SwiftParser
[260 / 341]
[265 / 350] SwiftSyntaxBuilder
[266 / 351] SwiftSyntaxBuilder
[270 / 351] SwiftSyntaxBuilder
[280 / 361] SwiftSyntaxMacros
[286 / 361] SwiftSyntaxMacros
[296 / 370] SwiftSyntaxMacroExpansion
[296 / 370] SwiftSyntaxMacros
[299 / 372] SwiftSyntaxMacros
[303 / 372] SwiftSyntaxMacroExpansion
[304 / 372] SwiftSyntaxMacroExpansion
[314 / 380] SwiftCompilerPluginMessageHandling
[318 / 381] SwiftSyntaxBuilder
[328 / 384] SwiftCompilerPluginMessageHandling
[328 / 384] SwiftSyntaxMacroExpansion
[330 / 385] SwiftCompilerPluginMessageHandling
[332 / 386] SwiftCompilerPlugin
[337 / 386] SwiftCompilerPlugin
[339 / 387] SwiftSyntax
[342 / 388] SwiftSyntax
[349 / 388] SwiftSyntaxMacros
[357 / 389] PapyrusPlugin
[366 / 398] PapyrusPlugin
[367 / 398] PapyrusPlugin
[371 / 399] PapyrusPlugin
[381 / 409] PapyrusCore
/host/spi-builder-workspace/PapyrusCore/Sources/Provider.swift:110:42: warning: converting a value of type '(sending any Response) -> ()' to type '(any Response) -> Void' risks causing data races; this is an error in the Swift 6 language mode
108 |                     try await intercept(req: req) { req in
109 |                         return try await withCheckedThrowingContinuation {
110 |                             next(req, $0.resume)
    |                                          |- warning: converting a value of type '(sending any Response) -> ()' to type '(any Response) -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
111 |                         }
112 |                     }
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:9:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 | extension Provider {
  8 |     public convenience init(baseURL: String,
  9 |                             urlSession: URLSession = .shared,
    |                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |                             modifiers: [RequestModifier] = [],
 11 |                             interceptors: [Interceptor] = []) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:9:55: error: value of type '_' expected to be instance of class or class-constrained type
  7 | extension Provider {
  8 |     public convenience init(baseURL: String,
  9 |                             urlSession: URLSession = .shared,
    |                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 10 |                             modifiers: [RequestModifier] = [],
 11 |                             interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:9:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  7 | extension Provider {
  8 |     public convenience init(baseURL: String,
  9 |                             urlSession: URLSession = .shared,
    |                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |                             modifiers: [RequestModifier] = [],
 11 |                             interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:18:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 16 | // MARK: `HTTPService` Conformance
 17 |
 18 | extension URLSession: HTTPService {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 19 |     public func build(method: String, url: URL, headers: [String: String], body: Data?) -> Request {
 20 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:54:28: error: cannot find type 'URLRequest' in scope
 52 |
 53 | extension Response {
 54 |     public var urlRequest: URLRequest { (self as! _Response).urlRequest }
    |                            `- error: cannot find type 'URLRequest' in scope
 55 |     public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
 56 | }
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:55:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 | extension Response {
 54 |     public var urlRequest: URLRequest { (self as! _Response).urlRequest }
 55 |     public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
    |                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 | }
 57 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:59:21: error: cannot find type 'URLRequest' in scope
 57 |
 58 | private struct _Response: Response {
 59 |     let urlRequest: URLRequest
    |                     `- error: cannot find type 'URLRequest' in scope
 60 |     let urlResponse: URLResponse?
 61 |
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:60:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | private struct _Response: Response {
 59 |     let urlRequest: URLRequest
 60 |     let urlResponse: URLResponse?
    |                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     var request: Request? { urlRequest }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:68:19: error: cannot find type 'URLRequest' in scope
 66 |     var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
 67 |
 68 |     init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
    |                   `- error: cannot find type 'URLRequest' in scope
 69 |         self.urlRequest = request
 70 |         self.urlResponse = response
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:68:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
 67 |
 68 |     init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         self.urlRequest = request
 70 |         self.urlResponse = response
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:93:28: error: cannot find type 'URLRequest' in scope
 91 |
 92 | extension Request {
 93 |     public var urlRequest: URLRequest {
    |                            `- error: cannot find type 'URLRequest' in scope
 94 |         (self as! URLRequest)
 95 |     }
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:98:11: error: cannot find type 'URLRequest' in scope
 96 | }
 97 |
 98 | extension URLRequest: Request {
    |           `- error: cannot find type 'URLRequest' in scope
 99 |     public var body: Data? {
100 |         get { httpBody }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift -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 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/PapyrusPlugin\#PapyrusPlugin -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/papyrus.build/Debug-android-aarch64/Papyrus-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Papyrus -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Papyrus_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 -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Modules/Papyrus.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Modules/Papyrus.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Papyrus-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Papyrus-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Papyrus-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Modules/Papyrus.swiftmodule
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile URLSession+Papyrus.swift
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:9:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 | extension Provider {
  8 |     public convenience init(baseURL: String,
  9 |                             urlSession: URLSession = .shared,
    |                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |                             modifiers: [RequestModifier] = [],
 11 |                             interceptors: [Interceptor] = []) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:9:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  7 | extension Provider {
  8 |     public convenience init(baseURL: String,
  9 |                             urlSession: URLSession = .shared,
    |                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |                             modifiers: [RequestModifier] = [],
 11 |                             interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:9:55: error: value of type '_' expected to be instance of class or class-constrained type
  7 | extension Provider {
  8 |     public convenience init(baseURL: String,
  9 |                             urlSession: URLSession = .shared,
    |                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 10 |                             modifiers: [RequestModifier] = [],
 11 |                             interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:18:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 16 | // MARK: `HTTPService` Conformance
 17 |
 18 | extension URLSession: HTTPService {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 19 |     public func build(method: String, url: URL, headers: [String: String], body: Data?) -> Request {
 20 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:54:28: error: cannot find type 'URLRequest' in scope
 52 |
 53 | extension Response {
 54 |     public var urlRequest: URLRequest { (self as! _Response).urlRequest }
    |                            `- error: cannot find type 'URLRequest' in scope
 55 |     public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
 56 | }
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:55:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 | extension Response {
 54 |     public var urlRequest: URLRequest { (self as! _Response).urlRequest }
 55 |     public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
    |                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 | }
 57 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:59:21: error: cannot find type 'URLRequest' in scope
 57 |
 58 | private struct _Response: Response {
 59 |     let urlRequest: URLRequest
    |                     `- error: cannot find type 'URLRequest' in scope
 60 |     let urlResponse: URLResponse?
 61 |
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:60:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | private struct _Response: Response {
 59 |     let urlRequest: URLRequest
 60 |     let urlResponse: URLResponse?
    |                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     var request: Request? { urlRequest }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:68:19: error: cannot find type 'URLRequest' in scope
 66 |     var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
 67 |
 68 |     init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
    |                   `- error: cannot find type 'URLRequest' in scope
 69 |         self.urlRequest = request
 70 |         self.urlResponse = response
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:68:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
 67 |
 68 |     init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         self.urlRequest = request
 70 |         self.urlResponse = response
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:93:28: error: cannot find type 'URLRequest' in scope
 91 |
 92 | extension Request {
 93 |     public var urlRequest: URLRequest {
    |                            `- error: cannot find type 'URLRequest' in scope
 94 |         (self as! URLRequest)
 95 |     }
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:98:11: error: cannot find type 'URLRequest' in scope
 96 | }
 97 |
 98 | extension URLRequest: Request {
    |           `- error: cannot find type 'URLRequest' in scope
 99 |     public var body: Data? {
100 |         get { httpBody }
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:12:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
 10 |                             modifiers: [RequestModifier] = [],
 11 |                             interceptors: [Interceptor] = []) {
 12 |         self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
    |                                           `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
 13 |     }
 14 | }
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:66:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 64 |     let body: Data?
 65 |     let headers: [String: String]?
 66 |     var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
    |                                         `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 67 |
 68 |     init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:66:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 64 |     let body: Data?
 65 |     let headers: [String: String]?
 66 |     var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 67 |
 68 |     init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:73:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 71 |         self.error = error
 72 |         self.body = body
 73 |         let headerPairs = (response as? HTTPURLResponse)?
    |                                     `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 74 |             .allHeaderFields
 75 |             .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:74:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 72 |         self.body = body
 73 |         let headerPairs = (response as? HTTPURLResponse)?
 74 |             .allHeaderFields
    |              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 75 |             .compactMap { key, value -> (String, String)? in
 76 |                 guard let key = key as? String, let value = value as? String else {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:94:19: error: cannot find type 'URLRequest' in scope
 92 | extension Request {
 93 |     public var urlRequest: URLRequest {
 94 |         (self as! URLRequest)
    |                   `- error: cannot find type 'URLRequest' in scope
 95 |     }
 96 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/URLSession+Papyrus.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/URLSession+Papyrus.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/URLSession+Papyrus.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/URLSession+Papyrus.dia -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 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/PapyrusPlugin\#PapyrusPlugin -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/papyrus.build/Debug-android-aarch64/Papyrus-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Papyrus -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Papyrus_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/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/URLSession+Papyrus.o -index-unit-output-path /papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/URLSession+Papyrus.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android