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, reference main (35e56f), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 03:37:32 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.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
Fetching https://github.com/pointfreeco/swift-dependencies
Fetching https://github.com/pointfreeco/swift-clocks
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/combine-schedulers
[1/2347] Fetching combine-schedulers
[72/3625] Fetching combine-schedulers, swift-clocks
[527/8610] Fetching combine-schedulers, swift-clocks, xctest-dynamic-overlay
[843/13834] Fetching combine-schedulers, swift-clocks, xctest-dynamic-overlay, swift-dependencies
Fetched https://github.com/pointfreeco/combine-schedulers from cache (1.34s)
[11388/11487] Fetching swift-clocks, xctest-dynamic-overlay, swift-dependencies
Fetched https://github.com/pointfreeco/swift-clocks from cache (1.65s)
Fetched https://github.com/pointfreeco/swift-dependencies from cache (1.65s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.65s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 0.2.0 (0.65s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.8.4 (0.64s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 0.2.0 (0.65s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.9.1 (0.64s)
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-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 0.2.0
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
========================================
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.64s)
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.62s)
Fetching https://github.com/pointfreeco/swift-clocks from cache
Fetching https://github.com/pointfreeco/swift-concurrency-extras
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 from cache (0.50s)
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.51s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.51s)
[1/758] Fetching swift-concurrency-extras
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.99s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 0.4.0 (0.69s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.11.0 (0.65s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 0.1.2 (0.66s)
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/renaudjenny/swift-speech-recognizer.git
Working copy of https://github.com/renaudjenny/swift-speech-recognizer.git resolved at main (35e56f6)
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/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-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.0
Building package at path:  $PWD
https://github.com/renaudjenny/swift-speech-recognizer.git
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
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version--7754E27361AE5C74.txt
[9/21] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[10/21] Compiling XCTestDynamicOverlay Deprecations.swift
[11/21] Emitting module XCTestDynamicOverlay
[12/21] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[13/21] Compiling XCTestDynamicOverlay XCTFail.swift
[14/21] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[15/21] Compiling XCTestDynamicOverlay Unimplemented.swift
[16/21] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[17/21] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/43] Compiling SwiftSpeechRecognizer SpeechRecognitionEngineError.swift
[19/43] Compiling SwiftSpeechRecognizer SpeechRecognitionStatus.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, @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 (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 }
BUILD FAILURE 6.0 macosSpm