The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

Build command unavailable

Build Log

========================================
RunAll
========================================
Builder version: 4.27.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sideeffect-io/Regulate.git
Reference: main
Initialized empty Git repository in /Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/sideeffect-io/Regulate
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "regulate",
      "name": "Regulate",
      "url": "https://github.com/sideeffect-io/Regulate.git",
      "version": "unspecified",
      "path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Regulate",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/sideeffect-io/Regulate.git
[2/76] Fetching regulate
Fetched https://github.com/sideeffect-io/Regulate.git (0.34s)
Creating working copy for https://github.com/sideeffect-io/Regulate.git
Working copy of https://github.com/sideeffect-io/Regulate.git resolved at main
warning: '.resolve-product-dependencies': dependency 'regulate' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $PWD/checkout
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.0.0.app xcrun swift build --arch arm64
Building for debugging...
[1/8] Compiling Regulate Throttler.swift
/Users/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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
[4/8] Compiling Regulate Regulator.swift
[5/8] Compiling Regulate DispatchTimeInterval+Nanoseconds.swift
[6/8] Compiling Regulate Debouncer.swift
/Users/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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)
            ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/8] Emitting module Regulate
/Users/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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 {
              ^
[8/8] Compiling Regulate Binding+Regulate.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[1/2] Compiling Regulate RegulatedButtonStyle.swift
/Users/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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: emit-module command failed with exit code 1 (use -v to see invocation)
[2/2] Emitting module Regulate
/Users/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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
BUILD FAILURE 5.9 macosSpm