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 v0.9.3 (6e41f2), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 19:39:45 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Cay-Zhang/SwiftSpeech.git
Reference: v0.9.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Cay-Zhang/SwiftSpeech
 * tag               v0.9.3     -> FETCH_HEAD
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 v0.9.3
========================================
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/355] Fetching swiftspeech
Fetched https://github.com/Cay-Zhang/SwiftSpeech.git from cache (1.40s)
Creating working copy for https://github.com/Cay-Zhang/SwiftSpeech.git
Working copy of https://github.com/Cay-Zhang/SwiftSpeech.git resolved at v0.9.3 (6e41f28)
warning: '.resolve-product-dependencies': dependency 'swiftspeech' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Cay-Zhang/SwiftSpeech.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/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: annotate 'instances' with '@MainActor' if property should only be accessed from the main actor
    |                `- 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))
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject, @unchecked Sendable {
   |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/Sources/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:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
 2 | open class AVAudioSession : NSObject, @unchecked Sendable {
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
   |                     `- note: 'sharedInstance()' has been explicitly marked unavailable here
 5 |     @available(macOS, unavailable)
 6 |     open var availableCategories: [AVAudioSession.Category] { get }
[4/13] 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:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 |     open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 |     @available(macOS, unavailable)
18 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
   |               `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 |     @available(macOS, unavailable)
20 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/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
AVFAudio.AVAudioSession.Category:9:23: note: 'record' has been explicitly marked unavailable here
 7 |     public static let playback: AVAudioSession.Category
 8 |     @available(macOS, unavailable)
 9 |     public static let record: AVAudioSession.Category
   |                       `- note: 'record' has been explicitly marked unavailable here
10 |     @available(macOS, unavailable)
11 |     public static let playAndRecord: AVAudioSession.Category
/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
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
 1 | extension AVAudioSession.Mode {
 2 |     @available(macOS, unavailable)
 3 |     public static let `default`: AVAudioSession.Mode
   |                       `- note: 'default' has been explicitly marked unavailable here
 4 |     @available(macOS, unavailable)
 5 |     public static let voiceChat: AVAudioSession.Mode
/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:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
 4 |     open func setActive(_ active: Bool) throws
 5 |     @available(macOS, unavailable)
 6 |     open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
   |               `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
 7 |     @available(swift, obsoleted: 4.2, renamed: "setActive(_:options:)")
 8 |     @available(macOS, unavailable)
/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:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
 4 |     open func setActive(_ active: Bool) throws
 5 |     @available(macOS, unavailable)
 6 |     open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
   |               `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
 7 |     @available(swift, obsoleted: 4.2, renamed: "setActive(_:options:)")
 8 |     @available(macOS, unavailable)
/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: annotate 'recordOnly' with '@MainActor' if property should only be accessed from the main actor
    |                           `- 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/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: annotate 'defaultAnimation' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
[5/13] 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: annotate 'defaultAnimation' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
[6/13] 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:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 |     open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 |     @available(macOS, unavailable)
18 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
   |               `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 |     @available(macOS, unavailable)
20 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/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
AVFAudio.AVAudioSession.Category:9:23: note: 'record' has been explicitly marked unavailable here
 7 |     public static let playback: AVAudioSession.Category
 8 |     @available(macOS, unavailable)
 9 |     public static let record: AVAudioSession.Category
   |                       `- note: 'record' has been explicitly marked unavailable here
10 |     @available(macOS, unavailable)
11 |     public static let playAndRecord: AVAudioSession.Category
/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
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
 1 | extension AVAudioSession.Mode {
 2 |     @available(macOS, unavailable)
 3 |     public static let `default`: AVAudioSession.Mode
   |                       `- note: 'default' has been explicitly marked unavailable here
 4 |     @available(macOS, unavailable)
 5 |     public static let voiceChat: AVAudioSession.Mode
/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:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
 4 |     open func setActive(_ active: Bool) throws
 5 |     @available(macOS, unavailable)
 6 |     open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
   |               `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
 7 |     @available(swift, obsoleted: 4.2, renamed: "setActive(_:options:)")
 8 |     @available(macOS, unavailable)
/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:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
 4 |     open func setActive(_ active: Bool) throws
 5 |     @available(macOS, unavailable)
 6 |     open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
   |               `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
 7 |     @available(swift, obsoleted: 4.2, renamed: "setActive(_:options:)")
 8 |     @available(macOS, unavailable)
/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: annotate 'recordOnly' with '@MainActor' if property should only be accessed from the main actor
    |                           `- 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: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 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject, @unchecked Sendable {
   |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/Sources/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 |         /**
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject, @unchecked Sendable {
   |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/Sources/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
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject, @unchecked Sendable {
   |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/Sources/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
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject, @unchecked Sendable {
   |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/Sources/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:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 |     open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 |     @available(macOS, unavailable)
18 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
   |               `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 |     @available(macOS, unavailable)
20 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/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 }
AVFAudio.AVAudioSession.Category:11:23: note: 'playAndRecord' has been explicitly marked unavailable here
 9 |     public static let record: AVAudioSession.Category
10 |     @available(macOS, unavailable)
11 |     public static let playAndRecord: AVAudioSession.Category
   |                       `- note: 'playAndRecord' has been explicitly marked unavailable here
12 |     @available(macOS, unavailable)
13 |     public static let audioProcessing: AVAudioSession.Category
/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 }
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
 1 | extension AVAudioSession.Mode {
 2 |     @available(macOS, unavailable)
 3 |     public static let `default`: AVAudioSession.Mode
   |                       `- note: 'default' has been explicitly marked unavailable here
 4 |     @available(macOS, unavailable)
 5 |     public static let voiceChat: AVAudioSession.Mode
/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:77:27: note: 'defaultToSpeaker' has been explicitly marked unavailable here
 75 |         public static var AllowBluetooth: AVAudioSession.CategoryOptions { get }
 76 |         @available(macOS, unavailable)
 77 |         public static var defaultToSpeaker: AVAudioSession.CategoryOptions { get }
    |                           `- note: 'defaultToSpeaker' has been explicitly marked unavailable here
 78 |         @available(macOS, unavailable)
 79 |         @available(swift, obsoleted: 3, renamed: "defaultToSpeaker")
/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:87:27: note: 'allowBluetoothA2DP' has been explicitly marked unavailable here
 85 |         public static var InterruptSpokenAudioAndMixWithOthers: AVAudioSession.CategoryOptions { get }
 86 |         @available(macOS, unavailable)
 87 |         public static var allowBluetoothA2DP: AVAudioSession.CategoryOptions { get }
    |                           `- note: 'allowBluetoothA2DP' has been explicitly marked unavailable here
 88 |         @available(macOS, unavailable)
 89 |         @available(swift, obsoleted: 3, renamed: "allowBluetoothA2DP")
/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:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
 4 |     open func setActive(_ active: Bool) throws
 5 |     @available(macOS, unavailable)
 6 |     open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
   |               `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
 7 |     @available(swift, obsoleted: 4.2, renamed: "setActive(_:options:)")
 8 |     @available(macOS, unavailable)
/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: annotate 'playAndRecord' with '@MainActor' if property should only be accessed from the main actor
    |                           `- 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: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |
185 |     }
[7/13] 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
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
 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
 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
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()
[8/13] 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)
[9/13] 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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |     }
28 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/13] 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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:26:25: warning: capture of 'self' with non-sendable type 'SwiftSpeech.AuthorizationCenter' in a `@Sendable` closure; 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 |
   :
24 |                 if self.speechRecognitionAuthorizationStatus != authStatus {
25 |                     DispatchQueue.main.async {
26 |                         self.speechRecognitionAuthorizationStatus = authStatus
   |                         `- warning: capture of 'self' with non-sendable type 'SwiftSpeech.AuthorizationCenter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |                     }
28 |                 }
/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 |                 }
[11/13] 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:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 |     open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 |     @available(macOS, unavailable)
18 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
   |               `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 |     @available(macOS, unavailable)
20 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/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
AVFAudio.AVAudioSession.Category:9:23: note: 'record' has been explicitly marked unavailable here
 7 |     public static let playback: AVAudioSession.Category
 8 |     @available(macOS, unavailable)
 9 |     public static let record: AVAudioSession.Category
   |                       `- note: 'record' has been explicitly marked unavailable here
10 |     @available(macOS, unavailable)
11 |     public static let playAndRecord: AVAudioSession.Category
/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
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
 1 | extension AVAudioSession.Mode {
 2 |     @available(macOS, unavailable)
 3 |     public static let `default`: AVAudioSession.Mode
   |                       `- note: 'default' has been explicitly marked unavailable here
 4 |     @available(macOS, unavailable)
 5 |     public static let voiceChat: AVAudioSession.Mode
/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:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
 4 |     open func setActive(_ active: Bool) throws
 5 |     @available(macOS, unavailable)
 6 |     open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
   |               `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
 7 |     @available(swift, obsoleted: 4.2, renamed: "setActive(_:options:)")
 8 |     @available(macOS, unavailable)
/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:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
 4 |     open func setActive(_ active: Bool) throws
 5 |     @available(macOS, unavailable)
 6 |     open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
   |               `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
 7 |     @available(swift, obsoleted: 4.2, renamed: "setActive(_:options:)")
 8 |     @available(macOS, unavailable)
/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: annotate 'recordOnly' with '@MainActor' if property should only be accessed from the main actor
    |                           `- 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/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:15:29: note: 'navigationBarTitle' has been explicitly marked unavailable here
13 |     @available(watchOS, introduced: 6.0, deprecated: 100000.0, renamed: "navigationTitle(_:)")
14 |     @available(visionOS, introduced: 1.0, deprecated: 100000.0, renamed: "navigationTitle(_:)")
15 |     nonisolated public func navigationBarTitle(_ title: Text) -> some View
   |                             `- note: 'navigationBarTitle' has been explicitly marked unavailable here
16 |
17 |     @available(iOS, introduced: 13.0, deprecated: 100000.0, renamed: "navigationTitle(_:)")
[12/13] 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 |     open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 |     @available(macOS, unavailable)
18 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
   |               `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 |     @available(macOS, unavailable)
20 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/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
AVFAudio.AVAudioSession.Category:9:23: note: 'record' has been explicitly marked unavailable here
 7 |     public static let playback: AVAudioSession.Category
 8 |     @available(macOS, unavailable)
 9 |     public static let record: AVAudioSession.Category
   |                       `- note: 'record' has been explicitly marked unavailable here
10 |     @available(macOS, unavailable)
11 |     public static let playAndRecord: AVAudioSession.Category
/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
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
 1 | extension AVAudioSession.Mode {
 2 |     @available(macOS, unavailable)
 3 |     public static let `default`: AVAudioSession.Mode
   |                       `- note: 'default' has been explicitly marked unavailable here
 4 |     @available(macOS, unavailable)
 5 |     public static let voiceChat: AVAudioSession.Mode
/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:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
 4 |     open func setActive(_ active: Bool) throws
 5 |     @available(macOS, unavailable)
 6 |     open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
   |               `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
 7 |     @available(swift, obsoleted: 4.2, renamed: "setActive(_:options:)")
 8 |     @available(macOS, unavailable)
/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:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
 4 |     open func setActive(_ active: Bool) throws
 5 |     @available(macOS, unavailable)
 6 |     open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
   |               `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
 7 |     @available(swift, obsoleted: 4.2, renamed: "setActive(_:options:)")
 8 |     @available(macOS, unavailable)
/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: annotate 'recordOnly' with '@MainActor' if property should only be accessed from the main actor
    |                           `- 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/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: annotate 'defaultAnimation' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
/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 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject, @unchecked Sendable {
   |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/Sources/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 |         /**
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject, @unchecked Sendable {
   |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/Sources/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
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject, @unchecked Sendable {
   |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/Sources/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
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject, @unchecked Sendable {
   |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/Sources/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:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 |     open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 |     @available(macOS, unavailable)
18 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
   |               `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 |     @available(macOS, unavailable)
20 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/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 }
AVFAudio.AVAudioSession.Category:11:23: note: 'playAndRecord' has been explicitly marked unavailable here
 9 |     public static let record: AVAudioSession.Category
10 |     @available(macOS, unavailable)
11 |     public static let playAndRecord: AVAudioSession.Category
   |                       `- note: 'playAndRecord' has been explicitly marked unavailable here
12 |     @available(macOS, unavailable)
13 |     public static let audioProcessing: AVAudioSession.Category
/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 }
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
 1 | extension AVAudioSession.Mode {
 2 |     @available(macOS, unavailable)
 3 |     public static let `default`: AVAudioSession.Mode
   |                       `- note: 'default' has been explicitly marked unavailable here
 4 |     @available(macOS, unavailable)
 5 |     public static let voiceChat: AVAudioSession.Mode
/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:77:27: note: 'defaultToSpeaker' has been explicitly marked unavailable here
 75 |         public static var AllowBluetooth: AVAudioSession.CategoryOptions { get }
 76 |         @available(macOS, unavailable)
 77 |         public static var defaultToSpeaker: AVAudioSession.CategoryOptions { get }
    |                           `- note: 'defaultToSpeaker' has been explicitly marked unavailable here
 78 |         @available(macOS, unavailable)
 79 |         @available(swift, obsoleted: 3, renamed: "defaultToSpeaker")
/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:87:27: note: 'allowBluetoothA2DP' has been explicitly marked unavailable here
 85 |         public static var InterruptSpokenAudioAndMixWithOthers: AVAudioSession.CategoryOptions { get }
 86 |         @available(macOS, unavailable)
 87 |         public static var allowBluetoothA2DP: AVAudioSession.CategoryOptions { get }
    |                           `- note: 'allowBluetoothA2DP' has been explicitly marked unavailable here
 88 |         @available(macOS, unavailable)
 89 |         @available(swift, obsoleted: 3, renamed: "allowBluetoothA2DP")
/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:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
 4 |     open func setActive(_ active: Bool) throws
 5 |     @available(macOS, unavailable)
 6 |     open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
   |               `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
 7 |     @available(swift, obsoleted: 4.2, renamed: "setActive(_:options:)")
 8 |     @available(macOS, unavailable)
/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: annotate 'playAndRecord' with '@MainActor' if property should only be accessed from the main actor
    |                           `- 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: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
    |                           `- 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: annotate 'instances' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |     public typealias ID = UUID
[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:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 |     open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 |     @available(macOS, unavailable)
18 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
   |               `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 |     @available(macOS, unavailable)
20 |     open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/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
AVFAudio.AVAudioSession.Category:9:23: note: 'record' has been explicitly marked unavailable here
 7 |     public static let playback: AVAudioSession.Category
 8 |     @available(macOS, unavailable)
 9 |     public static let record: AVAudioSession.Category
   |                       `- note: 'record' has been explicitly marked unavailable here
10 |     @available(macOS, unavailable)
11 |     public static let playAndRecord: AVAudioSession.Category
/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
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
 1 | extension AVAudioSession.Mode {
 2 |     @available(macOS, unavailable)
 3 |     public static let `default`: AVAudioSession.Mode
   |                       `- note: 'default' has been explicitly marked unavailable here
 4 |     @available(macOS, unavailable)
 5 |     public static let voiceChat: AVAudioSession.Mode
/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:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
 4 |     open func setActive(_ active: Bool) throws
 5 |     @available(macOS, unavailable)
 6 |     open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
   |               `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
 7 |     @available(swift, obsoleted: 4.2, renamed: "setActive(_:options:)")
 8 |     @available(macOS, unavailable)
/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:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
 4 |     open func setActive(_ active: Bool) throws
 5 |     @available(macOS, unavailable)
 6 |     open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
   |               `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
 7 |     @available(swift, obsoleted: 4.2, renamed: "setActive(_:options:)")
 8 |     @available(macOS, unavailable)
/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: annotate 'recordOnly' with '@MainActor' if property should only be accessed from the main actor
    |                           `- 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/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: annotate 'defaultAnimation' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
BUILD FAILURE 6.0 macosSpm