The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Featureflip, reference master (839974), with Swift 6.0 for macOS (SPM) on 16 Apr 2026 11:37:46 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.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/canopy-labs/featureflip-swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/canopy-labs/featureflip-swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8399740 Release v2.0.0
Cloned https://github.com/canopy-labs/featureflip-swift.git
Revision (git rev-parse @):
839974002ab83b442ccf39ce15dead49a142c0ae
SUCCESS checkout https://github.com/canopy-labs/featureflip-swift.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/canopy-labs/featureflip-swift.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/15] Emitting module Featureflip
[4/16] Compiling Featureflip FeatureflipConfig.swift
[5/16] Compiling Featureflip FlagCache.swift
[6/16] Compiling Featureflip FeatureFlagProvider.swift
[7/16] Compiling Featureflip SharedFeatureflipCore.swift
[8/16] Compiling Featureflip Protocols.swift
[9/16] Compiling Featureflip PollingDataSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/Featureflip/PollingDataSource.swift:49:14: warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
47 |
48 |     func pollOnce() async {
49 |         lock.lock()
   |              `- warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
50 |         let currentContext = context
51 |         lock.unlock()
Foundation.NSLock:11:15: note: 'lock()' declared here
 9 |     open var name: String? { get set }
10 |     public init()
11 |     open func lock()
   |               `- note: 'lock()' declared here
12 |     open func unlock()
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Featureflip/PollingDataSource.swift:51:14: warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
49 |         lock.lock()
50 |         let currentContext = context
51 |         lock.unlock()
   |              `- warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
52 |         do {
53 |             let result = try await httpClient.evaluate(context: currentContext)
Foundation.NSLock:12:15: note: 'unlock()' declared here
10 |     public init()
11 |     open func lock()
12 |     open func unlock()
   |               `- note: 'unlock()' declared here
13 | }
[10/16] Compiling Featureflip StreamingDataSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/Featureflip/StreamingDataSource.swift:115:18: warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
113 |     private func connectLoop() async {
114 |         while !Task.isCancelled {
115 |             lock.lock()
    |                  `- warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
116 |             let currentRetryCount = retryCount
117 |             let currentBackoff = backoff
Foundation.NSLock:11:15: note: 'lock()' declared here
 9 |     open var name: String? { get set }
10 |     public init()
11 |     open func lock()
   |               `- note: 'lock()' declared here
12 |     open func unlock()
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Featureflip/StreamingDataSource.swift:118:18: warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
116 |             let currentRetryCount = retryCount
117 |             let currentBackoff = backoff
118 |             lock.unlock()
    |                  `- warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
119 |
120 |             guard currentRetryCount < Self.maxRetries else { return }
Foundation.NSLock:12:15: note: 'unlock()' declared here
10 |     public init()
11 |     open func lock()
12 |     open func unlock()
   |               `- note: 'unlock()' declared here
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Featureflip/StreamingDataSource.swift:128:18: warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
126 |             }
127 |
128 |             lock.lock()
    |                  `- warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
129 |             retryCount += 1
130 |             lock.unlock()
Foundation.NSLock:11:15: note: 'lock()' declared here
 9 |     open var name: String? { get set }
10 |     public init()
11 |     open func lock()
   |               `- note: 'lock()' declared here
12 |     open func unlock()
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Featureflip/StreamingDataSource.swift:130:18: warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
128 |             lock.lock()
129 |             retryCount += 1
130 |             lock.unlock()
    |                  `- warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
131 |
132 |             try? await Task.sleep(nanoseconds: UInt64(currentBackoff * 1_000_000_000))
Foundation.NSLock:12:15: note: 'unlock()' declared here
10 |     public init()
11 |     open func lock()
12 |     open func unlock()
   |               `- note: 'unlock()' declared here
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Featureflip/StreamingDataSource.swift:134:18: warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
132 |             try? await Task.sleep(nanoseconds: UInt64(currentBackoff * 1_000_000_000))
133 |
134 |             lock.lock()
    |                  `- warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
135 |             backoff = Self.nextBackoff(backoff)
136 |             lock.unlock()
Foundation.NSLock:11:15: note: 'lock()' declared here
 9 |     open var name: String? { get set }
10 |     public init()
11 |     open func lock()
   |               `- note: 'lock()' declared here
12 |     open func unlock()
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Featureflip/StreamingDataSource.swift:136:18: warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
134 |             lock.lock()
135 |             backoff = Self.nextBackoff(backoff)
136 |             lock.unlock()
    |                  `- warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
137 |         }
138 |     }
Foundation.NSLock:12:15: note: 'unlock()' declared here
10 |     public init()
11 |     open func lock()
12 |     open func unlock()
   |               `- note: 'unlock()' declared here
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Featureflip/StreamingDataSource.swift:141:14: warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
139 |
140 |     private func connect() async throws {
141 |         lock.lock()
    |              `- warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
142 |         let currentContext = context
143 |         lock.unlock()
Foundation.NSLock:11:15: note: 'lock()' declared here
 9 |     open var name: String? { get set }
10 |     public init()
11 |     open func lock()
   |               `- note: 'lock()' declared here
12 |     open func unlock()
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Featureflip/StreamingDataSource.swift:143:14: warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
141 |         lock.lock()
142 |         let currentContext = context
143 |         lock.unlock()
    |              `- warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
144 |
145 |         guard let url = Self.buildStreamURL(baseUrl: baseUrl, clientKey: clientKey, context: currentContext) else { return }
Foundation.NSLock:12:15: note: 'unlock()' declared here
10 |     public init()
11 |     open func lock()
12 |     open func unlock()
   |               `- note: 'unlock()' declared here
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Featureflip/StreamingDataSource.swift:153:14: warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
151 |
152 |         // Reset backoff on successful connection
153 |         lock.lock()
    |              `- warning: instance method 'lock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
154 |         backoff = Self.initialBackoff
155 |         retryCount = 0
Foundation.NSLock:11:15: note: 'lock()' declared here
 9 |     open var name: String? { get set }
10 |     public init()
11 |     open func lock()
   |               `- note: 'lock()' declared here
12 |     open func unlock()
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/Featureflip/StreamingDataSource.swift:156:14: warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
154 |         backoff = Self.initialBackoff
155 |         retryCount = 0
156 |         lock.unlock()
    |              `- warning: instance method 'unlock' is unavailable from asynchronous contexts; Use async-safe scoped locking instead; this is an error in the Swift 6 language mode
157 |
158 |         var lineBuffer: [String] = []
Foundation.NSLock:12:15: note: 'unlock()' declared here
10 |     public init()
11 |     open func lock()
12 |     open func unlock()
   |               `- note: 'unlock()' declared here
13 | }
[11/16] Compiling Featureflip HttpClient.swift
[12/16] Compiling Featureflip LifecycleObserver.swift
[13/16] Compiling Featureflip EventProcessor.swift
[14/16] Compiling Featureflip FeatureflipClient.swift
[15/16] Compiling Featureflip Models.swift
[16/16] Compiling Featureflip FeatureFlag.swift
Build complete! (9.17s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Featureflip",
  "name" : "Featureflip",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "Featureflip",
      "targets" : [
        "Featureflip"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FeatureflipTests",
      "module_type" : "SwiftTarget",
      "name" : "FeatureflipTests",
      "path" : "Tests/FeatureflipTests",
      "sources" : [
        "ConfigTests.swift",
        "EventProcessorTests.swift",
        "FeatureflipClientFactoryTests.swift",
        "FeatureflipClientTests.swift",
        "FeatureflipTests.swift",
        "FlagCacheTests.swift",
        "Helpers/MockHTTPLoader.swift",
        "HttpClientTests.swift",
        "LifecycleObserverTests.swift",
        "PollingDataSourceTests.swift",
        "SharedFeatureflipCoreTests.swift",
        "StreamingDataSourceTests.swift",
        "SwiftUITests.swift"
      ],
      "target_dependencies" : [
        "Featureflip"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Featureflip",
      "module_type" : "SwiftTarget",
      "name" : "Featureflip",
      "path" : "Sources/Featureflip",
      "product_memberships" : [
        "Featureflip"
      ],
      "sources" : [
        "EventProcessor.swift",
        "FeatureflipClient.swift",
        "FeatureflipConfig.swift",
        "FlagCache.swift",
        "HttpClient.swift",
        "LifecycleObserver.swift",
        "Models.swift",
        "PollingDataSource.swift",
        "Protocols.swift",
        "SharedFeatureflipCore.swift",
        "StreamingDataSource.swift",
        "SwiftUI/FeatureFlag.swift",
        "SwiftUI/FeatureFlagProvider.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.