The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build UnleashProxyClientSwift, reference 2.2.0 (c747f7), with Swift 6.0 for Linux on 23 Apr 2025 14:05:05 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.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:             6.0
Building package at path:  $PWD
https://github.com/Unleash/unleash-proxy-client-swift.git
https://github.com/Unleash/unleash-proxy-client-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swifteventbus",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.1.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/cesarferreira/SwiftEventBus.git"
    }
  ],
  "manifest_display_name" : "UnleashProxyClientSwift",
  "name" : "UnleashProxyClientSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "UnleashProxyClientSwift",
      "targets" : [
        "UnleashProxyClientSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UnleashProxyClientSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "UnleashProxyClientSwiftTests",
      "path" : "Tests/UnleashProxyClientSwiftTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/UnleashProxyClientSwiftTests/FeatureResponseStub.json",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "BootstrapTests.swift",
        "ImpressionEventsTests.swift",
        "MetricsTests.swift",
        "MockMetrics.swift",
        "MockPoller.swift",
        "PollerTests.swift",
        "UnleashClientIntegrationTest.swift",
        "UnleashProxyClientSwiftTests.swift",
        "testUtils.swift"
      ],
      "target_dependencies" : [
        "UnleashProxyClientSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UnleashProxyClientSwift",
      "module_type" : "SwiftTarget",
      "name" : "UnleashProxyClientSwift",
      "path" : "Sources/UnleashProxyClientSwift",
      "product_dependencies" : [
        "SwiftEventBus"
      ],
      "product_memberships" : [
        "UnleashProxyClientSwift"
      ],
      "sources" : [
        "Client/Bootstrap.swift",
        "Client/UnleashProxyClientSwift.swift",
        "DTO/Context.swift",
        "DTO/FeatureResponse.swift",
        "DTO/Payload.swift",
        "DTO/Toggle.swift",
        "DTO/UnleashEvent.swift",
        "DTO/Variant.swift",
        "Events/ImpressionEvent.swift",
        "Metrics/Bucket.swift",
        "Metrics/Metrics.swift",
        "Metrics/MetricsPayload.swift",
        "Metrics/ToggleMetrics.swift",
        "Poller/CustomHeadersProvider.swift",
        "Poller/DefaultCustomHeadersProvider.swift",
        "Poller/DictionaryStorageProvider.swift",
        "Poller/Poller.swift",
        "Poller/PollerError.swift",
        "Poller/PollerSession.swift",
        "Poller/StorageProvider.swift",
        "Utils/Date+iso8601String.swift",
        "Utils/Printer.swift",
        "Utils/URLSession+Extensions.swift",
        "Utils/utils.swift",
        "Version/Version.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9029076bb687edc160a3d5201c89e92dd9fa7309f33f090c4234365c83366c31
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/529] Fetching swifteventbus
Fetched https://github.com/cesarferreira/SwiftEventBus.git from cache (0.23s)
Computing version for https://github.com/cesarferreira/SwiftEventBus.git
Computed https://github.com/cesarferreira/SwiftEventBus.git at 5.1.0 (0.52s)
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
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/Printer.swift:11:16: warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | class Printer {
11 |     static var showPrintStatements = false
   |                |- warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'showPrintStatements' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'showPrintStatements' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     static func printMessage(_ items: Any..., separator: String = " ", terminator: String = "\n") {
13 |         if showPrintStatements {
[8/29] Compiling UnleashProxyClientSwift Date+iso8601String.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/Printer.swift:11:16: warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | class Printer {
11 |     static var showPrintStatements = false
   |                |- warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'showPrintStatements' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'showPrintStatements' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     static func printMessage(_ items: Any..., separator: String = " ", terminator: String = "\n") {
13 |         if showPrintStatements {
[9/29] Compiling UnleashProxyClientSwift Printer.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/Printer.swift:11:16: warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | class Printer {
11 |     static var showPrintStatements = false
   |                |- warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'showPrintStatements' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'showPrintStatements' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     static func printMessage(_ items: Any..., separator: String = " ", terminator: String = "\n") {
13 |         if showPrintStatements {
[10/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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:103:42: error: cannot find type 'URLRequest' in scope
101 |     }
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
105 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:43:13: warning: capture of 'self' with non-sendable type 'Metrics' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  2 | import SwiftEventBus
  3 |
  4 | public class Metrics {
    |              `- note: class 'Metrics' does not conform to the 'Sendable' protocol
  5 |     let appName: String
  6 |     let metricsInterval: TimeInterval
    :
 41 |
 42 |         self.timer = Timer.scheduledTimer(withTimeInterval: metricsInterval, repeats: true) { _ in
 43 |             self.sendMetrics()
    |             `- warning: capture of 'self' with non-sendable type 'Metrics' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 44 |         }
 45 |     }
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:104:23: error: cannot find 'URLRequest' in scope
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
    |                       `- error: cannot find 'URLRequest' in scope
105 |         request.httpMethod = "POST"
106 |         request.httpBody = payload
[11/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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:103:42: error: cannot find type 'URLRequest' in scope
101 |     }
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
105 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:43:13: warning: capture of 'self' with non-sendable type 'Metrics' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  2 | import SwiftEventBus
  3 |
  4 | public class Metrics {
    |              `- note: class 'Metrics' does not conform to the 'Sendable' protocol
  5 |     let appName: String
  6 |     let metricsInterval: TimeInterval
    :
 41 |
 42 |         self.timer = Timer.scheduledTimer(withTimeInterval: metricsInterval, repeats: true) { _ in
 43 |             self.sendMetrics()
    |             `- warning: capture of 'self' with non-sendable type 'Metrics' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 44 |         }
 45 |     }
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:104:23: error: cannot find 'URLRequest' in scope
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
    |                       `- error: cannot find 'URLRequest' in scope
105 |         request.httpMethod = "POST"
106 |         request.httpBody = payload
[12/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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:103:42: error: cannot find type 'URLRequest' in scope
101 |     }
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
105 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:43:13: warning: capture of 'self' with non-sendable type 'Metrics' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  2 | import SwiftEventBus
  3 |
  4 | public class Metrics {
    |              `- note: class 'Metrics' does not conform to the 'Sendable' protocol
  5 |     let appName: String
  6 |     let metricsInterval: TimeInterval
    :
 41 |
 42 |         self.timer = Timer.scheduledTimer(withTimeInterval: metricsInterval, repeats: true) { _ in
 43 |             self.sendMetrics()
    |             `- warning: capture of 'self' with non-sendable type 'Metrics' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 44 |         }
 45 |     }
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:104:23: error: cannot find 'URLRequest' in scope
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
    |                       `- error: cannot find 'URLRequest' in scope
105 |         request.httpMethod = "POST"
106 |         request.httpBody = payload
[13/32] Compiling UnleashProxyClientSwift CustomHeadersProvider.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/DictionaryStorageProvider.swift:11:13: warning: capture of 'self' with non-sendable type 'DictionaryStorageProvider' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public class DictionaryStorageProvider: StorageProvider {
   |              `- note: class 'DictionaryStorageProvider' does not conform to the 'Sendable' protocol
 4 |     private var storage: [String: Toggle] = [:]
 5 |     private let queue = DispatchQueue(label: "com.unleash.storageprovider")
   :
 9 |     public func set(values: [String: Toggle]) {
10 |         queue.async {
11 |             self.storage = values
   |             `- warning: capture of 'self' with non-sendable type 'DictionaryStorageProvider' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |         }
13 |     }
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/DictionaryStorageProvider.swift:11:28: warning: capture of 'values' with non-sendable type '[String : Toggle]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 9 |     public func set(values: [String: Toggle]) {
10 |         queue.async {
11 |             self.storage = values
   |                            `- warning: capture of 'values' with non-sendable type '[String : Toggle]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |         }
13 |     }
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Toggle.swift:2:15: note: consider making struct 'Toggle' conform to the 'Sendable' protocol
 1 | // MARK: - Toggle
 2 | public struct Toggle: Codable, Equatable {
   |               `- note: consider making struct 'Toggle' conform to the 'Sendable' protocol
 3 |     public let name: String
 4 |     public let enabled: Bool
[14/32] Compiling UnleashProxyClientSwift DefaultCustomHeadersProvider.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/DictionaryStorageProvider.swift:11:13: warning: capture of 'self' with non-sendable type 'DictionaryStorageProvider' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public class DictionaryStorageProvider: StorageProvider {
   |              `- note: class 'DictionaryStorageProvider' does not conform to the 'Sendable' protocol
 4 |     private var storage: [String: Toggle] = [:]
 5 |     private let queue = DispatchQueue(label: "com.unleash.storageprovider")
   :
 9 |     public func set(values: [String: Toggle]) {
10 |         queue.async {
11 |             self.storage = values
   |             `- warning: capture of 'self' with non-sendable type 'DictionaryStorageProvider' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |         }
13 |     }
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/DictionaryStorageProvider.swift:11:28: warning: capture of 'values' with non-sendable type '[String : Toggle]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 9 |     public func set(values: [String: Toggle]) {
10 |         queue.async {
11 |             self.storage = values
   |                            `- warning: capture of 'values' with non-sendable type '[String : Toggle]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |         }
13 |     }
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Toggle.swift:2:15: note: consider making struct 'Toggle' conform to the 'Sendable' protocol
 1 | // MARK: - Toggle
 2 | public struct Toggle: Codable, Equatable {
   |               `- note: consider making struct 'Toggle' conform to the 'Sendable' protocol
 3 |     public let name: String
 4 |     public let enabled: Bool
[15/32] Compiling UnleashProxyClientSwift DictionaryStorageProvider.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/DictionaryStorageProvider.swift:11:13: warning: capture of 'self' with non-sendable type 'DictionaryStorageProvider' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public class DictionaryStorageProvider: StorageProvider {
   |              `- note: class 'DictionaryStorageProvider' does not conform to the 'Sendable' protocol
 4 |     private var storage: [String: Toggle] = [:]
 5 |     private let queue = DispatchQueue(label: "com.unleash.storageprovider")
   :
 9 |     public func set(values: [String: Toggle]) {
10 |         queue.async {
11 |             self.storage = values
   |             `- warning: capture of 'self' with non-sendable type 'DictionaryStorageProvider' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |         }
13 |     }
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/DictionaryStorageProvider.swift:11:28: warning: capture of 'values' with non-sendable type '[String : Toggle]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 9 |     public func set(values: [String: Toggle]) {
10 |         queue.async {
11 |             self.storage = values
   |                            `- warning: capture of 'values' with non-sendable type '[String : Toggle]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |         }
13 |     }
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Toggle.swift:2:15: note: consider making struct 'Toggle' conform to the 'Sendable' protocol
 1 | // MARK: - Toggle
 2 | public struct Toggle: Codable, Equatable {
   |               `- note: consider making struct 'Toggle' conform to the 'Sendable' protocol
 3 |     public let name: String
 4 |     public let enabled: Bool
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/32] Emitting module UnleashProxyClientSwift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:21:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |         environment: String? = "default",
 20 |         context: [String: String]? = nil,
 21 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         poller: Poller? = nil,
 23 |         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:212:48: error: cannot find type 'ObservableObject' in scope
210 |
211 | @available(iOS 13, tvOS 13, *)
212 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
213 |     @MainActor
214 |     public func start(
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Variant.swift:35:16: warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | // MARK: - Variant
 2 | public struct Variant: Codable, Equatable {
   |               `- note: consider making struct 'Variant' conform to the 'Sendable' protocol
 3 |     enum CodingKeys: String, CodingKey {
 4 |         case name, enabled, payload
   :
33 |
34 | extension Variant {
35 |     static let defaultDisabled = Variant(
   |                |- warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'defaultDisabled' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |         name: "disabled",
37 |         enabled: false,
/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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:103:42: error: cannot find type 'URLRequest' in scope
101 |     }
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
105 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:24:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         unleashUrl: URL,
 23 |         apiKey: String,
 24 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 26 |         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/Printer.swift:11:16: warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | class Printer {
11 |     static var showPrintStatements = false
   |                |- warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'showPrintStatements' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'showPrintStatements' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     static func printMessage(_ items: Any..., separator: String = " ", terminator: String = "\n") {
13 |         if showPrintStatements {
/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
[17/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)
[18/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)
[19/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)
[20/32] Compiling UnleashProxyClientSwift Bootstrap.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:21:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |         environment: String? = "default",
 20 |         context: [String: String]? = nil,
 21 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         poller: Poller? = nil,
 23 |         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:212:48: error: cannot find type 'ObservableObject' in scope
210 |
211 | @available(iOS 13, tvOS 13, *)
212 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
213 |     @MainActor
214 |     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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/Printer.swift:11:16: warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | class Printer {
11 |     static var showPrintStatements = false
   |                |- warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'showPrintStatements' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'showPrintStatements' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     static func printMessage(_ items: Any..., separator: String = " ", terminator: String = "\n") {
13 |         if showPrintStatements {
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Variant.swift:35:16: warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | // MARK: - Variant
 2 | public struct Variant: Codable, Equatable {
   |               `- note: consider making struct 'Variant' conform to the 'Sendable' protocol
 3 |     enum CodingKeys: String, CodingKey {
 4 |         case name, enabled, payload
   :
33 |
34 | extension Variant {
35 |     static let defaultDisabled = Variant(
   |                |- warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'defaultDisabled' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |         name: "disabled",
37 |         enabled: false,
[21/32] Compiling UnleashProxyClientSwift UnleashProxyClientSwift.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:21:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |         environment: String? = "default",
 20 |         context: [String: String]? = nil,
 21 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         poller: Poller? = nil,
 23 |         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:212:48: error: cannot find type 'ObservableObject' in scope
210 |
211 | @available(iOS 13, tvOS 13, *)
212 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
213 |     @MainActor
214 |     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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/Printer.swift:11:16: warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | class Printer {
11 |     static var showPrintStatements = false
   |                |- warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'showPrintStatements' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'showPrintStatements' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     static func printMessage(_ items: Any..., separator: String = " ", terminator: String = "\n") {
13 |         if showPrintStatements {
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Variant.swift:35:16: warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | // MARK: - Variant
 2 | public struct Variant: Codable, Equatable {
   |               `- note: consider making struct 'Variant' conform to the 'Sendable' protocol
 3 |     enum CodingKeys: String, CodingKey {
 4 |         case name, enabled, payload
   :
33 |
34 | extension Variant {
35 |     static let defaultDisabled = Variant(
   |                |- warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'defaultDisabled' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |         name: "disabled",
37 |         enabled: false,
[22/32] Compiling UnleashProxyClientSwift Context.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:21:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |         environment: String? = "default",
 20 |         context: [String: String]? = nil,
 21 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         poller: Poller? = nil,
 23 |         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:212:48: error: cannot find type 'ObservableObject' in scope
210 |
211 | @available(iOS 13, tvOS 13, *)
212 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
213 |     @MainActor
214 |     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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/Printer.swift:11:16: warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | class Printer {
11 |     static var showPrintStatements = false
   |                |- warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'showPrintStatements' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'showPrintStatements' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     static func printMessage(_ items: Any..., separator: String = " ", terminator: String = "\n") {
13 |         if showPrintStatements {
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Variant.swift:35:16: warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | // MARK: - Variant
 2 | public struct Variant: Codable, Equatable {
   |               `- note: consider making struct 'Variant' conform to the 'Sendable' protocol
 3 |     enum CodingKeys: String, CodingKey {
 4 |         case name, enabled, payload
   :
33 |
34 | extension Variant {
35 |     static let defaultDisabled = Variant(
   |                |- warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'defaultDisabled' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |         name: "disabled",
37 |         enabled: false,
[23/32] Compiling UnleashProxyClientSwift FeatureResponse.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:21:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |         environment: String? = "default",
 20 |         context: [String: String]? = nil,
 21 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         poller: Poller? = nil,
 23 |         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:212:48: error: cannot find type 'ObservableObject' in scope
210 |
211 | @available(iOS 13, tvOS 13, *)
212 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
213 |     @MainActor
214 |     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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/Printer.swift:11:16: warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | class Printer {
11 |     static var showPrintStatements = false
   |                |- warning: static property 'showPrintStatements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'showPrintStatements' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'showPrintStatements' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     static func printMessage(_ items: Any..., separator: String = " ", terminator: String = "\n") {
13 |         if showPrintStatements {
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Variant.swift:35:16: warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | // MARK: - Variant
 2 | public struct Variant: Codable, Equatable {
   |               `- note: consider making struct 'Variant' conform to the 'Sendable' protocol
 3 |     enum CodingKeys: String, CodingKey {
 4 |         case name, enabled, payload
   :
33 |
34 | extension Variant {
35 |     static let defaultDisabled = Variant(
   |                |- warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'defaultDisabled' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |         name: "disabled",
37 |         enabled: false,
[24/32] Compiling UnleashProxyClientSwift Variant.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Variant.swift:35:16: warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | // MARK: - Variant
 2 | public struct Variant: Codable, Equatable {
   |               `- note: consider making struct 'Variant' conform to the 'Sendable' protocol
 3 |     enum CodingKeys: String, CodingKey {
 4 |         case name, enabled, payload
   :
33 |
34 | extension Variant {
35 |     static let defaultDisabled = Variant(
   |                |- warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'defaultDisabled' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |         name: "disabled",
37 |         enabled: false,
[25/32] Compiling UnleashProxyClientSwift ImpressionEvent.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Variant.swift:35:16: warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | // MARK: - Variant
 2 | public struct Variant: Codable, Equatable {
   |               `- note: consider making struct 'Variant' conform to the 'Sendable' protocol
 3 |     enum CodingKeys: String, CodingKey {
 4 |         case name, enabled, payload
   :
33 |
34 | extension Variant {
35 |     static let defaultDisabled = Variant(
   |                |- warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'defaultDisabled' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |         name: "disabled",
37 |         enabled: false,
[26/32] Compiling UnleashProxyClientSwift Bucket.swift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Variant.swift:35:16: warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | // MARK: - Variant
 2 | public struct Variant: Codable, Equatable {
   |               `- note: consider making struct 'Variant' conform to the 'Sendable' protocol
 3 |     enum CodingKeys: String, CodingKey {
 4 |         case name, enabled, payload
   :
33 |
34 | extension Variant {
35 |     static let defaultDisabled = Variant(
   |                |- warning: static property 'defaultDisabled' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'defaultDisabled' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |         name: "disabled",
37 |         enabled: false,
[27/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:24:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         unleashUrl: URL,
 23 |         apiKey: String,
 24 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 26 |         customHeaders: [String: String] = [:],
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:70:13: warning: capture of 'self' with non-sendable type 'Poller' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  3 | import SwiftEventBus
  4 |
  5 | public class Poller {
    |              `- note: class 'Poller' does not conform to the 'Sendable' protocol
  6 |     var refreshInterval: Int?
  7 |     var unleashUrl: URL
    :
 68 |
 69 |         let timer = Timer.scheduledTimer(withTimeInterval: Double(self.refreshInterval ?? 15), repeats: true) { timer in
 70 |             self.getFeatures(context: context)
    |             `- warning: capture of 'self' with non-sendable type 'Poller' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |         }
 72 |         self.timer = timer
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:70:39: warning: capture of 'context' with non-sendable type 'Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |
 69 |         let timer = Timer.scheduledTimer(withTimeInterval: Double(self.refreshInterval ?? 15), repeats: true) { timer in
 70 |             self.getFeatures(context: context)
    |                                       `- warning: capture of 'context' with non-sendable type 'Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |         }
 72 |         self.timer = timer
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Context.swift:1:15: note: consider making struct 'Context' conform to the 'Sendable' protocol
 1 | public struct Context {
   |               `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 2 |     let appName: String?
 3 |     let environment: String?
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:117:23: error: cannot find 'URLRequest' in scope
115 |         }
116 |
117 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
118 |         request.httpMethod = "GET"
119 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:135:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
133 |             }
134 |         }
135 |         request.cachePolicy = .reloadIgnoringLocalCacheData
    |                                `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
136 |
137 |         session.perform(request) { (data, response, error) in
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:144:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
142 |             }
143 |
144 |             if httpResponse.statusCode == 304 {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
145 |                 completionHandler?(nil)
146 |                 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 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:24:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         unleashUrl: URL,
 23 |         apiKey: String,
 24 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 26 |         customHeaders: [String: String] = [:],
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:70:13: warning: capture of 'self' with non-sendable type 'Poller' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  3 | import SwiftEventBus
  4 |
  5 | public class Poller {
    |              `- note: class 'Poller' does not conform to the 'Sendable' protocol
  6 |     var refreshInterval: Int?
  7 |     var unleashUrl: URL
    :
 68 |
 69 |         let timer = Timer.scheduledTimer(withTimeInterval: Double(self.refreshInterval ?? 15), repeats: true) { timer in
 70 |             self.getFeatures(context: context)
    |             `- warning: capture of 'self' with non-sendable type 'Poller' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |         }
 72 |         self.timer = timer
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:70:39: warning: capture of 'context' with non-sendable type 'Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |
 69 |         let timer = Timer.scheduledTimer(withTimeInterval: Double(self.refreshInterval ?? 15), repeats: true) { timer in
 70 |             self.getFeatures(context: context)
    |                                       `- warning: capture of 'context' with non-sendable type 'Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |         }
 72 |         self.timer = timer
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Context.swift:1:15: note: consider making struct 'Context' conform to the 'Sendable' protocol
 1 | public struct Context {
   |               `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 2 |     let appName: String?
 3 |     let environment: String?
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:117:23: error: cannot find 'URLRequest' in scope
115 |         }
116 |
117 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
118 |         request.httpMethod = "GET"
119 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:135:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
133 |             }
134 |         }
135 |         request.cachePolicy = .reloadIgnoringLocalCacheData
    |                                `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
136 |
137 |         session.perform(request) { (data, response, error) in
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:144:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
142 |             }
143 |
144 |             if httpResponse.statusCode == 304 {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
145 |                 completionHandler?(nil)
146 |                 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 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:24:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         unleashUrl: URL,
 23 |         apiKey: String,
 24 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 26 |         customHeaders: [String: String] = [:],
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:70:13: warning: capture of 'self' with non-sendable type 'Poller' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  3 | import SwiftEventBus
  4 |
  5 | public class Poller {
    |              `- note: class 'Poller' does not conform to the 'Sendable' protocol
  6 |     var refreshInterval: Int?
  7 |     var unleashUrl: URL
    :
 68 |
 69 |         let timer = Timer.scheduledTimer(withTimeInterval: Double(self.refreshInterval ?? 15), repeats: true) { timer in
 70 |             self.getFeatures(context: context)
    |             `- warning: capture of 'self' with non-sendable type 'Poller' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |         }
 72 |         self.timer = timer
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:70:39: warning: capture of 'context' with non-sendable type 'Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 |
 69 |         let timer = Timer.scheduledTimer(withTimeInterval: Double(self.refreshInterval ?? 15), repeats: true) { timer in
 70 |             self.getFeatures(context: context)
    |                                       `- warning: capture of 'context' with non-sendable type 'Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |         }
 72 |         self.timer = timer
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Context.swift:1:15: note: consider making struct 'Context' conform to the 'Sendable' protocol
 1 | public struct Context {
   |               `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 2 |     let appName: String?
 3 |     let environment: String?
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:117:23: error: cannot find 'URLRequest' in scope
115 |         }
116 |
117 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
118 |         request.httpMethod = "GET"
119 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:135:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
133 |             }
134 |         }
135 |         request.cachePolicy = .reloadIgnoringLocalCacheData
    |                                `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
136 |
137 |         session.perform(request) { (data, response, error) in
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:144:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
142 |             }
143 |
144 |             if httpResponse.statusCode == 304 {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
145 |                 completionHandler?(nil)
146 |                 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
[30/32] Compiling UnleashProxyClientSwift Payload.swift
[31/32] Compiling UnleashProxyClientSwift Toggle.swift
[32/32] Compiling UnleashProxyClientSwift UnleashEvent.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:9029076bb687edc160a3d5201c89e92dd9fa7309f33f090c4234365c83366c31
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Emitting module SwiftEventBus
[3/3] Compiling SwiftEventBus SwiftEventBus.swift
[5/27] Compiling UnleashProxyClientSwift CustomHeadersProvider.swift
[6/27] Compiling UnleashProxyClientSwift DefaultCustomHeadersProvider.swift
[7/27] Compiling UnleashProxyClientSwift DictionaryStorageProvider.swift
[8/30] 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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:103:42: error: cannot find type 'URLRequest' in scope
101 |     }
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
105 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:104:23: error: cannot find 'URLRequest' in scope
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
    |                       `- error: cannot find 'URLRequest' in scope
105 |         request.httpMethod = "POST"
106 |         request.httpBody = payload
[9/30] 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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:103:42: error: cannot find type 'URLRequest' in scope
101 |     }
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
105 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:104:23: error: cannot find 'URLRequest' in scope
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
    |                       `- error: cannot find 'URLRequest' in scope
105 |         request.httpMethod = "POST"
106 |         request.httpBody = payload
[10/30] 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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:103:42: error: cannot find type 'URLRequest' in scope
101 |     }
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
105 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:104:23: error: cannot find 'URLRequest' in scope
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
    |                       `- error: cannot find 'URLRequest' in scope
105 |         request.httpMethod = "POST"
106 |         request.httpBody = payload
[11/30] Compiling UnleashProxyClientSwift Variant.swift
[12/30] Compiling UnleashProxyClientSwift ImpressionEvent.swift
[13/30] Compiling UnleashProxyClientSwift Bucket.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/30] Emitting module UnleashProxyClientSwift
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:21:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |         environment: String? = "default",
 20 |         context: [String: String]? = nil,
 21 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         poller: Poller? = nil,
 23 |         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:212:48: error: cannot find type 'ObservableObject' in scope
210 |
211 | @available(iOS 13, tvOS 13, *)
212 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
213 |     @MainActor
214 |     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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Metrics/Metrics.swift:103:42: error: cannot find type 'URLRequest' in scope
101 |     }
102 |
103 |     func createRequest(payload: Data) -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
104 |         var request = URLRequest(url: url.appendingPathComponent("client/metrics"))
105 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:24:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         unleashUrl: URL,
 23 |         apiKey: String,
 24 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 26 |         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
[15/30] Compiling UnleashProxyClientSwift StorageProvider.swift
[16/30] Compiling UnleashProxyClientSwift Date+iso8601String.swift
[17/30] Compiling UnleashProxyClientSwift Printer.swift
[18/30] Compiling UnleashProxyClientSwift Payload.swift
[19/30] Compiling UnleashProxyClientSwift Toggle.swift
[20/30] Compiling UnleashProxyClientSwift UnleashEvent.swift
[21/30] 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:24:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         unleashUrl: URL,
 23 |         apiKey: String,
 24 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 26 |         customHeaders: [String: String] = [:],
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:117:23: error: cannot find 'URLRequest' in scope
115 |         }
116 |
117 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
118 |         request.httpMethod = "GET"
119 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:135:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
133 |             }
134 |         }
135 |         request.cachePolicy = .reloadIgnoringLocalCacheData
    |                                `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
136 |
137 |         session.perform(request) { (data, response, error) in
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:144:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
142 |             }
143 |
144 |             if httpResponse.statusCode == 304 {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
145 |                 completionHandler?(nil)
146 |                 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
[22/30] 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:24:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         unleashUrl: URL,
 23 |         apiKey: String,
 24 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 26 |         customHeaders: [String: String] = [:],
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:117:23: error: cannot find 'URLRequest' in scope
115 |         }
116 |
117 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
118 |         request.httpMethod = "GET"
119 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:135:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
133 |             }
134 |         }
135 |         request.cachePolicy = .reloadIgnoringLocalCacheData
    |                                `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
136 |
137 |         session.perform(request) { (data, response, error) in
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:144:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
142 |             }
143 |
144 |             if httpResponse.statusCode == 304 {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
145 |                 completionHandler?(nil)
146 |                 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
[23/30] 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:24:45: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         unleashUrl: URL,
 23 |         apiKey: String,
 24 |         session: PollerSession = URLSession.shared,
    |                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 25 |         storageProvider: StorageProvider = DictionaryStorageProvider(),
 26 |         customHeaders: [String: String] = [:],
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:117:23: error: cannot find 'URLRequest' in scope
115 |         }
116 |
117 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
118 |         request.httpMethod = "GET"
119 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:135:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
133 |             }
134 |         }
135 |         request.cachePolicy = .reloadIgnoringLocalCacheData
    |                                `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
136 |
137 |         session.perform(request) { (data, response, error) in
/host/spi-builder-workspace/Sources/UnleashProxyClientSwift/Poller/Poller.swift:144:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
142 |             }
143 |
144 |             if httpResponse.statusCode == 304 {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
145 |                 completionHandler?(nil)
146 |                 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
[24/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'
 19 |         environment: String? = "default",
 20 |         context: [String: String]? = nil,
 21 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         poller: Poller? = nil,
 23 |         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:212:48: error: cannot find type 'ObservableObject' in scope
210 |
211 | @available(iOS 13, tvOS 13, *)
212 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
213 |     @MainActor
214 |     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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
[25/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'
 19 |         environment: String? = "default",
 20 |         context: [String: String]? = nil,
 21 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         poller: Poller? = nil,
 23 |         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:212:48: error: cannot find type 'ObservableObject' in scope
210 |
211 | @available(iOS 13, tvOS 13, *)
212 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
213 |     @MainActor
214 |     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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
[26/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'
 19 |         environment: String? = "default",
 20 |         context: [String: String]? = nil,
 21 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         poller: Poller? = nil,
 23 |         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:212:48: error: cannot find type 'ObservableObject' in scope
210 |
211 | @available(iOS 13, tvOS 13, *)
212 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
213 |     @MainActor
214 |     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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
[27/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'
 19 |         environment: String? = "default",
 20 |         context: [String: String]? = nil,
 21 |         pollerSession: PollerSession = URLSession.shared,
    |                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |         poller: Poller? = nil,
 23 |         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:212:48: error: cannot find type 'ObservableObject' in scope
210 |
211 | @available(iOS 13, tvOS 13, *)
212 | public class UnleashClient: UnleashClientBase, ObservableObject {
    |                                                `- error: cannot find type 'ObservableObject' in scope
213 |     @MainActor
214 |     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:22:18: error: @escaping attribute only applies to function types
 20 |          clock: @escaping () -> Date,
 21 |          disableMetrics: Bool = false,
 22 |          poster: @escaping PosterHandler,
    |                  `- error: @escaping attribute only applies to function types
 23 |          url: URL,
 24 |          clientKey: String,
[28/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
 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)
[29/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
 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)
[30/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
 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)
BUILD FAILURE 6.0 linux