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 1.0.0 (7a7947), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 12:23:37 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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/swift-clocks from cache
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetching https://github.com/pointfreeco/swift-dependencies from cache
Fetching https://github.com/pointfreeco/combine-schedulers from cache
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.47s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.47s)
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.62s)
Fetched https://github.com/pointfreeco/swift-dependencies from cache (0.63s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 0.2.0 (1.23s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.8.4 (0.55s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 0.2.0 (0.56s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.9.1 (0.56s)
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/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
========================================
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.59s)
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 (1.05s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetching https://github.com/pointfreeco/swift-clocks from cache
Fetching https://github.com/pointfreeco/swift-concurrency-extras from cache
Fetching https://github.com/pointfreeco/combine-schedulers from cache
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.41s)
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.48s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.48s)
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.48s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 0.4.0 (1.07s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.11.0 (0.56s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 0.1.2 (0.56s)
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-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 0.4.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 1.0.0 (7a7947a)
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/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 0.11.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-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 0.1.2
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.1
Building package at path:  $PWD
https://github.com/renaudjenny/swift-speech-recognizer.git
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.3.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-2F0A5646E1D333AE.txt
[9/21] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[10/21] Emitting module XCTestDynamicOverlay
[11/21] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[12/21] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[13/21] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[14/21] Compiling XCTestDynamicOverlay Deprecations.swift
[15/21] Compiling XCTestDynamicOverlay Unimplemented.swift
[16/21] Compiling XCTestDynamicOverlay XCTFail.swift
[17/21] Compiling XCTestDynamicOverlay GeneratePlaceholder.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 @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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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 @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 }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/14] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[3/14] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[4/14] Compiling XCTestDynamicOverlay Deprecations.swift
[5/14] Compiling XCTestDynamicOverlay XCTFail.swift
[6/14] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[7/14] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[8/14] Compiling XCTestDynamicOverlay Unimplemented.swift
[9/14] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/14] Compiling SwiftSpeechRecognizer SpeechRecognitionStatus.swift
[11/14] Compiling SwiftSpeechRecognizer SpeechRecognitionEngineError.swift
[12/14] 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 |
[13/14] 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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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 }
BUILD FAILURE 6.1 macosSpm