The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WWAudioStreamTranscription, reference 0.5.2 (743ade), with Swift 6.1 for macOS (SPM) on 3 Sep 2026 11:45:01 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/William-Weng/WWAudioStreamTranscription.git
Reference: 0.5.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWAudioStreamTranscription
 * tag               0.5.2      -> FETCH_HEAD
HEAD is now at 743ade8 - addsPunctuation: 是否自動在辨識出的文字中加入標點符號
Cloned https://github.com/William-Weng/WWAudioStreamTranscription.git
Revision (git rev-parse @):
743ade8631cedbde468e899c562665d74641a166
SUCCESS checkout https://github.com/William-Weng/WWAudioStreamTranscription.git at 0.5.2
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/William-Weng/WWAudioStreamTranscription.git
https://github.com/William-Weng/WWAudioStreamTranscription.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WWAudioStreamTranscription",
  "name" : "WWAudioStreamTranscription",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "WWAudioStreamTranscription",
      "targets" : [
        "WWAudioStreamTranscription"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "WWAudioStreamTranscription",
      "module_type" : "SwiftTarget",
      "name" : "WWAudioStreamTranscription",
      "path" : "Sources/WWAudioStreamTranscription",
      "product_memberships" : [
        "WWAudioStreamTranscription"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/Privacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Utility/Error.swift",
        "Utility/Model.swift",
        "WWAudioStreamTranscription.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
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/3] Write sources
[1/3] Copying Privacy
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/8] Compiling WWAudioStreamTranscription resource_bundle_accessor.swift
[5/8] Compiling WWAudioStreamTranscription WWAudioStreamTranscription.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:16:29: error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
    |                             `- error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
 17 |     private let request: SFSpeechAudioBufferRecognitionRequest      // 音訊辨識請求物件
 18 |
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:17:26: error: 'SFSpeechAudioBufferRecognitionRequest' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
 17 |     private let request: SFSpeechAudioBufferRecognitionRequest      // 音訊辨識請求物件
    |                          `- error: 'SFSpeechAudioBufferRecognitionRequest' is only available in macOS 10.15 or newer
 18 |
 19 |     private var task: SFSpeechRecognitionTask?                      // 目前的辨識任務
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:19:23: error: 'SFSpeechRecognitionTask' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
 17 |     private let request: SFSpeechAudioBufferRecognitionRequest      // 音訊辨識請求物件
 18 |
 19 |     private var task: SFSpeechRecognitionTask?                      // 目前的辨識任務
    |                       `- error: 'SFSpeechRecognitionTask' is only available in macOS 10.15 or newer
 20 |
 21 |     /// 當有新的辨識結果時呼叫的回呼
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:53:49: error: 'SFSpeechRecognizerAuthorizationStatus' is only available in macOS 10.15 or newer
 46 |
 47 | // MARK: - Public Static API
 48 | public extension WWAudioStreamTranscription {
    |        `- note: add @available attribute to enclosing extension
 49 |
 50 |     /// 請求語音辨識授權,並回傳授權狀態
 51 |     ///
 52 |     /// - Returns: SFSpeechRecognizer 的授權狀態
 53 |     static func requestAuthorization() async -> SFSpeechRecognizerAuthorizationStatus {
    |                 |                               `- error: 'SFSpeechRecognizerAuthorizationStatus' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing static method
 54 |
 55 |         await withCheckedContinuation { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:36:32: error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
    :
 32 |     ///   - addsPunctuation: 是否自動在辨識出的文字中加入標點符號
 33 |     /// - Throws: 若該語言區域不被支援,則拋出 WWAudioStreamTranscriptionError.unsupportedLocale
 34 |     public init(locale: Locale, shouldReportPartialResults: Bool = true, addsPunctuation: Bool = true) throws {
    |            `- note: add @available attribute to enclosing initializer
 35 |
 36 |         guard let recognizer = SFSpeechRecognizer(locale: locale) else {
    |                                |- error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 37 |             throw WWAudioStreamTranscriptionError.unsupportedLocale(locale)
 38 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:43:22: error: 'addsPunctuation' is only available in macOS 13 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
    :
 32 |     ///   - addsPunctuation: 是否自動在辨識出的文字中加入標點符號
 33 |     /// - Throws: 若該語言區域不被支援,則拋出 WWAudioStreamTranscriptionError.unsupportedLocale
 34 |     public init(locale: Locale, shouldReportPartialResults: Bool = true, addsPunctuation: Bool = true) throws {
    |            `- note: add @available attribute to enclosing initializer
 35 |
 36 |         guard let recognizer = SFSpeechRecognizer(locale: locale) else {
    :
 41 |         self.request = .init()
 42 |         self.request.shouldReportPartialResults = shouldReportPartialResults
 43 |         self.request.addsPunctuation = addsPunctuation
    |                      |- error: 'addsPunctuation' is only available in macOS 13 or newer
    |                      `- note: add 'if #available' version check
 44 |     }
 45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:55:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 46 |
 47 | // MARK: - Public Static API
 48 | public extension WWAudioStreamTranscription {
    |        `- note: add @available attribute to enclosing extension
 49 |
 50 |     /// 請求語音辨識授權,並回傳授權狀態
 51 |     ///
 52 |     /// - Returns: SFSpeechRecognizer 的授權狀態
 53 |     static func requestAuthorization() async -> SFSpeechRecognizerAuthorizationStatus {
    |                 `- note: add @available attribute to enclosing static method
 54 |
 55 |         await withCheckedContinuation { continuation in
    |               |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
 56 |             SFSpeechRecognizer.requestAuthorization { status in
 57 |                 continuation.resume(returning: status)
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:56:13: error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
 46 |
 47 | // MARK: - Public Static API
 48 | public extension WWAudioStreamTranscription {
    |        `- note: add @available attribute to enclosing extension
 49 |
 50 |     /// 請求語音辨識授權,並回傳授權狀態
 51 |     ///
 52 |     /// - Returns: SFSpeechRecognizer 的授權狀態
 53 |     static func requestAuthorization() async -> SFSpeechRecognizerAuthorizationStatus {
    |                 `- note: add @available attribute to enclosing static method
 54 |
 55 |         await withCheckedContinuation { continuation in
 56 |             SFSpeechRecognizer.requestAuthorization { status in
    |             |- error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 57 |                 continuation.resume(returning: status)
 58 |             }
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:55:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:55:39: note: expanded code originates here
 46 |
 47 | // MARK: - Public Static API
 48 | public extension WWAudioStreamTranscription {
    |        `- note: add @available attribute to enclosing extension
 49 |
 50 |     /// 請求語音辨識授權,並回傳授權狀態
 51 |     ///
 52 |     /// - Returns: SFSpeechRecognizer 的授權狀態
 53 |     static func requestAuthorization() async -> SFSpeechRecognizerAuthorizationStatus {
    |                 `- note: add @available attribute to enclosing static method
 54 |
 55 |         await withCheckedContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift
    |53 |
    |54 |
    |55 |                                       #isolation
    |   |                                        `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------------
 56 |             SFSpeechRecognizer.requestAuthorization { status in
 57 |                 continuation.resume(returning: status)
[6/8] Compiling WWAudioStreamTranscription Model.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/8] Compiling WWAudioStreamTranscription Error.swift
[8/8] Emitting module WWAudioStreamTranscription
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:16:29: error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
    |                             `- error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
 17 |     private let request: SFSpeechAudioBufferRecognitionRequest      // 音訊辨識請求物件
 18 |
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:17:26: error: 'SFSpeechAudioBufferRecognitionRequest' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
 17 |     private let request: SFSpeechAudioBufferRecognitionRequest      // 音訊辨識請求物件
    |                          `- error: 'SFSpeechAudioBufferRecognitionRequest' is only available in macOS 10.15 or newer
 18 |
 19 |     private var task: SFSpeechRecognitionTask?                      // 目前的辨識任務
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:19:23: error: 'SFSpeechRecognitionTask' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
 17 |     private let request: SFSpeechAudioBufferRecognitionRequest      // 音訊辨識請求物件
 18 |
 19 |     private var task: SFSpeechRecognitionTask?                      // 目前的辨識任務
    |                       `- error: 'SFSpeechRecognitionTask' is only available in macOS 10.15 or newer
 20 |
 21 |     /// 當有新的辨識結果時呼叫的回呼
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:53:49: error: 'SFSpeechRecognizerAuthorizationStatus' is only available in macOS 10.15 or newer
 46 |
 47 | // MARK: - Public Static API
 48 | public extension WWAudioStreamTranscription {
    |        `- note: add @available attribute to enclosing extension
 49 |
 50 |     /// 請求語音辨識授權,並回傳授權狀態
 51 |     ///
 52 |     /// - Returns: SFSpeechRecognizer 的授權狀態
 53 |     static func requestAuthorization() async -> SFSpeechRecognizerAuthorizationStatus {
    |                 |                               `- error: 'SFSpeechRecognizerAuthorizationStatus' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing static method
 54 |
 55 |         await withCheckedContinuation { continuation in
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/6] Compiling WWAudioStreamTranscription Model.swift
[3/6] Compiling WWAudioStreamTranscription Error.swift
[4/6] Compiling WWAudioStreamTranscription resource_bundle_accessor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module WWAudioStreamTranscription
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:16:29: error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
    |                             `- error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
 17 |     private let request: SFSpeechAudioBufferRecognitionRequest      // 音訊辨識請求物件
 18 |
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:17:26: error: 'SFSpeechAudioBufferRecognitionRequest' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
 17 |     private let request: SFSpeechAudioBufferRecognitionRequest      // 音訊辨識請求物件
    |                          `- error: 'SFSpeechAudioBufferRecognitionRequest' is only available in macOS 10.15 or newer
 18 |
 19 |     private var task: SFSpeechRecognitionTask?                      // 目前的辨識任務
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:19:23: error: 'SFSpeechRecognitionTask' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
 17 |     private let request: SFSpeechAudioBufferRecognitionRequest      // 音訊辨識請求物件
 18 |
 19 |     private var task: SFSpeechRecognitionTask?                      // 目前的辨識任務
    |                       `- error: 'SFSpeechRecognitionTask' is only available in macOS 10.15 or newer
 20 |
 21 |     /// 當有新的辨識結果時呼叫的回呼
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:53:49: error: 'SFSpeechRecognizerAuthorizationStatus' is only available in macOS 10.15 or newer
 46 |
 47 | // MARK: - Public Static API
 48 | public extension WWAudioStreamTranscription {
    |        `- note: add @available attribute to enclosing extension
 49 |
 50 |     /// 請求語音辨識授權,並回傳授權狀態
 51 |     ///
 52 |     /// - Returns: SFSpeechRecognizer 的授權狀態
 53 |     static func requestAuthorization() async -> SFSpeechRecognizerAuthorizationStatus {
    |                 |                               `- error: 'SFSpeechRecognizerAuthorizationStatus' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing static method
 54 |
 55 |         await withCheckedContinuation { continuation in
[6/6] Compiling WWAudioStreamTranscription WWAudioStreamTranscription.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:16:29: error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
    |                             `- error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
 17 |     private let request: SFSpeechAudioBufferRecognitionRequest      // 音訊辨識請求物件
 18 |
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:17:26: error: 'SFSpeechAudioBufferRecognitionRequest' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
 17 |     private let request: SFSpeechAudioBufferRecognitionRequest      // 音訊辨識請求物件
    |                          `- error: 'SFSpeechAudioBufferRecognitionRequest' is only available in macOS 10.15 or newer
 18 |
 19 |     private var task: SFSpeechRecognitionTask?                      // 目前的辨識任務
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:19:23: error: 'SFSpeechRecognitionTask' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
 17 |     private let request: SFSpeechAudioBufferRecognitionRequest      // 音訊辨識請求物件
 18 |
 19 |     private var task: SFSpeechRecognitionTask?                      // 目前的辨識任務
    |                       `- error: 'SFSpeechRecognitionTask' is only available in macOS 10.15 or newer
 20 |
 21 |     /// 當有新的辨識結果時呼叫的回呼
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:53:49: error: 'SFSpeechRecognizerAuthorizationStatus' is only available in macOS 10.15 or newer
 46 |
 47 | // MARK: - Public Static API
 48 | public extension WWAudioStreamTranscription {
    |        `- note: add @available attribute to enclosing extension
 49 |
 50 |     /// 請求語音辨識授權,並回傳授權狀態
 51 |     ///
 52 |     /// - Returns: SFSpeechRecognizer 的授權狀態
 53 |     static func requestAuthorization() async -> SFSpeechRecognizerAuthorizationStatus {
    |                 |                               `- error: 'SFSpeechRecognizerAuthorizationStatus' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing static method
 54 |
 55 |         await withCheckedContinuation { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:36:32: error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
    :
 32 |     ///   - addsPunctuation: 是否自動在辨識出的文字中加入標點符號
 33 |     /// - Throws: 若該語言區域不被支援,則拋出 WWAudioStreamTranscriptionError.unsupportedLocale
 34 |     public init(locale: Locale, shouldReportPartialResults: Bool = true, addsPunctuation: Bool = true) throws {
    |            `- note: add @available attribute to enclosing initializer
 35 |
 36 |         guard let recognizer = SFSpeechRecognizer(locale: locale) else {
    |                                |- error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 37 |             throw WWAudioStreamTranscriptionError.unsupportedLocale(locale)
 38 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:43:22: error: 'addsPunctuation' is only available in macOS 13 or newer
 12 | ///
 13 | /// 負責建立 SFSpeechRecognizer 與 SFSpeechAudioBufferRecognitionRequest,並透過持續傳入 PCM buffer 進行即時語音辨識
 14 | public final class WWAudioStreamTranscription {
    |                    `- note: add @available attribute to enclosing class
 15 |
 16 |     private let recognizer: SFSpeechRecognizer                      // 語音辨識器,負責實際的語音識別工作
    :
 32 |     ///   - addsPunctuation: 是否自動在辨識出的文字中加入標點符號
 33 |     /// - Throws: 若該語言區域不被支援,則拋出 WWAudioStreamTranscriptionError.unsupportedLocale
 34 |     public init(locale: Locale, shouldReportPartialResults: Bool = true, addsPunctuation: Bool = true) throws {
    |            `- note: add @available attribute to enclosing initializer
 35 |
 36 |         guard let recognizer = SFSpeechRecognizer(locale: locale) else {
    :
 41 |         self.request = .init()
 42 |         self.request.shouldReportPartialResults = shouldReportPartialResults
 43 |         self.request.addsPunctuation = addsPunctuation
    |                      |- error: 'addsPunctuation' is only available in macOS 13 or newer
    |                      `- note: add 'if #available' version check
 44 |     }
 45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:55:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 46 |
 47 | // MARK: - Public Static API
 48 | public extension WWAudioStreamTranscription {
    |        `- note: add @available attribute to enclosing extension
 49 |
 50 |     /// 請求語音辨識授權,並回傳授權狀態
 51 |     ///
 52 |     /// - Returns: SFSpeechRecognizer 的授權狀態
 53 |     static func requestAuthorization() async -> SFSpeechRecognizerAuthorizationStatus {
    |                 `- note: add @available attribute to enclosing static method
 54 |
 55 |         await withCheckedContinuation { continuation in
    |               |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
 56 |             SFSpeechRecognizer.requestAuthorization { status in
 57 |                 continuation.resume(returning: status)
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:56:13: error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
 46 |
 47 | // MARK: - Public Static API
 48 | public extension WWAudioStreamTranscription {
    |        `- note: add @available attribute to enclosing extension
 49 |
 50 |     /// 請求語音辨識授權,並回傳授權狀態
 51 |     ///
 52 |     /// - Returns: SFSpeechRecognizer 的授權狀態
 53 |     static func requestAuthorization() async -> SFSpeechRecognizerAuthorizationStatus {
    |                 `- note: add @available attribute to enclosing static method
 54 |
 55 |         await withCheckedContinuation { continuation in
 56 |             SFSpeechRecognizer.requestAuthorization { status in
    |             |- error: 'SFSpeechRecognizer' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 57 |                 continuation.resume(returning: status)
 58 |             }
/Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:55:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift:55:39: note: expanded code originates here
 46 |
 47 | // MARK: - Public Static API
 48 | public extension WWAudioStreamTranscription {
    |        `- note: add @available attribute to enclosing extension
 49 |
 50 |     /// 請求語音辨識授權,並回傳授權狀態
 51 |     ///
 52 |     /// - Returns: SFSpeechRecognizer 的授權狀態
 53 |     static func requestAuthorization() async -> SFSpeechRecognizerAuthorizationStatus {
    |                 `- note: add @available attribute to enclosing static method
 54 |
 55 |         await withCheckedContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/Sources/WWAudioStreamTranscription/WWAudioStreamTranscription.swift
    |53 |
    |54 |
    |55 |                                       #isolation
    |   |                                        `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------------------
 56 |             SFSpeechRecognizer.requestAuthorization { status in
 57 |                 continuation.resume(returning: status)
BUILD FAILURE 6.1 macosSpm