Build Information
Failed to build BackgroundKeeper, reference 1.0.0 (6303cc), with Swift 6.3 for macOS (SPM) on 16 Apr 2026 07:42:09 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/timi2506/BackgroundKeeper.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/timi2506/BackgroundKeeper
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 6303cc6 Update README.md
Cloned https://github.com/timi2506/BackgroundKeeper.git
Revision (git rev-parse @):
6303cc6ad85c46a0fbc21599cb7d25480cd3d6ee
SUCCESS checkout https://github.com/timi2506/BackgroundKeeper.git at 1.0.0
========================================
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",
"traits": [
"default"
],
"dependencies": [
{
"identity": "backgroundkeeper",
"name": "BackgroundKeeper",
"url": "https://github.com/timi2506/BackgroundKeeper.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BackgroundKeeper",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/timi2506/BackgroundKeeper.git
[1/25] Fetching backgroundkeeper
Fetched https://github.com/timi2506/BackgroundKeeper.git from cache (0.58s)
Creating working copy for https://github.com/timi2506/BackgroundKeeper.git
Working copy of https://github.com/timi2506/BackgroundKeeper.git resolved at 1.0.0 (6303cc6)
warning: '.resolve-product-dependencies': dependency 'backgroundkeeper' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/timi2506/BackgroundKeeper.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Copying silence.mp3
[1/3] Write sources
[2/3] Write swift-version--6988338F2F200930.txt
[4/6] Emitting module BackgroundKeeper
[5/6] Compiling BackgroundKeeper resource_bundle_accessor.swift
[6/6] Compiling BackgroundKeeper BackgroundKeeper.swift
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:17:17: error: 'AVAudioSession' is unavailable in macOS
15 |
16 | do {
17 | try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: [.mixWithOthers])
| `- error: 'AVAudioSession' is unavailable in macOS
18 | try AVAudioSession.sharedInstance().setActive(true)
19 |
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:17:32: error: 'sharedInstance()' is unavailable in macOS
15 |
16 | do {
17 | try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: [.mixWithOthers])
| `- error: 'sharedInstance()' is unavailable in macOS
18 | try AVAudioSession.sharedInstance().setActive(true)
19 |
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 | open class func sharedInstance() -> AVAudioSession}
| `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:17:49: error: 'setCategory(_:mode:options:)' is unavailable in macOS
15 |
16 | do {
17 | try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: [.mixWithOthers])
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
18 | try AVAudioSession.sharedInstance().setActive(true)
19 |
AVFAudio.AVAudioSession.setCategory:3:13: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws}
| `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:17:62: error: 'playback' is unavailable in macOS
15 |
16 | do {
17 | try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: [.mixWithOthers])
| `- error: 'playback' is unavailable in macOS
18 | try AVAudioSession.sharedInstance().setActive(true)
19 |
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:100:40: note: 'playback' has been explicitly marked unavailable here
98 |
99 | /*! Use this category for music tracks.*/
100 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayback API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'playback' has been explicitly marked unavailable here
101 |
102 | /*! Use this category when recording audio. */
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:17:79: error: 'default' is unavailable in macOS
15 |
16 | do {
17 | try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: [.mixWithOthers])
| `- error: 'default' is unavailable in macOS
18 | try AVAudioSession.sharedInstance().setActive(true)
19 |
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord. Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:18:17: error: 'AVAudioSession' is unavailable in macOS
16 | do {
17 | try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: [.mixWithOthers])
18 | try AVAudioSession.sharedInstance().setActive(true)
| `- error: 'AVAudioSession' is unavailable in macOS
19 |
20 | MPNowPlayingInfoCenter.default().nowPlayingInfo = nil
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:18:32: error: 'sharedInstance()' is unavailable in macOS
16 | do {
17 | try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: [.mixWithOthers])
18 | try AVAudioSession.sharedInstance().setActive(true)
| `- error: 'sharedInstance()' is unavailable in macOS
19 |
20 | MPNowPlayingInfoCenter.default().nowPlayingInfo = nil
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 | open class func sharedInstance() -> AVAudioSession}
| `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:18:49: error: 'setActive' is unavailable in Swift
16 | do {
17 | try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: [.mixWithOthers])
18 | try AVAudioSession.sharedInstance().setActive(true)
| `- error: 'setActive' is unavailable in Swift
19 |
20 | MPNowPlayingInfoCenter.default().nowPlayingInfo = nil
AVFAudio.AVAudioSession.setActive:4:13: note: 'setActive' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(*, unavailable, message: "Not available in Swift")
4 | open func setActive(_ active: Bool) throws}
| `- note: 'setActive' has been explicitly marked unavailable here
5 |
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:35:14: error: 'AVAudioSession' is unavailable in macOS
33 | player = nil
34 | MPNowPlayingInfoCenter.default().nowPlayingInfo = nil
35 | try? AVAudioSession.sharedInstance().setActive(false)
| `- error: 'AVAudioSession' is unavailable in macOS
36 | }
37 | }
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:35:29: error: 'sharedInstance()' is unavailable in macOS
33 | player = nil
34 | MPNowPlayingInfoCenter.default().nowPlayingInfo = nil
35 | try? AVAudioSession.sharedInstance().setActive(false)
| `- error: 'sharedInstance()' is unavailable in macOS
36 | }
37 | }
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 | open class func sharedInstance() -> AVAudioSession}
| `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:35:46: error: 'setActive' is unavailable in Swift
33 | player = nil
34 | MPNowPlayingInfoCenter.default().nowPlayingInfo = nil
35 | try? AVAudioSession.sharedInstance().setActive(false)
| `- error: 'setActive' is unavailable in Swift
36 | }
37 | }
AVFAudio.AVAudioSession.setActive:4:13: note: 'setActive' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(*, unavailable, message: "Not available in Swift")
4 | open func setActive(_ active: Bool) throws}
| `- note: 'setActive' has been explicitly marked unavailable here
5 |
BUILD FAILURE 6.3 macosSpm