The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Regulate with Swift 5.9 for macOS (SPM).

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.19.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/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-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 into spi-builder-workspace
3dbaf34cf489792e9b944be5a3aaa31e20ff5b03
SUCCESS checkout https://github.com/sideeffect-io/Regulate.git at 0.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
env DEVELOPER_DIR="/Applications/Xcode-15.0.0-Beta.app" xcrun swift build --arch arm64
Building ... (attempt 1)
Building for debugging...
[1/8] Compiling Regulate Throttler.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-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 Swift 6
            os_unfair_lock_lock(self.lock)
            ^
Darwin.os_unfair_lock_lock:2:13: note: 'os_unfair_lock_lock' declared here
public func os_unfair_lock_lock(_ lock: os_unfair_lock_t)
            ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-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 Swift 6
            os_unfair_lock_unlock(self.lock)
            ^
Darwin.os_unfair_lock_unlock:2:13: note: 'os_unfair_lock_unlock' declared here
public func os_unfair_lock_unlock(_ lock: os_unfair_lock_t)
            ^
[2/8] Compiling Regulate RegulatedButtonStyle.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUI/RegulatedButtonStyle.swift:12:4: error: 'StateObject' is only available in macOS 11.0 or newer
  @StateObject var regulator = R.init()
   ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUI/RegulatedButtonStyle.swift:11:15: note: add @available attribute to enclosing generic struct
public struct RegulatedButtonStyle<R: Regulator<Void>>: PrimitiveButtonStyle {
              ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-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
    regulator.output = { _ in configuration.trigger() }
                              ^
SwiftUI.PrimitiveButtonStyleConfiguration:2:15: note: struct 'PrimitiveButtonStyleConfiguration' does not conform to the 'Sendable' protocol
public struct PrimitiveButtonStyleConfiguration {
              ^
[3/8] Compiling Regulate Button+Regulated.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Compiling Regulate Regulator.swift
[5/8] Compiling Regulate Debouncer.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-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 Swift 6
        os_unfair_lock_lock(self.lock)
        ^
Darwin.os_unfair_lock_lock:2:13: note: 'os_unfair_lock_lock' declared here
public func os_unfair_lock_lock(_ lock: os_unfair_lock_t)
            ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-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 Swift 6
        os_unfair_lock_unlock(self.lock)
        ^
Darwin.os_unfair_lock_unlock:2:13: note: 'os_unfair_lock_unlock' declared here
public func os_unfair_lock_unlock(_ lock: os_unfair_lock_t)
            ^
[6/8] Compiling Regulate DispatchTimeInterval+Nanoseconds.swift
[7/8] Compiling Regulate Binding+Regulate.swift
[8/8] Emitting module Regulate
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUI/RegulatedButtonStyle.swift:12:4: error: 'StateObject' is only available in macOS 11.0 or newer
  @StateObject var regulator = R.init()
   ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUI/RegulatedButtonStyle.swift:11:15: note: add @available attribute to enclosing generic struct
public struct RegulatedButtonStyle<R: Regulator<Void>>: PrimitiveButtonStyle {
              ^
error: fatalError
Retrying in 0 seconds ...
Building ... (attempt 2)
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module Regulate
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUI/RegulatedButtonStyle.swift:12:4: error: 'StateObject' is only available in macOS 11.0 or newer
  @StateObject var regulator = R.init()
   ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUI/RegulatedButtonStyle.swift:11:15: note: add @available attribute to enclosing generic struct
public struct RegulatedButtonStyle<R: Regulator<Void>>: PrimitiveButtonStyle {
              ^
[2/2] Compiling Regulate RegulatedButtonStyle.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUI/RegulatedButtonStyle.swift:12:4: error: 'StateObject' is only available in macOS 11.0 or newer
  @StateObject var regulator = R.init()
   ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUI/RegulatedButtonStyle.swift:11:15: note: add @available attribute to enclosing generic struct
public struct RegulatedButtonStyle<R: Regulator<Void>>: PrimitiveButtonStyle {
              ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-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
    regulator.output = { _ in configuration.trigger() }
                              ^
SwiftUI.PrimitiveButtonStyleConfiguration:2:15: note: struct 'PrimitiveButtonStyleConfiguration' does not conform to the 'Sendable' protocol
public struct PrimitiveButtonStyleConfiguration {
              ^
error: fatalError
Retrying in 0 seconds ...
BUILD FAILURE 5.9 macosSpm

Build Machine: Mac 5