Build Information
Failed to build UnleashProxyClientSwift, reference 2.2.0 (c747f7
), with Swift 5.9 for Linux on 23 Apr 2025 14:05:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.60.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Unleash/unleash-proxy-client-swift.git
Reference: 2.2.0
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-proxy-client-swift
* tag 2.2.0 -> FETCH_HEAD
HEAD is now at c747f79 feat: default session id (#122)
Cloned https://github.com/Unleash/unleash-proxy-client-swift.git
Revision (git rev-parse @):
c747f7927adb0cee67b9e39e32b6a17376e1f923
SUCCESS checkout https://github.com/Unleash/unleash-proxy-client-swift.git at 2.2.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $PWD
https://github.com/Unleash/unleash-proxy-client-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:93fe18f778ec94e026baa8cc68b2ae87de241b204c49ca7a3a12cf55897227aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Fetching https://github.com/cesarferreira/SwiftEventBus.git
[1/529] Fetching swifteventbus
Fetched https://github.com/cesarferreira/SwiftEventBus.git (0.22s)
Computing version for https://github.com/cesarferreira/SwiftEventBus.git
Computed https://github.com/cesarferreira/SwiftEventBus.git at 5.1.0 (0.36s)
Creating working copy for https://github.com/cesarferreira/SwiftEventBus.git
Working copy of https://github.com/cesarferreira/SwiftEventBus.git resolved at 5.1.0
Building for debugging...
[1/2] Emitting module SwiftEventBus
[2/2] Compiling SwiftEventBus SwiftEventBus.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/27] Emitting module UnleashProxyClientSwift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:21:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
pollerSession: PollerSession = URLSession.shared,
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/PollerSession.swift:4:29: error: cannot find type 'URLRequest' in scope
func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:212:48: error: cannot find type 'ObservableObject' in scope
public class UnleashClient: UnleashClientBase, ObservableObject {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:8:32: error: cannot find type 'URLRequest' in scope
typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:103:42: error: cannot find type 'URLRequest' in scope
func createRequest(payload: Data) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:24:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
session: PollerSession = URLSession.shared,
~~~~~~~~~~ ^~~~~~
/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.
func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:3:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: PollerSession {
^ ~~~~~~~~~~
[6/30] Compiling UnleashProxyClientSwift CustomHeadersProvider.swift
[7/30] Compiling UnleashProxyClientSwift DefaultCustomHeadersProvider.swift
[8/30] Compiling UnleashProxyClientSwift DictionaryStorageProvider.swift
[9/30] Compiling UnleashProxyClientSwift Metrics.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:8:32: error: cannot find type 'URLRequest' in scope
typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:103:42: error: cannot find type 'URLRequest' in scope
func createRequest(payload: Data) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:104:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
^~~~~~~~~~
[10/30] Compiling UnleashProxyClientSwift MetricsPayload.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:8:32: error: cannot find type 'URLRequest' in scope
typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:103:42: error: cannot find type 'URLRequest' in scope
func createRequest(payload: Data) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:104:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
^~~~~~~~~~
[11/30] Compiling UnleashProxyClientSwift ToggleMetrics.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:8:32: error: cannot find type 'URLRequest' in scope
typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:103:42: error: cannot find type 'URLRequest' in scope
func createRequest(payload: Data) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:104:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
^~~~~~~~~~
[12/30] Compiling UnleashProxyClientSwift Poller.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/PollerSession.swift:4:29: error: cannot find type 'URLRequest' in scope
func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:24:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
session: PollerSession = URLSession.shared,
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:117:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:135:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
request.cachePolicy = .reloadIgnoringLocalCacheData
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:144:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if httpResponse.statusCode == 304 {
~~~~~~~~~~~~ ^~~~~~~~~~
/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.
func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[13/30] Compiling UnleashProxyClientSwift PollerError.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/PollerSession.swift:4:29: error: cannot find type 'URLRequest' in scope
func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:24:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
session: PollerSession = URLSession.shared,
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:117:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:135:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
request.cachePolicy = .reloadIgnoringLocalCacheData
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:144:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if httpResponse.statusCode == 304 {
~~~~~~~~~~~~ ^~~~~~~~~~
/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.
func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[14/30] Compiling UnleashProxyClientSwift PollerSession.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/PollerSession.swift:4:29: error: cannot find type 'URLRequest' in scope
func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:24:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
session: PollerSession = URLSession.shared,
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:117:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:135:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
request.cachePolicy = .reloadIgnoringLocalCacheData
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:144:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if httpResponse.statusCode == 304 {
~~~~~~~~~~~~ ^~~~~~~~~~
/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.
func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[15/30] Compiling UnleashProxyClientSwift Bootstrap.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:21:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
pollerSession: PollerSession = URLSession.shared,
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/PollerSession.swift:4:29: error: cannot find type 'URLRequest' in scope
func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:212:48: error: cannot find type 'ObservableObject' in scope
public class UnleashClient: UnleashClientBase, ObservableObject {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:8:32: error: cannot find type 'URLRequest' in scope
typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
^~~~~~~~~~
[16/30] Compiling UnleashProxyClientSwift UnleashProxyClientSwift.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:21:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
pollerSession: PollerSession = URLSession.shared,
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/PollerSession.swift:4:29: error: cannot find type 'URLRequest' in scope
func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:212:48: error: cannot find type 'ObservableObject' in scope
public class UnleashClient: UnleashClientBase, ObservableObject {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:8:32: error: cannot find type 'URLRequest' in scope
typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
^~~~~~~~~~
[17/30] Compiling UnleashProxyClientSwift Context.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:21:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
pollerSession: PollerSession = URLSession.shared,
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/PollerSession.swift:4:29: error: cannot find type 'URLRequest' in scope
func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:212:48: error: cannot find type 'ObservableObject' in scope
public class UnleashClient: UnleashClientBase, ObservableObject {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:8:32: error: cannot find type 'URLRequest' in scope
typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
^~~~~~~~~~
[18/30] Compiling UnleashProxyClientSwift FeatureResponse.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:21:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
pollerSession: PollerSession = URLSession.shared,
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/PollerSession.swift:4:29: error: cannot find type 'URLRequest' in scope
func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:212:48: error: cannot find type 'ObservableObject' in scope
public class UnleashClient: UnleashClientBase, ObservableObject {
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:8:32: error: cannot find type 'URLRequest' in scope
typealias PosterHandler = (URLRequest, @escaping (Result<(Data, URLResponse), Error>) -> Void) -> Void
^~~~~~~~~~
[19/30] Compiling UnleashProxyClientSwift URLSession+Extensions.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:3:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: PollerSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:4:36: error: cannot find type 'URLRequest' in scope
public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
^~~~~~~~~~
[20/30] Compiling UnleashProxyClientSwift utils.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:3:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: PollerSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:4:36: error: cannot find type 'URLRequest' in scope
public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
^~~~~~~~~~
[21/30] Compiling UnleashProxyClientSwift Version.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:3:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: PollerSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:4:36: error: cannot find type 'URLRequest' in scope
public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
^~~~~~~~~~
[22/30] Compiling UnleashProxyClientSwift Payload.swift
[23/30] Compiling UnleashProxyClientSwift Toggle.swift
[24/30] Compiling UnleashProxyClientSwift UnleashEvent.swift
[25/30] Compiling UnleashProxyClientSwift StorageProvider.swift
[26/30] Compiling UnleashProxyClientSwift Date+iso8601String.swift
[27/30] Compiling UnleashProxyClientSwift Printer.swift
[28/30] Compiling UnleashProxyClientSwift Variant.swift
[29/30] Compiling UnleashProxyClientSwift ImpressionEvent.swift
[30/30] Compiling UnleashProxyClientSwift Bucket.swift
error: fatalError
BUILD FAILURE 5.9 linux