Build Information
Failed to build WWNormalizeAudioPlayer, reference 1.3.0 (7302b0), with Swift 6.2 for macOS (SPM) on 17 Feb 2026 00:32:19 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.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
========================================
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": "wwnormalizeaudioplayer",
"name": "WWNormalizeAudioPlayer",
"url": "https://github.com/William-Weng/WWNormalizeAudioPlayer.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WWNormalizeAudioPlayer",
"dependencies": [
]
}
]
}
Fetching https://github.com/William-Weng/WWNormalizeAudioPlayer.git
[1/231] Fetching wwnormalizeaudioplayer
Fetched https://github.com/William-Weng/WWNormalizeAudioPlayer.git from cache (1.12s)
Creating working copy for https://github.com/William-Weng/WWNormalizeAudioPlayer.git
Working copy of https://github.com/William-Weng/WWNormalizeAudioPlayer.git resolved at 1.3.0 (7302b0a)
warning: '.resolve-product-dependencies': dependency 'wwnormalizeaudioplayer' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/William-Weng/WWNormalizeAudioPlayer.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-49B95AFC49DCD68C.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/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 {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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/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 {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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/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 {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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/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 {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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/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 | /// 檢查系統音量 + 是否靜音
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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/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 {
[4/7] Compiling WWNormalizeAudioPlayer Protocol.swift
[5/7] Compiling WWNormalizeAudioPlayer Constant.swift
[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(name: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(name: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
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h:32:1: note: 'init(target:selector:)' has been explicitly marked unavailable here
30 | * For macOS, see NSView/NSWindow/NSScreen.displayLink(withTarget:selector:). */
31 |
32 | + (CADisplayLink *)displayLinkWithTarget:(id)target selector:(SEL)sel
| `- note: 'init(target:selector:)' has been explicitly marked unavailable here
33 | API_UNAVAILABLE(macos);
34 |
[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 {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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/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 {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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/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 {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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/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 {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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/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 | /// 檢查系統音量 + 是否靜音
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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/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 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:436:28: note: 'outputVolume' has been explicitly marked unavailable here
434 |
435 | /// The current output volume. Value in range [0.0, 1.0]. Is key-value observable.
436 | @property (readonly) float outputVolume API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'outputVolume' has been explicitly marked unavailable here
437 |
438 | /// The prompt style is a hint to sessions using AVAudioSessionModeVoicePrompt to alter the type of
/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 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:423:55: note: 'isOtherAudioPlaying' has been explicitly marked unavailable here
421 | application is playing.
422 | */
423 | @property (readonly, getter=isOtherAudioPlaying) BOOL otherAudioPlaying API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'isOtherAudioPlaying' has been explicitly marked unavailable here
424 |
425 | /*!
/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.setCategory:3:13: note: 'setCategory(_:mode:policy:options:)' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 | 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
4 |
/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.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