The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AppVitals, reference main (10cff1), with Swift 6.4 for Android on 24 Oct 2026 05:59:01 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.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/himanshulahoti20/AppVitals.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/himanshulahoti20/AppVitals
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 10cff14 1.4.0 (#5)
Cloned https://github.com/himanshulahoti20/AppVitals.git
Revision (git rev-parse @):
10cff1489b4a0bf0a9f1788c35d91b5f6468ec36
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/himanshulahoti20/AppVitals.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/himanshulahoti20/AppVitals.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:1ec638249ee9496bfd8413990a8663326bfd4883adb2b1d6b616fd753c8ff99b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Building for debugging...
[Constructing description]
[Pre-planning 1 / 414]
[Constructing 628 / 813]
[70 / 126] AppVitalsCore
[71 / 126] AppVitalsCore
[78 / 135] AppVitalsStorage
[78 / 135] AppVitalsCore
[86 / 135] AppVitalsStorage-product
[89 / 135] AppVitalsStorage
[95 / 146] AppVitalsPerformance
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:10:24: error: static property 'forwardingSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
  8 |     /// One session shared across all intercepts — avoids the overhead of creating
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
    |                        |- error: static property 'forwardingSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
    |                        |- note: add '@MainActor' to make static property 'forwardingSession' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 |         let config = URLSessionConfiguration.default
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:10:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     /// One session shared across all intercepts — avoids the overhead of creating
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         let config = URLSessionConfiguration.default
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
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/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
 11 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
 13 |         // forwarded requests is the recursion guard, but a clean config is safer.
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:18:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     }()
 17 |
 18 |     private var dataTask: URLSessionDataTask?
    |                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private var response: HTTPURLResponse?
 20 |     private var responseBody = Data()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:19:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     private var dataTask: URLSessionDataTask?
 19 |     private var response: HTTPURLResponse?
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     private var responseBody = Data()
 21 |     private var startedAt = Date()
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:34:55: error: cannot find type 'URLRequest' in scope
 32 |     }
 33 |
 34 |     override public static func canInit(with request: URLRequest) -> Bool {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 35 |         guard URLProtocol.property(forKey: handledKey, in: request) == nil else { return false }
 36 |         return request.url?.scheme?.hasPrefix("http") == true
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:39:78: error: cannot find type 'URLRequest' in scope
 37 |     }
 38 |
 39 |     override public static func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
 40 |         request
 41 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:39:63: error: cannot find type 'URLRequest' in scope
 37 |     }
 38 |
 39 |     override public static func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                               `- error: cannot find type 'URLRequest' in scope
 40 |         request
 41 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:43:26: error: method does not override any method from its superclass
 41 |     }
 42 |
 43 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 44 |         startedAt = Date()
 45 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:55:26: error: method does not override any method from its superclass
 53 |     }
 54 |
 55 |     override public func stopLoading() {
    |                          `- error: method does not override any method from its superclass
 56 |         dataTask?.cancel()
 57 |         dataTask = nil
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:87:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |     }
 86 |
 87 |     private func finish(response: URLResponse?, error: Error?) {
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         let completedAt = Date()
 89 |         let requestSnapshot = requestSnapshot
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/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:5:42: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | import Foundation
  4 |
  5 | public final class AppVitalsURLProtocol: URLProtocol, @unchecked Sendable {
    |                                          `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private static let handledKey = "AppVitalsURLProtocolHandled"
  7 |     private static let state = URLProtocolState()
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:136:32: error: cannot find type 'URLRequest' in scope
134 |     }
135 |
136 |     func snapshot(for request: URLRequest) -> NetworkRequestSnapshot? {
    |                                `- error: cannot find type 'URLRequest' in scope
137 |         guard configuration.isEnabled, configuration.isNetworkTrackingEnabled else { return nil }
138 |         return RequestRedactor(policy: configuration.redactionPolicy)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:15:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:15:95: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:15:83: error: value of type '_' expected to be instance of class or class-constrained type
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:15:83: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:11:35: error: cannot find type 'URLRequest' in scope
 9 |     }
10 |
11 |     public func redact(_ request: URLRequest, maxBodyBytes: Int) -> NetworkRequestSnapshot? {
   |                                   `- error: cannot find type 'URLRequest' in scope
12 |         guard let originalURL = request.url else { return nil }
13 |         let url = redactURL(originalURL)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:23:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     }
22 |
23 |     public func redact(response: HTTPURLResponse, body: Data?, maxBodyBytes: Int) -> NetworkResponseSnapshot {
   |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         NetworkResponseSnapshot(
25 |             statusCode: response.statusCode,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.0/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift /host/spi-builder-workspace/Sources/AppVitalsNetwork/CURLGenerator.swift /host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkBodyFormatter.swift /host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift /host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r30/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.0/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.0/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.0-RELEASE_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-r30/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/21 -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/AppVitals.build/Debug-android-aarch64/AppVitalsNetwork-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/AppVitals.build/Debug-android-aarch64/AppVitalsNetwork-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/AppVitals.build/Debug-android-aarch64/AppVitalsNetwork-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name AppVitalsNetwork -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/AppVitals.build/Debug-android-aarch64/AppVitalsNetwork-t.build/Objects-normal/aarch64/AppVitalsNetwork_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AppVitals.build/Debug-android-aarch64/AppVitalsNetwork-t.build/Objects-normal/aarch64/Modules/AppVitalsNetwork.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AppVitals.build/Debug-android-aarch64/AppVitalsNetwork-t.build/Objects-normal/aarch64/Modules/AppVitalsNetwork.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AppVitals.build/Debug-android-aarch64/AppVitalsNetwork-t.build/Objects-normal/aarch64/AppVitalsNetwork-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AppVitals.build/Debug-android-aarch64/AppVitalsNetwork-t.build/Objects-normal/aarch64/AppVitalsNetwork-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AppVitals.build/Debug-android-aarch64/AppVitalsNetwork-t.build/Objects-normal/aarch64/AppVitalsNetwork-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/AppVitals.build/Debug-android-aarch64/AppVitalsNetwork-t.build/Objects-normal/aarch64/Modules/AppVitalsNetwork.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android