The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build UnleashProxyClientSwift, reference 2.4.0 (050a68), with Swift 6.0 for Linux on 2 Aug 2025 07:32:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Unleash/unleash-ios-sdk.git
Reference: 2.4.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-ios-sdk
 * tag               2.4.0      -> FETCH_HEAD
HEAD is now at 050a68f fix: threading issues with locks (#130)
Cloned https://github.com/Unleash/unleash-ios-sdk.git
Revision (git rev-parse @):
050a68f41bcbc831d809f3022c97038f4b16c032
SUCCESS checkout https://github.com/Unleash/unleash-ios-sdk.git at 2.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Unleash/unleash-ios-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:f0ebbd71bee66c692411a61ab9a7ee6edc82316b7a7b4c6173cc06c00f20ed39
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/cesarferreira/SwiftEventBus.git
[1/547] Fetching swifteventbus
Fetched https://github.com/cesarferreira/SwiftEventBus.git from cache (0.26s)
Computing version for https://github.com/cesarferreira/SwiftEventBus.git
Computed https://github.com/cesarferreira/SwiftEventBus.git at 5.1.0 (0.75s)
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...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/5] Emitting module SwiftEventBus
[5/5] Compiling SwiftEventBus SwiftEventBus.swift
[7/29] Compiling UnleashProxyClientSwift StorageProvider.swift
[8/29] Compiling UnleashProxyClientSwift Date+iso8601String.swift
[9/29] Compiling UnleashProxyClientSwift Printer.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/32] Emitting module UnleashProxyClientSwift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:36:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 34 |         environment: String? = "default",
 35 |         context: [String: String]? = nil,
 36 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 37 |         poller: Poller? = nil,
 38 |         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:247:48: error: cannot find type 'ObservableObject' in scope
245 |
246 | @available(iOS 13, tvOS 13, *)
247 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
248 |     @MainActor
249 |     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:24:18: error: @escaping attribute only applies to function types
 22 |          clock: @escaping () -> Date,
 23 |          disableMetrics: Bool = false,
 24 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 25 |          url: URL,
 26 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:138:42: error: cannot find type 'URLRequest' in scope
136 |     }
137 |
138 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
139 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
140 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:25:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 23 |         unleashUrl: URL,
 24 |         apiKey: String,
 25 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 26 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 27 |         customHeaders: [String: String] = [:],
/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
 1 | import Foundation
 2 |
 3 | extension URLSession: PollerSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 4 |     public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
 5 |         let task = dataTask(with: request) { (data, response, error) in
[11/32] Compiling UnleashProxyClientSwift Metrics.swift
/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:24:18: error: @escaping attribute only applies to function types
 22 |          clock: @escaping () -> Date,
 23 |          disableMetrics: Bool = false,
 24 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 25 |          url: URL,
 26 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:138:42: error: cannot find type 'URLRequest' in scope
136 |     }
137 |
138 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
139 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
140 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:139:23: error: cannot find 'URLRequest' in scope
137 |
138 |     func createRequest(payload: Data) -> URLRequest {
139 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
    |                       `- error: cannot find 'URLRequest' in scope
140 |         request.httpMethod = "POST"
141 |         request.httpBody = payload
[12/32] Compiling UnleashProxyClientSwift MetricsPayload.swift
/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:24:18: error: @escaping attribute only applies to function types
 22 |          clock: @escaping () -> Date,
 23 |          disableMetrics: Bool = false,
 24 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 25 |          url: URL,
 26 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:138:42: error: cannot find type 'URLRequest' in scope
136 |     }
137 |
138 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
139 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
140 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:139:23: error: cannot find 'URLRequest' in scope
137 |
138 |     func createRequest(payload: Data) -> URLRequest {
139 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
    |                       `- error: cannot find 'URLRequest' in scope
140 |         request.httpMethod = "POST"
141 |         request.httpBody = payload
[13/32] Compiling UnleashProxyClientSwift ToggleMetrics.swift
/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:24:18: error: @escaping attribute only applies to function types
 22 |          clock: @escaping () -> Date,
 23 |          disableMetrics: Bool = false,
 24 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 25 |          url: URL,
 26 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:138:42: error: cannot find type 'URLRequest' in scope
136 |     }
137 |
138 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
139 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
140 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:139:23: error: cannot find 'URLRequest' in scope
137 |
138 |     func createRequest(payload: Data) -> URLRequest {
139 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
    |                       `- error: cannot find 'URLRequest' in scope
140 |         request.httpMethod = "POST"
141 |         request.httpBody = payload
[14/32] 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
 1 | import Foundation
 2 |
 3 | extension URLSession: PollerSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 4 |     public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
 5 |         let task = dataTask(with: request) { (data, response, error) in
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:4:36: error: cannot find type 'URLRequest' in scope
 2 |
 3 | extension URLSession: PollerSession {
 4 |     public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
   |                                    `- error: cannot find type 'URLRequest' in scope
 5 |         let task = dataTask(with: request) { (data, response, error) in
 6 |             completionHandler(data, response, error)
[15/32] 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
 1 | import Foundation
 2 |
 3 | extension URLSession: PollerSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 4 |     public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
 5 |         let task = dataTask(with: request) { (data, response, error) in
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:4:36: error: cannot find type 'URLRequest' in scope
 2 |
 3 | extension URLSession: PollerSession {
 4 |     public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
   |                                    `- error: cannot find type 'URLRequest' in scope
 5 |         let task = dataTask(with: request) { (data, response, error) in
 6 |             completionHandler(data, response, error)
[16/32] 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
 1 | import Foundation
 2 |
 3 | extension URLSession: PollerSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 4 |     public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
 5 |         let task = dataTask(with: request) { (data, response, error) in
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:4:36: error: cannot find type 'URLRequest' in scope
 2 |
 3 | extension URLSession: PollerSession {
 4 |     public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
   |                                    `- error: cannot find type 'URLRequest' in scope
 5 |         let task = dataTask(with: request) { (data, response, error) in
 6 |             completionHandler(data, response, error)
[17/32] Compiling UnleashProxyClientSwift Variant.swift
[18/32] Compiling UnleashProxyClientSwift ImpressionEvent.swift
[19/32] Compiling UnleashProxyClientSwift Bucket.swift
[20/32] Compiling UnleashProxyClientSwift CustomHeadersProvider.swift
[21/32] Compiling UnleashProxyClientSwift DefaultCustomHeadersProvider.swift
[22/32] Compiling UnleashProxyClientSwift DictionaryStorageProvider.swift
[23/32] Compiling UnleashProxyClientSwift Payload.swift
[24/32] Compiling UnleashProxyClientSwift Toggle.swift
[25/32] Compiling UnleashProxyClientSwift UnleashEvent.swift
[26/32] Compiling UnleashProxyClientSwift Poller.swift
/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/Poller/Poller.swift:25:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 23 |         unleashUrl: URL,
 24 |         apiKey: String,
 25 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 26 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 27 |         customHeaders: [String: String] = [:],
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:133:23: error: cannot find 'URLRequest' in scope
131 |         }
132 |
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = "GET"
135 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:158:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
156 |             }
157 |         }
158 |         request.cachePolicy = .reloadIgnoringLocalCacheData
    |                                `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
159 |
160 |         session.perform(request) { [self] (data, response, error) in
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:160:44: error: cannot infer type of closure parameter 'data' without a type annotation
158 |         request.cachePolicy = .reloadIgnoringLocalCacheData
159 |
160 |         session.perform(request) { [self] (data, response, error) in
    |                                            `- error: cannot infer type of closure parameter 'data' without a type annotation
161 |             guard let httpResponse = response as? HTTPURLResponse else {
162 |                 Printer.printMessage("No response")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:160:50: error: cannot infer type of closure parameter 'response' without a type annotation
158 |         request.cachePolicy = .reloadIgnoringLocalCacheData
159 |
160 |         session.perform(request) { [self] (data, response, error) in
    |                                                  `- error: cannot infer type of closure parameter 'response' without a type annotation
161 |             guard let httpResponse = response as? HTTPURLResponse else {
162 |                 Printer.printMessage("No response")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:160:60: error: cannot infer type of closure parameter 'error' without a type annotation
158 |         request.cachePolicy = .reloadIgnoringLocalCacheData
159 |
160 |         session.perform(request) { [self] (data, response, error) in
    |                                                            `- error: cannot infer type of closure parameter 'error' without a type annotation
161 |             guard let httpResponse = response as? HTTPURLResponse else {
162 |                 Printer.printMessage("No response")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:167:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |             }
166 |
167 |             if httpResponse.statusCode == 304 {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 |                 completionHandler?(nil)
169 |                 Printer.printMessage("No changes in feature toggles.")
/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
[27/32] Compiling UnleashProxyClientSwift PollerError.swift
/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/Poller/Poller.swift:25:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 23 |         unleashUrl: URL,
 24 |         apiKey: String,
 25 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 26 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 27 |         customHeaders: [String: String] = [:],
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:133:23: error: cannot find 'URLRequest' in scope
131 |         }
132 |
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = "GET"
135 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:158:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
156 |             }
157 |         }
158 |         request.cachePolicy = .reloadIgnoringLocalCacheData
    |                                `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
159 |
160 |         session.perform(request) { [self] (data, response, error) in
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:160:44: error: cannot infer type of closure parameter 'data' without a type annotation
158 |         request.cachePolicy = .reloadIgnoringLocalCacheData
159 |
160 |         session.perform(request) { [self] (data, response, error) in
    |                                            `- error: cannot infer type of closure parameter 'data' without a type annotation
161 |             guard let httpResponse = response as? HTTPURLResponse else {
162 |                 Printer.printMessage("No response")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:160:50: error: cannot infer type of closure parameter 'response' without a type annotation
158 |         request.cachePolicy = .reloadIgnoringLocalCacheData
159 |
160 |         session.perform(request) { [self] (data, response, error) in
    |                                                  `- error: cannot infer type of closure parameter 'response' without a type annotation
161 |             guard let httpResponse = response as? HTTPURLResponse else {
162 |                 Printer.printMessage("No response")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:160:60: error: cannot infer type of closure parameter 'error' without a type annotation
158 |         request.cachePolicy = .reloadIgnoringLocalCacheData
159 |
160 |         session.perform(request) { [self] (data, response, error) in
    |                                                            `- error: cannot infer type of closure parameter 'error' without a type annotation
161 |             guard let httpResponse = response as? HTTPURLResponse else {
162 |                 Printer.printMessage("No response")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:167:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |             }
166 |
167 |             if httpResponse.statusCode == 304 {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 |                 completionHandler?(nil)
169 |                 Printer.printMessage("No changes in feature toggles.")
/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
[28/32] Compiling UnleashProxyClientSwift PollerSession.swift
/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/Poller/Poller.swift:25:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 23 |         unleashUrl: URL,
 24 |         apiKey: String,
 25 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 26 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 27 |         customHeaders: [String: String] = [:],
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:133:23: error: cannot find 'URLRequest' in scope
131 |         }
132 |
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = "GET"
135 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:158:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
156 |             }
157 |         }
158 |         request.cachePolicy = .reloadIgnoringLocalCacheData
    |                                `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
159 |
160 |         session.perform(request) { [self] (data, response, error) in
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:160:44: error: cannot infer type of closure parameter 'data' without a type annotation
158 |         request.cachePolicy = .reloadIgnoringLocalCacheData
159 |
160 |         session.perform(request) { [self] (data, response, error) in
    |                                            `- error: cannot infer type of closure parameter 'data' without a type annotation
161 |             guard let httpResponse = response as? HTTPURLResponse else {
162 |                 Printer.printMessage("No response")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:160:50: error: cannot infer type of closure parameter 'response' without a type annotation
158 |         request.cachePolicy = .reloadIgnoringLocalCacheData
159 |
160 |         session.perform(request) { [self] (data, response, error) in
    |                                                  `- error: cannot infer type of closure parameter 'response' without a type annotation
161 |             guard let httpResponse = response as? HTTPURLResponse else {
162 |                 Printer.printMessage("No response")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:160:60: error: cannot infer type of closure parameter 'error' without a type annotation
158 |         request.cachePolicy = .reloadIgnoringLocalCacheData
159 |
160 |         session.perform(request) { [self] (data, response, error) in
    |                                                            `- error: cannot infer type of closure parameter 'error' without a type annotation
161 |             guard let httpResponse = response as? HTTPURLResponse else {
162 |                 Printer.printMessage("No response")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:167:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |             }
166 |
167 |             if httpResponse.statusCode == 304 {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 |                 completionHandler?(nil)
169 |                 Printer.printMessage("No changes in feature toggles.")
/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
[29/32] Compiling UnleashProxyClientSwift Bootstrap.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:36:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 34 |         environment: String? = "default",
 35 |         context: [String: String]? = nil,
 36 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 37 |         poller: Poller? = nil,
 38 |         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:247:48: error: cannot find type 'ObservableObject' in scope
245 |
246 | @available(iOS 13, tvOS 13, *)
247 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
248 |     @MainActor
249 |     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:24:18: error: @escaping attribute only applies to function types
 22 |          clock: @escaping () -> Date,
 23 |          disableMetrics: Bool = false,
 24 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 25 |          url: URL,
 26 |          clientKey: String,
[30/32] Compiling UnleashProxyClientSwift UnleashProxyClientSwift.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:36:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 34 |         environment: String? = "default",
 35 |         context: [String: String]? = nil,
 36 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 37 |         poller: Poller? = nil,
 38 |         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:247:48: error: cannot find type 'ObservableObject' in scope
245 |
246 | @available(iOS 13, tvOS 13, *)
247 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
248 |     @MainActor
249 |     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:24:18: error: @escaping attribute only applies to function types
 22 |          clock: @escaping () -> Date,
 23 |          disableMetrics: Bool = false,
 24 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 25 |          url: URL,
 26 |          clientKey: String,
[31/32] Compiling UnleashProxyClientSwift Context.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:36:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 34 |         environment: String? = "default",
 35 |         context: [String: String]? = nil,
 36 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 37 |         poller: Poller? = nil,
 38 |         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:247:48: error: cannot find type 'ObservableObject' in scope
245 |
246 | @available(iOS 13, tvOS 13, *)
247 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
248 |     @MainActor
249 |     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:24:18: error: @escaping attribute only applies to function types
 22 |          clock: @escaping () -> Date,
 23 |          disableMetrics: Bool = false,
 24 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 25 |          url: URL,
 26 |          clientKey: String,
[32/32] Compiling UnleashProxyClientSwift FeatureResponse.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:36:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 34 |         environment: String? = "default",
 35 |         context: [String: String]? = nil,
 36 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 37 |         poller: Poller? = nil,
 38 |         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:247:48: error: cannot find type 'ObservableObject' in scope
245 |
246 | @available(iOS 13, tvOS 13, *)
247 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
248 |     @MainActor
249 |     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:24:18: error: @escaping attribute only applies to function types
 22 |          clock: @escaping () -> Date,
 23 |          disableMetrics: Bool = false,
 24 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 25 |          url: URL,
 26 |          clientKey: String,
BUILD FAILURE 6.0 linux