The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-speech-recognizer, reference 1.0.0 (7a7947), with Swift 6.2 (beta) for macOS (SPM) on 20 Jun 2025 04:02:57 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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/admin/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:             6.2
Building package at path:  $PWD
https://github.com/renaudjenny/swift-speech-recognizer.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/9] Write sources
[8/9] Write swift-version-1EA4D86E10B52AF.txt
[10/31] Compiling ConcurrencyExtras UncheckedSendable.swift
[11/31] Compiling XCTestDynamicOverlay Unimplemented.swift
[12/31] Compiling ConcurrencyExtras LockIsolated.swift
[13/31] Compiling ConcurrencyExtras Task.swift
[14/31] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[15/31] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[16/31] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[17/31] Emitting module XCTestDynamicOverlay
[18/31] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[19/31] Compiling XCTestDynamicOverlay Deprecations.swift
[20/31] Compiling ConcurrencyExtras Locking.swift
[21/31] Compiling ConcurrencyExtras AsyncThrowingStream.swift
[22/31] Compiling ConcurrencyExtras ActorIsolated.swift
[23/31] Compiling ConcurrencyExtras AsyncStream.swift
[24/31] Emitting module ConcurrencyExtras
[25/31] Compiling ConcurrencyExtras MainSerialExecutor.swift
[26/31] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[27/31] Compiling XCTestDynamicOverlay XCTFail.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/53] 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 |
[29/53] 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)
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:30:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 28 | NS_SWIFT_SENDABLE
 29 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 30 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 31 | @private
 32 | //	Reenable once rdar://135815013 is unblocked
/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.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/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.setCategory:3:13: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws}
  |             `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/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
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:106:40: note: 'playAndRecord' has been explicitly marked unavailable here
104 |
105 | /*! Use this category when recording and playing back audio. */
106 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayAndRecord		API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                        `- note: 'playAndRecord' has been explicitly marked unavailable here
107 |
108 | /*! Use this category when using a hardware codec or signal processor while
/Users/admin/builder/spi-builder-workspace/Sources/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
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:160:36: note: 'measurement' has been explicitly marked unavailable here
158 |  processing for input and/or output audio signals.
159 |  This mode disables some dynamics processing on input and output resulting in a lower output playback level. */
160 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeMeasurement API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'measurement' has been explicitly marked unavailable here
161 |
162 | /*! Appropriate for applications playing movie content. Only valid with AVAudioSessionCategoryPlayback.
/Users/admin/builder/spi-builder-workspace/Sources/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.setActive:3:13: note: 'setActive(_:options:)' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func setActive(_ active: Bool, options: AVAudioSession.SetActiveOptions = []) throws}
  |             `- note: 'setActive(_:options:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/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 }
[30/53] Compiling SwiftSpeechRecognizer SpeechRecognitionEngineError.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 |
[31/53] Compiling SwiftSpeechRecognizer SpeechRecognitionStatus.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 |
Fetching https://github.com/pointfreeco/swift-dependencies
[1/6249] Fetching swift-dependencies
Fetched https://github.com/pointfreeco/swift-dependencies from cache (1.12s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 0.6.0 (1.66s)
Fetching https://github.com/pointfreeco/combine-schedulers
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-clocks
Fetching https://github.com/pointfreeco/swift-concurrency-extras
[1/861] Fetching swift-concurrency-extras
[131/3271] Fetching swift-concurrency-extras, combine-schedulers
[252/4563] Fetching swift-concurrency-extras, combine-schedulers, swift-clocks
[1115/10030] Fetching swift-concurrency-extras, combine-schedulers, swift-clocks, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.90s)
[3928/8738] Fetching swift-concurrency-extras, combine-schedulers, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/combine-schedulers from cache (1.36s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.36s)
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (1.36s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 0.4.0 (1.93s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.11.0 (0.52s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 0.1.2 (0.52s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (0.52s)
Creating working copy for https://github.com/pointfreeco/swift-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 0.1.2
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 0.11.0
Creating working copy for https://github.com/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 0.4.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.9.0
Creating working copy for https://github.com/pointfreeco/swift-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 0.6.0
BUILD FAILURE 6.2 macosSpm