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 swift-speech-recognizer with Swift 5.10 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/renaudjenny/swift-speech-recognizer.git
Reference: 1.0.0
Initialized empty Git repository in /Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/renaudjenny/swift-speech-recognizer
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 7a7947a docs(README): add Modern Concurrency usage
Cloned https://github.com/renaudjenny/swift-speech-recognizer.git
Revision (git rev-parse @):
7a7947a6f9fb1edaa48ee0e8d1c523f5fd8e9bd8
SUCCESS checkout https://github.com/renaudjenny/swift-speech-recognizer.git at 1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $workDir
https://github.com/renaudjenny/swift-speech-recognizer.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version--423B1241ED78D482.txt
[9/20] Compiling XCTestDynamicOverlay Unimplemented.swift
[10/20] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[11/20] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[12/20] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[13/20] Compiling XCTestDynamicOverlay Deprecations.swift
[14/20] Emitting module XCTestDynamicOverlay
[15/20] Compiling XCTestDynamicOverlay XCTFail.swift
[16/20] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[17/21] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[18/43] Compiling CombineSchedulers UIScheduler.swift
[19/43] Compiling CombineSchedulers UIKit.swift
[20/44] Emitting module CombineSchedulers
[21/44] Compiling Clocks AnyClock.swift
[22/44] Compiling Clocks ImmediateClock.swift
[23/44] Compiling CombineSchedulers AnyScheduler.swift
[24/44] Compiling CombineSchedulers Concurrency.swift
[25/44] Compiling CombineSchedulers Timer.swift
[26/44] Compiling CombineSchedulers UnimplementedScheduler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[27/44] Compiling SwiftSpeechRecognizer SpeechRecognitionEngineError.swift
[28/44] Emitting module SwiftSpeechRecognizer
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:2:8: error: This library is not compatible with macOS
#error("This library is not compatible with macOS")
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[29/44] Compiling SwiftSpeechRecognizer SpeechRecognitionStatus.swift
[30/44] Compiling SwiftSpeechRecognizer SwiftSpeechRecognizer.swift
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:2:8: error: This library is not compatible with macOS
#error("This library is not compatible with macOS")
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:74:49: warning: converting function value of type '@MainActor (SFSpeechRecognizerAuthorizationStatus) -> Void' to '(SFSpeechRecognizerAuthorizationStatus) -> Void' loses global actor 'MainActor'; this is an error in Swift 6
        SFSpeechRecognizer.requestAuthorization { @MainActor [weak self] authorizationStatus in
                                                ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:89:28: error: 'AVAudioSession' is unavailable in macOS
        let audioSession = AVAudioSession.sharedInstance()
                           ^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
           ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:89:43: error: 'sharedInstance()' is unavailable in macOS
        let audioSession = AVAudioSession.sharedInstance()
                                          ^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
    open class func sharedInstance() -> AVAudioSession
                    ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:90:26: error: 'setCategory(_:mode:options:)' is unavailable in macOS
        try audioSession.setCategory(.playAndRecord, mode: .measurement, options: .duckOthers)
                         ^~~~~~~~~~~
AVFAudio.AVAudioSession:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
    open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
              ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:90:39: error: 'playAndRecord' is unavailable in macOS
        try audioSession.setCategory(.playAndRecord, mode: .measurement, options: .duckOthers)
                                      ^~~~~~~~~~~~~
AVFAudio.AVAudioSession.Category:11:23: note: 'playAndRecord' has been explicitly marked unavailable here
    public static let playAndRecord: AVAudioSession.Category
                      ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:90:61: error: 'measurement' is unavailable in macOS
        try audioSession.setCategory(.playAndRecord, mode: .measurement, options: .duckOthers)
                                                            ^~~~~~~~~~~
AVFAudio.AVAudioSession.Mode:11:23: note: 'measurement' has been explicitly marked unavailable here
    public static let measurement: AVAudioSession.Mode
                      ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:91:26: error: 'setActive(_:options:)' is unavailable in macOS
        try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
                         ^~~~~~~~~
AVFAudio.AVAudioSession:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
    open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
              ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:107:86: warning: converting function value of type '@MainActor (SFSpeechRecognitionResult?, (any Error)?) -> Void' to '(SFSpeechRecognitionResult?, (any Error)?) -> Void' loses global actor 'MainActor'; this is an error in Swift 6
        recognitionTask = speechRecognizer.recognitionTask(with: recognitionRequest) {
                                                                                     ^
error: fatalError
[31/44] Compiling CombineSchedulers Lock.swift
[32/44] Compiling CombineSchedulers NSRecursiveLock.swift
[33/44] Compiling Clocks Timer.swift
[34/44] Compiling Clocks _AsyncTimerSequence.swift
[37/44] Compiling Clocks Shims.swift
[38/44] Emitting module Clocks
Fetching https://github.com/pointfreeco/swift-dependencies from cache
Fetching https://github.com/pointfreeco/combine-schedulers from cache
Fetching https://github.com/pointfreeco/swift-clocks from cache
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.41s)
Fetched https://github.com/pointfreeco/swift-dependencies from cache (0.41s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.41s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.41s)
Computed https://github.com/pointfreeco/swift-dependencies at 0.2.0 (0.48s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.8.4 (0.03s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 0.2.0 (0.58s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.9.1 (0.57s)
Creating working copy for https://github.com/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 0.2.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.8.4
Creating working copy for https://github.com/pointfreeco/swift-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 0.2.0
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 0.9.1
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version--423B1241ED78D482.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/15] Emitting module SwiftSpeechRecognizer
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:2:8: error: This library is not compatible with macOS
#error("This library is not compatible with macOS")
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3/15] Compiling SwiftSpeechRecognizer SwiftSpeechRecognizer.swift
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:2:8: error: This library is not compatible with macOS
#error("This library is not compatible with macOS")
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:74:49: warning: converting function value of type '@MainActor (SFSpeechRecognizerAuthorizationStatus) -> Void' to '(SFSpeechRecognizerAuthorizationStatus) -> Void' loses global actor 'MainActor'; this is an error in Swift 6
        SFSpeechRecognizer.requestAuthorization { @MainActor [weak self] authorizationStatus in
                                                ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:89:28: error: 'AVAudioSession' is unavailable in macOS
        let audioSession = AVAudioSession.sharedInstance()
                           ^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
           ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:89:43: error: 'sharedInstance()' is unavailable in macOS
        let audioSession = AVAudioSession.sharedInstance()
                                          ^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
    open class func sharedInstance() -> AVAudioSession
                    ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:90:26: error: 'setCategory(_:mode:options:)' is unavailable in macOS
        try audioSession.setCategory(.playAndRecord, mode: .measurement, options: .duckOthers)
                         ^~~~~~~~~~~
AVFAudio.AVAudioSession:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
    open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
              ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:90:39: error: 'playAndRecord' is unavailable in macOS
        try audioSession.setCategory(.playAndRecord, mode: .measurement, options: .duckOthers)
                                      ^~~~~~~~~~~~~
AVFAudio.AVAudioSession.Category:11:23: note: 'playAndRecord' has been explicitly marked unavailable here
    public static let playAndRecord: AVAudioSession.Category
                      ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:90:61: error: 'measurement' is unavailable in macOS
        try audioSession.setCategory(.playAndRecord, mode: .measurement, options: .duckOthers)
                                                            ^~~~~~~~~~~
AVFAudio.AVAudioSession.Mode:11:23: note: 'measurement' has been explicitly marked unavailable here
    public static let measurement: AVAudioSession.Mode
                      ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:91:26: error: 'setActive(_:options:)' is unavailable in macOS
        try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
                         ^~~~~~~~~
AVFAudio.AVAudioSession:6:15: note: 'setActive(_:options:)' has been explicitly marked unavailable here
    open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws
              ^
/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:107:86: warning: converting function value of type '@MainActor (SFSpeechRecognitionResult?, (any Error)?) -> Void' to '(SFSpeechRecognitionResult?, (any Error)?) -> Void' loses global actor 'MainActor'; this is an error in Swift 6
        recognitionTask = speechRecognizer.recognitionTask(with: recognitionRequest) {
                                                                                     ^
error: fatalError
[4/15] Compiling Clocks Timer.swift
[5/15] Compiling Clocks Shims.swift
BUILD FAILURE 5.10 macosSpm