Build Information
Failed to build WWMicrophoneInput, reference 0.6.0 (192b5b), with Swift 6.1 for macOS (SPM) on 19 Aug 2026 12:47:19 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/William-Weng/WWMicrophoneInput.git
Reference: 0.6.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWMicrophoneInput
* tag 0.6.0 -> FETCH_HEAD
HEAD is now at 192b5bb - 加入取得AVAudioPCMBuffer的 RMS 振幅值功能
Cloned https://github.com/William-Weng/WWMicrophoneInput.git
Revision (git rev-parse @):
192b5bbea6f69f90d0d79cb83d0de43e848fe352
SUCCESS checkout https://github.com/William-Weng/WWMicrophoneInput.git at 0.6.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/William-Weng/WWMicrophoneInput.git
https://github.com/William-Weng/WWMicrophoneInput.git
{
"dependencies" : [
],
"manifest_display_name" : "WWMicrophoneInput",
"name" : "WWMicrophoneInput",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
}
],
"products" : [
{
"name" : "WWMicrophoneInput",
"targets" : [
"WWMicrophoneInput"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "WWMicrophoneInput",
"module_type" : "SwiftTarget",
"name" : "WWMicrophoneInput",
"path" : "Sources/WWMicrophoneInput",
"product_memberships" : [
"WWMicrophoneInput"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/Privacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Utility/Enum.swift",
"Utility/Error.swift",
"Utility/Extension.swift",
"Utility/Model.swift",
"WWMicrophoneInput.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
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 Privacy
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/10] Compiling WWMicrophoneInput resource_bundle_accessor.swift
[5/10] Compiling WWMicrophoneInput WWMicrophoneInput.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:48:84: error: 'record' is unavailable in macOS
46 | /// - activeInfo: 是否啟用音訊工作階段,以及啟用時的選項
47 | /// - Throws: 若設定失敗則拋出錯誤
48 | func configure(category categoryInfo: WWCategoryInformation = .init(category: .record, mode: .measurement, options: [.duckOthers]), active activeInfo : WWActiveInformation = .init(isActive: true, options: .notifyOthersOnDeactivation)) throws {
| `- error: 'record' is unavailable in macOS
49 |
50 | let session = AVAudioSession.sharedInstance()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:103:40: note: 'record' has been explicitly marked unavailable here
101 |
102 | /*! Use this category when recording audio. */
103 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryRecord API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'record' has been explicitly marked unavailable here
104 |
105 | /*! Use this category when recording and playing back audio. */
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:48:99: error: 'measurement' is unavailable in macOS
46 | /// - activeInfo: 是否啟用音訊工作階段,以及啟用時的選項
47 | /// - Throws: 若設定失敗則拋出錯誤
48 | func configure(category categoryInfo: WWCategoryInformation = .init(category: .record, mode: .measurement, options: [.duckOthers]), active activeInfo : WWActiveInformation = .init(isActive: true, options: .notifyOthersOnDeactivation)) throws {
| `- error: 'measurement' is unavailable in macOS
49 |
50 | let session = AVAudioSession.sharedInstance()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:160:36: note: 'measurement' has been explicitly marked unavailable here
158 | processing for input and/or output audio signals.
159 | This mode disables some dynamics processing on input and output resulting in a lower output playback level. */
160 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeMeasurement API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'measurement' has been explicitly marked unavailable here
161 |
162 | /*! Appropriate for applications playing movie content. Only valid with AVAudioSessionCategoryPlayback.
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:36:15: error: 'AVAudioApplication' is only available in macOS 14.0 or newer
28 |
29 | // MARK: - Public Static API
30 | public extension WWMicrophoneInput {
| `- note: add @available attribute to enclosing extension
31 |
32 | /// 請求麥克風錄音權限
33 | ///
34 | /// - Returns: 若使用者允許錄音則回傳 true,否則 false
35 | static func requestAuthorization() async -> Bool {
| `- note: add @available attribute to enclosing static method
36 | await AVAudioApplication.requestRecordPermission()
| |- error: 'AVAudioApplication' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:36:34: error: 'requestRecordPermission()' is only available in macOS 14.0 or newer
28 |
29 | // MARK: - Public Static API
30 | public extension WWMicrophoneInput {
| `- note: add @available attribute to enclosing extension
31 |
32 | /// 請求麥克風錄音權限
33 | ///
34 | /// - Returns: 若使用者允許錄音則回傳 true,否則 false
35 | static func requestAuthorization() async -> Bool {
| `- note: add @available attribute to enclosing static method
36 | await AVAudioApplication.requestRecordPermission()
| |- error: 'requestRecordPermission()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:50:23: error: 'AVAudioSession' is unavailable in macOS
48 | func configure(category categoryInfo: WWCategoryInformation = .init(category: .record, mode: .measurement, options: [.duckOthers]), active activeInfo : WWActiveInformation = .init(isActive: true, options: .notifyOthersOnDeactivation)) throws {
49 |
50 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
51 |
52 | try session.setCategory(categoryInfo.category, mode: categoryInfo.mode, options: categoryInfo.options)
/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/WWMicrophoneInput/WWMicrophoneInput.swift:50:38: error: 'sharedInstance()' is unavailable in macOS
48 | func configure(category categoryInfo: WWCategoryInformation = .init(category: .record, mode: .measurement, options: [.duckOthers]), active activeInfo : WWActiveInformation = .init(isActive: true, options: .notifyOthersOnDeactivation)) throws {
49 |
50 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
51 |
52 | try session.setCategory(categoryInfo.category, mode: categoryInfo.mode, options: categoryInfo.options)
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/WWMicrophoneInput/WWMicrophoneInput.swift:52:21: error: 'setCategory(_:mode:options:)' is unavailable in macOS
50 | let session = AVAudioSession.sharedInstance()
51 |
52 | try session.setCategory(categoryInfo.category, mode: categoryInfo.mode, options: categoryInfo.options)
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
53 | try session.setActive(activeInfo.isActive, options: activeInfo.options)
54 | }
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/WWMicrophoneInput/WWMicrophoneInput.swift:53:21: error: 'setActive(_:options:)' is unavailable in macOS
51 |
52 | try session.setCategory(categoryInfo.category, mode: categoryInfo.mode, options: categoryInfo.options)
53 | try session.setActive(activeInfo.isActive, options: activeInfo.options)
| `- error: 'setActive(_:options:)' is unavailable in macOS
54 | }
55 |
AVFAudio.AVAudioSession.setActive:3:13: note: 'setActive(_:options:)' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 | open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws}
| `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:120:17: error: 'AVAudioSession' is unavailable in macOS
118 |
119 | do {
120 | try AVAudioSession.sharedInstance().setActive(false, options: .notifyOthersOnDeactivation)
| `- error: 'AVAudioSession' is unavailable in macOS
121 | } catch {
122 | return .system(error: error)
/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/WWMicrophoneInput/WWMicrophoneInput.swift:120:32: error: 'sharedInstance()' is unavailable in macOS
118 |
119 | do {
120 | try AVAudioSession.sharedInstance().setActive(false, options: .notifyOthersOnDeactivation)
| `- error: 'sharedInstance()' is unavailable in macOS
121 | } catch {
122 | return .system(error: error)
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/WWMicrophoneInput/WWMicrophoneInput.swift:120:49: error: 'setActive(_:options:)' is unavailable in macOS
118 |
119 | do {
120 | try AVAudioSession.sharedInstance().setActive(false, options: .notifyOthersOnDeactivation)
| `- error: 'setActive(_:options:)' is unavailable in macOS
121 | } catch {
122 | return .system(error: error)
AVFAudio.AVAudioSession.setActive:3:13: note: 'setActive(_:options:)' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 | open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws}
| `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
4 |
[6/10] Compiling WWMicrophoneInput Error.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Compiling WWMicrophoneInput Extension.swift
[8/10] Compiling WWMicrophoneInput Enum.swift
[9/10] Compiling WWMicrophoneInput Model.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/Utility/Model.swift:13:26: error: 'AVAudioSession' is unavailable in macOS
11 | public struct WWCategoryInformation {
12 |
13 | public let category: AVAudioSession.Category
| `- error: 'AVAudioSession' is unavailable in macOS
14 | public let mode: AVAudioSession.Mode
15 | public let options: AVAudioSession.CategoryOptions
/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/WWMicrophoneInput/Utility/Model.swift:14:22: error: 'AVAudioSession' is unavailable in macOS
12 |
13 | public let category: AVAudioSession.Category
14 | public let mode: AVAudioSession.Mode
| `- error: 'AVAudioSession' is unavailable in macOS
15 | public let options: AVAudioSession.CategoryOptions
16 |
/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/WWMicrophoneInput/Utility/Model.swift:15:25: error: 'AVAudioSession' is unavailable in macOS
13 | public let category: AVAudioSession.Category
14 | public let mode: AVAudioSession.Mode
15 | public let options: AVAudioSession.CategoryOptions
| `- error: 'AVAudioSession' is unavailable in macOS
16 |
17 | /// 建立 WWCategoryInformation 實體
/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/WWMicrophoneInput/Utility/Model.swift:22:27: error: 'AVAudioSession' is unavailable in macOS
20 | /// - mode: 音訊工作階段的模式
21 | /// - options: 音訊工作階段的選項
22 | public init(category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
23 | self.category = category
24 | self.mode = mode
/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/WWMicrophoneInput/Utility/Model.swift:22:58: error: 'AVAudioSession' is unavailable in macOS
20 | /// - mode: 音訊工作階段的模式
21 | /// - options: 音訊工作階段的選項
22 | public init(category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
23 | self.category = category
24 | self.mode = mode
/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/WWMicrophoneInput/Utility/Model.swift:22:88: error: 'AVAudioSession' is unavailable in macOS
20 | /// - mode: 音訊工作階段的模式
21 | /// - options: 音訊工作階段的選項
22 | public init(category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
23 | self.category = category
24 | self.mode = mode
/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/WWMicrophoneInput/Utility/Model.swift:33:25: error: 'AVAudioSession' is unavailable in macOS
31 |
32 | public let isActive: Bool
33 | public let options: AVAudioSession.SetActiveOptions
| `- error: 'AVAudioSession' is unavailable in macOS
34 |
35 | /// 建立 WWActiveInformation 實體
/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/WWMicrophoneInput/Utility/Model.swift:39:42: error: 'AVAudioSession' is unavailable in macOS
37 | /// - isActive: 是否啟用音訊工作階段
38 | /// - options: 設定啟用狀態時的選項
39 | public init(isActive: Bool, options: AVAudioSession.SetActiveOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
40 | self.isActive = isActive
41 | self.options = options
/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/WWMicrophoneInput/Utility/Model.swift:64:5: warning: 'public' modifier is redundant for property declared in a public extension
62 | /// 唯讀計算屬性:獲取目前音訊緩衝區的音幅(Amplitude,通常代表音量大小)
63 | /// - Returns: 傳回一個可空值的浮點數(Float?)。如果原生緩衝區無法計算或尚未實作該擴充功能,則傳回 nil
64 | public var amplitude: Float? {
| `- warning: 'public' modifier is redundant for property declared in a public extension
65 | value.amplitude
66 | }
[10/10] Emitting module WWMicrophoneInput
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/Utility/Model.swift:13:26: error: 'AVAudioSession' is unavailable in macOS
11 | public struct WWCategoryInformation {
12 |
13 | public let category: AVAudioSession.Category
| `- error: 'AVAudioSession' is unavailable in macOS
14 | public let mode: AVAudioSession.Mode
15 | public let options: AVAudioSession.CategoryOptions
/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/WWMicrophoneInput/Utility/Model.swift:14:22: error: 'AVAudioSession' is unavailable in macOS
12 |
13 | public let category: AVAudioSession.Category
14 | public let mode: AVAudioSession.Mode
| `- error: 'AVAudioSession' is unavailable in macOS
15 | public let options: AVAudioSession.CategoryOptions
16 |
/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/WWMicrophoneInput/Utility/Model.swift:15:25: error: 'AVAudioSession' is unavailable in macOS
13 | public let category: AVAudioSession.Category
14 | public let mode: AVAudioSession.Mode
15 | public let options: AVAudioSession.CategoryOptions
| `- error: 'AVAudioSession' is unavailable in macOS
16 |
17 | /// 建立 WWCategoryInformation 實體
/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/WWMicrophoneInput/Utility/Model.swift:22:27: error: 'AVAudioSession' is unavailable in macOS
20 | /// - mode: 音訊工作階段的模式
21 | /// - options: 音訊工作階段的選項
22 | public init(category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
23 | self.category = category
24 | self.mode = mode
/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/WWMicrophoneInput/Utility/Model.swift:22:58: error: 'AVAudioSession' is unavailable in macOS
20 | /// - mode: 音訊工作階段的模式
21 | /// - options: 音訊工作階段的選項
22 | public init(category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
23 | self.category = category
24 | self.mode = mode
/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/WWMicrophoneInput/Utility/Model.swift:22:88: error: 'AVAudioSession' is unavailable in macOS
20 | /// - mode: 音訊工作階段的模式
21 | /// - options: 音訊工作階段的選項
22 | public init(category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
23 | self.category = category
24 | self.mode = mode
/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/WWMicrophoneInput/Utility/Model.swift:33:25: error: 'AVAudioSession' is unavailable in macOS
31 |
32 | public let isActive: Bool
33 | public let options: AVAudioSession.SetActiveOptions
| `- error: 'AVAudioSession' is unavailable in macOS
34 |
35 | /// 建立 WWActiveInformation 實體
/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/WWMicrophoneInput/Utility/Model.swift:39:42: error: 'AVAudioSession' is unavailable in macOS
37 | /// - isActive: 是否啟用音訊工作階段
38 | /// - options: 設定啟用狀態時的選項
39 | public init(isActive: Bool, options: AVAudioSession.SetActiveOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
40 | self.isActive = isActive
41 | self.options = options
/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/WWMicrophoneInput/Utility/Model.swift:64:5: warning: 'public' modifier is redundant for property declared in a public extension
62 | /// 唯讀計算屬性:獲取目前音訊緩衝區的音幅(Amplitude,通常代表音量大小)
63 | /// - Returns: 傳回一個可空值的浮點數(Float?)。如果原生緩衝區無法計算或尚未實作該擴充功能,則傳回 nil
64 | public var amplitude: Float? {
| `- warning: 'public' modifier is redundant for property declared in a public extension
65 | value.amplitude
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:48:84: error: 'record' is unavailable in macOS
46 | /// - activeInfo: 是否啟用音訊工作階段,以及啟用時的選項
47 | /// - Throws: 若設定失敗則拋出錯誤
48 | func configure(category categoryInfo: WWCategoryInformation = .init(category: .record, mode: .measurement, options: [.duckOthers]), active activeInfo : WWActiveInformation = .init(isActive: true, options: .notifyOthersOnDeactivation)) throws {
| `- error: 'record' is unavailable in macOS
49 |
50 | let session = AVAudioSession.sharedInstance()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:103:40: note: 'record' has been explicitly marked unavailable here
101 |
102 | /*! Use this category when recording audio. */
103 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryRecord API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'record' has been explicitly marked unavailable here
104 |
105 | /*! Use this category when recording and playing back audio. */
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:48:99: error: 'measurement' is unavailable in macOS
46 | /// - activeInfo: 是否啟用音訊工作階段,以及啟用時的選項
47 | /// - Throws: 若設定失敗則拋出錯誤
48 | func configure(category categoryInfo: WWCategoryInformation = .init(category: .record, mode: .measurement, options: [.duckOthers]), active activeInfo : WWActiveInformation = .init(isActive: true, options: .notifyOthersOnDeactivation)) throws {
| `- error: 'measurement' is unavailable in macOS
49 |
50 | let session = AVAudioSession.sharedInstance()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:160:36: note: 'measurement' has been explicitly marked unavailable here
158 | processing for input and/or output audio signals.
159 | This mode disables some dynamics processing on input and output resulting in a lower output playback level. */
160 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeMeasurement API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'measurement' has been explicitly marked unavailable here
161 |
162 | /*! Appropriate for applications playing movie content. Only valid with AVAudioSessionCategoryPlayback.
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/8] Compiling WWMicrophoneInput resource_bundle_accessor.swift
[3/8] Compiling WWMicrophoneInput Extension.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Compiling WWMicrophoneInput Enum.swift
[5/8] Compiling WWMicrophoneInput Model.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/Utility/Model.swift:13:26: error: 'AVAudioSession' is unavailable in macOS
11 | public struct WWCategoryInformation {
12 |
13 | public let category: AVAudioSession.Category
| `- error: 'AVAudioSession' is unavailable in macOS
14 | public let mode: AVAudioSession.Mode
15 | public let options: AVAudioSession.CategoryOptions
/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/WWMicrophoneInput/Utility/Model.swift:14:22: error: 'AVAudioSession' is unavailable in macOS
12 |
13 | public let category: AVAudioSession.Category
14 | public let mode: AVAudioSession.Mode
| `- error: 'AVAudioSession' is unavailable in macOS
15 | public let options: AVAudioSession.CategoryOptions
16 |
/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/WWMicrophoneInput/Utility/Model.swift:15:25: error: 'AVAudioSession' is unavailable in macOS
13 | public let category: AVAudioSession.Category
14 | public let mode: AVAudioSession.Mode
15 | public let options: AVAudioSession.CategoryOptions
| `- error: 'AVAudioSession' is unavailable in macOS
16 |
17 | /// 建立 WWCategoryInformation 實體
/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/WWMicrophoneInput/Utility/Model.swift:22:27: error: 'AVAudioSession' is unavailable in macOS
20 | /// - mode: 音訊工作階段的模式
21 | /// - options: 音訊工作階段的選項
22 | public init(category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
23 | self.category = category
24 | self.mode = mode
/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/WWMicrophoneInput/Utility/Model.swift:22:58: error: 'AVAudioSession' is unavailable in macOS
20 | /// - mode: 音訊工作階段的模式
21 | /// - options: 音訊工作階段的選項
22 | public init(category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
23 | self.category = category
24 | self.mode = mode
/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/WWMicrophoneInput/Utility/Model.swift:22:88: error: 'AVAudioSession' is unavailable in macOS
20 | /// - mode: 音訊工作階段的模式
21 | /// - options: 音訊工作階段的選項
22 | public init(category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
23 | self.category = category
24 | self.mode = mode
/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/WWMicrophoneInput/Utility/Model.swift:33:25: error: 'AVAudioSession' is unavailable in macOS
31 |
32 | public let isActive: Bool
33 | public let options: AVAudioSession.SetActiveOptions
| `- error: 'AVAudioSession' is unavailable in macOS
34 |
35 | /// 建立 WWActiveInformation 實體
/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/WWMicrophoneInput/Utility/Model.swift:39:42: error: 'AVAudioSession' is unavailable in macOS
37 | /// - isActive: 是否啟用音訊工作階段
38 | /// - options: 設定啟用狀態時的選項
39 | public init(isActive: Bool, options: AVAudioSession.SetActiveOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
40 | self.isActive = isActive
41 | self.options = options
/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/WWMicrophoneInput/Utility/Model.swift:64:5: warning: 'public' modifier is redundant for property declared in a public extension
62 | /// 唯讀計算屬性:獲取目前音訊緩衝區的音幅(Amplitude,通常代表音量大小)
63 | /// - Returns: 傳回一個可空值的浮點數(Float?)。如果原生緩衝區無法計算或尚未實作該擴充功能,則傳回 nil
64 | public var amplitude: Float? {
| `- warning: 'public' modifier is redundant for property declared in a public extension
65 | value.amplitude
66 | }
[6/8] Compiling WWMicrophoneInput Error.swift
[7/8] Emitting module WWMicrophoneInput
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/Utility/Model.swift:13:26: error: 'AVAudioSession' is unavailable in macOS
11 | public struct WWCategoryInformation {
12 |
13 | public let category: AVAudioSession.Category
| `- error: 'AVAudioSession' is unavailable in macOS
14 | public let mode: AVAudioSession.Mode
15 | public let options: AVAudioSession.CategoryOptions
/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/WWMicrophoneInput/Utility/Model.swift:14:22: error: 'AVAudioSession' is unavailable in macOS
12 |
13 | public let category: AVAudioSession.Category
14 | public let mode: AVAudioSession.Mode
| `- error: 'AVAudioSession' is unavailable in macOS
15 | public let options: AVAudioSession.CategoryOptions
16 |
/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/WWMicrophoneInput/Utility/Model.swift:15:25: error: 'AVAudioSession' is unavailable in macOS
13 | public let category: AVAudioSession.Category
14 | public let mode: AVAudioSession.Mode
15 | public let options: AVAudioSession.CategoryOptions
| `- error: 'AVAudioSession' is unavailable in macOS
16 |
17 | /// 建立 WWCategoryInformation 實體
/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/WWMicrophoneInput/Utility/Model.swift:22:27: error: 'AVAudioSession' is unavailable in macOS
20 | /// - mode: 音訊工作階段的模式
21 | /// - options: 音訊工作階段的選項
22 | public init(category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
23 | self.category = category
24 | self.mode = mode
/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/WWMicrophoneInput/Utility/Model.swift:22:58: error: 'AVAudioSession' is unavailable in macOS
20 | /// - mode: 音訊工作階段的模式
21 | /// - options: 音訊工作階段的選項
22 | public init(category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
23 | self.category = category
24 | self.mode = mode
/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/WWMicrophoneInput/Utility/Model.swift:22:88: error: 'AVAudioSession' is unavailable in macOS
20 | /// - mode: 音訊工作階段的模式
21 | /// - options: 音訊工作階段的選項
22 | public init(category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
23 | self.category = category
24 | self.mode = mode
/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/WWMicrophoneInput/Utility/Model.swift:33:25: error: 'AVAudioSession' is unavailable in macOS
31 |
32 | public let isActive: Bool
33 | public let options: AVAudioSession.SetActiveOptions
| `- error: 'AVAudioSession' is unavailable in macOS
34 |
35 | /// 建立 WWActiveInformation 實體
/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/WWMicrophoneInput/Utility/Model.swift:39:42: error: 'AVAudioSession' is unavailable in macOS
37 | /// - isActive: 是否啟用音訊工作階段
38 | /// - options: 設定啟用狀態時的選項
39 | public init(isActive: Bool, options: AVAudioSession.SetActiveOptions) {
| `- error: 'AVAudioSession' is unavailable in macOS
40 | self.isActive = isActive
41 | self.options = options
/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/WWMicrophoneInput/Utility/Model.swift:64:5: warning: 'public' modifier is redundant for property declared in a public extension
62 | /// 唯讀計算屬性:獲取目前音訊緩衝區的音幅(Amplitude,通常代表音量大小)
63 | /// - Returns: 傳回一個可空值的浮點數(Float?)。如果原生緩衝區無法計算或尚未實作該擴充功能,則傳回 nil
64 | public var amplitude: Float? {
| `- warning: 'public' modifier is redundant for property declared in a public extension
65 | value.amplitude
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:48:84: error: 'record' is unavailable in macOS
46 | /// - activeInfo: 是否啟用音訊工作階段,以及啟用時的選項
47 | /// - Throws: 若設定失敗則拋出錯誤
48 | func configure(category categoryInfo: WWCategoryInformation = .init(category: .record, mode: .measurement, options: [.duckOthers]), active activeInfo : WWActiveInformation = .init(isActive: true, options: .notifyOthersOnDeactivation)) throws {
| `- error: 'record' is unavailable in macOS
49 |
50 | let session = AVAudioSession.sharedInstance()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:103:40: note: 'record' has been explicitly marked unavailable here
101 |
102 | /*! Use this category when recording audio. */
103 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryRecord API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'record' has been explicitly marked unavailable here
104 |
105 | /*! Use this category when recording and playing back audio. */
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:48:99: error: 'measurement' is unavailable in macOS
46 | /// - activeInfo: 是否啟用音訊工作階段,以及啟用時的選項
47 | /// - Throws: 若設定失敗則拋出錯誤
48 | func configure(category categoryInfo: WWCategoryInformation = .init(category: .record, mode: .measurement, options: [.duckOthers]), active activeInfo : WWActiveInformation = .init(isActive: true, options: .notifyOthersOnDeactivation)) throws {
| `- error: 'measurement' is unavailable in macOS
49 |
50 | let session = AVAudioSession.sharedInstance()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:160:36: note: 'measurement' has been explicitly marked unavailable here
158 | processing for input and/or output audio signals.
159 | This mode disables some dynamics processing on input and output resulting in a lower output playback level. */
160 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeMeasurement API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'measurement' has been explicitly marked unavailable here
161 |
162 | /*! Appropriate for applications playing movie content. Only valid with AVAudioSessionCategoryPlayback.
[8/8] Compiling WWMicrophoneInput WWMicrophoneInput.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:48:84: error: 'record' is unavailable in macOS
46 | /// - activeInfo: 是否啟用音訊工作階段,以及啟用時的選項
47 | /// - Throws: 若設定失敗則拋出錯誤
48 | func configure(category categoryInfo: WWCategoryInformation = .init(category: .record, mode: .measurement, options: [.duckOthers]), active activeInfo : WWActiveInformation = .init(isActive: true, options: .notifyOthersOnDeactivation)) throws {
| `- error: 'record' is unavailable in macOS
49 |
50 | let session = AVAudioSession.sharedInstance()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:103:40: note: 'record' has been explicitly marked unavailable here
101 |
102 | /*! Use this category when recording audio. */
103 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryRecord API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'record' has been explicitly marked unavailable here
104 |
105 | /*! Use this category when recording and playing back audio. */
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:48:99: error: 'measurement' is unavailable in macOS
46 | /// - activeInfo: 是否啟用音訊工作階段,以及啟用時的選項
47 | /// - Throws: 若設定失敗則拋出錯誤
48 | func configure(category categoryInfo: WWCategoryInformation = .init(category: .record, mode: .measurement, options: [.duckOthers]), active activeInfo : WWActiveInformation = .init(isActive: true, options: .notifyOthersOnDeactivation)) throws {
| `- error: 'measurement' is unavailable in macOS
49 |
50 | let session = AVAudioSession.sharedInstance()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:160:36: note: 'measurement' has been explicitly marked unavailable here
158 | processing for input and/or output audio signals.
159 | This mode disables some dynamics processing on input and output resulting in a lower output playback level. */
160 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeMeasurement API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'measurement' has been explicitly marked unavailable here
161 |
162 | /*! Appropriate for applications playing movie content. Only valid with AVAudioSessionCategoryPlayback.
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:36:15: error: 'AVAudioApplication' is only available in macOS 14.0 or newer
28 |
29 | // MARK: - Public Static API
30 | public extension WWMicrophoneInput {
| `- note: add @available attribute to enclosing extension
31 |
32 | /// 請求麥克風錄音權限
33 | ///
34 | /// - Returns: 若使用者允許錄音則回傳 true,否則 false
35 | static func requestAuthorization() async -> Bool {
| `- note: add @available attribute to enclosing static method
36 | await AVAudioApplication.requestRecordPermission()
| |- error: 'AVAudioApplication' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:36:34: error: 'requestRecordPermission()' is only available in macOS 14.0 or newer
28 |
29 | // MARK: - Public Static API
30 | public extension WWMicrophoneInput {
| `- note: add @available attribute to enclosing extension
31 |
32 | /// 請求麥克風錄音權限
33 | ///
34 | /// - Returns: 若使用者允許錄音則回傳 true,否則 false
35 | static func requestAuthorization() async -> Bool {
| `- note: add @available attribute to enclosing static method
36 | await AVAudioApplication.requestRecordPermission()
| |- error: 'requestRecordPermission()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
37 | }
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:50:23: error: 'AVAudioSession' is unavailable in macOS
48 | func configure(category categoryInfo: WWCategoryInformation = .init(category: .record, mode: .measurement, options: [.duckOthers]), active activeInfo : WWActiveInformation = .init(isActive: true, options: .notifyOthersOnDeactivation)) throws {
49 |
50 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
51 |
52 | try session.setCategory(categoryInfo.category, mode: categoryInfo.mode, options: categoryInfo.options)
/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/WWMicrophoneInput/WWMicrophoneInput.swift:50:38: error: 'sharedInstance()' is unavailable in macOS
48 | func configure(category categoryInfo: WWCategoryInformation = .init(category: .record, mode: .measurement, options: [.duckOthers]), active activeInfo : WWActiveInformation = .init(isActive: true, options: .notifyOthersOnDeactivation)) throws {
49 |
50 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
51 |
52 | try session.setCategory(categoryInfo.category, mode: categoryInfo.mode, options: categoryInfo.options)
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/WWMicrophoneInput/WWMicrophoneInput.swift:52:21: error: 'setCategory(_:mode:options:)' is unavailable in macOS
50 | let session = AVAudioSession.sharedInstance()
51 |
52 | try session.setCategory(categoryInfo.category, mode: categoryInfo.mode, options: categoryInfo.options)
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
53 | try session.setActive(activeInfo.isActive, options: activeInfo.options)
54 | }
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/WWMicrophoneInput/WWMicrophoneInput.swift:53:21: error: 'setActive(_:options:)' is unavailable in macOS
51 |
52 | try session.setCategory(categoryInfo.category, mode: categoryInfo.mode, options: categoryInfo.options)
53 | try session.setActive(activeInfo.isActive, options: activeInfo.options)
| `- error: 'setActive(_:options:)' is unavailable in macOS
54 | }
55 |
AVFAudio.AVAudioSession.setActive:3:13: note: 'setActive(_:options:)' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 | open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws}
| `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/WWMicrophoneInput/WWMicrophoneInput.swift:120:17: error: 'AVAudioSession' is unavailable in macOS
118 |
119 | do {
120 | try AVAudioSession.sharedInstance().setActive(false, options: .notifyOthersOnDeactivation)
| `- error: 'AVAudioSession' is unavailable in macOS
121 | } catch {
122 | return .system(error: error)
/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/WWMicrophoneInput/WWMicrophoneInput.swift:120:32: error: 'sharedInstance()' is unavailable in macOS
118 |
119 | do {
120 | try AVAudioSession.sharedInstance().setActive(false, options: .notifyOthersOnDeactivation)
| `- error: 'sharedInstance()' is unavailable in macOS
121 | } catch {
122 | return .system(error: error)
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/WWMicrophoneInput/WWMicrophoneInput.swift:120:49: error: 'setActive(_:options:)' is unavailable in macOS
118 |
119 | do {
120 | try AVAudioSession.sharedInstance().setActive(false, options: .notifyOthersOnDeactivation)
| `- error: 'setActive(_:options:)' is unavailable in macOS
121 | } catch {
122 | return .system(error: error)
AVFAudio.AVAudioSession.setActive:3:13: note: 'setActive(_:options:)' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 | open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws}
| `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
4 |
BUILD FAILURE 6.1 macosSpm