Build Information
Failed to build BackgroundKeeper, reference 1.0.0 (6303cc), with Swift 6.0 for macOS (SPM) on 31 May 2025 16:51:40 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/timi2506/BackgroundKeeper.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[0/3] Copying silence.mp3
[2/3] Write swift-version-5BDAB9E9C0126B9D.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 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/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:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
| `- note: 'sharedInstance()' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var availableCategories: [AVAudioSession.Category] { get }
/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:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 | open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 | @available(macOS, unavailable)
18 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
| `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 | @available(macOS, unavailable)
20 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/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 |
AVFAudio.AVAudioSession.Category:7:23: note: 'playback' has been explicitly marked unavailable here
5 | public static let soloAmbient: AVAudioSession.Category
6 | @available(macOS, unavailable)
7 | public static let playback: AVAudioSession.Category
| `- note: 'playback' has been explicitly marked unavailable here
8 | @available(macOS, unavailable)
9 | public static let record: AVAudioSession.Category
/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 |
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
1 | extension AVAudioSession.Mode {
2 | @available(macOS, unavailable)
3 | public static let `default`: AVAudioSession.Mode
| `- note: 'default' has been explicitly marked unavailable here
4 | @available(macOS, unavailable)
5 | public static let voiceChat: AVAudioSession.Mode
/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
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/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:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
| `- note: 'sharedInstance()' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var availableCategories: [AVAudioSession.Category] { get }
/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:4:15: 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 | @available(macOS, unavailable)
6 | open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
/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 | }
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/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:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
| `- note: 'sharedInstance()' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var availableCategories: [AVAudioSession.Category] { get }
/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:4:15: 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 | @available(macOS, unavailable)
6 | open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
BUILD FAILURE 6.0 macosSpm