Build Information
Failed to build swift-speech-recognizer, reference 1.0.0 (7a7947), with Swift 6.3 for macOS (SPM) on 13 Apr 2026 15:22:24 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.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
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/combine-schedulers
Fetching https://github.com/pointfreeco/swift-dependencies
Fetching https://github.com/pointfreeco/swift-clocks
[1/1317] Fetching swift-clocks
[199/3886] Fetching swift-clocks, combine-schedulers
[226/9609] Fetching swift-clocks, combine-schedulers, xctest-dynamic-overlay
[284/16365] Fetching swift-clocks, combine-schedulers, xctest-dynamic-overlay, swift-dependencies
Fetched https://github.com/pointfreeco/swift-clocks from cache (1.36s)
[12865/15048] Fetching combine-schedulers, xctest-dynamic-overlay, swift-dependencies
Fetched https://github.com/pointfreeco/swift-dependencies from cache (3.96s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (3.96s)
Fetched https://github.com/pointfreeco/combine-schedulers from cache (3.97s)
Computed https://github.com/pointfreeco/swift-dependencies at 0.2.0 (4.57s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.8.4 (0.58s)
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.63s)
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
Creating working copy for https://github.com/pointfreeco/swift-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 0.2.0
========================================
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",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-speech-recognizer",
"name": "swift-speech-recognizer",
"url": "https://github.com/renaudjenny/swift-speech-recognizer.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-speech-recognizer",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-dependencies",
"name": "swift-dependencies",
"url": "https://github.com/pointfreeco/swift-dependencies",
"version": "0.6.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "combine-schedulers",
"name": "combine-schedulers",
"url": "https://github.com/pointfreeco/combine-schedulers",
"version": "0.11.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/combine-schedulers",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-concurrency-extras",
"name": "swift-concurrency-extras",
"url": "https://github.com/pointfreeco/swift-concurrency-extras",
"version": "0.1.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-concurrency-extras",
"traits": [
"default"
],
"dependencies": [
]
},
{
"identity": "xctest-dynamic-overlay",
"name": "xctest-dynamic-overlay",
"url": "https://github.com/pointfreeco/xctest-dynamic-overlay",
"version": "0.9.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xctest-dynamic-overlay",
"traits": [
"default"
],
"dependencies": [
]
}
]
},
{
"identity": "swift-clocks",
"name": "swift-clocks",
"url": "https://github.com/pointfreeco/swift-clocks",
"version": "0.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-clocks",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-concurrency-extras",
"name": "swift-concurrency-extras",
"url": "https://github.com/pointfreeco/swift-concurrency-extras",
"version": "0.1.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-concurrency-extras",
"traits": [
"default"
],
"dependencies": [
]
},
{
"identity": "xctest-dynamic-overlay",
"name": "xctest-dynamic-overlay",
"url": "https://github.com/pointfreeco/xctest-dynamic-overlay",
"version": "0.9.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xctest-dynamic-overlay",
"traits": [
"default"
],
"dependencies": [
]
}
]
},
{
"identity": "swift-concurrency-extras",
"name": "swift-concurrency-extras",
"url": "https://github.com/pointfreeco/swift-concurrency-extras",
"version": "0.1.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-concurrency-extras",
"traits": [
"default"
],
"dependencies": [
]
},
{
"identity": "xctest-dynamic-overlay",
"name": "xctest-dynamic-overlay",
"url": "https://github.com/pointfreeco/xctest-dynamic-overlay",
"version": "0.9.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xctest-dynamic-overlay",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/renaudjenny/swift-speech-recognizer.git
[1/112] Fetching swift-speech-recognizer
Fetched https://github.com/renaudjenny/swift-speech-recognizer.git from cache (0.65s)
Fetching https://github.com/pointfreeco/swift-dependencies from cache
Fetched https://github.com/pointfreeco/swift-dependencies from cache (0.53s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 0.6.0 (1.11s)
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetching https://github.com/pointfreeco/swift-clocks from cache
Fetching https://github.com/pointfreeco/combine-schedulers from cache
[1/956] Fetching swift-concurrency-extras
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.96s)
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.96s)
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.96s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.96s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 0.4.0 (1.52s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.11.0 (0.53s)
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.03s)
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-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 0.1.2
Creating working copy for https://github.com/renaudjenny/swift-speech-recognizer.git
Working copy of https://github.com/renaudjenny/swift-speech-recognizer.git resolved at 1.0.0 (7a7947a)
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/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-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 0.6.0
warning: '.resolve-product-dependencies': dependency 'swift-speech-recognizer' is not used by any target
Found 1 product dependencies
- swift-dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/renaudjenny/swift-speech-recognizer.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version--6988338F2F200930.txt
[9/21] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[10/21] Compiling XCTestDynamicOverlay Unimplemented.swift
[11/21] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[12/21] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[13/21] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[14/21] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[15/21] Compiling XCTestDynamicOverlay Deprecations.swift
[16/21] Emitting module XCTestDynamicOverlay
[17/21] Compiling XCTestDynamicOverlay XCTFail.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/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 |
[19/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)
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/Sources/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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:106:40: note: 'playAndRecord' has been explicitly marked unavailable here
104 |
105 | /*! Use this category when recording and playing back audio. */
106 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayAndRecord API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
| `- note: 'playAndRecord' has been explicitly marked unavailable here
107 |
108 | /*! Use this category when using a hardware codec or signal processor while
/Users/admin/builder/spi-builder-workspace/Sources/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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.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 }
[20/43] 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 |
[21/43] 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 |
BUILD FAILURE 6.3 macosSpm