Build Information
Failed to build BackgroundKeeper, reference main (84a54c), with Swift 6.2 for macOS (SPM) on 24 Jun 2025 07:08:32 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/timi2506/BackgroundKeeper.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/timi2506/BackgroundKeeper
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 84a54cd Update README.md
Cloned https://github.com/timi2506/BackgroundKeeper.git
Revision (git rev-parse @):
84a54cdeb61d3ee301a0a3fedda8354ae191d7a7
SUCCESS checkout https://github.com/timi2506/BackgroundKeeper.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/timi2506/BackgroundKeeper.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[0/3] Copying silence.mp3
[2/3] Write swift-version-1EA4D86E10B52AF.txt
[4/6] Compiling BackgroundKeeper resource_bundle_accessor.swift
[5/6] Emitting module BackgroundKeeper
[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.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:30:12: note: 'AVAudioSession' has been explicitly marked unavailable here
28 | NS_SWIFT_SENDABLE
29 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
30 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
31 | @private
32 | // Reenable once rdar://135815013 is unblocked
/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.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:30:12: note: 'AVAudioSession' has been explicitly marked unavailable here
28 | NS_SWIFT_SENDABLE
29 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
30 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
31 | @private
32 | // Reenable once rdar://135815013 is unblocked
/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.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:30:12: note: 'AVAudioSession' has been explicitly marked unavailable here
28 | NS_SWIFT_SENDABLE
29 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
30 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
31 | @private
32 | // Reenable once rdar://135815013 is unblocked
/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.2 macosSpm