The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BackgroundKeeper, reference 1.0.0 (6303cc), with Swift 6.1 for macOS (SPM) on 31 May 2025 16:52:09 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build 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
========================================
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": "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",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/timi2506/BackgroundKeeper.git
[1/25] Fetching backgroundkeeper
Fetched https://github.com/timi2506/BackgroundKeeper.git from cache (0.65s)
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.1
Building package at path:  $PWD
https://github.com/timi2506/BackgroundKeeper.git
https://github.com/timi2506/BackgroundKeeper.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BackgroundKeeper",
  "name" : "BackgroundKeeper",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "BackgroundKeeper",
      "targets" : [
        "BackgroundKeeper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BackgroundKeeper",
      "module_type" : "SwiftTarget",
      "name" : "BackgroundKeeper",
      "path" : "Sources/BackgroundKeeper",
      "product_memberships" : [
        "BackgroundKeeper"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/Resources/silence.mp3",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "BackgroundKeeper.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/3] Write sources
[1/3] Copying silence.mp3
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/6] Emitting module BackgroundKeeper
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:5:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BackgroundKeeper' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import MediaPlayer
 3 |
 4 | public class BackgroundKeeper {
   |              `- note: class 'BackgroundKeeper' does not conform to the 'Sendable' protocol
 5 |     public static let shared = BackgroundKeeper()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BackgroundKeeper' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |     private var player: AVAudioPlayer?
 7 |
[5/6] Compiling BackgroundKeeper resource_bundle_accessor.swift
[6/6] Compiling BackgroundKeeper BackgroundKeeper.swift
/Users/admin/builder/spi-builder-workspace/Sources/BackgroundKeeper/BackgroundKeeper.swift:5:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BackgroundKeeper' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import MediaPlayer
 3 |
 4 | public class BackgroundKeeper {
   |              `- note: class 'BackgroundKeeper' does not conform to the 'Sendable' protocol
 5 |     public static let shared = BackgroundKeeper()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BackgroundKeeper' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |     private var player: AVAudioPlayer?
 7 |
/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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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 |
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/4] Emitting module BackgroundKeeper
[3/4] Compiling BackgroundKeeper resource_bundle_accessor.swift
[4/4] 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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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.1 macosSpm