Build Information
Failed to build swift-speech-recognizer with Swift 5.9 for macOS (SPM).
Build Command
Build command unavailable
Build Log
========================================
RunAll
========================================
Builder version: 4.27.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/renaudjenny/swift-speech-recognizer.git
Reference: main
Initialized empty Git repository in /Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-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
Fetching https://github.com/pointfreeco/swift-dependencies from cache
Fetching https://github.com/pointfreeco/swift-clocks from cache
Fetching https://github.com/pointfreeco/combine-schedulers from cache
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetched https://github.com/pointfreeco/swift-clocks (0.24s)
Fetched https://github.com/pointfreeco/combine-schedulers (0.32s)
Fetched https://github.com/pointfreeco/swift-dependencies (0.35s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay (0.24s)
Computed https://github.com/pointfreeco/swift-dependencies at 0.2.0 (0.85s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.8.4 (0.06s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 0.2.0 (0.53s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.9.1 (0.60s)
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/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/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swift-speech-recognizer",
"name": "swift-speech-recognizer",
"url": "https://github.com/renaudjenny/swift-speech-recognizer.git",
"version": "unspecified",
"path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-speech-recognizer",
"dependencies": [
{
"identity": "swift-dependencies",
"name": "swift-dependencies",
"url": "https://github.com/pointfreeco/swift-dependencies",
"version": "0.6.0",
"path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-dependencies",
"dependencies": [
{
"identity": "combine-schedulers",
"name": "combine-schedulers",
"url": "https://github.com/pointfreeco/combine-schedulers",
"version": "0.11.0",
"path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/combine-schedulers",
"dependencies": [
{
"identity": "swift-concurrency-extras",
"name": "swift-concurrency-extras",
"url": "https://github.com/pointfreeco/swift-concurrency-extras",
"version": "0.1.1",
"path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-concurrency-extras",
"dependencies": [
]
},
{
"identity": "xctest-dynamic-overlay",
"name": "xctest-dynamic-overlay",
"url": "https://github.com/pointfreeco/xctest-dynamic-overlay",
"version": "0.9.0",
"path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xctest-dynamic-overlay",
"dependencies": [
]
}
]
},
{
"identity": "swift-clocks",
"name": "swift-clocks",
"url": "https://github.com/pointfreeco/swift-clocks",
"version": "0.4.0",
"path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-clocks",
"dependencies": [
{
"identity": "swift-concurrency-extras",
"name": "swift-concurrency-extras",
"url": "https://github.com/pointfreeco/swift-concurrency-extras",
"version": "0.1.1",
"path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-concurrency-extras",
"dependencies": [
]
},
{
"identity": "xctest-dynamic-overlay",
"name": "xctest-dynamic-overlay",
"url": "https://github.com/pointfreeco/xctest-dynamic-overlay",
"version": "0.9.0",
"path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xctest-dynamic-overlay",
"dependencies": [
]
}
]
},
{
"identity": "swift-concurrency-extras",
"name": "swift-concurrency-extras",
"url": "https://github.com/pointfreeco/swift-concurrency-extras",
"version": "0.1.1",
"path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-concurrency-extras",
"dependencies": [
]
},
{
"identity": "xctest-dynamic-overlay",
"name": "xctest-dynamic-overlay",
"url": "https://github.com/pointfreeco/xctest-dynamic-overlay",
"version": "0.9.0",
"path": "/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xctest-dynamic-overlay",
"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 (0.30s)
Fetching https://github.com/pointfreeco/swift-dependencies from cache
Fetched https://github.com/pointfreeco/swift-dependencies (0.25s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 0.6.0 (0.05s)
Fetching https://github.com/pointfreeco/swift-concurrency-extras from cache
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetching https://github.com/pointfreeco/swift-clocks from cache
Fetched https://github.com/pointfreeco/swift-concurrency-extras (0.21s)
Fetching https://github.com/pointfreeco/combine-schedulers from cache
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay (0.24s)
Fetched https://github.com/pointfreeco/swift-clocks (0.26s)
Fetched https://github.com/pointfreeco/combine-schedulers (0.22s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 0.1.1 (0.04s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 0.4.0 (0.04s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.11.0 (0.05s)
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/swift-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 0.6.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.1
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/renaudjenny/swift-speech-recognizer.git
Working copy of https://github.com/renaudjenny/swift-speech-recognizer.git resolved at main
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 0.11.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: 5.9
Building package at path: $PWD/checkout
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.0.0.app xcrun swift build --arch arm64
Building for debugging...
[1/12] Emitting module XCTestDynamicOverlay
[2/12] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[3/13] Compiling XCTestDynamicOverlay Unimplemented.swift
[4/13] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[5/13] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[6/13] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[7/13] Compiling XCTestDynamicOverlay Deprecations.swift
[8/13] Compiling XCTestDynamicOverlay XCTFail.swift
[9/13] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[10/35] Compiling SwiftSpeechRecognizer SpeechRecognitionStatus.swift
[11/35] Compiling Clocks Timer.swift
[12/36] Compiling CombineSchedulers UIScheduler.swift
[13/36] Compiling CombineSchedulers UIKit.swift
[14/37] Compiling Clocks Lock.swift
[15/37] Compiling Clocks Yield.swift
[16/37] Compiling Clocks AnyClock.swift
[17/37] Compiling Clocks ImmediateClock.swift
[18/37] Compiling CombineSchedulers Timer.swift
[19/37] Compiling Clocks TestClock.swift
[20/37] Compiling Clocks UnimplementedClock.swift
[21/37] Compiling CombineSchedulers UnimplementedScheduler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/37] Compiling SwiftSpeechRecognizer SpeechRecognitionEngineError.swift
[23/37] Emitting module SwiftSpeechRecognizer
/Users/admin/builds/J1XnyXFH/0/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")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[24/37] Compiling SwiftSpeechRecognizer SwiftSpeechRecognizer.swift
/Users/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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'
SFSpeechRecognizer.requestAuthorization { @MainActor [weak self] authorizationStatus in
^
/Users/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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'
recognitionTask = speechRecognizer.recognitionTask(with: recognitionRequest) {
^
error: fatalError
[27/37] Compiling Clocks _AsyncTimerSequence.swift
[30/37] Emitting module Clocks
[31/37] Emitting module CombineSchedulers
[32/37] Compiling CombineSchedulers Lock.swift
[33/37] Compiling CombineSchedulers NSRecursiveLock.swift
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/11] Emitting module SwiftSpeechRecognizer
/Users/admin/builds/J1XnyXFH/0/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")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2/11] Compiling SwiftSpeechRecognizer SwiftSpeechRecognizer.swift
/Users/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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'
SFSpeechRecognizer.requestAuthorization { @MainActor [weak self] authorizationStatus in
^
/Users/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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/admin/builds/J1XnyXFH/0/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'
recognitionTask = speechRecognizer.recognitionTask(with: recognitionRequest) {
^
error: fatalError
[3/11] Compiling Clocks Shims.swift
[4/11] Compiling Clocks _AsyncTimerSequence.swift
BUILD FAILURE 5.9 macosSpm