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

Failed to build Regulate, reference 0.2.0 (3dbaf3), with Swift 6.2 (beta) for macOS (SPM) on 19 Jun 2025 23:01:55 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sideeffect-io/Regulate.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sideeffect-io/Regulate
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 3dbaf34 Merge pull request #1 from sideeffect-io/feature/task-extensions
Cloned https://github.com/sideeffect-io/Regulate.git
Revision (git rev-parse @):
3dbaf34cf489792e9b944be5a3aaa31e20ff5b03
SUCCESS checkout https://github.com/sideeffect-io/Regulate.git at 0.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/sideeffect-io/Regulate.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/10] Compiling Regulate Throttler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Throttler.swift:132:13: warning: global function 'os_unfair_lock_lock' is unavailable from asynchronous contexts; Use OSAllocatedUnfairLock.performWhileLocked() for async-safe scoped locking; this is an error in the Swift 6 language mode
130 |             var hasTickedOutput: StateMachine.HasTickedOutput
131 |
132 |             os_unfair_lock_lock(self.lock)
    |             `- warning: global function 'os_unfair_lock_lock' is unavailable from asynchronous contexts; Use OSAllocatedUnfairLock.performWhileLocked() for async-safe scoped locking; this is an error in the Swift 6 language mode
133 |             hasTickedOutput = self.stateMachine.hasTicked()
134 |             os_unfair_lock_unlock(self.lock)
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/usr/include/os/lock.h:115:6: note: 'os_unfair_lock_lock' declared here
113 | OS_EXPORT OS_NOTHROW OS_NONNULL_ALL
114 | OS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use OSAllocatedUnfairLock.performWhileLocked() for async-safe scoped locking")
115 | void os_unfair_lock_lock(os_unfair_lock_t lock);
    |      `- note: 'os_unfair_lock_lock' declared here
116 |
117 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Throttler.swift:134:13: warning: global function 'os_unfair_lock_unlock' is unavailable from asynchronous contexts; Use OSAllocatedUnfairLock.performWhileLocked() for async-safe scoped locking; this is an error in the Swift 6 language mode
132 |             os_unfair_lock_lock(self.lock)
133 |             hasTickedOutput = self.stateMachine.hasTicked()
134 |             os_unfair_lock_unlock(self.lock)
    |             `- warning: global function 'os_unfair_lock_unlock' is unavailable from asynchronous contexts; Use OSAllocatedUnfairLock.performWhileLocked() for async-safe scoped locking; this is an error in the Swift 6 language mode
135 |
136 |             switch hasTickedOutput {
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/usr/include/os/lock.h:155:6: note: 'os_unfair_lock_unlock' declared here
153 | OS_EXPORT OS_NOTHROW OS_NONNULL_ALL
154 | OS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use OSAllocatedUnfairLock.performWhileLocked() for async-safe scoped locking")
155 | void os_unfair_lock_unlock(os_unfair_lock_t lock);
    |      `- note: 'os_unfair_lock_unlock' declared here
156 |
157 | /*!
[4/10] Compiling Regulate DispatchTimeInterval+Nanoseconds.swift
[5/10] Compiling Regulate RegulatedButtonStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI/RegulatedButtonStyle.swift:12:4: error: 'StateObject' is only available in macOS 11.0 or newer
 9 | import SwiftUI
10 |
11 | public struct RegulatedButtonStyle<R: Regulator<Void>>: PrimitiveButtonStyle {
   |               `- note: add @available attribute to enclosing generic struct
12 |   @StateObject var regulator = R.init()
   |    `- error: 'StateObject' is only available in macOS 11.0 or newer
13 |   let dueTime: DispatchTimeInterval
14 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI/RegulatedButtonStyle.swift:21:31: warning: capture of 'configuration' with non-sendable type 'RegulatedButtonStyle<R>.Configuration' (aka 'PrimitiveButtonStyleConfiguration') in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
19 |   public func makeBody(configuration: Configuration) -> some View {
20 |     regulator.dueTime = self.dueTime
21 |     regulator.output = { _ in configuration.trigger() }
   |                               `- warning: capture of 'configuration' with non-sendable type 'RegulatedButtonStyle<R>.Configuration' (aka 'PrimitiveButtonStyleConfiguration') in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
22 |
23 |     if #available(iOS 15.0, macOS 12.0, *) {
SwiftUI.PrimitiveButtonStyleConfiguration:2:15: note: struct 'PrimitiveButtonStyleConfiguration' does not conform to the 'Sendable' protocol
 1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
 2 | public struct PrimitiveButtonStyleConfiguration {
   |               `- note: struct 'PrimitiveButtonStyleConfiguration' does not conform to the 'Sendable' protocol
 3 |     @MainActor @preconcurrency public struct Label : View {
 4 |         nonisolated public static func _makeView(view: _GraphValue<PrimitiveButtonStyleConfiguration.Label>, inputs: _ViewInputs) -> _ViewOutputs
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/10] Compiling Regulate Button+Regulated.swift
[7/10] Compiling Regulate Regulator.swift
[8/10] Compiling Regulate Debouncer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Debouncer.swift:125:9: warning: global function 'os_unfair_lock_lock' is unavailable from asynchronous contexts; Use OSAllocatedUnfairLock.performWhileLocked() for async-safe scoped locking; this is an error in the Swift 6 language mode
123 |
124 |         var output: StateMachine.HasDebouncedOutput
125 |         os_unfair_lock_lock(self.lock)
    |         `- warning: global function 'os_unfair_lock_lock' is unavailable from asynchronous contexts; Use OSAllocatedUnfairLock.performWhileLocked() for async-safe scoped locking; this is an error in the Swift 6 language mode
126 |         output = self.stateMachine.hasDebouncedCurrentValue()
127 |         os_unfair_lock_unlock(self.lock)
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/usr/include/os/lock.h:115:6: note: 'os_unfair_lock_lock' declared here
113 | OS_EXPORT OS_NOTHROW OS_NONNULL_ALL
114 | OS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use OSAllocatedUnfairLock.performWhileLocked() for async-safe scoped locking")
115 | void os_unfair_lock_lock(os_unfair_lock_t lock);
    |      `- note: 'os_unfair_lock_lock' declared here
116 |
117 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/Debouncer.swift:127:9: warning: global function 'os_unfair_lock_unlock' is unavailable from asynchronous contexts; Use OSAllocatedUnfairLock.performWhileLocked() for async-safe scoped locking; this is an error in the Swift 6 language mode
125 |         os_unfair_lock_lock(self.lock)
126 |         output = self.stateMachine.hasDebouncedCurrentValue()
127 |         os_unfair_lock_unlock(self.lock)
    |         `- warning: global function 'os_unfair_lock_unlock' is unavailable from asynchronous contexts; Use OSAllocatedUnfairLock.performWhileLocked() for async-safe scoped locking; this is an error in the Swift 6 language mode
128 |
129 |         switch output {
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/usr/include/os/lock.h:155:6: note: 'os_unfair_lock_unlock' declared here
153 | OS_EXPORT OS_NOTHROW OS_NONNULL_ALL
154 | OS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use OSAllocatedUnfairLock.performWhileLocked() for async-safe scoped locking")
155 | void os_unfair_lock_unlock(os_unfair_lock_t lock);
    |      `- note: 'os_unfair_lock_unlock' declared here
156 |
157 | /*!
[9/10] Compiling Regulate Binding+Regulate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI/Binding+Regulate.swift:21:7: warning: capture of non-sendable type '(some Regulator<Value>).Type' in an isolated closure
19 |     regulator.output = set
20 |     self.init(get: get) { value in
21 |       regulator.push(value)
   |       `- warning: capture of non-sendable type '(some Regulator<Value>).Type' in an isolated closure
22 |     }
23 |   }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI/Binding+Regulate.swift:15:5: warning: capture of non-sendable type '(some Regulator<Value>).Type' in an isolated closure
13 | public extension Binding {
14 |   init(
15 |     regulator: some Regulator<Value>,
   |     `- warning: capture of non-sendable type '(some Regulator<Value>).Type' in an isolated closure
16 |     get: @escaping () -> Value,
17 |     set: @Sendable @escaping (Value) async -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI/Binding+Regulate.swift:41:7: warning: capture of non-sendable type '(some Regulator<Value>).Type' in an isolated closure
39 |     } set: { value in
40 |       self.wrappedValue = value
41 |       regulator.push(value)
   |       `- warning: capture of non-sendable type '(some Regulator<Value>).Type' in an isolated closure
42 |     }
43 |   }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI/Binding+Regulate.swift:32:5: warning: capture of non-sendable type '(some Regulator<Value>).Type' in an isolated closure
30 |   /// - Returns: the Binding wrapping the base binding
31 |   func perform(
32 |     regulator: some Regulator<Value>,
   |     `- warning: capture of non-sendable type '(some Regulator<Value>).Type' in an isolated closure
33 |     _ block: @Sendable @escaping (Value) async -> Void
34 |   ) -> Self {
[10/10] Emitting module Regulate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUI/RegulatedButtonStyle.swift:12:4: error: 'StateObject' is only available in macOS 11.0 or newer
 9 | import SwiftUI
10 |
11 | public struct RegulatedButtonStyle<R: Regulator<Void>>: PrimitiveButtonStyle {
   |               `- note: add @available attribute to enclosing generic struct
12 |   @StateObject var regulator = R.init()
   |    `- error: 'StateObject' is only available in macOS 11.0 or newer
13 |   let dueTime: DispatchTimeInterval
14 |
BUILD FAILURE 6.2 macosSpm