Build Information
Failed to build UserDefaultsExtensions, reference main (38a674
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 02:11:06 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/elegantchaos/UserDefaultsExtensions.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/UserDefaultsExtensions
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 38a674b added license
Cloned https://github.com/elegantchaos/UserDefaultsExtensions.git
Revision (git rev-parse @):
38a674b4384131fbca4a1edaaaccad4f7e472797
SUCCESS checkout https://github.com/elegantchaos/UserDefaultsExtensions.git at main
Fetching https://github.com/elegantchaos/XCTestExtensions.git
[1/571] Fetching xctestextensions
Fetched https://github.com/elegantchaos/XCTestExtensions.git from cache (0.68s)
Computing version for https://github.com/elegantchaos/XCTestExtensions.git
Computed https://github.com/elegantchaos/XCTestExtensions.git at 1.5.1 (1.29s)
Fetching https://github.com/elegantchaos/Matchable.git
[1/113] Fetching matchable
Fetched https://github.com/elegantchaos/Matchable.git from cache (0.58s)
Computing version for https://github.com/elegantchaos/Matchable.git
Computed https://github.com/elegantchaos/Matchable.git at 1.0.7 (1.18s)
Creating working copy for https://github.com/elegantchaos/XCTestExtensions.git
Working copy of https://github.com/elegantchaos/XCTestExtensions.git resolved at 1.5.1
Creating working copy for https://github.com/elegantchaos/Matchable.git
Working copy of https://github.com/elegantchaos/Matchable.git resolved at 1.0.7
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "userdefaultsextensions",
"name": "UserDefaultsExtensions",
"url": "https://github.com/elegantchaos/UserDefaultsExtensions.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UserDefaultsExtensions",
"dependencies": [
]
}
]
}
Fetching https://github.com/elegantchaos/UserDefaultsExtensions.git
[1/43] Fetching userdefaultsextensions
Fetched https://github.com/elegantchaos/UserDefaultsExtensions.git from cache (0.63s)
Creating working copy for https://github.com/elegantchaos/UserDefaultsExtensions.git
Working copy of https://github.com/elegantchaos/UserDefaultsExtensions.git resolved at main (38a674b)
warning: '.resolve-product-dependencies': dependency 'userdefaultsextensions' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/elegantchaos/UserDefaultsExtensions.git
https://github.com/elegantchaos/UserDefaultsExtensions.git
{
"dependencies" : [
{
"identity" : "xctestextensions",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/elegantchaos/XCTestExtensions.git"
}
],
"manifest_display_name" : "UserDefaultsExtensions",
"name" : "UserDefaultsExtensions",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "UserDefaultsExtensions",
"targets" : [
"UserDefaultsExtensions"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "UserDefaultsExtensionsTests",
"module_type" : "SwiftTarget",
"name" : "UserDefaultsExtensionsTests",
"path" : "Tests/UserDefaultsExtensionsTests",
"product_dependencies" : [
"XCTestExtensions"
],
"sources" : [
"UserDefaultsExtensionsTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"UserDefaultsExtensions"
],
"type" : "test"
},
{
"c99name" : "UserDefaultsExtensions",
"module_type" : "SwiftTarget",
"name" : "UserDefaultsExtensions",
"path" : "Sources/UserDefaultsExtensions",
"product_memberships" : [
"UserDefaultsExtensions"
],
"sources" : [
"UserDefaults+Combine.swift",
"UserDefaultsExtensions.swift",
"UserDefaultsRepresentable.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/6] Compiling UserDefaultsExtensions UserDefaultsExtensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling UserDefaultsExtensions UserDefaultsRepresentable.swift
[5/6] Emitting module UserDefaultsExtensions
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsExtensions/UserDefaults+Combine.swift:15:80: error: 'AnyCancellable' is only available in macOS 10.15 or newer
7 | import Foundation
8 |
9 | public extension UserDefaults {
| `- note: add @available attribute to enclosing extension
10 | /// Perform an action if the defaults have been changed.
11 | ///
:
13 | /// firing the action multiple times after a quick sequence of changes.
14 |
15 | func onChanged(delay: TimeInterval = 1.0, _ action: @escaping () -> ()) -> AnyCancellable {
| | `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | return NotificationCenter.default
17 | .publisher(for: UserDefaults.didChangeNotification, object: self)
[6/6] Compiling UserDefaultsExtensions UserDefaults+Combine.swift
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsExtensions/UserDefaults+Combine.swift:15:80: error: 'AnyCancellable' is only available in macOS 10.15 or newer
7 | import Foundation
8 |
9 | public extension UserDefaults {
| `- note: add @available attribute to enclosing extension
10 | /// Perform an action if the defaults have been changed.
11 | ///
:
13 | /// firing the action multiple times after a quick sequence of changes.
14 |
15 | func onChanged(delay: TimeInterval = 1.0, _ action: @escaping () -> ()) -> AnyCancellable {
| | `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | return NotificationCenter.default
17 | .publisher(for: UserDefaults.didChangeNotification, object: self)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsExtensions/UserDefaults+Combine.swift:17:14: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
7 | import Foundation
8 |
9 | public extension UserDefaults {
| `- note: add @available attribute to enclosing extension
10 | /// Perform an action if the defaults have been changed.
11 | ///
:
13 | /// firing the action multiple times after a quick sequence of changes.
14 |
15 | func onChanged(delay: TimeInterval = 1.0, _ action: @escaping () -> ()) -> AnyCancellable {
| `- note: add @available attribute to enclosing instance method
16 | return NotificationCenter.default
17 | .publisher(for: UserDefaults.didChangeNotification, object: self)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .debounce(for: .seconds(delay), scheduler: RunLoop.main)
19 | .sink { _ in
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsExtensions/UserDefaults+Combine.swift:18:14: error: 'debounce(for:scheduler:options:)' is only available in macOS 10.15 or newer
7 | import Foundation
8 |
9 | public extension UserDefaults {
| `- note: add @available attribute to enclosing extension
10 | /// Perform an action if the defaults have been changed.
11 | ///
:
13 | /// firing the action multiple times after a quick sequence of changes.
14 |
15 | func onChanged(delay: TimeInterval = 1.0, _ action: @escaping () -> ()) -> AnyCancellable {
| `- note: add @available attribute to enclosing instance method
16 | return NotificationCenter.default
17 | .publisher(for: UserDefaults.didChangeNotification, object: self)
18 | .debounce(for: .seconds(delay), scheduler: RunLoop.main)
| |- error: 'debounce(for:scheduler:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .sink { _ in
20 | action()
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsExtensions/UserDefaults+Combine.swift:19:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
7 | import Foundation
8 |
9 | public extension UserDefaults {
| `- note: add @available attribute to enclosing extension
10 | /// Perform an action if the defaults have been changed.
11 | ///
:
13 | /// firing the action multiple times after a quick sequence of changes.
14 |
15 | func onChanged(delay: TimeInterval = 1.0, _ action: @escaping () -> ()) -> AnyCancellable {
| `- note: add @available attribute to enclosing instance method
16 | return NotificationCenter.default
17 | .publisher(for: UserDefaults.didChangeNotification, object: self)
18 | .debounce(for: .seconds(delay), scheduler: RunLoop.main)
19 | .sink { _ in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | action()
21 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/5] Compiling UserDefaultsExtensions UserDefaultsRepresentable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling UserDefaultsExtensions UserDefaultsExtensions.swift
[4/5] Emitting module UserDefaultsExtensions
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsExtensions/UserDefaults+Combine.swift:15:80: error: 'AnyCancellable' is only available in macOS 10.15 or newer
7 | import Foundation
8 |
9 | public extension UserDefaults {
| `- note: add @available attribute to enclosing extension
10 | /// Perform an action if the defaults have been changed.
11 | ///
:
13 | /// firing the action multiple times after a quick sequence of changes.
14 |
15 | func onChanged(delay: TimeInterval = 1.0, _ action: @escaping () -> ()) -> AnyCancellable {
| | `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | return NotificationCenter.default
17 | .publisher(for: UserDefaults.didChangeNotification, object: self)
[5/5] Compiling UserDefaultsExtensions UserDefaults+Combine.swift
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsExtensions/UserDefaults+Combine.swift:15:80: error: 'AnyCancellable' is only available in macOS 10.15 or newer
7 | import Foundation
8 |
9 | public extension UserDefaults {
| `- note: add @available attribute to enclosing extension
10 | /// Perform an action if the defaults have been changed.
11 | ///
:
13 | /// firing the action multiple times after a quick sequence of changes.
14 |
15 | func onChanged(delay: TimeInterval = 1.0, _ action: @escaping () -> ()) -> AnyCancellable {
| | `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | return NotificationCenter.default
17 | .publisher(for: UserDefaults.didChangeNotification, object: self)
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsExtensions/UserDefaults+Combine.swift:17:14: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
7 | import Foundation
8 |
9 | public extension UserDefaults {
| `- note: add @available attribute to enclosing extension
10 | /// Perform an action if the defaults have been changed.
11 | ///
:
13 | /// firing the action multiple times after a quick sequence of changes.
14 |
15 | func onChanged(delay: TimeInterval = 1.0, _ action: @escaping () -> ()) -> AnyCancellable {
| `- note: add @available attribute to enclosing instance method
16 | return NotificationCenter.default
17 | .publisher(for: UserDefaults.didChangeNotification, object: self)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .debounce(for: .seconds(delay), scheduler: RunLoop.main)
19 | .sink { _ in
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsExtensions/UserDefaults+Combine.swift:18:14: error: 'debounce(for:scheduler:options:)' is only available in macOS 10.15 or newer
7 | import Foundation
8 |
9 | public extension UserDefaults {
| `- note: add @available attribute to enclosing extension
10 | /// Perform an action if the defaults have been changed.
11 | ///
:
13 | /// firing the action multiple times after a quick sequence of changes.
14 |
15 | func onChanged(delay: TimeInterval = 1.0, _ action: @escaping () -> ()) -> AnyCancellable {
| `- note: add @available attribute to enclosing instance method
16 | return NotificationCenter.default
17 | .publisher(for: UserDefaults.didChangeNotification, object: self)
18 | .debounce(for: .seconds(delay), scheduler: RunLoop.main)
| |- error: 'debounce(for:scheduler:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .sink { _ in
20 | action()
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsExtensions/UserDefaults+Combine.swift:19:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
7 | import Foundation
8 |
9 | public extension UserDefaults {
| `- note: add @available attribute to enclosing extension
10 | /// Perform an action if the defaults have been changed.
11 | ///
:
13 | /// firing the action multiple times after a quick sequence of changes.
14 |
15 | func onChanged(delay: TimeInterval = 1.0, _ action: @escaping () -> ()) -> AnyCancellable {
| `- note: add @available attribute to enclosing instance method
16 | return NotificationCenter.default
17 | .publisher(for: UserDefaults.didChangeNotification, object: self)
18 | .debounce(for: .seconds(delay), scheduler: RunLoop.main)
19 | .sink { _ in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | action()
21 | }
BUILD FAILURE 6.1 macosSpm