This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

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

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.28.9
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sideeffect-io/Regulate.git
Reference: main
Initialized empty Git repository in /Users/admin/builds/vMd7uqzK/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.8
Building package at path:  $workDir
https://github.com/sideeffect-io/Regulate.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/7] Compiling Regulate Debouncer.swift
/Users/admin/builds/vMd7uqzK/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/vMd7uqzK/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)
            ^
[2/7] Compiling Regulate Regulator.swift
/Users/admin/builds/vMd7uqzK/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/vMd7uqzK/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)
            ^
[3/7] Compiling Regulate DispatchTimeInterval+Nanoseconds.swift
[4/7] Compiling Regulate Binding+Regulate.swift
[5/7] Emitting module Regulate
/Users/admin/builds/vMd7uqzK/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/vMd7uqzK/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 {
              ^
[6/7] Compiling Regulate Button+Regulated.swift
/Users/admin/builds/vMd7uqzK/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/vMd7uqzK/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 {
              ^
[7/7] Compiling Regulate RegulatedButtonStyle.swift
/Users/admin/builds/vMd7uqzK/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/vMd7uqzK/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 Throttler.swift
/Users/admin/builds/vMd7uqzK/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/vMd7uqzK/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)
            ^
[0/1] Planning build
Building for debugging...
[1/3] Compiling Regulate RegulatedButtonStyle.swift
/Users/admin/builds/vMd7uqzK/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/vMd7uqzK/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: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Compiling Regulate Button+Regulated.swift
[3/3] Emitting module Regulate
/Users/admin/builds/vMd7uqzK/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/vMd7uqzK/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 {
              ^
BUILD FAILURE 5.8 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.