Build Information
Successful build of OpenFeature, reference main (a21214
), with Swift 6.0 for macOS (SPM) on 10 Sep 2024 20:45:56 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/open-feature/swift-sdk.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/open-feature/swift-sdk
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a21214e fix: remove compilation warnings (#47)
Cloned https://github.com/open-feature/swift-sdk.git
Revision (git rev-parse @):
a21214eb7d6ad7b5942d41097dd776032d635827
SUCCESS checkout https://github.com/open-feature/swift-sdk.git at main
========================================
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.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.txt
[3/29] Emitting module OpenFeature
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:20:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OpenFeatureAPI' may have shared mutable state; this is an error in the Swift 6 language mode
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 var _provider: FeatureProvider? {
8 | get {
:
18 |
19 | /// The ``OpenFeatureAPI`` singleton
20 | static public let shared = OpenFeatureAPI()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OpenFeatureAPI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
21 |
22 | public init() {
[4/31] Compiling OpenFeature BaseEvaluation.swift
[5/31] Compiling OpenFeature Client.swift
[6/31] Compiling OpenFeature ClientMetadata.swift
[7/31] Compiling OpenFeature ErrorCode.swift
[8/31] Compiling OpenFeature OpenFeatureError.swift
[9/31] Compiling OpenFeature Structure.swift
[10/31] Compiling OpenFeature Value.swift
[11/31] Compiling OpenFeature Features.swift
[12/31] Compiling OpenFeature FlagEvaluationDetails.swift
[13/31] Compiling OpenFeature FlagEvaluationOptions.swift
[14/31] Compiling OpenFeature ProviderEvents.swift
[15/31] Compiling OpenFeature ProviderMetadata.swift
[16/31] Compiling OpenFeature Reason.swift
[17/31] Compiling OpenFeature FlagMetadataValue.swift
[18/31] Compiling OpenFeature FlagValueType.swift
[19/31] Compiling OpenFeature Hook.swift
[20/31] Compiling OpenFeature FeatureProvider.swift
[21/31] Compiling OpenFeature NoOpProvider.swift
[22/31] Compiling OpenFeature ProviderEvaluation.swift
[23/31] Compiling OpenFeature EvaluationContext.swift
[24/31] Compiling OpenFeature EventHandler.swift
[25/31] Compiling OpenFeature Features+Defaults.swift
[26/31] Compiling OpenFeature MutableStructure.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:20:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OpenFeatureAPI' may have shared mutable state; this is an error in the Swift 6 language mode
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 var _provider: FeatureProvider? {
8 | get {
:
18 |
19 | /// The ``OpenFeatureAPI`` singleton
20 | static public let shared = OpenFeatureAPI()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OpenFeatureAPI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
21 |
22 | public init() {
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:95:20: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
93 |
94 | public func setProviderAndWait(provider: FeatureProvider, initialContext: EvaluationContext?) async {
95 | let task = Task {
| `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
96 | var holder: [AnyCancellable] = []
97 | await withCheckedContinuation { continuation in
[27/31] Compiling OpenFeature OpenFeatureAPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:20:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OpenFeatureAPI' may have shared mutable state; this is an error in the Swift 6 language mode
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 var _provider: FeatureProvider? {
8 | get {
:
18 |
19 | /// The ``OpenFeatureAPI`` singleton
20 | static public let shared = OpenFeatureAPI()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OpenFeatureAPI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
21 |
22 | public init() {
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:95:20: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
93 |
94 | public func setProviderAndWait(provider: FeatureProvider, initialContext: EvaluationContext?) async {
95 | let task = Task {
| `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
96 | var holder: [AnyCancellable] = []
97 | await withCheckedContinuation { continuation in
[28/31] Compiling OpenFeature OpenFeatureClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:20:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OpenFeatureAPI' may have shared mutable state; this is an error in the Swift 6 language mode
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 var _provider: FeatureProvider? {
8 | get {
:
18 |
19 | /// The ``OpenFeatureAPI`` singleton
20 | static public let shared = OpenFeatureAPI()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OpenFeatureAPI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
21 |
22 | public init() {
/Users/admin/builder/spi-builder-workspace/Sources/OpenFeature/OpenFeatureAPI.swift:95:20: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
93 |
94 | public func setProviderAndWait(provider: FeatureProvider, initialContext: EvaluationContext?) async {
95 | let task = Task {
| `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
96 | var holder: [AnyCancellable] = []
97 | await withCheckedContinuation { continuation in
[29/31] Compiling OpenFeature HookContext.swift
[30/31] Compiling OpenFeature HookSupport.swift
[31/31] Compiling OpenFeature MutableContext.swift
Build complete! (15.32s)
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" : "12.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/InjectableEventHandlerProvider.swift",
"Helpers/IntHookMock.swift",
"HookSpecTests.swift",
"HookSupportTests.swift",
"OpenFeatureClientTests.swift",
"ProviderEventsTests.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",
"MutableContext.swift",
"MutableStructure.swift",
"OpenFeatureAPI.swift",
"OpenFeatureClient.swift",
"Provider/FeatureProvider.swift",
"Provider/NoOpProvider.swift",
"Provider/ProviderEvaluation.swift",
"Provider/ProviderEvents.swift",
"Provider/ProviderMetadata.swift",
"Reason.swift",
"Structure.swift",
"Value.swift",
"exceptions/ErrorCode.swift",
"exceptions/OpenFeatureError.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.