Build Information
Failed to build swift-speech-recognizer, reference main (35e56f
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 10:34:33 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.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/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-clocks
Fetching https://github.com/pointfreeco/swift-dependencies
Fetching https://github.com/pointfreeco/combine-schedulers
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/1278] Fetching swift-clocks
[40/3625] Fetching swift-clocks, combine-schedulers
[211/8635] Fetching swift-clocks, combine-schedulers, xctest-dynamic-overlay
[236/14170] Fetching swift-clocks, combine-schedulers, xctest-dynamic-overlay, swift-dependencies
Fetched https://github.com/pointfreeco/combine-schedulers from cache (1.42s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.42s)
Fetched https://github.com/pointfreeco/swift-clocks from cache (1.42s)
Fetched https://github.com/pointfreeco/swift-dependencies from cache (1.42s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 0.2.0 (0.59s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.8.4 (0.70s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 0.2.0 (0.57s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.9.1 (0.58s)
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/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
========================================
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",
"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",
"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",
"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",
"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",
"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",
"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",
"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",
"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",
"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",
"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",
"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.66s)
Fetching https://github.com/pointfreeco/swift-dependencies from cache
Fetched https://github.com/pointfreeco/swift-dependencies from cache (0.45s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 0.6.0 (0.58s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay 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/swift-concurrency-extras
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.47s)
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.47s)
[1/773] Fetching swift-concurrency-extras
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.94s)
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.94s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 0.4.0 (0.56s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.11.0 (0.58s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 0.1.2 (0.54s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (0.02s)
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/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 0.4.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
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/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 0.11.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 (35e56f6)
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.0
Building package at path: $PWD
https://github.com/renaudjenny/swift-speech-recognizer.git
{
"dependencies" : [
{
"identity" : "swift-dependencies",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-dependencies"
}
],
"manifest_display_name" : "swift-speech-recognizer",
"name" : "swift-speech-recognizer",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "SwiftSpeechRecognizer",
"targets" : [
"SwiftSpeechRecognizer"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftSpeechRecognizerDependency",
"targets" : [
"SwiftSpeechRecognizerDependency"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftSpeechCombine",
"targets" : [
"SwiftSpeechCombine"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftSpeechRecognizerTests",
"module_type" : "SwiftTarget",
"name" : "SwiftSpeechRecognizerTests",
"path" : "Tests/SwiftSpeechRecognizerTests",
"sources" : [
"SwiftSpeechRecognizerTests.swift"
],
"target_dependencies" : [
"SwiftSpeechRecognizer"
],
"type" : "test"
},
{
"c99name" : "SwiftSpeechRecognizerDependency",
"module_type" : "SwiftTarget",
"name" : "SwiftSpeechRecognizerDependency",
"path" : "Sources/SwiftSpeechRecognizerDependency",
"product_dependencies" : [
"Dependencies"
],
"product_memberships" : [
"SwiftSpeechRecognizerDependency"
],
"sources" : [
"SwiftSpeechRecognizerDependency.swift"
],
"target_dependencies" : [
"SwiftSpeechRecognizer"
],
"type" : "library"
},
{
"c99name" : "SwiftSpeechRecognizer",
"module_type" : "SwiftTarget",
"name" : "SwiftSpeechRecognizer",
"path" : "Sources/SwiftSpeechRecognizer",
"product_memberships" : [
"SwiftSpeechRecognizer",
"SwiftSpeechRecognizerDependency",
"SwiftSpeechCombine"
],
"sources" : [
"SpeechRecognitionEngineError.swift",
"SpeechRecognitionStatus.swift",
"SwiftSpeechRecognizer.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftSpeechCombine",
"module_type" : "SwiftTarget",
"name" : "SwiftSpeechCombine",
"path" : "Sources/SwiftSpeechCombine",
"product_memberships" : [
"SwiftSpeechCombine"
],
"sources" : [
"SwiftSpeechCombine.swift"
],
"target_dependencies" : [
"SwiftSpeechRecognizer"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version--7754E27361AE5C74.txt
[9/21] Emitting module XCTestDynamicOverlay
[10/21] Compiling XCTestDynamicOverlay Deprecations.swift
[11/21] Compiling XCTestDynamicOverlay Unimplemented.swift
[12/21] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[13/21] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[14/21] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[15/21] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[16/21] Compiling XCTestDynamicOverlay XCTFail.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 @Sendable (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 @Sendable (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, @unchecked Sendable {
| `- 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, @unchecked Sendable {
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 @Sendable (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 @Sendable (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 }
BUILD FAILURE 6.0 macosSpm