The Swift Package Index logo.Swift Package Index

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

Build Information

Successful build of UnleashProxyClientSwift, reference 2.4.0 (050a68), with Swift 6.1 for macOS (SPM) on 2 Aug 2025 07:31:37 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Unleash/unleash-ios-sdk.git
Reference: 2.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Unleash/unleash-ios-sdk
 * tag               2.4.0      -> FETCH_HEAD
HEAD is now at 050a68f fix: threading issues with locks (#130)
Cloned https://github.com/Unleash/unleash-ios-sdk.git
Revision (git rev-parse @):
050a68f41bcbc831d809f3022c97038f4b16c032
SUCCESS checkout https://github.com/Unleash/unleash-ios-sdk.git at 2.4.0
Fetching https://github.com/cesarferreira/SwiftEventBus.git
[1/547] Fetching swifteventbus
Fetched https://github.com/cesarferreira/SwiftEventBus.git from cache (0.81s)
Computing version for https://github.com/cesarferreira/SwiftEventBus.git
Computed https://github.com/cesarferreira/SwiftEventBus.git at 5.1.0 (1.44s)
Creating working copy for https://github.com/cesarferreira/SwiftEventBus.git
Working copy of https://github.com/cesarferreira/SwiftEventBus.git resolved at 5.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "unleash-ios-sdk",
      "name": "UnleashProxyClientSwift",
      "url": "https://github.com/Unleash/unleash-ios-sdk.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/unleash-ios-sdk",
      "dependencies": [
        {
          "identity": "swifteventbus",
          "name": "SwiftEventBus",
          "url": "https://github.com/cesarferreira/SwiftEventBus.git",
          "version": "5.1.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftEventBus",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Unleash/unleash-ios-sdk.git
[1/1661] Fetching unleash-ios-sdk
Fetched https://github.com/Unleash/unleash-ios-sdk.git from cache (0.82s)
Fetching https://github.com/cesarferreira/SwiftEventBus.git from cache
Fetched https://github.com/cesarferreira/SwiftEventBus.git from cache (0.41s)
Computing version for https://github.com/cesarferreira/SwiftEventBus.git
Computed https://github.com/cesarferreira/SwiftEventBus.git at 5.1.0 (0.47s)
Creating working copy for https://github.com/Unleash/unleash-ios-sdk.git
Working copy of https://github.com/Unleash/unleash-ios-sdk.git resolved at 2.4.0 (050a68f)
Creating working copy for https://github.com/cesarferreira/SwiftEventBus.git
Working copy of https://github.com/cesarferreira/SwiftEventBus.git resolved at 5.1.0
warning: '.resolve-product-dependencies': dependency 'unleash-ios-sdk' is not used by any target
Found 1 product dependencies
  - SwiftEventBus
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Unleash/unleash-ios-sdk.git
https://github.com/Unleash/unleash-ios-sdk.git
{
  "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" : "/Users/admin/builder/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" : "/Users/admin/builder/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",
        "UnleashThreadSafetyTest.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 ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/5] Compiling SwiftEventBus SwiftEventBus.swift
[5/5] Emitting module SwiftEventBus
[6/29] Emitting module UnleashProxyClientSwift
/Users/admin/builder/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: add '@MainActor' to make static property 'defaultDisabled' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |         name: "disabled",
37 |         enabled: false,
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/Printer.swift:12:24: 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
10 | class Printer {
11 |     private static let lock = NSLock()
12 |     private 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: add '@MainActor' to make static property '_showPrintStatements' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 |     static var showPrintStatements: Bool {
[7/31] Compiling UnleashProxyClientSwift Printer.swift
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/Printer.swift:12:24: 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
10 | class Printer {
11 |     private static let lock = NSLock()
12 |     private 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: add '@MainActor' to make static property '_showPrintStatements' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 |     static var showPrintStatements: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:6:13: warning: capture of 'completionHandler' with non-sendable type '(Data?, URLResponse?, (any Error)?) -> Void' in a '@Sendable' closure
 4 |     public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
 5 |         let task = dataTask(with: request) { (data, response, error) in
 6 |             completionHandler(data, response, error)
   |             |- warning: capture of 'completionHandler' with non-sendable type '(Data?, URLResponse?, (any Error)?) -> Void' in a '@Sendable' closure
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 7 |         }
 8 |         task.resume()
[8/31] Compiling UnleashProxyClientSwift URLSession+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/Printer.swift:12:24: 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
10 | class Printer {
11 |     private static let lock = NSLock()
12 |     private 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: add '@MainActor' to make static property '_showPrintStatements' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 |     static var showPrintStatements: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Utils/URLSession+Extensions.swift:6:13: warning: capture of 'completionHandler' with non-sendable type '(Data?, URLResponse?, (any Error)?) -> Void' in a '@Sendable' closure
 4 |     public func perform(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
 5 |         let task = dataTask(with: request) { (data, response, error) in
 6 |             completionHandler(data, response, error)
   |             |- warning: capture of 'completionHandler' with non-sendable type '(Data?, URLResponse?, (any Error)?) -> Void' in a '@Sendable' closure
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 7 |         }
 8 |         task.resume()
[9/31] Compiling UnleashProxyClientSwift utils.swift
[10/31] Compiling UnleashProxyClientSwift Version.swift
[11/31] Compiling UnleashProxyClientSwift ToggleMetrics.swift
[12/31] Compiling UnleashProxyClientSwift CustomHeadersProvider.swift
[13/31] Compiling UnleashProxyClientSwift DefaultCustomHeadersProvider.swift
[14/31] Compiling UnleashProxyClientSwift Bootstrap.swift
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:70:25: warning: capture of 'completionHandler' with non-sendable type '(Result<(Data, URLResponse), any Error>) -> Void' in a '@Sendable' closure
 68 |                 let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
 69 |                     if let error = error {
 70 |                         completionHandler(.failure(error))
    |                         |- warning: capture of 'completionHandler' with non-sendable type '(Result<(Data, URLResponse), any Error>) -> Void' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |                     } else if let data = data, let response = response {
 72 |                         completionHandler(.success((data, response)))
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:127:30: warning: capture of 'contextSnapshot' with non-sendable type 'Context' in a '@Sendable' closure
125 |                     toggleName: name,
126 |                     enabled: enabled,
127 |                     context: contextSnapshot
    |                              `- warning: capture of 'contextSnapshot' with non-sendable type 'Context' in a '@Sendable' closure
128 |                 ))
129 |             }
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:149:30: warning: capture of 'variant' with non-sendable type 'Variant' in a '@Sendable' closure
147 |                     toggleName: name,
148 |                     enabled: enabled,
149 |                     variant: variant,
    |                              `- warning: capture of 'variant' with non-sendable type 'Variant' in a '@Sendable' closure
150 |                     context: contextSnapshot
151 |                 ))
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Variant.swift:2:15: note: consider making struct 'Variant' conform to the 'Sendable' protocol
 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
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:150:30: warning: capture of 'contextSnapshot' with non-sendable type 'Context' in a '@Sendable' closure
148 |                     enabled: enabled,
149 |                     variant: variant,
150 |                     context: contextSnapshot
    |                              `- warning: capture of 'contextSnapshot' with non-sendable type 'Context' in a '@Sendable' closure
151 |                 ))
152 |             }
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:211:13: warning: capture of 'self' with non-sendable type 'UnleashClientBase' in a '@Sendable' closure
  3 |
  4 | @available(macOS 10.15, *)
  5 | public class UnleashClientBase {
    |              `- note: class 'UnleashClientBase' does not conform to the 'Sendable' protocol
  6 |     private var _context: Context
  7 |
    :
209 |
210 |         DispatchQueue.global(qos: .background).async {
211 |             self.start(Printer.showPrintStatements, completionHandler: completionHandler)
    |             `- warning: capture of 'self' with non-sendable type 'UnleashClientBase' in a '@Sendable' closure
212 |         }
213 |     }
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:211:72: warning: capture of 'completionHandler' with non-sendable type '((PollerError?) -> Void)?' in a '@Sendable' closure
209 |
210 |         DispatchQueue.global(qos: .background).async {
211 |             self.start(Printer.showPrintStatements, completionHandler: completionHandler)
    |                                                                        |- warning: capture of 'completionHandler' with non-sendable type '((PollerError?) -> Void)?' in a '@Sendable' closure
    |                                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
212 |         }
213 |     }
[15/31] Compiling UnleashProxyClientSwift UnleashProxyClientSwift.swift
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:70:25: warning: capture of 'completionHandler' with non-sendable type '(Result<(Data, URLResponse), any Error>) -> Void' in a '@Sendable' closure
 68 |                 let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
 69 |                     if let error = error {
 70 |                         completionHandler(.failure(error))
    |                         |- warning: capture of 'completionHandler' with non-sendable type '(Result<(Data, URLResponse), any Error>) -> Void' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |                     } else if let data = data, let response = response {
 72 |                         completionHandler(.success((data, response)))
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:127:30: warning: capture of 'contextSnapshot' with non-sendable type 'Context' in a '@Sendable' closure
125 |                     toggleName: name,
126 |                     enabled: enabled,
127 |                     context: contextSnapshot
    |                              `- warning: capture of 'contextSnapshot' with non-sendable type 'Context' in a '@Sendable' closure
128 |                 ))
129 |             }
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:149:30: warning: capture of 'variant' with non-sendable type 'Variant' in a '@Sendable' closure
147 |                     toggleName: name,
148 |                     enabled: enabled,
149 |                     variant: variant,
    |                              `- warning: capture of 'variant' with non-sendable type 'Variant' in a '@Sendable' closure
150 |                     context: contextSnapshot
151 |                 ))
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Variant.swift:2:15: note: consider making struct 'Variant' conform to the 'Sendable' protocol
 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
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:150:30: warning: capture of 'contextSnapshot' with non-sendable type 'Context' in a '@Sendable' closure
148 |                     enabled: enabled,
149 |                     variant: variant,
150 |                     context: contextSnapshot
    |                              `- warning: capture of 'contextSnapshot' with non-sendable type 'Context' in a '@Sendable' closure
151 |                 ))
152 |             }
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:211:13: warning: capture of 'self' with non-sendable type 'UnleashClientBase' in a '@Sendable' closure
  3 |
  4 | @available(macOS 10.15, *)
  5 | public class UnleashClientBase {
    |              `- note: class 'UnleashClientBase' does not conform to the 'Sendable' protocol
  6 |     private var _context: Context
  7 |
    :
209 |
210 |         DispatchQueue.global(qos: .background).async {
211 |             self.start(Printer.showPrintStatements, completionHandler: completionHandler)
    |             `- warning: capture of 'self' with non-sendable type 'UnleashClientBase' in a '@Sendable' closure
212 |         }
213 |     }
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:211:72: warning: capture of 'completionHandler' with non-sendable type '((PollerError?) -> Void)?' in a '@Sendable' closure
209 |
210 |         DispatchQueue.global(qos: .background).async {
211 |             self.start(Printer.showPrintStatements, completionHandler: completionHandler)
    |                                                                        |- warning: capture of 'completionHandler' with non-sendable type '((PollerError?) -> Void)?' in a '@Sendable' closure
    |                                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
212 |         }
213 |     }
[16/31] Compiling UnleashProxyClientSwift Context.swift
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:70:25: warning: capture of 'completionHandler' with non-sendable type '(Result<(Data, URLResponse), any Error>) -> Void' in a '@Sendable' closure
 68 |                 let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
 69 |                     if let error = error {
 70 |                         completionHandler(.failure(error))
    |                         |- warning: capture of 'completionHandler' with non-sendable type '(Result<(Data, URLResponse), any Error>) -> Void' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |                     } else if let data = data, let response = response {
 72 |                         completionHandler(.success((data, response)))
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:127:30: warning: capture of 'contextSnapshot' with non-sendable type 'Context' in a '@Sendable' closure
125 |                     toggleName: name,
126 |                     enabled: enabled,
127 |                     context: contextSnapshot
    |                              `- warning: capture of 'contextSnapshot' with non-sendable type 'Context' in a '@Sendable' closure
128 |                 ))
129 |             }
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:149:30: warning: capture of 'variant' with non-sendable type 'Variant' in a '@Sendable' closure
147 |                     toggleName: name,
148 |                     enabled: enabled,
149 |                     variant: variant,
    |                              `- warning: capture of 'variant' with non-sendable type 'Variant' in a '@Sendable' closure
150 |                     context: contextSnapshot
151 |                 ))
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/DTO/Variant.swift:2:15: note: consider making struct 'Variant' conform to the 'Sendable' protocol
 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
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:150:30: warning: capture of 'contextSnapshot' with non-sendable type 'Context' in a '@Sendable' closure
148 |                     enabled: enabled,
149 |                     variant: variant,
150 |                     context: contextSnapshot
    |                              `- warning: capture of 'contextSnapshot' with non-sendable type 'Context' in a '@Sendable' closure
151 |                 ))
152 |             }
/Users/admin/builder/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?
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:211:13: warning: capture of 'self' with non-sendable type 'UnleashClientBase' in a '@Sendable' closure
  3 |
  4 | @available(macOS 10.15, *)
  5 | public class UnleashClientBase {
    |              `- note: class 'UnleashClientBase' does not conform to the 'Sendable' protocol
  6 |     private var _context: Context
  7 |
    :
209 |
210 |         DispatchQueue.global(qos: .background).async {
211 |             self.start(Printer.showPrintStatements, completionHandler: completionHandler)
    |             `- warning: capture of 'self' with non-sendable type 'UnleashClientBase' in a '@Sendable' closure
212 |         }
213 |     }
/Users/admin/builder/spi-builder-workspace/Sources/UnleashProxyClientSwift/Client/UnleashProxyClientSwift.swift:211:72: warning: capture of 'completionHandler' with non-sendable type '((PollerError?) -> Void)?' in a '@Sendable' closure
209 |
210 |         DispatchQueue.global(qos: .background).async {
211 |             self.start(Printer.showPrintStatements, completionHandler: completionHandler)
    |                                                                        |- warning: capture of 'completionHandler' with non-sendable type '((PollerError?) -> Void)?' in a '@Sendable' closure
    |                                                                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
212 |         }
213 |     }
[17/31] Compiling UnleashProxyClientSwift DictionaryStorageProvider.swift
[18/31] Compiling UnleashProxyClientSwift Poller.swift
[19/31] Compiling UnleashProxyClientSwift FeatureResponse.swift
[20/31] Compiling UnleashProxyClientSwift Payload.swift
[21/31] Compiling UnleashProxyClientSwift Toggle.swift
[22/31] Compiling UnleashProxyClientSwift UnleashEvent.swift
/Users/admin/builder/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: add '@MainActor' to make static property 'defaultDisabled' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |         name: "disabled",
37 |         enabled: false,
[23/31] Compiling UnleashProxyClientSwift Variant.swift
/Users/admin/builder/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: add '@MainActor' to make static property 'defaultDisabled' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |         name: "disabled",
37 |         enabled: false,
[24/31] Compiling UnleashProxyClientSwift ImpressionEvent.swift
/Users/admin/builder/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: add '@MainActor' to make static property 'defaultDisabled' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |         name: "disabled",
37 |         enabled: false,
[25/31] Compiling UnleashProxyClientSwift StorageProvider.swift
[26/31] Compiling UnleashProxyClientSwift Date+iso8601String.swift
[27/31] Compiling UnleashProxyClientSwift PollerError.swift
[28/31] Compiling UnleashProxyClientSwift PollerSession.swift
[29/31] Compiling UnleashProxyClientSwift Bucket.swift
[30/31] Compiling UnleashProxyClientSwift Metrics.swift
[31/31] Compiling UnleashProxyClientSwift MetricsPayload.swift
Build complete! (7.37s)
Build complete.
{
  "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" : "/Users/admin/builder/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" : "/Users/admin/builder/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",
        "UnleashThreadSafetyTest.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"
}
Done.