This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/renaudjenny/swift-speech-recognizer.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/renaudjenny/swift-speech-recognizer
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 35e56f6 docs(README): add Swift Package Index badges
Cloned https://github.com/renaudjenny/swift-speech-recognizer.git
Revision (git rev-parse @):
35e56f64ac07499678ed87e88ec25ebc528f65b0
SUCCESS checkout https://github.com/renaudjenny/swift-speech-recognizer.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/renaudjenny/swift-speech-recognizer.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version-6F35C1178C84523A.txt
[9/21] Compiling XCTestDynamicOverlay XCTFail.swift
[10/21] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[11/21] Compiling XCTestDynamicOverlay Deprecations.swift
[12/21] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[13/21] Emitting module XCTestDynamicOverlay
[14/21] Compiling XCTestDynamicOverlay Unimplemented.swift
[15/21] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[16/21] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[17/21] Compiling XCTestDynamicOverlay XCTIsTesting.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/43] Compiling SwiftSpeechRecognizer SpeechRecognitionStatus.swift
[19/43] Compiling SwiftSpeechRecognizer SpeechRecognitionEngineError.swift
[20/43] Emitting module SwiftSpeechRecognizer
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:2:8: error: This library is not compatible with macOS
  1 | #if os(macOS)
  2 | #error("This library is not compatible with macOS")
    |        `- error: This library is not compatible with macOS
  3 | #endif
  4 |
[21/43] Compiling SwiftSpeechRecognizer SwiftSpeechRecognizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:2:8: error: This library is not compatible with macOS
  1 | #if os(macOS)
  2 | #error("This library is not compatible with macOS")
    |        `- error: This library is not compatible with macOS
  3 | #endif
  4 |
/Users/admin/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 the Swift 6 language mode
 72 |
 73 |     func requestAuthorization() {
 74 |         SFSpeechRecognizer.requestAuthorization { @MainActor [weak self] authorizationStatus in
    |                                                 `- warning: converting function value of type '@MainActor (SFSpeechRecognizerAuthorizationStatus) -> Void' to '(SFSpeechRecognizerAuthorizationStatus) -> Void' loses global actor 'MainActor'; this is an error in the Swift 6 language mode
 75 |             self?.authorizationStatus(authorizationStatus)
 76 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:89:28: error: 'AVAudioSession' is unavailable in macOS
 87 |
 88 |         // Configure the audio session for the app.
 89 |         let audioSession = AVAudioSession.sharedInstance()
    |                            `- error: 'AVAudioSession' is unavailable in macOS
 90 |         try audioSession.setCategory(.playAndRecord, mode: .measurement, options: .duckOthers)
 91 |         try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject {
   |            `- 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/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:89:43: error: 'sharedInstance()' is unavailable in macOS
 87 |
 88 |         // Configure the audio session for the app.
 89 |         let audioSession = AVAudioSession.sharedInstance()
    |                                           `- error: 'sharedInstance()' is unavailable in macOS
 90 |         try audioSession.setCategory(.playAndRecord, mode: .measurement, options: .duckOthers)
 91 |         try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
 2 | open class AVAudioSession : NSObject {
 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 }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:90:26: error: 'setCategory(_:mode:options:)' is unavailable in macOS
 88 |         // Configure the audio session for the app.
 89 |         let audioSession = AVAudioSession.sharedInstance()
 90 |         try audioSession.setCategory(.playAndRecord, mode: .measurement, options: .duckOthers)
    |                          `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
 91 |         try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
 92 |         let inputNode = audioEngine.inputNode
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/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:90:39: error: 'playAndRecord' is unavailable in macOS
 88 |         // Configure the audio session for the app.
 89 |         let audioSession = AVAudioSession.sharedInstance()
 90 |         try audioSession.setCategory(.playAndRecord, mode: .measurement, options: .duckOthers)
    |                                       `- error: 'playAndRecord' is unavailable in macOS
 91 |         try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
 92 |         let inputNode = audioEngine.inputNode
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/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:90:61: error: 'measurement' is unavailable in macOS
 88 |         // Configure the audio session for the app.
 89 |         let audioSession = AVAudioSession.sharedInstance()
 90 |         try audioSession.setCategory(.playAndRecord, mode: .measurement, options: .duckOthers)
    |                                                             `- error: 'measurement' is unavailable in macOS
 91 |         try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
 92 |         let inputNode = audioEngine.inputNode
AVFAudio.AVAudioSession.Mode:11:23: note: 'measurement' has been explicitly marked unavailable here
 9 |     public static let videoRecording: AVAudioSession.Mode
10 |     @available(macOS, unavailable)
11 |     public static let measurement: AVAudioSession.Mode
   |                       `- note: 'measurement' has been explicitly marked unavailable here
12 |     @available(macOS, unavailable)
13 |     public static let moviePlayback: AVAudioSession.Mode
/Users/admin/builder/spi-builder-workspace/Sources/SwiftSpeechRecognizer/SwiftSpeechRecognizer.swift:91:26: error: 'setActive(_:options:)' is unavailable in macOS
 89 |         let audioSession = AVAudioSession.sharedInstance()
 90 |         try audioSession.setCategory(.playAndRecord, mode: .measurement, options: .duckOthers)
 91 |         try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
    |                          `- error: 'setActive(_:options:)' is unavailable in macOS
 92 |         let inputNode = audioEngine.inputNode
 93 |
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/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 the Swift 6 language mode
105 |         // Create a recognition task for the speech recognition session.
106 |         // Keep a reference to the task so that it can be canceled.
107 |         recognitionTask = speechRecognizer.recognitionTask(with: recognitionRequest) {
    |                                                                                      `- 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 the Swift 6 language mode
108 |             @MainActor [weak self] result, error in
109 |             guard let self = self else { return }
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-dependencies
Fetching https://github.com/pointfreeco/combine-schedulers
Fetching https://github.com/pointfreeco/swift-clocks
[1/2244] Fetching combine-schedulers
[91/3519] Fetching combine-schedulers, swift-clocks
[578/5875] Fetching combine-schedulers, swift-clocks, xctest-dynamic-overlay
[979/9894] Fetching combine-schedulers, swift-clocks, xctest-dynamic-overlay, swift-dependencies
Fetched https://github.com/pointfreeco/swift-dependencies from cache (1.30s)
Fetched https://github.com/pointfreeco/swift-clocks from cache (1.30s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.30s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Fetched https://github.com/pointfreeco/combine-schedulers from cache (1.30s)
Computed https://github.com/pointfreeco/swift-dependencies at 0.2.0 (0.68s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.8.4 (0.67s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 0.2.0 (0.66s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.9.1 (0.66s)
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/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-clocks
Working copy of https://github.com/pointfreeco/swift-clocks 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
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.