Build Information
Failed to build WWNormalizeAudioPlayer, reference 1.3.0 (7302b0), with Swift 6.0 for macOS (SPM) on 17 Feb 2026 08:42:03 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/William-Weng/WWNormalizeAudioPlayer.git
Reference: 1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWNormalizeAudioPlayer
* tag 1.3.0 -> FETCH_HEAD
HEAD is now at 7302b0a - 改用fps設定更新率
Cloned https://github.com/William-Weng/WWNormalizeAudioPlayer.git
Revision (git rev-parse @):
7302b0a04004bfa4404fad0668b0ff4c6c483eb7
SUCCESS checkout https://github.com/William-Weng/WWNormalizeAudioPlayer.git at 1.3.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/William-Weng/WWNormalizeAudioPlayer.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Compiling WWNormalizeAudioPlayer Protocol.swift
[4/7] Compiling WWNormalizeAudioPlayer Constant.swift
[5/7] Emitting module WWNormalizeAudioPlayer
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/Utility/Extension.swift:27:35: error: 'AVAudioSession' is unavailable in macOS
25 | /// - isActive: Bool
26 | /// - Returns: Result<Bool, Error>
27 | func _setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions, isActive: Bool) -> Result<Bool, Error> {
| `- error: 'AVAudioSession' is unavailable in macOS
28 |
29 | do {
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/WWNormalizeAudioPlayer/Utility/Extension.swift:27:66: error: 'AVAudioSession' is unavailable in macOS
25 | /// - isActive: Bool
26 | /// - Returns: Result<Bool, Error>
27 | func _setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions, isActive: Bool) -> Result<Bool, Error> {
| `- error: 'AVAudioSession' is unavailable in macOS
28 |
29 | do {
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/WWNormalizeAudioPlayer/Utility/Extension.swift:27:95: error: 'AVAudioSession' is unavailable in macOS
25 | /// - isActive: Bool
26 | /// - Returns: Result<Bool, Error>
27 | func _setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions, isActive: Bool) -> Result<Bool, Error> {
| `- error: 'AVAudioSession' is unavailable in macOS
28 |
29 | do {
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/WWNormalizeAudioPlayer/Utility/Extension.swift:27:139: error: 'AVAudioSession' is unavailable in macOS
25 | /// - isActive: Bool
26 | /// - Returns: Result<Bool, Error>
27 | func _setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions, isActive: Bool) -> Result<Bool, Error> {
| `- error: 'AVAudioSession' is unavailable in macOS
28 |
29 | do {
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/WWNormalizeAudioPlayer/Utility/Extension.swift:12:18: error: 'AVAudioSession' is unavailable in macOS
10 |
11 | // MARK - AVAudioSession
12 | public extension AVAudioSession {
| `- error: 'AVAudioSession' is unavailable in macOS
13 |
14 | /// 檢查系統音量 + 是否靜音
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/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:22:35: error: 'CADisplayLink' is only available in macOS 14.0 or newer
10 |
11 | // MARK: - 音量正規化聲音播放器
12 | open class WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing class
13 |
14 | public weak var delegate: Deleagte?
:
20 | private var equalizerNode: AVAudioUnitEQ?
21 |
22 | private weak var displayLink: CADisplayLink?
| `- error: 'CADisplayLink' is only available in macOS 14.0 or newer
23 |
24 | public var volume: Float {
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:29:41: error: 'CAFrameRateRange' is only available in macOS 12.0 or newer
10 |
11 | // MARK: - 音量正規化聲音播放器
12 | open class WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing class
13 |
14 | public weak var delegate: Deleagte?
:
27 | }
28 |
29 | public var preferredFrameRateRange: CAFrameRateRange? = CAFrameRateRange(minimum: 5, maximum: 5)
| `- error: 'CAFrameRateRange' is only available in macOS 12.0 or newer
30 |
31 | public init() { initAudioEngine() }
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:29:61: error: 'CAFrameRateRange' is only available in macOS 12.0 or newer
10 |
11 | // MARK: - 音量正規化聲音播放器
12 | open class WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing class
13 |
14 | public weak var delegate: Deleagte?
:
27 | }
28 |
29 | public var preferredFrameRateRange: CAFrameRateRange? = CAFrameRateRange(minimum: 5, maximum: 5)
| `- error: 'CAFrameRateRange' is only available in macOS 12.0 or newer
30 |
31 | public init() { initAudioEngine() }
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:29:61: error: 'init(minimum:maximum:preferred:)' is only available in macOS 12.0 or newer
10 |
11 | // MARK: - 音量正規化聲音播放器
12 | open class WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing class
13 |
14 | public weak var delegate: Deleagte?
:
27 | }
28 |
29 | public var preferredFrameRateRange: CAFrameRateRange? = CAFrameRateRange(minimum: 5, maximum: 5)
| `- error: 'init(minimum:maximum:preferred:)' is only available in macOS 12.0 or newer
30 |
31 | public init() { initAudioEngine() }
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:137:40: error: 'CADisplayLink' is only available in macOS 14.0 or newer
131 |
132 | // MARK: - 小工具
133 | @objc private extension WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing extension
134 |
135 | /// 更新音樂播放時間
136 | /// - Parameter displayLink: CADisplayLink
137 | func updatePlayTime(_ displayLink: CADisplayLink) {
| | `- error: 'CADisplayLink' is only available in macOS 14.0 or newer
| `- note: add @available attribute to enclosing instance method
138 |
139 | do {
[6/7] Compiling WWNormalizeAudioPlayer WWNormalizeAudioPlayer.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:22:35: error: 'CADisplayLink' is only available in macOS 14.0 or newer
10 |
11 | // MARK: - 音量正規化聲音播放器
12 | open class WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing class
13 |
14 | public weak var delegate: Deleagte?
:
20 | private var equalizerNode: AVAudioUnitEQ?
21 |
22 | private weak var displayLink: CADisplayLink?
| `- error: 'CADisplayLink' is only available in macOS 14.0 or newer
23 |
24 | public var volume: Float {
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:29:41: error: 'CAFrameRateRange' is only available in macOS 12.0 or newer
10 |
11 | // MARK: - 音量正規化聲音播放器
12 | open class WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing class
13 |
14 | public weak var delegate: Deleagte?
:
27 | }
28 |
29 | public var preferredFrameRateRange: CAFrameRateRange? = CAFrameRateRange(minimum: 5, maximum: 5)
| `- error: 'CAFrameRateRange' is only available in macOS 12.0 or newer
30 |
31 | public init() { initAudioEngine() }
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:29:61: error: 'CAFrameRateRange' is only available in macOS 12.0 or newer
10 |
11 | // MARK: - 音量正規化聲音播放器
12 | open class WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing class
13 |
14 | public weak var delegate: Deleagte?
:
27 | }
28 |
29 | public var preferredFrameRateRange: CAFrameRateRange? = CAFrameRateRange(minimum: 5, maximum: 5)
| `- error: 'CAFrameRateRange' is only available in macOS 12.0 or newer
30 |
31 | public init() { initAudioEngine() }
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:29:61: error: 'init(minimum:maximum:preferred:)' is only available in macOS 12.0 or newer
10 |
11 | // MARK: - 音量正規化聲音播放器
12 | open class WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing class
13 |
14 | public weak var delegate: Deleagte?
:
27 | }
28 |
29 | public var preferredFrameRateRange: CAFrameRateRange? = CAFrameRateRange(minimum: 5, maximum: 5)
| `- error: 'init(minimum:maximum:preferred:)' is only available in macOS 12.0 or newer
30 |
31 | public init() { initAudioEngine() }
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:137:40: error: 'CADisplayLink' is only available in macOS 14.0 or newer
131 |
132 | // MARK: - 小工具
133 | @objc private extension WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing extension
134 |
135 | /// 更新音樂播放時間
136 | /// - Parameter displayLink: CADisplayLink
137 | func updatePlayTime(_ displayLink: CADisplayLink) {
| | `- error: 'CADisplayLink' is only available in macOS 14.0 or newer
| `- note: add @available attribute to enclosing instance method
138 |
139 | do {
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:68:17: error: 'Task' is only available in macOS 10.15 or newer
38 |
39 | // MARK: - 公開函式
40 | public extension WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing extension
41 |
42 | /// [播放音樂](https://cloud.tencent.com/developer/ask/sof/111888173)
:
45 | /// - targetDB: 正規化目標值
46 | /// - callbackType: 回傳結束的時機
47 | func play(with url: URL, targetDB: Float? = -1.0, callbackType: AVAudioPlayerNodeCompletionCallbackType = .dataPlayedBack) {
| `- note: add @available attribute to enclosing instance method
48 |
49 | guard let audioEngine = audioEngine,
:
66 |
67 | playerNode._schedule(audioFile: audioFile, callbackType: callbackType) { [self] type in
68 | Task { @MainActor in delegate?.audioPlayer(self, callbackType: type, didFinishPlaying: audioFile) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:68:17: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
38 |
39 | // MARK: - 公開函式
40 | public extension WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing extension
41 |
42 | /// [播放音樂](https://cloud.tencent.com/developer/ask/sof/111888173)
:
45 | /// - targetDB: 正規化目標值
46 | /// - callbackType: 回傳結束的時機
47 | func play(with url: URL, targetDB: Float? = -1.0, callbackType: AVAudioPlayerNodeCompletionCallbackType = .dataPlayedBack) {
| `- note: add @available attribute to enclosing instance method
48 |
49 | guard let audioEngine = audioEngine,
:
66 |
67 | playerNode._schedule(audioFile: audioFile, callbackType: callbackType) { [self] type in
68 | Task { @MainActor in delegate?.audioPlayer(self, callbackType: type, didFinishPlaying: audioFile) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:196:25: warning: instance will be immediately deallocated because property 'displayLink' is 'weak'
20 | private var equalizerNode: AVAudioUnitEQ?
21 |
22 | private weak var displayLink: CADisplayLink?
| `- note: 'displayLink' declared here
23 |
24 | public var volume: Float {
:
194 |
195 | if let preferredFrameRateRange = preferredFrameRateRange {
196 | displayLink = CADisplayLink(target: self, selector: #selector(updatePlayTime(_:)))
| |- warning: instance will be immediately deallocated because property 'displayLink' is 'weak'
| `- note: a strong reference is required to prevent the instance from being deallocated
197 | displayLink?.add(to: .main, forMode: .common)
198 | displayLink?.preferredFrameRateRange = preferredFrameRateRange
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:196:27: error: 'CADisplayLink' is only available in macOS 14.0 or newer
153 |
154 | // MARK: - 小工具
155 | private extension WWNormalizeAudioPlayer {
| `- note: add @available attribute to enclosing extension
156 |
157 | /// 初始化音樂引擎
:
189 |
190 | /// 開始計時
191 | func startTimer() {
| `- note: add @available attribute to enclosing instance method
192 |
193 | stopTimer()
194 |
195 | if let preferredFrameRateRange = preferredFrameRateRange {
196 | displayLink = CADisplayLink(target: self, selector: #selector(updatePlayTime(_:)))
| |- error: 'CADisplayLink' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
197 | displayLink?.add(to: .main, forMode: .common)
198 | displayLink?.preferredFrameRateRange = preferredFrameRateRange
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/WWNormalizeAudioPlayer.swift:196:27: error: 'init(target:selector:)' is unavailable in macOS
194 |
195 | if let preferredFrameRateRange = preferredFrameRateRange {
196 | displayLink = CADisplayLink(target: self, selector: #selector(updatePlayTime(_:)))
| `- error: 'init(target:selector:)' is unavailable in macOS
197 | displayLink?.add(to: .main, forMode: .common)
198 | displayLink?.preferredFrameRateRange = preferredFrameRateRange
QuartzCore.CADisplayLink:4:30: note: 'init(target:selector:)' has been explicitly marked unavailable here
2 | open class CADisplayLink : NSObject {
3 | @available(macOS, unavailable)
4 | public /*not inherited*/ init(target: Any, selector sel: Selector)
| `- note: 'init(target:selector:)' has been explicitly marked unavailable here
5 | @available(*, unavailable, renamed: "init(target:selector:)", message: "Not available in Swift")
6 | @available(macOS, unavailable)
[7/7] Compiling WWNormalizeAudioPlayer Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/Utility/Extension.swift:27:35: error: 'AVAudioSession' is unavailable in macOS
25 | /// - isActive: Bool
26 | /// - Returns: Result<Bool, Error>
27 | func _setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions, isActive: Bool) -> Result<Bool, Error> {
| `- error: 'AVAudioSession' is unavailable in macOS
28 |
29 | do {
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/WWNormalizeAudioPlayer/Utility/Extension.swift:27:66: error: 'AVAudioSession' is unavailable in macOS
25 | /// - isActive: Bool
26 | /// - Returns: Result<Bool, Error>
27 | func _setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions, isActive: Bool) -> Result<Bool, Error> {
| `- error: 'AVAudioSession' is unavailable in macOS
28 |
29 | do {
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/WWNormalizeAudioPlayer/Utility/Extension.swift:27:95: error: 'AVAudioSession' is unavailable in macOS
25 | /// - isActive: Bool
26 | /// - Returns: Result<Bool, Error>
27 | func _setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions, isActive: Bool) -> Result<Bool, Error> {
| `- error: 'AVAudioSession' is unavailable in macOS
28 |
29 | do {
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/WWNormalizeAudioPlayer/Utility/Extension.swift:27:139: error: 'AVAudioSession' is unavailable in macOS
25 | /// - isActive: Bool
26 | /// - Returns: Result<Bool, Error>
27 | func _setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions, isActive: Bool) -> Result<Bool, Error> {
| `- error: 'AVAudioSession' is unavailable in macOS
28 |
29 | do {
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/WWNormalizeAudioPlayer/Utility/Extension.swift:12:18: error: 'AVAudioSession' is unavailable in macOS
10 |
11 | // MARK - AVAudioSession
12 | public extension AVAudioSession {
| `- error: 'AVAudioSession' is unavailable in macOS
13 |
14 | /// 檢查系統音量 + 是否靜音
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/WWNormalizeAudioPlayer/Utility/Extension.swift:16:31: error: 'outputVolume' is unavailable in macOS
14 | /// 檢查系統音量 + 是否靜音
15 | func _systemParameter() -> (outputVolume: Float, isOtherAudioPlaying: Bool) {
16 | return (outputVolume: outputVolume, isOtherAudioPlaying: isOtherAudioPlaying)
| `- error: 'outputVolume' is unavailable in macOS
17 | }
18 |
AVFAudio.AVAudioSession:10:14: note: 'outputVolume' has been explicitly marked unavailable here
8 | open var secondaryAudioShouldBeSilencedHint: Bool { get }
9 | @available(macOS, unavailable)
10 | open var outputVolume: Float { get }
| `- note: 'outputVolume' has been explicitly marked unavailable here
11 | @available(macOS, unavailable)
12 | open var promptStyle: AVAudioSession.PromptStyle { get }
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/Utility/Extension.swift:16:66: error: 'isOtherAudioPlaying' is unavailable in macOS
14 | /// 檢查系統音量 + 是否靜音
15 | func _systemParameter() -> (outputVolume: Float, isOtherAudioPlaying: Bool) {
16 | return (outputVolume: outputVolume, isOtherAudioPlaying: isOtherAudioPlaying)
| `- error: 'isOtherAudioPlaying' is unavailable in macOS
17 | }
18 |
AVFAudio.AVAudioSession:3:14: note: 'isOtherAudioPlaying' has been explicitly marked unavailable here
1 | extension AVAudioSession {
2 | @available(macOS, unavailable)
3 | open var isOtherAudioPlaying: Bool { get }
| `- note: 'isOtherAudioPlaying' has been explicitly marked unavailable here
4 | @available(swift, obsoleted: 3, renamed: "isOtherAudioPlaying")
5 | @available(macOS, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/Utility/Extension.swift:30:17: error: 'setCategory(_:mode:policy:options:)' is unavailable in macOS
28 |
29 | do {
30 | try setCategory(category, mode: mode, policy: policy, options: options)
| `- error: 'setCategory(_:mode:policy:options:)' is unavailable in macOS
31 | try setActive(isActive)
32 | return .success(true)
AVFAudio.AVAudioSession:20:15: note: 'setCategory(_:mode:policy:options:)' has been explicitly marked unavailable here
18 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
19 | @available(macOS, unavailable)
20 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
| `- note: 'setCategory(_:mode:policy:options:)' has been explicitly marked unavailable here
21 | @available(swift, obsoleted: 4.2, renamed: "setCategory(_:mode:policy:options:)")
22 | @available(macOS, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/WWNormalizeAudioPlayer/Utility/Extension.swift:31:17: error: 'setActive' is unavailable in Swift
29 | do {
30 | try setCategory(category, mode: mode, policy: policy, options: options)
31 | try setActive(isActive)
| `- error: 'setActive' is unavailable in Swift
32 | return .success(true)
33 | } catch {
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