The Swift Package Index logo.Swift Package Index

Build Information

Failed to build UnleashProxyClientSwift, reference 2.5.2 (033bf6), with Swift 6.4 for Android on 27 Sep 2026 03:51:23 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/Unleash/unleash-ios-sdk.git
Reference: 2.5.2
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/Unleash/unleash-ios-sdk
 * tag               2.5.2      -> FETCH_HEAD
HEAD is now at 033bf6d chore: release 2.5.2 (#147)
Cloned https://github.com/Unleash/unleash-ios-sdk.git
Revision (git rev-parse @):
033bf6dbf5e1605f4839198a3173e77c91360d8b
SUCCESS checkout https://github.com/Unleash/unleash-ios-sdk.git at 2.5.2
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/Unleash/unleash-ios-sdk.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/cesarferreira/SwiftEventBus.git
[1/617] Fetching swifteventbus
Fetched https://github.com/cesarferreira/SwiftEventBus.git (0.49s)
Computing version for https://github.com/cesarferreira/SwiftEventBus.git
Computed https://github.com/cesarferreira/SwiftEventBus.git at 5.3.0 (0.65s)
Creating working copy for https://github.com/cesarferreira/SwiftEventBus.git
Working copy of https://github.com/cesarferreira/SwiftEventBus.git resolved at 5.3.0
Building for debugging...
[Pre-planning 1 / 125]
[32 / 47] SwiftEventBus
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:37:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 35 |         environment: String? = "default",
 36 |         context: [String: String]? = nil,
 37 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |         poller: Poller? = nil,
 39 |         metrics: Metrics? = nil,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/PollerSession.swift:4:29: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol PollerSession {
4 |     func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
  |                             `- error: cannot find type 'URLRequest' in scope
5 | }
6 |
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:250:48: error: cannot find type 'ObservableObject' in scope
248 |
249 | @available(iOS 13, tvOS 13, *)
250 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
251 |     @MainActor
252 |     public func start(
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:8:32: error: cannot find type 'URLRequest' in scope
  6 |     let metricsInterval: TimeInterval
  7 |     let clientKey: String
  8 |     typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
    |                                `- error: cannot find type 'URLRequest' in scope
  9 |     let poster: PosterHandler
 10 |     let clock: () -> Date
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:27:17: error: '@escaping' only applies to function types
 25 |         clock: @escaping () -> Date,
 26 |         disableMetrics: Bool = false,
 27 |         poster: @escaping PosterHandler,
    |                 `- error: '@escaping' only applies to function types
 28 |         url: URL,
 29 |         clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:148:42: error: cannot find type 'URLRequest' in scope
146 |     }
147 |
148 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
149 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
150 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:27:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         unleashUrl: URL,
 26 |         apiKey: String,
 27 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 28 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 29 |         customHeaders: [String: String] = [:],
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:252:71: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 |     }
251 |
252 |     private func value(forHTTPHeaderField field: String, in response: HTTPURLResponse) -> String? {
    |                                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 |         // Once iOS 12 support is dropped, replace this with HTTPURLResponse.value(forHTTPHeaderField:).
254 |         return response.allHeaderFields.first { key, _ in
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/UnleashProxyClientSwift/Poller/PollerSession.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol PollerSession {
4 |     func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
  |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | }
6 |
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/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:3:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 1 | import Foundation
 2 |
 3 | extension URLSession: PollerSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 4 |     public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
 5 |         let task = dataTask(with: request) { data, response, error in
[#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/Sources/UnleashProxyClientSwift/Client/Bootstrap.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Context.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/FeatureResponse.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Payload.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Toggle.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/UnleashEvent.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Variant.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Events/ImpressionEvent.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Bucket.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/MetricsPayload.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/ToggleMetrics.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/CustomHeadersProvider.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/DefaultCustomHeadersProvider.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/DictionaryStorageProvider.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/PollerError.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/PollerSession.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/StorageProvider.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/Date+iso8601String.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/Printer.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/utils.swift /host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Version/Version.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 -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/UnleashProxyClientSwift.build/Debug-android-aarch64/UnleashProxyClientSwift-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/UnleashProxyClientSwift.build/Debug-android-aarch64/UnleashProxyClientSwift-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/UnleashProxyClientSwift.build/Debug-android-aarch64/UnleashProxyClientSwift-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name UnleashProxyClientSwift -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/UnleashProxyClientSwift.build/Debug-android-aarch64/UnleashProxyClientSwift-t.build/Objects-normal/aarch64/UnleashProxyClientSwift_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/UnleashProxyClientSwift.build/Debug-android-aarch64/UnleashProxyClientSwift-t.build/Objects-normal/aarch64/Modules/UnleashProxyClientSwift.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UnleashProxyClientSwift.build/Debug-android-aarch64/UnleashProxyClientSwift-t.build/Objects-normal/aarch64/Modules/UnleashProxyClientSwift.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UnleashProxyClientSwift.build/Debug-android-aarch64/UnleashProxyClientSwift-t.build/Objects-normal/aarch64/UnleashProxyClientSwift-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UnleashProxyClientSwift.build/Debug-android-aarch64/UnleashProxyClientSwift-t.build/Objects-normal/aarch64/UnleashProxyClientSwift-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UnleashProxyClientSwift.build/Debug-android-aarch64/UnleashProxyClientSwift-t.build/Objects-normal/aarch64/UnleashProxyClientSwift-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/UnleashProxyClientSwift.build/Debug-android-aarch64/UnleashProxyClientSwift-t.build/Objects-normal/aarch64/Modules/UnleashProxyClientSwift.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android