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: 0.2.0
Initialized empty Git repository in /Users/admin/builds/vMd7uqzK/1/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
Revision (git rev-parse @):
3dbaf34cf489792e9b944be5a3aaa31e20ff5b03
SUCCESS checkout https://github.com/sideeffect-io/Regulate.git at 0.2.0
========================================
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...
[1/7] Compiling Regulate Button+Regulated.swift
/Users/admin/builds/vMd7uqzK/1/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/1/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/7] Compiling Regulate RegulatedButtonStyle.swift
/Users/admin/builds/vMd7uqzK/1/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/1/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 {
              ^
[3/7] Compiling Regulate Debouncer.swift
/Users/admin/builds/vMd7uqzK/1/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/1/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)
            ^
[4/7] Compiling Regulate Regulator.swift
/Users/admin/builds/vMd7uqzK/1/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/1/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)
[5/7] Emitting module Regulate
/Users/admin/builds/vMd7uqzK/1/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/1/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 DispatchTimeInterval+Nanoseconds.swift
[7/7] Compiling Regulate Binding+Regulate.swift
[8/8] Compiling Regulate Throttler.swift
/Users/admin/builds/vMd7uqzK/1/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/1/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...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/3] Emitting module Regulate
/Users/admin/builds/vMd7uqzK/1/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/1/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/3] Compiling Regulate RegulatedButtonStyle.swift
/Users/admin/builds/vMd7uqzK/1/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/1/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 {
              ^
[3/3] Compiling Regulate Button+Regulated.swift
BUILD FAILURE 5.8 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.