The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SwiftSpeech, reference master (6e41f2), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 13:54:42 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Cay-Zhang/SwiftSpeech.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Cay-Zhang/SwiftSpeech
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 6e41f28 added cocoapods installation hint in README
Cloned https://github.com/Cay-Zhang/SwiftSpeech.git
Revision (git rev-parse @):
6e41f289f5ccc1751ef5674972d46b48b326c4c6
SUCCESS checkout https://github.com/Cay-Zhang/SwiftSpeech.git at master
========================================
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": "swiftspeech",
      "name": "SwiftSpeech",
      "url": "https://github.com/Cay-Zhang/SwiftSpeech.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftSpeech",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Cay-Zhang/SwiftSpeech.git
[1/362] Fetching swiftspeech
Fetched https://github.com/Cay-Zhang/SwiftSpeech.git from cache (1.26s)
Creating working copy for https://github.com/Cay-Zhang/SwiftSpeech.git
Working copy of https://github.com/Cay-Zhang/SwiftSpeech.git resolved at master (6e41f28)
warning: '.resolve-product-dependencies': dependency 'swiftspeech' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Cay-Zhang/SwiftSpeech.git
https://github.com/Cay-Zhang/SwiftSpeech.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftSpeech",
  "name" : "SwiftSpeech",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "SwiftSpeech",
      "targets" : [
        "SwiftSpeech"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftSpeechTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSpeechTests",
      "path" : "Tests/SwiftSpeechTests",
      "sources" : [
        "SwiftSpeechTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftSpeech"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftSpeech",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSpeech",
      "path" : "Sources/SwiftSpeech",
      "product_memberships" : [
        "SwiftSpeech"
      ],
      "sources" : [
        "Authorization.swift",
        "Demos.swift",
        "Environments.swift",
        "Extensions.swift",
        "LibraryContent.swift",
        "RecordButton.swift",
        "Session.swift",
        "SpeechRecognizer.swift",
        "SwiftSpeech.swift",
        "ViewModifiers.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/12] Emitting module SwiftSpeech
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Authorization.swift:32:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.AuthorizationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
16 |     }
17 |
18 |     class AuthorizationCenter: ObservableObject {
   |           `- note: class 'AuthorizationCenter' does not conform to the 'Sendable' protocol
19 |         @Published var speechRecognitionAuthorizationStatus: SFSpeechRecognizerAuthorizationStatus = SFSpeechRecognizer.authorizationStatus()
20 |
   :
30 |         }
31 |
32 |         static let shared = AuthorizationCenter()
   |                    |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.AuthorizationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Authorization.swift:54:1: warning: extension declares a conformance of imported type 'SFSpeechRecognizerAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Speech' introduce this conformance in the future
52 | }
53 |
54 | extension SFSpeechRecognizerAuthorizationStatus: CustomStringConvertible {
   | |- warning: extension declares a conformance of imported type 'SFSpeechRecognizerAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Speech' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
55 |     public var description: String {
56 |         "\(rawValue)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Environments.swift:14:20: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.State' may have shared mutable state; this is an error in the Swift 6 language mode
12 | extension SwiftSpeech.EnvironmentKeys {
13 |     struct SwiftSpeechState: EnvironmentKey {
14 |         static let defaultValue: SwiftSpeech.State = .pending
   |                    |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.State' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |     }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/RecordButton.swift:17:10: note: consider making enum 'State' conform to the 'Sendable' protocol
15 |              and should be attained using `@Environment(\.isSpeechRecognitionAvailable)`.
16 |      */
17 |     enum State {
   |          `- note: consider making enum 'State' conform to the 'Sendable' protocol
18 |         /// Indicating there is no recording in progress.
19 |         /// - Note: It's the default value for `@Environment(\.swiftSpeechState)`.
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Environments.swift:18:20: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(SwiftSpeech.Session) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 |     struct ActionsOnStartRecording: EnvironmentKey {
18 |         static let defaultValue: [(_ session: SwiftSpeech.Session) -> Void] = []
   |                    |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(SwiftSpeech.Session) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |     }
20 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Environments.swift:22:20: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(SwiftSpeech.Session) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 |     struct ActionsOnStopRecording: EnvironmentKey {
22 |         static let defaultValue: [(_ session: SwiftSpeech.Session) -> Void] = []
   |                    |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(SwiftSpeech.Session) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |     }
24 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Environments.swift:26:20: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(SwiftSpeech.Session) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 |     struct ActionsOnCancelRecording: EnvironmentKey {
26 |         static let defaultValue: [(_ session: SwiftSpeech.Session) -> Void] = []
   |                    |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(SwiftSpeech.Session) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |     }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:164:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
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/SwiftSpeech/Session.swift:164:43: error: 'record' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                           `- error: 'record' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/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/SwiftSpeech/Session.swift:164:58: error: 'default' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                                          `- error: 'default' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:165:30: error: 'setActive(_:options:)' is unavailable in macOS
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
165 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
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/SwiftSpeech/Session.swift:167:30: error: 'setActive(_:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
168 |         }
169 |
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/SwiftSpeech/LibraryContent.swift:13:17: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   |         |       `- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add @available attribute to enclosing property
14 |         LibraryItem(
15 |             SwiftSpeech.RecordButton(),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:12:6: error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
   |      `- error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
13 |     var views: [LibraryItem] {
14 |         LibraryItem(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:36:39: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   :
34 |
35 |     @LibraryContentBuilder
36 |     func modifiers(base: AnyView) -> [LibraryItem] {
   |          |                            `- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |          `- note: add @available attribute to enclosing instance method
37 |         LibraryItem(
38 |             base.onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:35:6: error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   :
33 |     }
34 |
35 |     @LibraryContentBuilder
   |      `- error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
36 |     func modifiers(base: AnyView) -> [LibraryItem] {
   |          `- note: add @available attribute to enclosing instance method
37 |         LibraryItem(
38 |             base.onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:147:39: error: 'AVAudioSession' is unavailable in macOS
145 |     struct AudioSessionConfiguration {
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
    |                                       `- error: 'AVAudioSession' is unavailable in macOS
148 |         public var onStopRecording: (AVAudioSession) throws -> Void
149 |
/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/SwiftSpeech/Session.swift:148:38: error: 'AVAudioSession' is unavailable in macOS
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
148 |         public var onStopRecording: (AVAudioSession) throws -> Void
    |                                      `- error: 'AVAudioSession' is unavailable in macOS
149 |
150 |         /**
/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/SwiftSpeech/Session.swift:153:50: error: 'AVAudioSession' is unavailable in macOS
151 |          Create a configuration using two closures.
152 |          */
153 |         public init(onStartRecording: @escaping (AVAudioSession) throws -> Void, onStopRecording: @escaping (AVAudioSession) throws -> Void) {
    |                                                  `- error: 'AVAudioSession' is unavailable in macOS
154 |             self.onStartRecording = onStartRecording
155 |             self.onStopRecording = onStopRecording
/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/SwiftSpeech/Session.swift:153:110: error: 'AVAudioSession' is unavailable in macOS
151 |          Create a configuration using two closures.
152 |          */
153 |         public init(onStartRecording: @escaping (AVAudioSession) throws -> Void, onStopRecording: @escaping (AVAudioSession) throws -> Void) {
    |                                                                                                              `- error: 'AVAudioSession' is unavailable in macOS
154 |             self.onStartRecording = onStartRecording
155 |             self.onStopRecording = onStopRecording
/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/SwiftSpeech/Session.swift:163:27: warning: static property 'recordOnly' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.Session.AudioSessionConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
143 |
144 | public extension SwiftSpeech.Session {
145 |     struct AudioSessionConfiguration {
    |            `- note: consider making struct 'AudioSessionConfiguration' conform to the 'Sendable' protocol
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
    :
161 |          During the recording session, virtually all output on the system is silenced. Audio from other apps can resume after the recording session stops.
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
    |                           |- warning: static property 'recordOnly' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.Session.AudioSessionConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'recordOnly' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
165 |             try audioSession.setActive(true, options: [])
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
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/SwiftSpeech/Session.swift:176:43: error: 'playAndRecord' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                           `- error: 'playAndRecord' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:106:40: note: 'playAndRecord' has been explicitly marked unavailable here
104 |
105 | /*! Use this category when recording and playing back audio. */
106 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayAndRecord		API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                        `- note: 'playAndRecord' has been explicitly marked unavailable here
107 |
108 | /*! Use this category when using a hardware codec or signal processor while
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:65: error: 'default' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                                                 `- error: 'default' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:85: error: 'defaultToSpeaker' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                                                                     `- error: 'defaultToSpeaker' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
AVFAudio.AVAudioSession.CategoryOptions.defaultToSpeaker:4:23: note: 'defaultToSpeaker' has been explicitly marked unavailable here
2 |   struct CategoryOptions {
3 | @available(macOS, unavailable)
4 |     public static var defaultToSpeaker: AVAudioSession.CategoryOptions { get }  }
  |                       `- note: 'defaultToSpeaker' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:104: error: 'allowBluetoothA2DP' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                                                                                        `- error: 'allowBluetoothA2DP' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
AVFAudio.AVAudioSession.CategoryOptions.allowBluetoothA2DP:4:23: note: 'allowBluetoothA2DP' has been explicitly marked unavailable here
2 |   struct CategoryOptions {
3 | @available(macOS, unavailable)
4 |     public static var allowBluetoothA2DP: AVAudioSession.CategoryOptions { get }  }
  |                       `- note: 'allowBluetoothA2DP' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:177:30: error: 'setActive(_:options:)' is unavailable in macOS
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
177 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
178 |         } onStopRecording: { _ in }
179 |
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/SwiftSpeech/Session.swift:175:27: warning: static property 'playAndRecord' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.Session.AudioSessionConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
143 |
144 | public extension SwiftSpeech.Session {
145 |     struct AudioSessionConfiguration {
    |            `- note: consider making struct 'AudioSessionConfiguration' conform to the 'Sendable' protocol
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
    :
173 |          This configuration is non-mixable, meaning it will interrupt any ongoing audio session when it is activated.
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
    |                           |- warning: static property 'playAndRecord' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.Session.AudioSessionConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'playAndRecord' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
177 |             try audioSession.setActive(true, options: [])
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:183:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.Session.AudioSessionConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
143 |
144 | public extension SwiftSpeech.Session {
145 |     struct AudioSessionConfiguration {
    |            `- note: consider making struct 'AudioSessionConfiguration' conform to the 'Sendable' protocol
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
    :
181 |          A configuration that does nothing. Use this configuration when you want to configure, activate, and deactivate your app's audio session manually.
182 |          */
183 |         public static let none = AudioSessionConfiguration { _ in } onStopRecording: { _ in }
    |                           |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.Session.AudioSessionConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |
185 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/SpeechRecognizer.swift:16:16: warning: static property 'instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 | public class SpeechRecognizer {
 15 |
 16 |     static var instances = [SpeechRecognizer]()
    |                |- warning: static property 'instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'instances' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'instances' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |     public typealias ID = UUID
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/SwiftSpeech.swift:9:23: warning: static property 'defaultAnimation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 |     /// Change this when the app starts to configure the default animation used for all record on hold functional components.
 9 |     public static var defaultAnimation: Animation = .interactiveSpring()
   |                       |- warning: static property 'defaultAnimation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultAnimation' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'defaultAnimation' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
[4/12] Compiling SwiftSpeech SwiftSpeech.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/SwiftSpeech.swift:9:23: warning: static property 'defaultAnimation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 |     /// Change this when the app starts to configure the default animation used for all record on hold functional components.
 9 |     public static var defaultAnimation: Animation = .interactiveSpring()
   |                       |- warning: static property 'defaultAnimation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultAnimation' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'defaultAnimation' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
[5/12] Compiling SwiftSpeech Environments.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Environments.swift:14:20: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.State' may have shared mutable state; this is an error in the Swift 6 language mode
12 | extension SwiftSpeech.EnvironmentKeys {
13 |     struct SwiftSpeechState: EnvironmentKey {
14 |         static let defaultValue: SwiftSpeech.State = .pending
   |                    |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.State' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |     }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/RecordButton.swift:17:10: note: consider making enum 'State' conform to the 'Sendable' protocol
15 |              and should be attained using `@Environment(\.isSpeechRecognitionAvailable)`.
16 |      */
17 |     enum State {
   |          `- note: consider making enum 'State' conform to the 'Sendable' protocol
18 |         /// Indicating there is no recording in progress.
19 |         /// - Note: It's the default value for `@Environment(\.swiftSpeechState)`.
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Environments.swift:18:20: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(SwiftSpeech.Session) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 |     struct ActionsOnStartRecording: EnvironmentKey {
18 |         static let defaultValue: [(_ session: SwiftSpeech.Session) -> Void] = []
   |                    |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(SwiftSpeech.Session) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |     }
20 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Environments.swift:22:20: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(SwiftSpeech.Session) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
20 |
21 |     struct ActionsOnStopRecording: EnvironmentKey {
22 |         static let defaultValue: [(_ session: SwiftSpeech.Session) -> Void] = []
   |                    |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(SwiftSpeech.Session) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |     }
24 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Environments.swift:26:20: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(SwiftSpeech.Session) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 |     struct ActionsOnCancelRecording: EnvironmentKey {
26 |         static let defaultValue: [(_ session: SwiftSpeech.Session) -> Void] = []
   |                    |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(SwiftSpeech.Session) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |     }
28 | }
[6/12] Compiling SwiftSpeech Demos.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:164:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
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/SwiftSpeech/Session.swift:164:43: error: 'record' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                           `- error: 'record' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/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/SwiftSpeech/Session.swift:164:58: error: 'default' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                                          `- error: 'default' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:165:30: error: 'setActive(_:options:)' is unavailable in macOS
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
165 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
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/SwiftSpeech/Session.swift:167:30: error: 'setActive(_:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
168 |         }
169 |
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/SwiftSpeech/Demos.swift:137:19: error: 'navigationBarTitle' is unavailable in macOS
135 |                         }.padding(20),
136 |                     alignment: .bottom
137 |                 ).navigationBarTitle(Text("SwiftSpeech"))
    |                   `- error: 'navigationBarTitle' is unavailable in macOS
138 |
139 |             }.onAppear {
SwiftUI.View.navigationBarTitle:7:27: note: 'navigationBarTitle' has been explicitly marked unavailable here
5 |   @available(watchOS, introduced: 6.0, deprecated: 100000.0, renamed: "navigationTitle(_:)")
6 |   @available(visionOS, introduced: 1.0, deprecated: 100000.0, renamed: "navigationTitle(_:)")
7 |   nonisolated public func navigationBarTitle(_ title: Text) -> some View
  |                           `- note: 'navigationBarTitle' has been explicitly marked unavailable here
8 |   }
9 |
[7/12] Compiling SwiftSpeech Authorization.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Authorization.swift:32:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.AuthorizationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
16 |     }
17 |
18 |     class AuthorizationCenter: ObservableObject {
   |           `- note: class 'AuthorizationCenter' does not conform to the 'Sendable' protocol
19 |         @Published var speechRecognitionAuthorizationStatus: SFSpeechRecognizerAuthorizationStatus = SFSpeechRecognizer.authorizationStatus()
20 |
   :
30 |         }
31 |
32 |         static let shared = AuthorizationCenter()
   |                    |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.AuthorizationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Authorization.swift:54:1: warning: extension declares a conformance of imported type 'SFSpeechRecognizerAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Speech' introduce this conformance in the future
52 | }
53 |
54 | extension SFSpeechRecognizerAuthorizationStatus: CustomStringConvertible {
   | |- warning: extension declares a conformance of imported type 'SFSpeechRecognizerAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Speech' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
55 |     public var description: String {
56 |         "\(rawValue)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Authorization.swift:47:5: error: return from initializer without initializing all stored properties
45 |     public init(trueValues: Set<SFSpeechRecognizerAuthorizationStatus> = [.authorized]) {
46 |         self.trueValues = trueValues
47 |     }
   |     |- error: return from initializer without initializing all stored properties
   |     `- note: main actor-isolated default value of 'self.authCenter' cannot be used in a nonisolated initalizer
48 |
49 |     public var projectedValue: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Authorization.swift:26:25: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
24 |                 if self.speechRecognitionAuthorizationStatus != authStatus {
25 |                     DispatchQueue.main.async {
26 |                         self.speechRecognitionAuthorizationStatus = authStatus
   |                         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
27 |                     }
28 |                 }
[8/12] Compiling SwiftSpeech LibraryContent.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:13:17: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   |         |       `- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add @available attribute to enclosing property
14 |         LibraryItem(
15 |             SwiftSpeech.RecordButton(),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:12:6: error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
   |      `- error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
13 |     var views: [LibraryItem] {
14 |         LibraryItem(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:36:39: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   :
34 |
35 |     @LibraryContentBuilder
36 |     func modifiers(base: AnyView) -> [LibraryItem] {
   |          |                            `- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |          `- note: add @available attribute to enclosing instance method
37 |         LibraryItem(
38 |             base.onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:35:6: error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   :
33 |     }
34 |
35 |     @LibraryContentBuilder
   |      `- error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
36 |     func modifiers(base: AnyView) -> [LibraryItem] {
   |          `- note: add @available attribute to enclosing instance method
37 |         LibraryItem(
38 |             base.onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:14:9: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   |         `- note: add @available attribute to enclosing property
14 |         LibraryItem(
   |         |- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add 'if #available' version check
15 |             SwiftSpeech.RecordButton(),
16 |             title: "Record Button"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:19:9: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   |         `- note: add @available attribute to enclosing property
14 |         LibraryItem(
15 |             SwiftSpeech.RecordButton(),
   :
17 |         )
18 |
19 |         LibraryItem(
   |         |- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add 'if #available' version check
20 |             SwiftSpeech.Demos.Basic(locale: .current),
21 |             title: "Demo - Basic"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:24:9: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   |         `- note: add @available attribute to enclosing property
14 |         LibraryItem(
15 |             SwiftSpeech.RecordButton(),
   :
22 |         )
23 |
24 |         LibraryItem(
   |         |- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add 'if #available' version check
25 |             SwiftSpeech.Demos.Colors(),
26 |             title: "Demo - Colors"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:29:9: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   |         `- note: add @available attribute to enclosing property
14 |         LibraryItem(
15 |             SwiftSpeech.RecordButton(),
   :
27 |         )
28 |
29 |         LibraryItem(
   |         |- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add 'if #available' version check
30 |             SwiftSpeech.Demos.List(locale: .current),
31 |             title: "Demos - List"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:15:25: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 |     var views: [LibraryItem] {
14 |         LibraryItem(
15 |             SwiftSpeech.RecordButton(),
   |                         `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 |             title: "Record Button"
17 |         )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/RecordButton.swift:34:16: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
32 |         @SpeechRecognitionAuthStatus var authStatus
33 |
34 |         public init() { }
   |                |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
   |                `- note: main actor isolation inferred from conformance to protocol 'View'
35 |
36 |         var backgroundColor: Color {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:20:31: warning: call to main actor-isolated initializer 'init(locale:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 |
19 |         LibraryItem(
20 |             SwiftSpeech.Demos.Basic(locale: .current),
   |                               `- warning: call to main actor-isolated initializer 'init(locale:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |             title: "Demo - Basic"
22 |         )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Demos.swift:24:16: note: calls to initializer 'init(locale:)' from outside of its actor context are implicitly asynchronous
 22 |         }
 23 |
 24 |         public init(locale: Locale = .current) {
    |                |- note: calls to initializer 'init(locale:)' from outside of its actor context are implicitly asynchronous
    |                `- note: main actor isolation inferred from conformance to protocol 'View'
 25 |             self.init(sessionConfiguration: SwiftSpeech.Session.Configuration(locale: locale))
 26 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:25:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 |
24 |         LibraryItem(
25 |             SwiftSpeech.Demos.Colors(),
   |                               `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 |             title: "Demo - Colors"
27 |         )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Demos.swift:72:16: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 70 |         }
 71 |
 72 |         public init() { }
    |                |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
    |                `- note: main actor isolation inferred from conformance to protocol 'View'
 73 |
 74 |         public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:30:31: warning: call to main actor-isolated initializer 'init(locale:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 |
29 |         LibraryItem(
30 |             SwiftSpeech.Demos.List(locale: .current),
   |                               `- warning: call to main actor-isolated initializer 'init(locale:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 |             title: "Demos - List"
32 |         )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Demos.swift:100:16: note: calls to initializer 'init(locale:)' from outside of its actor context are implicitly asynchronous
 98 |         }
 99 |
100 |         public init(locale: Locale = .current) {
    |                |- note: calls to initializer 'init(locale:)' from outside of its actor context are implicitly asynchronous
    |                `- note: main actor isolation inferred from conformance to protocol 'View'
101 |             self.init(sessionConfiguration: SwiftSpeech.Session.Configuration(locale: locale))
102 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:37:9: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   :
34 |
35 |     @LibraryContentBuilder
36 |     func modifiers(base: AnyView) -> [LibraryItem] {
   |          `- note: add @available attribute to enclosing instance method
37 |         LibraryItem(
   |         |- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add 'if #available' version check
38 |             base.onAppear {
39 |                 SwiftSpeech.requestSpeechRecognitionAuthorization()
[9/12] Compiling SwiftSpeech Session.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:164:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
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/SwiftSpeech/Session.swift:164:43: error: 'record' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                           `- error: 'record' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/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/SwiftSpeech/Session.swift:164:58: error: 'default' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                                          `- error: 'default' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:165:30: error: 'setActive(_:options:)' is unavailable in macOS
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
165 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
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/SwiftSpeech/Session.swift:167:30: error: 'setActive(_:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
168 |         }
169 |
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/SwiftSpeech/Session.swift:147:39: error: 'AVAudioSession' is unavailable in macOS
145 |     struct AudioSessionConfiguration {
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
    |                                       `- error: 'AVAudioSession' is unavailable in macOS
148 |         public var onStopRecording: (AVAudioSession) throws -> Void
149 |
/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/SwiftSpeech/Session.swift:148:38: error: 'AVAudioSession' is unavailable in macOS
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
148 |         public var onStopRecording: (AVAudioSession) throws -> Void
    |                                      `- error: 'AVAudioSession' is unavailable in macOS
149 |
150 |         /**
/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/SwiftSpeech/Session.swift:153:50: error: 'AVAudioSession' is unavailable in macOS
151 |          Create a configuration using two closures.
152 |          */
153 |         public init(onStartRecording: @escaping (AVAudioSession) throws -> Void, onStopRecording: @escaping (AVAudioSession) throws -> Void) {
    |                                                  `- error: 'AVAudioSession' is unavailable in macOS
154 |             self.onStartRecording = onStartRecording
155 |             self.onStopRecording = onStopRecording
/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/SwiftSpeech/Session.swift:153:110: error: 'AVAudioSession' is unavailable in macOS
151 |          Create a configuration using two closures.
152 |          */
153 |         public init(onStartRecording: @escaping (AVAudioSession) throws -> Void, onStopRecording: @escaping (AVAudioSession) throws -> Void) {
    |                                                                                                              `- error: 'AVAudioSession' is unavailable in macOS
154 |             self.onStartRecording = onStartRecording
155 |             self.onStopRecording = onStopRecording
/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/SwiftSpeech/Session.swift:163:27: warning: static property 'recordOnly' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.Session.AudioSessionConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
143 |
144 | public extension SwiftSpeech.Session {
145 |     struct AudioSessionConfiguration {
    |            `- note: consider making struct 'AudioSessionConfiguration' conform to the 'Sendable' protocol
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
    :
161 |          During the recording session, virtually all output on the system is silenced. Audio from other apps can resume after the recording session stops.
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
    |                           |- warning: static property 'recordOnly' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.Session.AudioSessionConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'recordOnly' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
165 |             try audioSession.setActive(true, options: [])
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
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/SwiftSpeech/Session.swift:176:43: error: 'playAndRecord' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                           `- error: 'playAndRecord' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:106:40: note: 'playAndRecord' has been explicitly marked unavailable here
104 |
105 | /*! Use this category when recording and playing back audio. */
106 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayAndRecord		API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                        `- note: 'playAndRecord' has been explicitly marked unavailable here
107 |
108 | /*! Use this category when using a hardware codec or signal processor while
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:65: error: 'default' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                                                 `- error: 'default' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:85: error: 'defaultToSpeaker' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                                                                     `- error: 'defaultToSpeaker' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
AVFAudio.AVAudioSession.CategoryOptions.defaultToSpeaker:4:23: note: 'defaultToSpeaker' has been explicitly marked unavailable here
2 |   struct CategoryOptions {
3 | @available(macOS, unavailable)
4 |     public static var defaultToSpeaker: AVAudioSession.CategoryOptions { get }  }
  |                       `- note: 'defaultToSpeaker' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:104: error: 'allowBluetoothA2DP' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                                                                                        `- error: 'allowBluetoothA2DP' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
AVFAudio.AVAudioSession.CategoryOptions.allowBluetoothA2DP:4:23: note: 'allowBluetoothA2DP' has been explicitly marked unavailable here
2 |   struct CategoryOptions {
3 | @available(macOS, unavailable)
4 |     public static var allowBluetoothA2DP: AVAudioSession.CategoryOptions { get }  }
  |                       `- note: 'allowBluetoothA2DP' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:177:30: error: 'setActive(_:options:)' is unavailable in macOS
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
177 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
178 |         } onStopRecording: { _ in }
179 |
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/SwiftSpeech/Session.swift:175:27: warning: static property 'playAndRecord' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.Session.AudioSessionConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
143 |
144 | public extension SwiftSpeech.Session {
145 |     struct AudioSessionConfiguration {
    |            `- note: consider making struct 'AudioSessionConfiguration' conform to the 'Sendable' protocol
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
    :
173 |          This configuration is non-mixable, meaning it will interrupt any ongoing audio session when it is activated.
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
    |                           |- warning: static property 'playAndRecord' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.Session.AudioSessionConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'playAndRecord' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
177 |             try audioSession.setActive(true, options: [])
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:183:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.Session.AudioSessionConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
143 |
144 | public extension SwiftSpeech.Session {
145 |     struct AudioSessionConfiguration {
    |            `- note: consider making struct 'AudioSessionConfiguration' conform to the 'Sendable' protocol
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
    :
181 |          A configuration that does nothing. Use this configuration when you want to configure, activate, and deactivate your app's audio session manually.
182 |          */
183 |         public static let none = AudioSessionConfiguration { _ in } onStopRecording: { _ in }
    |                           |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SwiftSpeech.Session.AudioSessionConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |
185 |     }
[10/12] Compiling SwiftSpeech SpeechRecognizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/SpeechRecognizer.swift:16:16: warning: static property 'instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 | public class SpeechRecognizer {
 15 |
 16 |     static var instances = [SpeechRecognizer]()
    |                |- warning: static property 'instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'instances' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'instances' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |     public typealias ID = UUID
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/SpeechRecognizer.swift:118:80: error: 'AVAudioSession' is unavailable in macOS
116 |
117 |         do {
118 |             try sessionConfiguration.audioSessionConfiguration.onStopRecording(AVAudioSession.sharedInstance())
    |                                                                                `- error: 'AVAudioSession' is unavailable in macOS
119 |         } catch {
120 |             resultSubject.send(completion: .failure(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/SwiftSpeech/SpeechRecognizer.swift:118:95: error: 'sharedInstance()' is unavailable in macOS
116 |
117 |         do {
118 |             try sessionConfiguration.audioSessionConfiguration.onStopRecording(AVAudioSession.sharedInstance())
    |                                                                                               `- error: 'sharedInstance()' is unavailable in macOS
119 |         } catch {
120 |             resultSubject.send(completion: .failure(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 |
[11/12] Compiling SwiftSpeech Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:164:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
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/SwiftSpeech/Session.swift:164:43: error: 'record' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                           `- error: 'record' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/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/SwiftSpeech/Session.swift:164:58: error: 'default' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                                          `- error: 'default' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:165:30: error: 'setActive(_:options:)' is unavailable in macOS
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
165 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
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/SwiftSpeech/Session.swift:167:30: error: 'setActive(_:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
168 |         }
169 |
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 |
[12/12] Compiling SwiftSpeech RecordButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/RecordButton.swift:67:17: error: 'init(systemName:)' is only available in macOS 11.0 or newer
27 |
28 | public extension SwiftSpeech {
29 |     struct RecordButton : View {
   |            `- note: add @available attribute to enclosing struct
30 |
31 |         @Environment(\.swiftSpeechState) var state: SwiftSpeech.State
   :
56 |         }
57 |
58 |         public var body: some View {
   |                    `- note: add @available attribute to enclosing property
59 |
60 |             ZStack {
   :
65 |                     .zIndex(0)
66 |
67 |                 Image(systemName: state != .cancelling ? "waveform" : "xmark")
   |                 |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
   |                 `- note: add 'if #available' version check
68 |                     .font(.system(size: 30, weight: .medium, design: .default))
69 |                     .foregroundColor(.white)
[13/13] Compiling SwiftSpeech ViewModifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:164:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
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/SwiftSpeech/Session.swift:164:43: error: 'record' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                           `- error: 'record' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/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/SwiftSpeech/Session.swift:164:58: error: 'default' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                                          `- error: 'default' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:165:30: error: 'setActive(_:options:)' is unavailable in macOS
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
165 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
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/SwiftSpeech/Session.swift:167:30: error: 'setActive(_:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
168 |         }
169 |
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 |
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/11] Compiling SwiftSpeech Session.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:164:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
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/SwiftSpeech/Session.swift:164:43: error: 'record' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                           `- error: 'record' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/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/SwiftSpeech/Session.swift:164:58: error: 'default' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                                          `- error: 'default' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:165:30: error: 'setActive(_:options:)' is unavailable in macOS
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
165 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
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/SwiftSpeech/Session.swift:167:30: error: 'setActive(_:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
168 |         }
169 |
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/SwiftSpeech/Session.swift:147:39: error: 'AVAudioSession' is unavailable in macOS
145 |     struct AudioSessionConfiguration {
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
    |                                       `- error: 'AVAudioSession' is unavailable in macOS
148 |         public var onStopRecording: (AVAudioSession) throws -> Void
149 |
/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/SwiftSpeech/Session.swift:148:38: error: 'AVAudioSession' is unavailable in macOS
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
148 |         public var onStopRecording: (AVAudioSession) throws -> Void
    |                                      `- error: 'AVAudioSession' is unavailable in macOS
149 |
150 |         /**
/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/SwiftSpeech/Session.swift:153:50: error: 'AVAudioSession' is unavailable in macOS
151 |          Create a configuration using two closures.
152 |          */
153 |         public init(onStartRecording: @escaping (AVAudioSession) throws -> Void, onStopRecording: @escaping (AVAudioSession) throws -> Void) {
    |                                                  `- error: 'AVAudioSession' is unavailable in macOS
154 |             self.onStartRecording = onStartRecording
155 |             self.onStopRecording = onStopRecording
/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/SwiftSpeech/Session.swift:153:110: error: 'AVAudioSession' is unavailable in macOS
151 |          Create a configuration using two closures.
152 |          */
153 |         public init(onStartRecording: @escaping (AVAudioSession) throws -> Void, onStopRecording: @escaping (AVAudioSession) throws -> Void) {
    |                                                                                                              `- error: 'AVAudioSession' is unavailable in macOS
154 |             self.onStartRecording = onStartRecording
155 |             self.onStopRecording = onStopRecording
/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/SwiftSpeech/Session.swift:176:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
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/SwiftSpeech/Session.swift:176:43: error: 'playAndRecord' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                           `- error: 'playAndRecord' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:106:40: note: 'playAndRecord' has been explicitly marked unavailable here
104 |
105 | /*! Use this category when recording and playing back audio. */
106 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayAndRecord		API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                        `- note: 'playAndRecord' has been explicitly marked unavailable here
107 |
108 | /*! Use this category when using a hardware codec or signal processor while
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:65: error: 'default' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                                                 `- error: 'default' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:85: error: 'defaultToSpeaker' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                                                                     `- error: 'defaultToSpeaker' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
AVFAudio.AVAudioSession.CategoryOptions.defaultToSpeaker:4:23: note: 'defaultToSpeaker' has been explicitly marked unavailable here
2 |   struct CategoryOptions {
3 | @available(macOS, unavailable)
4 |     public static var defaultToSpeaker: AVAudioSession.CategoryOptions { get }  }
  |                       `- note: 'defaultToSpeaker' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:104: error: 'allowBluetoothA2DP' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                                                                                        `- error: 'allowBluetoothA2DP' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
AVFAudio.AVAudioSession.CategoryOptions.allowBluetoothA2DP:4:23: note: 'allowBluetoothA2DP' has been explicitly marked unavailable here
2 |   struct CategoryOptions {
3 | @available(macOS, unavailable)
4 |     public static var allowBluetoothA2DP: AVAudioSession.CategoryOptions { get }  }
  |                       `- note: 'allowBluetoothA2DP' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:177:30: error: 'setActive(_:options:)' is unavailable in macOS
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
177 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
178 |         } onStopRecording: { _ in }
179 |
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 |
[3/12] Compiling SwiftSpeech Environments.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/12] Compiling SwiftSpeech Authorization.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Authorization.swift:54:1: warning: extension declares a conformance of imported type 'SFSpeechRecognizerAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Speech' introduce this conformance in the future
52 | }
53 |
54 | extension SFSpeechRecognizerAuthorizationStatus: CustomStringConvertible {
   | |- warning: extension declares a conformance of imported type 'SFSpeechRecognizerAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Speech' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
55 |     public var description: String {
56 |         "\(rawValue)"
[5/12] Emitting module SwiftSpeech
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Authorization.swift:54:1: warning: extension declares a conformance of imported type 'SFSpeechRecognizerAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Speech' introduce this conformance in the future
52 | }
53 |
54 | extension SFSpeechRecognizerAuthorizationStatus: CustomStringConvertible {
   | |- warning: extension declares a conformance of imported type 'SFSpeechRecognizerAuthorizationStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Speech' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
55 |     public var description: String {
56 |         "\(rawValue)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:164:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
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/SwiftSpeech/Session.swift:164:43: error: 'record' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                           `- error: 'record' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/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/SwiftSpeech/Session.swift:164:58: error: 'default' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                                          `- error: 'default' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:165:30: error: 'setActive(_:options:)' is unavailable in macOS
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
165 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
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/SwiftSpeech/Session.swift:167:30: error: 'setActive(_:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
168 |         }
169 |
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/SwiftSpeech/LibraryContent.swift:13:17: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   |         |       `- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add @available attribute to enclosing property
14 |         LibraryItem(
15 |             SwiftSpeech.RecordButton(),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:12:6: error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
   |      `- error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
13 |     var views: [LibraryItem] {
14 |         LibraryItem(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:36:39: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   :
34 |
35 |     @LibraryContentBuilder
36 |     func modifiers(base: AnyView) -> [LibraryItem] {
   |          |                            `- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |          `- note: add @available attribute to enclosing instance method
37 |         LibraryItem(
38 |             base.onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:35:6: error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   :
33 |     }
34 |
35 |     @LibraryContentBuilder
   |      `- error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
36 |     func modifiers(base: AnyView) -> [LibraryItem] {
   |          `- note: add @available attribute to enclosing instance method
37 |         LibraryItem(
38 |             base.onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:147:39: error: 'AVAudioSession' is unavailable in macOS
145 |     struct AudioSessionConfiguration {
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
    |                                       `- error: 'AVAudioSession' is unavailable in macOS
148 |         public var onStopRecording: (AVAudioSession) throws -> Void
149 |
/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/SwiftSpeech/Session.swift:148:38: error: 'AVAudioSession' is unavailable in macOS
146 |
147 |         public var onStartRecording: (AVAudioSession) throws -> Void
148 |         public var onStopRecording: (AVAudioSession) throws -> Void
    |                                      `- error: 'AVAudioSession' is unavailable in macOS
149 |
150 |         /**
/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/SwiftSpeech/Session.swift:153:50: error: 'AVAudioSession' is unavailable in macOS
151 |          Create a configuration using two closures.
152 |          */
153 |         public init(onStartRecording: @escaping (AVAudioSession) throws -> Void, onStopRecording: @escaping (AVAudioSession) throws -> Void) {
    |                                                  `- error: 'AVAudioSession' is unavailable in macOS
154 |             self.onStartRecording = onStartRecording
155 |             self.onStopRecording = onStopRecording
/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/SwiftSpeech/Session.swift:153:110: error: 'AVAudioSession' is unavailable in macOS
151 |          Create a configuration using two closures.
152 |          */
153 |         public init(onStartRecording: @escaping (AVAudioSession) throws -> Void, onStopRecording: @escaping (AVAudioSession) throws -> Void) {
    |                                                                                                              `- error: 'AVAudioSession' is unavailable in macOS
154 |             self.onStartRecording = onStartRecording
155 |             self.onStopRecording = onStopRecording
/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/SwiftSpeech/Session.swift:176:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
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/SwiftSpeech/Session.swift:176:43: error: 'playAndRecord' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                           `- error: 'playAndRecord' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:106:40: note: 'playAndRecord' has been explicitly marked unavailable here
104 |
105 | /*! Use this category when recording and playing back audio. */
106 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayAndRecord		API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                        `- note: 'playAndRecord' has been explicitly marked unavailable here
107 |
108 | /*! Use this category when using a hardware codec or signal processor while
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:65: error: 'default' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                                                 `- error: 'default' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:85: error: 'defaultToSpeaker' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                                                                     `- error: 'defaultToSpeaker' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
AVFAudio.AVAudioSession.CategoryOptions.defaultToSpeaker:4:23: note: 'defaultToSpeaker' has been explicitly marked unavailable here
2 |   struct CategoryOptions {
3 | @available(macOS, unavailable)
4 |     public static var defaultToSpeaker: AVAudioSession.CategoryOptions { get }  }
  |                       `- note: 'defaultToSpeaker' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:176:104: error: 'allowBluetoothA2DP' is unavailable in macOS
174 |          */
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
    |                                                                                                        `- error: 'allowBluetoothA2DP' is unavailable in macOS
177 |             try audioSession.setActive(true, options: [])
178 |         } onStopRecording: { _ in }
AVFAudio.AVAudioSession.CategoryOptions.allowBluetoothA2DP:4:23: note: 'allowBluetoothA2DP' has been explicitly marked unavailable here
2 |   struct CategoryOptions {
3 | @available(macOS, unavailable)
4 |     public static var allowBluetoothA2DP: AVAudioSession.CategoryOptions { get }  }
  |                       `- note: 'allowBluetoothA2DP' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:177:30: error: 'setActive(_:options:)' is unavailable in macOS
175 |         public static let playAndRecord = AudioSessionConfiguration { audioSession in
176 |             try audioSession.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetoothA2DP])
177 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
178 |         } onStopRecording: { _ in }
179 |
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/12] Compiling SwiftSpeech RecordButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/RecordButton.swift:67:17: error: 'init(systemName:)' is only available in macOS 11.0 or newer
27 |
28 | public extension SwiftSpeech {
29 |     struct RecordButton : View {
   |            `- note: add @available attribute to enclosing struct
30 |
31 |         @Environment(\.swiftSpeechState) var state: SwiftSpeech.State
   :
56 |         }
57 |
58 |         public var body: some View {
   |                    `- note: add @available attribute to enclosing property
59 |
60 |             ZStack {
   :
65 |                     .zIndex(0)
66 |
67 |                 Image(systemName: state != .cancelling ? "waveform" : "xmark")
   |                 |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
   |                 `- note: add 'if #available' version check
68 |                     .font(.system(size: 30, weight: .medium, design: .default))
69 |                     .foregroundColor(.white)
[7/12] Compiling SwiftSpeech LibraryContent.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:13:17: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   |         |       `- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add @available attribute to enclosing property
14 |         LibraryItem(
15 |             SwiftSpeech.RecordButton(),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:12:6: error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
   |      `- error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
13 |     var views: [LibraryItem] {
14 |         LibraryItem(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:36:39: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   :
34 |
35 |     @LibraryContentBuilder
36 |     func modifiers(base: AnyView) -> [LibraryItem] {
   |          |                            `- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |          `- note: add @available attribute to enclosing instance method
37 |         LibraryItem(
38 |             base.onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:35:6: error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   :
33 |     }
34 |
35 |     @LibraryContentBuilder
   |      `- error: 'LibraryContentBuilder' is only available in macOS 11.0 or newer
36 |     func modifiers(base: AnyView) -> [LibraryItem] {
   |          `- note: add @available attribute to enclosing instance method
37 |         LibraryItem(
38 |             base.onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:14:9: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   |         `- note: add @available attribute to enclosing property
14 |         LibraryItem(
   |         |- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add 'if #available' version check
15 |             SwiftSpeech.RecordButton(),
16 |             title: "Record Button"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:19:9: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   |         `- note: add @available attribute to enclosing property
14 |         LibraryItem(
15 |             SwiftSpeech.RecordButton(),
   :
17 |         )
18 |
19 |         LibraryItem(
   |         |- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add 'if #available' version check
20 |             SwiftSpeech.Demos.Basic(locale: .current),
21 |             title: "Demo - Basic"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:24:9: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   |         `- note: add @available attribute to enclosing property
14 |         LibraryItem(
15 |             SwiftSpeech.RecordButton(),
   :
22 |         )
23 |
24 |         LibraryItem(
   |         |- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add 'if #available' version check
25 |             SwiftSpeech.Demos.Colors(),
26 |             title: "Demo - Colors"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:29:9: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   |         `- note: add @available attribute to enclosing property
14 |         LibraryItem(
15 |             SwiftSpeech.RecordButton(),
   :
27 |         )
28 |
29 |         LibraryItem(
   |         |- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add 'if #available' version check
30 |             SwiftSpeech.Demos.List(locale: .current),
31 |             title: "Demos - List"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/LibraryContent.swift:37:9: error: 'LibraryItem' is only available in macOS 11.0 or newer
 9 |
10 | @available(iOS 14.0, *)
11 | struct LibraryContent: LibraryContentProvider {
   |        `- note: add @available attribute to enclosing struct
12 |     @LibraryContentBuilder
13 |     var views: [LibraryItem] {
   :
34 |
35 |     @LibraryContentBuilder
36 |     func modifiers(base: AnyView) -> [LibraryItem] {
   |          `- note: add @available attribute to enclosing instance method
37 |         LibraryItem(
   |         |- error: 'LibraryItem' is only available in macOS 11.0 or newer
   |         `- note: add 'if #available' version check
38 |             base.onAppear {
39 |                 SwiftSpeech.requestSpeechRecognitionAuthorization()
[8/12] Compiling SwiftSpeech SwiftSpeech.swift
[9/12] Compiling SwiftSpeech SpeechRecognizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/SpeechRecognizer.swift:118:80: error: 'AVAudioSession' is unavailable in macOS
116 |
117 |         do {
118 |             try sessionConfiguration.audioSessionConfiguration.onStopRecording(AVAudioSession.sharedInstance())
    |                                                                                `- error: 'AVAudioSession' is unavailable in macOS
119 |         } catch {
120 |             resultSubject.send(completion: .failure(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/SwiftSpeech/SpeechRecognizer.swift:118:95: error: 'sharedInstance()' is unavailable in macOS
116 |
117 |         do {
118 |             try sessionConfiguration.audioSessionConfiguration.onStopRecording(AVAudioSession.sharedInstance())
    |                                                                                               `- error: 'sharedInstance()' is unavailable in macOS
119 |         } catch {
120 |             resultSubject.send(completion: .failure(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 |
[10/12] Compiling SwiftSpeech Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:164:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
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/SwiftSpeech/Session.swift:164:43: error: 'record' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                           `- error: 'record' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/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/SwiftSpeech/Session.swift:164:58: error: 'default' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                                          `- error: 'default' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:165:30: error: 'setActive(_:options:)' is unavailable in macOS
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
165 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
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/SwiftSpeech/Session.swift:167:30: error: 'setActive(_:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
168 |         }
169 |
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 |
[11/12] Compiling SwiftSpeech Demos.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:164:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
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/SwiftSpeech/Session.swift:164:43: error: 'record' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                           `- error: 'record' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/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/SwiftSpeech/Session.swift:164:58: error: 'default' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                                          `- error: 'default' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:165:30: error: 'setActive(_:options:)' is unavailable in macOS
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
165 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
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/SwiftSpeech/Session.swift:167:30: error: 'setActive(_:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
168 |         }
169 |
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/SwiftSpeech/Demos.swift:137:19: error: 'navigationBarTitle' is unavailable in macOS
135 |                         }.padding(20),
136 |                     alignment: .bottom
137 |                 ).navigationBarTitle(Text("SwiftSpeech"))
    |                   `- error: 'navigationBarTitle' is unavailable in macOS
138 |
139 |             }.onAppear {
SwiftUI.View.navigationBarTitle:7:27: note: 'navigationBarTitle' has been explicitly marked unavailable here
5 |   @available(watchOS, introduced: 6.0, deprecated: 100000.0, renamed: "navigationTitle(_:)")
6 |   @available(visionOS, introduced: 1.0, deprecated: 100000.0, renamed: "navigationTitle(_:)")
7 |   nonisolated public func navigationBarTitle(_ title: Text) -> some View
  |                           `- note: 'navigationBarTitle' has been explicitly marked unavailable here
8 |   }
9 |
[12/12] Compiling SwiftSpeech ViewModifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:164:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
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/SwiftSpeech/Session.swift:164:43: error: 'record' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                           `- error: 'record' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/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/SwiftSpeech/Session.swift:164:58: error: 'default' is unavailable in macOS
162 |          */
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
    |                                                          `- error: 'default' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeech/Session.swift:165:30: error: 'setActive(_:options:)' is unavailable in macOS
163 |         public static let recordOnly = AudioSessionConfiguration { audioSession in
164 |             try audioSession.setCategory(.record, mode: .default, options: [])
165 |             try audioSession.setActive(true, options: [])
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
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/SwiftSpeech/Session.swift:167:30: error: 'setActive(_:options:)' is unavailable in macOS
165 |             try audioSession.setActive(true, options: [])
166 |         } onStopRecording: { audioSession in
167 |             try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
    |                              `- error: 'setActive(_:options:)' is unavailable in macOS
168 |         }
169 |
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