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 OpenFeature, reference 0.4.0 (8455ef), with Swift 6.0 for macOS (SPM) on 6 Aug 2025 12:33:19 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.65.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/open-feature/swift-sdk.git
Reference: 0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/open-feature/swift-sdk
 * tag               0.4.0      -> FETCH_HEAD
HEAD is now at 8455efe chore(main): release 0.4.0 (#71)
Cloned https://github.com/open-feature/swift-sdk.git
Revision (git rev-parse @):
8455efe44541420cfb5ffcf6d95422361e8209a8
SUCCESS checkout https://github.com/open-feature/swift-sdk.git at 0.4.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/open-feature/swift-sdk.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/30] Emitting module OpenFeature
[4/33] Compiling OpenFeature Value.swift
[5/33] Compiling OpenFeature ErrorCode.swift
[6/33] Compiling OpenFeature OpenFeatureError.swift
[7/33] Compiling OpenFeature BaseEvaluation.swift
[8/33] Compiling OpenFeature Client.swift
[9/33] Compiling OpenFeature ClientMetadata.swift
[10/33] Compiling OpenFeature ProviderEvaluation.swift
[11/33] Compiling OpenFeature ProviderEvents.swift
[12/33] Compiling OpenFeature ProviderMetadata.swift
[13/33] Compiling OpenFeature Features.swift
[14/33] Compiling OpenFeature FlagEvaluationDetails.swift
[15/33] Compiling OpenFeature FlagEvaluationOptions.swift
[16/33] Compiling OpenFeature EvaluationContext.swift
[17/33] Compiling OpenFeature EventHandler.swift
[18/33] Compiling OpenFeature Features+Defaults.swift
[19/33] Compiling OpenFeature OpenFeatureClient.swift
[20/33] Compiling OpenFeature FeatureProvider.swift
[21/33] Compiling OpenFeature NoOpProvider.swift
[22/33] Compiling OpenFeature HookContext.swift
[23/33] Compiling OpenFeature HookSupport.swift
[24/33] Compiling OpenFeature ImmutableContext.swift
[25/33] Compiling OpenFeature ImmutableStructure.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:41:27: warning: capture of 'self' with non-sendable type 'OpenFeatureAPI' in a `@Sendable` closure
  4 | /// A global singleton which holds base configuration for the OpenFeature library.
  5 | /// Configuration here will be shared across all ``Client``s.
  6 | public class OpenFeatureAPI {
    |              `- note: class 'OpenFeatureAPI' does not conform to the 'Sendable' protocol
  7 |     private let eventHandler = EventHandler()
  8 |     private let queue = DispatchQueue(label: "com.openfeature.providerDescriptor.queue")
    :
 39 |             queue.async {
 40 |                 Task {
 41 |                     await self.setProviderInternal(provider: provider, initialContext: initialContext)
    |                           `- warning: capture of 'self' with non-sendable type 'OpenFeatureAPI' in a `@Sendable` closure
 42 |                     continuation.resume()
 43 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:41:62: warning: capture of 'provider' with non-sendable type 'any FeatureProvider' in a `@Sendable` closure
 39 |             queue.async {
 40 |                 Task {
 41 |                     await self.setProviderInternal(provider: provider, initialContext: initialContext)
    |                                                              `- warning: capture of 'provider' with non-sendable type 'any FeatureProvider' in a `@Sendable` closure
 42 |                     continuation.resume()
 43 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/Provider/FeatureProvider.swift:4:17: note: protocol 'FeatureProvider' does not conform to the 'Sendable' protocol
 2 |
 3 | /// The interface implemented by upstream flag providers to resolve flags for their service.
 4 | public protocol FeatureProvider: EventPublisher {
   |                 `- note: protocol 'FeatureProvider' does not conform to the 'Sendable' protocol
 5 |     var hooks: [any Hook] { get }
 6 |     var metadata: ProviderMetadata { get }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:41:88: warning: capture of 'initialContext' with non-sendable type '(any EvaluationContext)?' in a `@Sendable` closure
 39 |             queue.async {
 40 |                 Task {
 41 |                     await self.setProviderInternal(provider: provider, initialContext: initialContext)
    |                                                                                        `- warning: capture of 'initialContext' with non-sendable type '(any EvaluationContext)?' in a `@Sendable` closure
 42 |                     continuation.resume()
 43 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/EvaluationContext.swift:4:17: note: protocol 'EvaluationContext' does not conform to the 'Sendable' protocol
2 |
3 | /// Container for arbitrary contextual data that can be used as a basis for dynamic evaluation.
4 | public protocol EvaluationContext: Structure {
  |                 `- note: protocol 'EvaluationContext' does not conform to the 'Sendable' protocol
5 |     func getTargetingKey() -> String
6 |     func deepCopy() -> EvaluationContext
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:95:27: warning: capture of 'self' with non-sendable type 'OpenFeatureAPI' in a `@Sendable` closure
  4 | /// A global singleton which holds base configuration for the OpenFeature library.
  5 | /// Configuration here will be shared across all ``Client``s.
  6 | public class OpenFeatureAPI {
    |              `- note: class 'OpenFeatureAPI' does not conform to the 'Sendable' protocol
  7 |     private let eventHandler = EventHandler()
  8 |     private let queue = DispatchQueue(label: "com.openfeature.providerDescriptor.queue")
    :
 93 |             queue.async {
 94 |                 Task {
 95 |                     await self.updateContext(evaluationContext: evaluationContext)
    |                           `- warning: capture of 'self' with non-sendable type 'OpenFeatureAPI' in a `@Sendable` closure
 96 |                     continuation.resume()
 97 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:95:65: warning: capture of 'evaluationContext' with non-sendable type 'any EvaluationContext' in a `@Sendable` closure
 93 |             queue.async {
 94 |                 Task {
 95 |                     await self.updateContext(evaluationContext: evaluationContext)
    |                                                                 `- warning: capture of 'evaluationContext' with non-sendable type 'any EvaluationContext' in a `@Sendable` closure
 96 |                     continuation.resume()
 97 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/EvaluationContext.swift:4:17: note: protocol 'EvaluationContext' does not conform to the 'Sendable' protocol
2 |
3 | /// Container for arbitrary contextual data that can be used as a basis for dynamic evaluation.
4 | public protocol EvaluationContext: Structure {
  |                 `- note: protocol 'EvaluationContext' does not conform to the 'Sendable' protocol
5 |     func getTargetingKey() -> String
6 |     func deepCopy() -> EvaluationContext
[26/33] Compiling OpenFeature MutableStructure.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:41:27: warning: capture of 'self' with non-sendable type 'OpenFeatureAPI' in a `@Sendable` closure
  4 | /// A global singleton which holds base configuration for the OpenFeature library.
  5 | /// Configuration here will be shared across all ``Client``s.
  6 | public class OpenFeatureAPI {
    |              `- note: class 'OpenFeatureAPI' does not conform to the 'Sendable' protocol
  7 |     private let eventHandler = EventHandler()
  8 |     private let queue = DispatchQueue(label: "com.openfeature.providerDescriptor.queue")
    :
 39 |             queue.async {
 40 |                 Task {
 41 |                     await self.setProviderInternal(provider: provider, initialContext: initialContext)
    |                           `- warning: capture of 'self' with non-sendable type 'OpenFeatureAPI' in a `@Sendable` closure
 42 |                     continuation.resume()
 43 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:41:62: warning: capture of 'provider' with non-sendable type 'any FeatureProvider' in a `@Sendable` closure
 39 |             queue.async {
 40 |                 Task {
 41 |                     await self.setProviderInternal(provider: provider, initialContext: initialContext)
    |                                                              `- warning: capture of 'provider' with non-sendable type 'any FeatureProvider' in a `@Sendable` closure
 42 |                     continuation.resume()
 43 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/Provider/FeatureProvider.swift:4:17: note: protocol 'FeatureProvider' does not conform to the 'Sendable' protocol
 2 |
 3 | /// The interface implemented by upstream flag providers to resolve flags for their service.
 4 | public protocol FeatureProvider: EventPublisher {
   |                 `- note: protocol 'FeatureProvider' does not conform to the 'Sendable' protocol
 5 |     var hooks: [any Hook] { get }
 6 |     var metadata: ProviderMetadata { get }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:41:88: warning: capture of 'initialContext' with non-sendable type '(any EvaluationContext)?' in a `@Sendable` closure
 39 |             queue.async {
 40 |                 Task {
 41 |                     await self.setProviderInternal(provider: provider, initialContext: initialContext)
    |                                                                                        `- warning: capture of 'initialContext' with non-sendable type '(any EvaluationContext)?' in a `@Sendable` closure
 42 |                     continuation.resume()
 43 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/EvaluationContext.swift:4:17: note: protocol 'EvaluationContext' does not conform to the 'Sendable' protocol
2 |
3 | /// Container for arbitrary contextual data that can be used as a basis for dynamic evaluation.
4 | public protocol EvaluationContext: Structure {
  |                 `- note: protocol 'EvaluationContext' does not conform to the 'Sendable' protocol
5 |     func getTargetingKey() -> String
6 |     func deepCopy() -> EvaluationContext
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:95:27: warning: capture of 'self' with non-sendable type 'OpenFeatureAPI' in a `@Sendable` closure
  4 | /// A global singleton which holds base configuration for the OpenFeature library.
  5 | /// Configuration here will be shared across all ``Client``s.
  6 | public class OpenFeatureAPI {
    |              `- note: class 'OpenFeatureAPI' does not conform to the 'Sendable' protocol
  7 |     private let eventHandler = EventHandler()
  8 |     private let queue = DispatchQueue(label: "com.openfeature.providerDescriptor.queue")
    :
 93 |             queue.async {
 94 |                 Task {
 95 |                     await self.updateContext(evaluationContext: evaluationContext)
    |                           `- warning: capture of 'self' with non-sendable type 'OpenFeatureAPI' in a `@Sendable` closure
 96 |                     continuation.resume()
 97 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:95:65: warning: capture of 'evaluationContext' with non-sendable type 'any EvaluationContext' in a `@Sendable` closure
 93 |             queue.async {
 94 |                 Task {
 95 |                     await self.updateContext(evaluationContext: evaluationContext)
    |                                                                 `- warning: capture of 'evaluationContext' with non-sendable type 'any EvaluationContext' in a `@Sendable` closure
 96 |                     continuation.resume()
 97 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/EvaluationContext.swift:4:17: note: protocol 'EvaluationContext' does not conform to the 'Sendable' protocol
2 |
3 | /// Container for arbitrary contextual data that can be used as a basis for dynamic evaluation.
4 | public protocol EvaluationContext: Structure {
  |                 `- note: protocol 'EvaluationContext' does not conform to the 'Sendable' protocol
5 |     func getTargetingKey() -> String
6 |     func deepCopy() -> EvaluationContext
[27/33] Compiling OpenFeature OpenFeatureAPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:41:27: warning: capture of 'self' with non-sendable type 'OpenFeatureAPI' in a `@Sendable` closure
  4 | /// A global singleton which holds base configuration for the OpenFeature library.
  5 | /// Configuration here will be shared across all ``Client``s.
  6 | public class OpenFeatureAPI {
    |              `- note: class 'OpenFeatureAPI' does not conform to the 'Sendable' protocol
  7 |     private let eventHandler = EventHandler()
  8 |     private let queue = DispatchQueue(label: "com.openfeature.providerDescriptor.queue")
    :
 39 |             queue.async {
 40 |                 Task {
 41 |                     await self.setProviderInternal(provider: provider, initialContext: initialContext)
    |                           `- warning: capture of 'self' with non-sendable type 'OpenFeatureAPI' in a `@Sendable` closure
 42 |                     continuation.resume()
 43 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:41:62: warning: capture of 'provider' with non-sendable type 'any FeatureProvider' in a `@Sendable` closure
 39 |             queue.async {
 40 |                 Task {
 41 |                     await self.setProviderInternal(provider: provider, initialContext: initialContext)
    |                                                              `- warning: capture of 'provider' with non-sendable type 'any FeatureProvider' in a `@Sendable` closure
 42 |                     continuation.resume()
 43 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/Provider/FeatureProvider.swift:4:17: note: protocol 'FeatureProvider' does not conform to the 'Sendable' protocol
 2 |
 3 | /// The interface implemented by upstream flag providers to resolve flags for their service.
 4 | public protocol FeatureProvider: EventPublisher {
   |                 `- note: protocol 'FeatureProvider' does not conform to the 'Sendable' protocol
 5 |     var hooks: [any Hook] { get }
 6 |     var metadata: ProviderMetadata { get }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:41:88: warning: capture of 'initialContext' with non-sendable type '(any EvaluationContext)?' in a `@Sendable` closure
 39 |             queue.async {
 40 |                 Task {
 41 |                     await self.setProviderInternal(provider: provider, initialContext: initialContext)
    |                                                                                        `- warning: capture of 'initialContext' with non-sendable type '(any EvaluationContext)?' in a `@Sendable` closure
 42 |                     continuation.resume()
 43 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/EvaluationContext.swift:4:17: note: protocol 'EvaluationContext' does not conform to the 'Sendable' protocol
2 |
3 | /// Container for arbitrary contextual data that can be used as a basis for dynamic evaluation.
4 | public protocol EvaluationContext: Structure {
  |                 `- note: protocol 'EvaluationContext' does not conform to the 'Sendable' protocol
5 |     func getTargetingKey() -> String
6 |     func deepCopy() -> EvaluationContext
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:95:27: warning: capture of 'self' with non-sendable type 'OpenFeatureAPI' in a `@Sendable` closure
  4 | /// A global singleton which holds base configuration for the OpenFeature library.
  5 | /// Configuration here will be shared across all ``Client``s.
  6 | public class OpenFeatureAPI {
    |              `- note: class 'OpenFeatureAPI' does not conform to the 'Sendable' protocol
  7 |     private let eventHandler = EventHandler()
  8 |     private let queue = DispatchQueue(label: "com.openfeature.providerDescriptor.queue")
    :
 93 |             queue.async {
 94 |                 Task {
 95 |                     await self.updateContext(evaluationContext: evaluationContext)
    |                           `- warning: capture of 'self' with non-sendable type 'OpenFeatureAPI' in a `@Sendable` closure
 96 |                     continuation.resume()
 97 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:95:65: warning: capture of 'evaluationContext' with non-sendable type 'any EvaluationContext' in a `@Sendable` closure
 93 |             queue.async {
 94 |                 Task {
 95 |                     await self.updateContext(evaluationContext: evaluationContext)
    |                                                                 `- warning: capture of 'evaluationContext' with non-sendable type 'any EvaluationContext' in a `@Sendable` closure
 96 |                     continuation.resume()
 97 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/EvaluationContext.swift:4:17: note: protocol 'EvaluationContext' does not conform to the 'Sendable' protocol
2 |
3 | /// Container for arbitrary contextual data that can be used as a basis for dynamic evaluation.
4 | public protocol EvaluationContext: Structure {
  |                 `- note: protocol 'EvaluationContext' does not conform to the 'Sendable' protocol
5 |     func getTargetingKey() -> String
6 |     func deepCopy() -> EvaluationContext
[28/33] Compiling OpenFeature FlagMetadataValue.swift
[29/33] Compiling OpenFeature FlagValueType.swift
[30/33] Compiling OpenFeature Hook.swift
[31/33] Compiling OpenFeature ProviderStatus.swift
[32/33] Compiling OpenFeature Reason.swift
[33/33] Compiling OpenFeature Structure.swift
Build complete! (5.33s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OpenFeature",
  "name" : "OpenFeature",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenFeature",
      "targets" : [
        "OpenFeature"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenFeatureTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenFeatureTests",
      "path" : "Tests/OpenFeatureTests",
      "sources" : [
        "DeveloperExperienceTests.swift",
        "EvalContextTests.swift",
        "FlagEvaluationTests.swift",
        "Helpers/AlwaysBrokenProvider.swift",
        "Helpers/BooleanHookMock.swift",
        "Helpers/DoSomethingProvider.swift",
        "Helpers/IntHookMock.swift",
        "Helpers/MutableContext.swift",
        "Helpers/StaggeredProvider.swift",
        "Helpers/ThrowingProvider.swift",
        "HookSpecTests.swift",
        "HookSupportTests.swift",
        "ImmutableContextTests.swift",
        "OpenFeatureClientTests.swift",
        "ProviderSpecTests.swift",
        "StructureTests.swift",
        "ValueTests.swift"
      ],
      "target_dependencies" : [
        "OpenFeature"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenFeature",
      "module_type" : "SwiftTarget",
      "name" : "OpenFeature",
      "path" : "Sources/OpenFeature",
      "product_memberships" : [
        "OpenFeature"
      ],
      "sources" : [
        "BaseEvaluation.swift",
        "Client.swift",
        "ClientMetadata.swift",
        "EvaluationContext.swift",
        "EventHandler.swift",
        "Features+Defaults.swift",
        "Features.swift",
        "FlagEvaluationDetails.swift",
        "FlagEvaluationOptions.swift",
        "FlagMetadataValue.swift",
        "FlagValueType.swift",
        "Hook.swift",
        "HookContext.swift",
        "HookSupport.swift",
        "ImmutableContext.swift",
        "ImmutableStructure.swift",
        "MutableStructure.swift",
        "OpenFeatureAPI.swift",
        "OpenFeatureClient.swift",
        "Provider/FeatureProvider.swift",
        "Provider/NoOpProvider.swift",
        "Provider/ProviderEvaluation.swift",
        "Provider/ProviderEvents.swift",
        "Provider/ProviderMetadata.swift",
        "Provider/ProviderStatus.swift",
        "Reason.swift",
        "Structure.swift",
        "Value.swift",
        "exceptions/ErrorCode.swift",
        "exceptions/OpenFeatureError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.