Build Information
Failed to build Regulate with Swift 5.9 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.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/J1XnyXFH/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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builds/J1XnyXFH/1/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/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Regulate",
"dependencies": [
]
}
]
}
Fetching https://github.com/sideeffect-io/Regulate.git from cache
Fetched https://github.com/sideeffect-io/Regulate.git (0.22s)
Creating working copy for https://github.com/sideeffect-io/Regulate.git
Working copy of https://github.com/sideeffect-io/Regulate.git resolved at 0.2.0
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: $workDir
https://github.com/sideeffect-io/Regulate.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/8] Compiling Regulate Throttler.swift
/Users/admin/builds/J1XnyXFH/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/J1XnyXFH/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)
^
[2/8] Compiling Regulate Button+Regulated.swift
[3/8] Compiling Regulate RegulatedButtonStyle.swift
/Users/admin/builds/J1XnyXFH/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/J1XnyXFH/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 {
^
/Users/admin/builds/J1XnyXFH/1/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)
[4/8] Compiling Regulate DispatchTimeInterval+Nanoseconds.swift
[5/8] Compiling Regulate Regulator.swift
[6/8] Compiling Regulate Debouncer.swift
/Users/admin/builds/J1XnyXFH/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/J1XnyXFH/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)
^
[7/8] Compiling Regulate Binding+Regulate.swift
[8/8] Emitting module Regulate
/Users/admin/builds/J1XnyXFH/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/J1XnyXFH/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 {
^
error: fatalError
[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/admin/builds/J1XnyXFH/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/J1XnyXFH/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/2] Compiling Regulate RegulatedButtonStyle.swift
/Users/admin/builds/J1XnyXFH/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/J1XnyXFH/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 {
^
/Users/admin/builds/J1XnyXFH/1/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
BUILD FAILURE 5.9 macosSpm