Build Information
Successful build of FluidAudio, reference v0.4.1 (289f32
), with Swift 6.1 for macOS (SPM) on 8 Sep 2025 20:45:58 UTC.
Swift 6 data race errors: 5
Build Command
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
Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/FluidInference/FluidAudio.git
Reference: v0.4.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/FluidInference/FluidAudio
* tag v0.4.1 -> FETCH_HEAD
HEAD is now at 289f32d Fix Confidence and token timestamps for ASR (#93)
Cloned https://github.com/FluidInference/FluidAudio.git
Revision (git rev-parse @):
289f32d36d41c18b4f5ae75e47f37fbfa353b4cf
SUCCESS checkout https://github.com/FluidInference/FluidAudio.git at v0.4.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": "fluidaudio",
"name": "FluidAudio",
"url": "https://github.com/FluidInference/FluidAudio.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FluidAudio",
"dependencies": [
]
}
]
}
Fetching https://github.com/FluidInference/FluidAudio.git
[1/10916] Fetching fluidaudio
Fetched https://github.com/FluidInference/FluidAudio.git from cache (2.78s)
Creating working copy for https://github.com/FluidInference/FluidAudio.git
Working copy of https://github.com/FluidInference/FluidAudio.git resolved at v0.4.1 (289f32d)
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/FluidInference/FluidAudio.git
https://github.com/FluidInference/FluidAudio.git
{
"dependencies" : [
],
"manifest_display_name" : "FluidAudio",
"name" : "FluidAudio",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "FluidAudio",
"targets" : [
"FluidAudio"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "fluidaudio",
"targets" : [
"FluidAudioCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "FluidAudioTests",
"module_type" : "SwiftTarget",
"name" : "FluidAudioTests",
"path" : "Tests/FluidAudioTests",
"sources" : [
"ANEMemoryOptimizerTests.swift",
"ANEMemoryUtilsEdgeCaseTests.swift",
"ANEOptimizerTests.swift",
"ASRConstantsTests.swift",
"ArraySliceTests.swift",
"AsrManagerExtensionTests.swift",
"AsrManagerTests.swift",
"AsrModelsTests.swift",
"AsrTranscriptionTests.swift",
"AudioConverterTests.swift",
"AudioSourceTests.swift",
"BasicInitializationTests.swift",
"CITests.swift",
"ChunkProcessorEdgeCaseTests.swift",
"ChunkProcessorTests.swift",
"DecoderStateTests.swift",
"DiarizerMemoryTests.swift",
"EmbeddingExtractorMemoryTests.swift",
"MLArrayCacheTests.swift",
"RandomAccessCollectionTests.swift",
"SegmentationProcessorEdgeCaseTests.swift",
"SegmentationProcessorTests.swift",
"SendableTests.swift",
"SpeakerManagerTests.swift",
"SpeakerOperationsTests.swift",
"SpeakerTests.swift",
"StreamingAsrManagerTests.swift",
"StreamingAsrSessionTests.swift",
"TdtConfigTests.swift",
"TdtDecoderChunkTests.swift",
"TdtDecoderStateV3Tests.swift",
"TdtDecoderTests.swift",
"TdtTimeJumpIntegrationTests.swift",
"VadTests.swift"
],
"target_dependencies" : [
"FluidAudio"
],
"type" : "test"
},
{
"c99name" : "FluidAudioCLI",
"module_type" : "SwiftTarget",
"name" : "FluidAudioCLI",
"path" : "Sources/FluidAudioCLI",
"product_memberships" : [
"fluidaudio"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/FluidAudioCLI/Utils/english.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Commands/ASR/AsrBenchmark.swift",
"Commands/ASR/AsrBenchmarkTypes.swift",
"Commands/ASR/FleursBenchmark.swift",
"Commands/ASR/TranscribeCommand.swift",
"Commands/DiarizationBenchmark.swift",
"Commands/DownloadCommand.swift",
"Commands/MultiStreamCommand.swift",
"Commands/ProcessCommand.swift",
"Commands/VadBenchmark.swift",
"DatasetParsers/AMIParser.swift",
"DatasetParsers/DatasetDownloader.swift",
"Models/CLIModels.swift",
"Utils/AudioProcessor.swift",
"Utils/ResultsFormatter.swift",
"Utils/StreamingUI.swift",
"Utils/TerminalUI.swift",
"Utils/TextNormalizer.swift",
"main.swift"
],
"target_dependencies" : [
"FluidAudio"
],
"type" : "executable"
},
{
"c99name" : "FluidAudio",
"module_type" : "SwiftTarget",
"name" : "FluidAudio",
"path" : "Sources/FluidAudio",
"product_memberships" : [
"FluidAudio",
"fluidaudio"
],
"sources" : [
"ASR/ANEOptimizer.swift",
"ASR/AsrManager.swift",
"ASR/AsrModels.swift",
"ASR/AsrTranscription.swift",
"ASR/AsrTypes.swift",
"ASR/AudioBuffer.swift",
"ASR/ChunkProcessor.swift",
"ASR/MLArrayCache.swift",
"ASR/PerformanceMetrics.swift",
"ASR/Streaming/StreamingAsrManager.swift",
"ASR/Streaming/StreamingAsrSession.swift",
"ASR/TDT/TdtConfig.swift",
"ASR/TDT/TdtDecoder.swift",
"ASR/TDT/TdtDecoderState.swift",
"ASR/TDT/TdtHypothesis.swift",
"Diarizer/AudioValidation.swift",
"Diarizer/DiarizerManager.swift",
"Diarizer/DiarizerModels.swift",
"Diarizer/DiarizerTypes.swift",
"Diarizer/EmbeddingExtractor.swift",
"Diarizer/SegmentationProcessor.swift",
"Diarizer/SlidingWindow.swift",
"Diarizer/SpeakerManager.swift",
"Diarizer/SpeakerOperations.swift",
"Diarizer/SpeakerTypes.swift",
"DownloadUtils.swift",
"FluidAudioSwift.swift",
"ModelNames.swift",
"Shared/ANEMemoryOptimizer.swift",
"Shared/ANEMemoryUtils.swift",
"Shared/ASRConstants.swift",
"Shared/AudioConverter.swift",
"VAD/VadAudioProcessor.swift",
"VAD/VadManager.swift",
"VAD/VadModelProcessor.swift",
"VAD/VadTypes.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/8] Copying english.json
[1/8] Write sources
[2/8] Write fluidaudio-entitlement.plist
[2/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/42] Emitting module FluidAudio
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/TDT/TdtHypothesis.swift:5:9: warning: stored property 'decState' of 'Sendable'-conforming struct 'TdtHypothesis' has non-sendable type 'TdtDecoderState?'; this is an error in the Swift 6 language mode
3 | var score: Float = 0.0
4 | var ySequence: [Int] = []
5 | var decState: TdtDecoderState?
| `- warning: stored property 'decState' of 'Sendable'-conforming struct 'TdtHypothesis' has non-sendable type 'TdtDecoderState?'; this is an error in the Swift 6 language mode
6 | var timestamps: [Int] = []
7 | var tokenDurations: [Int] = []
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/TDT/TdtDecoderState.swift:6:8: note: consider making struct 'TdtDecoderState' conform to the 'Sendable' protocol
4 |
5 | /// Manages LSTM hidden and cell states for the Parakeet decoder
6 | struct TdtDecoderState {
| `- note: consider making struct 'TdtDecoderState' conform to the 'Sendable' protocol
7 | var hiddenState: MLMultiArray
8 | var cellState: MLMultiArray
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Diarizer/SpeakerOperations.swift:33:27: warning: static property 'macOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Platform-specific configuration for speaker assignment
15 | public struct AssignmentConfig {
| `- note: consider making struct 'AssignmentConfig' conform to the 'Sendable' protocol
16 | public let maxDistanceForAssignment: Float
17 | public let maxDistanceForUpdate: Float
:
31 | }
32 |
33 | public static let macOS = AssignmentConfig(
| |- warning: static property 'macOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'macOS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | maxDistanceForAssignment: 0.65,
35 | maxDistanceForUpdate: 0.45,
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Diarizer/SpeakerOperations.swift:40:27: warning: static property 'iOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Platform-specific configuration for speaker assignment
15 | public struct AssignmentConfig {
| `- note: consider making struct 'AssignmentConfig' conform to the 'Sendable' protocol
16 | public let maxDistanceForAssignment: Float
17 | public let maxDistanceForUpdate: Float
:
38 | )
39 |
40 | public static let iOS = AssignmentConfig(
| |- warning: static property 'iOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iOS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | maxDistanceForAssignment: 0.55,
42 | maxDistanceForUpdate: 0.45,
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/DownloadUtils.swift:96:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DownloadUtils.DownloadConfig' may have shared mutable state; this is an error in the Swift 6 language mode
87 |
88 | /// Download configuration
89 | public struct DownloadConfig {
| `- note: consider making struct 'DownloadConfig' conform to the 'Sendable' protocol
90 | public let timeout: TimeInterval
91 |
:
94 | }
95 |
96 | public static let `default` = DownloadConfig()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DownloadUtils.DownloadConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/ANEMemoryOptimizer.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ANEMemoryOptimizer' may have shared mutable state; this is an error in the Swift 6 language mode
6 | /// ANE-optimized memory management for speaker diarization pipeline
7 | @available(macOS 13.0, iOS 16.0, *)
8 | public class ANEMemoryOptimizer {
| `- note: class 'ANEMemoryOptimizer' does not conform to the 'Sendable' protocol
9 | // Use shared ANE constants
10 | public static let aneAlignment = ANEMemoryUtils.aneAlignment
:
12 |
13 | /// Shared instance for resource management
14 | public static let shared = ANEMemoryOptimizer()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ANEMemoryOptimizer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | private var bufferPool: [String: MLMultiArray] = [:]
[7/45] Compiling FluidAudio VadManager.swift
[8/45] Compiling FluidAudio VadModelProcessor.swift
[9/45] Compiling FluidAudio VadTypes.swift
[10/45] Compiling FluidAudio AsrTypes.swift
[11/45] Compiling FluidAudio AudioBuffer.swift
[12/45] Compiling FluidAudio ChunkProcessor.swift
[13/45] Compiling FluidAudio MLArrayCache.swift
[14/45] Compiling FluidAudio TdtDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/TDT/TdtHypothesis.swift:5:9: warning: stored property 'decState' of 'Sendable'-conforming struct 'TdtHypothesis' has non-sendable type 'TdtDecoderState?'; this is an error in the Swift 6 language mode
3 | var score: Float = 0.0
4 | var ySequence: [Int] = []
5 | var decState: TdtDecoderState?
| `- warning: stored property 'decState' of 'Sendable'-conforming struct 'TdtHypothesis' has non-sendable type 'TdtDecoderState?'; this is an error in the Swift 6 language mode
6 | var timestamps: [Int] = []
7 | var tokenDurations: [Int] = []
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/TDT/TdtDecoderState.swift:6:8: note: consider making struct 'TdtDecoderState' conform to the 'Sendable' protocol
4 |
5 | /// Manages LSTM hidden and cell states for the Parakeet decoder
6 | struct TdtDecoderState {
| `- note: consider making struct 'TdtDecoderState' conform to the 'Sendable' protocol
7 | var hiddenState: MLMultiArray
8 | var cellState: MLMultiArray
[15/45] Compiling FluidAudio TdtDecoderState.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/TDT/TdtHypothesis.swift:5:9: warning: stored property 'decState' of 'Sendable'-conforming struct 'TdtHypothesis' has non-sendable type 'TdtDecoderState?'; this is an error in the Swift 6 language mode
3 | var score: Float = 0.0
4 | var ySequence: [Int] = []
5 | var decState: TdtDecoderState?
| `- warning: stored property 'decState' of 'Sendable'-conforming struct 'TdtHypothesis' has non-sendable type 'TdtDecoderState?'; this is an error in the Swift 6 language mode
6 | var timestamps: [Int] = []
7 | var tokenDurations: [Int] = []
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/TDT/TdtDecoderState.swift:6:8: note: consider making struct 'TdtDecoderState' conform to the 'Sendable' protocol
4 |
5 | /// Manages LSTM hidden and cell states for the Parakeet decoder
6 | struct TdtDecoderState {
| `- note: consider making struct 'TdtDecoderState' conform to the 'Sendable' protocol
7 | var hiddenState: MLMultiArray
8 | var cellState: MLMultiArray
[16/45] Compiling FluidAudio TdtHypothesis.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/TDT/TdtHypothesis.swift:5:9: warning: stored property 'decState' of 'Sendable'-conforming struct 'TdtHypothesis' has non-sendable type 'TdtDecoderState?'; this is an error in the Swift 6 language mode
3 | var score: Float = 0.0
4 | var ySequence: [Int] = []
5 | var decState: TdtDecoderState?
| `- warning: stored property 'decState' of 'Sendable'-conforming struct 'TdtHypothesis' has non-sendable type 'TdtDecoderState?'; this is an error in the Swift 6 language mode
6 | var timestamps: [Int] = []
7 | var tokenDurations: [Int] = []
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/TDT/TdtDecoderState.swift:6:8: note: consider making struct 'TdtDecoderState' conform to the 'Sendable' protocol
4 |
5 | /// Manages LSTM hidden and cell states for the Parakeet decoder
6 | struct TdtDecoderState {
| `- note: consider making struct 'TdtDecoderState' conform to the 'Sendable' protocol
7 | var hiddenState: MLMultiArray
8 | var cellState: MLMultiArray
[17/45] Compiling FluidAudio AudioValidation.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/TDT/TdtHypothesis.swift:5:9: warning: stored property 'decState' of 'Sendable'-conforming struct 'TdtHypothesis' has non-sendable type 'TdtDecoderState?'; this is an error in the Swift 6 language mode
3 | var score: Float = 0.0
4 | var ySequence: [Int] = []
5 | var decState: TdtDecoderState?
| `- warning: stored property 'decState' of 'Sendable'-conforming struct 'TdtHypothesis' has non-sendable type 'TdtDecoderState?'; this is an error in the Swift 6 language mode
6 | var timestamps: [Int] = []
7 | var tokenDurations: [Int] = []
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/TDT/TdtDecoderState.swift:6:8: note: consider making struct 'TdtDecoderState' conform to the 'Sendable' protocol
4 |
5 | /// Manages LSTM hidden and cell states for the Parakeet decoder
6 | struct TdtDecoderState {
| `- note: consider making struct 'TdtDecoderState' conform to the 'Sendable' protocol
7 | var hiddenState: MLMultiArray
8 | var cellState: MLMultiArray
[18/45] Compiling FluidAudio SegmentationProcessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Diarizer/SpeakerOperations.swift:33:27: warning: static property 'macOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Platform-specific configuration for speaker assignment
15 | public struct AssignmentConfig {
| `- note: consider making struct 'AssignmentConfig' conform to the 'Sendable' protocol
16 | public let maxDistanceForAssignment: Float
17 | public let maxDistanceForUpdate: Float
:
31 | }
32 |
33 | public static let macOS = AssignmentConfig(
| |- warning: static property 'macOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'macOS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | maxDistanceForAssignment: 0.65,
35 | maxDistanceForUpdate: 0.45,
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Diarizer/SpeakerOperations.swift:40:27: warning: static property 'iOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Platform-specific configuration for speaker assignment
15 | public struct AssignmentConfig {
| `- note: consider making struct 'AssignmentConfig' conform to the 'Sendable' protocol
16 | public let maxDistanceForAssignment: Float
17 | public let maxDistanceForUpdate: Float
:
38 | )
39 |
40 | public static let iOS = AssignmentConfig(
| |- warning: static property 'iOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iOS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | maxDistanceForAssignment: 0.55,
42 | maxDistanceForUpdate: 0.45,
[19/45] Compiling FluidAudio SlidingWindow.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Diarizer/SpeakerOperations.swift:33:27: warning: static property 'macOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Platform-specific configuration for speaker assignment
15 | public struct AssignmentConfig {
| `- note: consider making struct 'AssignmentConfig' conform to the 'Sendable' protocol
16 | public let maxDistanceForAssignment: Float
17 | public let maxDistanceForUpdate: Float
:
31 | }
32 |
33 | public static let macOS = AssignmentConfig(
| |- warning: static property 'macOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'macOS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | maxDistanceForAssignment: 0.65,
35 | maxDistanceForUpdate: 0.45,
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Diarizer/SpeakerOperations.swift:40:27: warning: static property 'iOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Platform-specific configuration for speaker assignment
15 | public struct AssignmentConfig {
| `- note: consider making struct 'AssignmentConfig' conform to the 'Sendable' protocol
16 | public let maxDistanceForAssignment: Float
17 | public let maxDistanceForUpdate: Float
:
38 | )
39 |
40 | public static let iOS = AssignmentConfig(
| |- warning: static property 'iOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iOS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | maxDistanceForAssignment: 0.55,
42 | maxDistanceForUpdate: 0.45,
[20/45] Compiling FluidAudio SpeakerManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Diarizer/SpeakerOperations.swift:33:27: warning: static property 'macOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Platform-specific configuration for speaker assignment
15 | public struct AssignmentConfig {
| `- note: consider making struct 'AssignmentConfig' conform to the 'Sendable' protocol
16 | public let maxDistanceForAssignment: Float
17 | public let maxDistanceForUpdate: Float
:
31 | }
32 |
33 | public static let macOS = AssignmentConfig(
| |- warning: static property 'macOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'macOS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | maxDistanceForAssignment: 0.65,
35 | maxDistanceForUpdate: 0.45,
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Diarizer/SpeakerOperations.swift:40:27: warning: static property 'iOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Platform-specific configuration for speaker assignment
15 | public struct AssignmentConfig {
| `- note: consider making struct 'AssignmentConfig' conform to the 'Sendable' protocol
16 | public let maxDistanceForAssignment: Float
17 | public let maxDistanceForUpdate: Float
:
38 | )
39 |
40 | public static let iOS = AssignmentConfig(
| |- warning: static property 'iOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iOS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | maxDistanceForAssignment: 0.55,
42 | maxDistanceForUpdate: 0.45,
[21/45] Compiling FluidAudio SpeakerOperations.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Diarizer/SpeakerOperations.swift:33:27: warning: static property 'macOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Platform-specific configuration for speaker assignment
15 | public struct AssignmentConfig {
| `- note: consider making struct 'AssignmentConfig' conform to the 'Sendable' protocol
16 | public let maxDistanceForAssignment: Float
17 | public let maxDistanceForUpdate: Float
:
31 | }
32 |
33 | public static let macOS = AssignmentConfig(
| |- warning: static property 'macOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'macOS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | maxDistanceForAssignment: 0.65,
35 | maxDistanceForUpdate: 0.45,
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Diarizer/SpeakerOperations.swift:40:27: warning: static property 'iOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Platform-specific configuration for speaker assignment
15 | public struct AssignmentConfig {
| `- note: consider making struct 'AssignmentConfig' conform to the 'Sendable' protocol
16 | public let maxDistanceForAssignment: Float
17 | public let maxDistanceForUpdate: Float
:
38 | )
39 |
40 | public static let iOS = AssignmentConfig(
| |- warning: static property 'iOS' is not concurrency-safe because non-'Sendable' type 'SpeakerUtilities.AssignmentConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iOS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | maxDistanceForAssignment: 0.55,
42 | maxDistanceForUpdate: 0.45,
[22/45] Compiling FluidAudio ANEOptimizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:121:55: warning: non-sendable result type 'MLMultiArray' cannot be sent from actor-isolated context in call to instance method 'getArray(shape:dataType:)'; this is an error in the Swift 6 language mode
119 |
120 | // Use ANE-aligned array from cache
121 | let audioArray = try await sharedMLArrayCache.getArray(
| `- warning: non-sendable result type 'MLMultiArray' cannot be sent from actor-isolated context in call to instance method 'getArray(shape:dataType:)'; this is an error in the Swift 6 language mode
122 | shape: [1, audioLength] as [NSNumber],
123 | dataType: .float32
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArray.h:49:12: note: class 'MLMultiArray' does not conform to the 'Sendable' protocol
47 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
48 | ML_EXPORT
49 | @interface MLMultiArray : NSObject <NSSecureCoding>
| `- note: class 'MLMultiArray' does not conform to the 'Sendable' protocol
50 |
51 | /// Unsafe pointer to underlying buffer holding the data
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
1 | import CoreML
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
2 | import Foundation
3 | import OSLog
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:228:36: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
226 | configuration: MLModelConfiguration
227 | ) async throws -> (melspectrogram: MLModel, encoder: MLModel, decoder: MLModel, joint: MLModel) {
228 | async let melspectrogram = loadModel(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
230 | async let encoder = loadModel(
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:229:79: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
227 | ) async throws -> (melspectrogram: MLModel, encoder: MLModel, decoder: MLModel, joint: MLModel) {
228 | async let melspectrogram = loadModel(
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
230 | async let encoder = loadModel(
231 | path: encoderPath, name: "encoder", configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:230:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
228 | async let melspectrogram = loadModel(
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
230 | async let encoder = loadModel(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
231 | path: encoderPath, name: "encoder", configuration: configuration)
232 | async let decoder = loadModel(
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:231:64: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
230 | async let encoder = loadModel(
231 | path: encoderPath, name: "encoder", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:232:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
230 | async let encoder = loadModel(
231 | path: encoderPath, name: "encoder", configuration: configuration)
232 | async let decoder = loadModel(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
233 | path: decoderPath, name: "decoder", configuration: configuration)
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:233:64: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
231 | path: encoderPath, name: "encoder", configuration: configuration)
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
235 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:234:27: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
235 |
236 | return try await (melspectrogram, encoder, decoder, joint)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:234:84: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
235 |
236 | return try await (melspectrogram, encoder, decoder, joint)
[23/45] Compiling FluidAudio AsrManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:121:55: warning: non-sendable result type 'MLMultiArray' cannot be sent from actor-isolated context in call to instance method 'getArray(shape:dataType:)'; this is an error in the Swift 6 language mode
119 |
120 | // Use ANE-aligned array from cache
121 | let audioArray = try await sharedMLArrayCache.getArray(
| `- warning: non-sendable result type 'MLMultiArray' cannot be sent from actor-isolated context in call to instance method 'getArray(shape:dataType:)'; this is an error in the Swift 6 language mode
122 | shape: [1, audioLength] as [NSNumber],
123 | dataType: .float32
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArray.h:49:12: note: class 'MLMultiArray' does not conform to the 'Sendable' protocol
47 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
48 | ML_EXPORT
49 | @interface MLMultiArray : NSObject <NSSecureCoding>
| `- note: class 'MLMultiArray' does not conform to the 'Sendable' protocol
50 |
51 | /// Unsafe pointer to underlying buffer holding the data
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
1 | import CoreML
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
2 | import Foundation
3 | import OSLog
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:228:36: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
226 | configuration: MLModelConfiguration
227 | ) async throws -> (melspectrogram: MLModel, encoder: MLModel, decoder: MLModel, joint: MLModel) {
228 | async let melspectrogram = loadModel(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
230 | async let encoder = loadModel(
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:229:79: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
227 | ) async throws -> (melspectrogram: MLModel, encoder: MLModel, decoder: MLModel, joint: MLModel) {
228 | async let melspectrogram = loadModel(
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
230 | async let encoder = loadModel(
231 | path: encoderPath, name: "encoder", configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:230:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
228 | async let melspectrogram = loadModel(
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
230 | async let encoder = loadModel(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
231 | path: encoderPath, name: "encoder", configuration: configuration)
232 | async let decoder = loadModel(
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:231:64: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
230 | async let encoder = loadModel(
231 | path: encoderPath, name: "encoder", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:232:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
230 | async let encoder = loadModel(
231 | path: encoderPath, name: "encoder", configuration: configuration)
232 | async let decoder = loadModel(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
233 | path: decoderPath, name: "decoder", configuration: configuration)
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:233:64: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
231 | path: encoderPath, name: "encoder", configuration: configuration)
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
235 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:234:27: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
235 |
236 | return try await (melspectrogram, encoder, decoder, joint)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:234:84: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
235 |
236 | return try await (melspectrogram, encoder, decoder, joint)
[24/45] Compiling FluidAudio AsrModels.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:121:55: warning: non-sendable result type 'MLMultiArray' cannot be sent from actor-isolated context in call to instance method 'getArray(shape:dataType:)'; this is an error in the Swift 6 language mode
119 |
120 | // Use ANE-aligned array from cache
121 | let audioArray = try await sharedMLArrayCache.getArray(
| `- warning: non-sendable result type 'MLMultiArray' cannot be sent from actor-isolated context in call to instance method 'getArray(shape:dataType:)'; this is an error in the Swift 6 language mode
122 | shape: [1, audioLength] as [NSNumber],
123 | dataType: .float32
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArray.h:49:12: note: class 'MLMultiArray' does not conform to the 'Sendable' protocol
47 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
48 | ML_EXPORT
49 | @interface MLMultiArray : NSObject <NSSecureCoding>
| `- note: class 'MLMultiArray' does not conform to the 'Sendable' protocol
50 |
51 | /// Unsafe pointer to underlying buffer holding the data
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
1 | import CoreML
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
2 | import Foundation
3 | import OSLog
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:228:36: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
226 | configuration: MLModelConfiguration
227 | ) async throws -> (melspectrogram: MLModel, encoder: MLModel, decoder: MLModel, joint: MLModel) {
228 | async let melspectrogram = loadModel(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
230 | async let encoder = loadModel(
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:229:79: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
227 | ) async throws -> (melspectrogram: MLModel, encoder: MLModel, decoder: MLModel, joint: MLModel) {
228 | async let melspectrogram = loadModel(
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
230 | async let encoder = loadModel(
231 | path: encoderPath, name: "encoder", configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:230:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
228 | async let melspectrogram = loadModel(
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
230 | async let encoder = loadModel(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
231 | path: encoderPath, name: "encoder", configuration: configuration)
232 | async let decoder = loadModel(
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:231:64: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
230 | async let encoder = loadModel(
231 | path: encoderPath, name: "encoder", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:232:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
230 | async let encoder = loadModel(
231 | path: encoderPath, name: "encoder", configuration: configuration)
232 | async let decoder = loadModel(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
233 | path: decoderPath, name: "decoder", configuration: configuration)
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:233:64: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
231 | path: encoderPath, name: "encoder", configuration: configuration)
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
235 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:234:27: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
235 |
236 | return try await (melspectrogram, encoder, decoder, joint)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:234:84: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
235 |
236 | return try await (melspectrogram, encoder, decoder, joint)
[25/45] Compiling FluidAudio AsrTranscription.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:121:55: warning: non-sendable result type 'MLMultiArray' cannot be sent from actor-isolated context in call to instance method 'getArray(shape:dataType:)'; this is an error in the Swift 6 language mode
119 |
120 | // Use ANE-aligned array from cache
121 | let audioArray = try await sharedMLArrayCache.getArray(
| `- warning: non-sendable result type 'MLMultiArray' cannot be sent from actor-isolated context in call to instance method 'getArray(shape:dataType:)'; this is an error in the Swift 6 language mode
122 | shape: [1, audioLength] as [NSNumber],
123 | dataType: .float32
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArray.h:49:12: note: class 'MLMultiArray' does not conform to the 'Sendable' protocol
47 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
48 | ML_EXPORT
49 | @interface MLMultiArray : NSObject <NSSecureCoding>
| `- note: class 'MLMultiArray' does not conform to the 'Sendable' protocol
50 |
51 | /// Unsafe pointer to underlying buffer holding the data
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
1 | import CoreML
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
2 | import Foundation
3 | import OSLog
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:228:36: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
226 | configuration: MLModelConfiguration
227 | ) async throws -> (melspectrogram: MLModel, encoder: MLModel, decoder: MLModel, joint: MLModel) {
228 | async let melspectrogram = loadModel(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
230 | async let encoder = loadModel(
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:229:79: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
227 | ) async throws -> (melspectrogram: MLModel, encoder: MLModel, decoder: MLModel, joint: MLModel) {
228 | async let melspectrogram = loadModel(
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
230 | async let encoder = loadModel(
231 | path: encoderPath, name: "encoder", configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:230:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
228 | async let melspectrogram = loadModel(
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
230 | async let encoder = loadModel(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
231 | path: encoderPath, name: "encoder", configuration: configuration)
232 | async let decoder = loadModel(
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:231:64: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
229 | path: melspectrogramPath, name: "mel-spectrogram", configuration: configuration)
230 | async let encoder = loadModel(
231 | path: encoderPath, name: "encoder", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:232:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
230 | async let encoder = loadModel(
231 | path: encoderPath, name: "encoder", configuration: configuration)
232 | async let decoder = loadModel(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
233 | path: decoderPath, name: "decoder", configuration: configuration)
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:233:64: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
231 | path: encoderPath, name: "encoder", configuration: configuration)
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
235 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:234:27: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' into async let risks causing data races between nonisolated and task-isolated uses
235 |
236 | return try await (melspectrogram, encoder, decoder, joint)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/AsrManager.swift:234:84: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
232 | async let decoder = loadModel(
233 | path: decoderPath, name: "decoder", configuration: configuration)
234 | async let joint = loadModel(path: jointPath, name: "joint", configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' into async let risks causing data races between nonisolated and task-isolated uses
235 |
236 | return try await (melspectrogram, encoder, decoder, joint)
[26/45] Compiling FluidAudio DiarizerManager.swift
[27/45] Compiling FluidAudio DiarizerModels.swift
[28/45] Compiling FluidAudio DiarizerTypes.swift
[29/45] Compiling FluidAudio EmbeddingExtractor.swift
[30/45] Compiling FluidAudio SpeakerTypes.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/DownloadUtils.swift:96:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DownloadUtils.DownloadConfig' may have shared mutable state; this is an error in the Swift 6 language mode
87 |
88 | /// Download configuration
89 | public struct DownloadConfig {
| `- note: consider making struct 'DownloadConfig' conform to the 'Sendable' protocol
90 | public let timeout: TimeInterval
91 |
:
94 | }
95 |
96 | public static let `default` = DownloadConfig()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DownloadUtils.DownloadConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | }
98 |
[31/45] Compiling FluidAudio DownloadUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/DownloadUtils.swift:96:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DownloadUtils.DownloadConfig' may have shared mutable state; this is an error in the Swift 6 language mode
87 |
88 | /// Download configuration
89 | public struct DownloadConfig {
| `- note: consider making struct 'DownloadConfig' conform to the 'Sendable' protocol
90 | public let timeout: TimeInterval
91 |
:
94 | }
95 |
96 | public static let `default` = DownloadConfig()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DownloadUtils.DownloadConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | }
98 |
[32/45] Compiling FluidAudio FluidAudioSwift.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/DownloadUtils.swift:96:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DownloadUtils.DownloadConfig' may have shared mutable state; this is an error in the Swift 6 language mode
87 |
88 | /// Download configuration
89 | public struct DownloadConfig {
| `- note: consider making struct 'DownloadConfig' conform to the 'Sendable' protocol
90 | public let timeout: TimeInterval
91 |
:
94 | }
95 |
96 | public static let `default` = DownloadConfig()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DownloadUtils.DownloadConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | }
98 |
[33/45] Compiling FluidAudio ModelNames.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/ANEMemoryOptimizer.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ANEMemoryOptimizer' may have shared mutable state; this is an error in the Swift 6 language mode
6 | /// ANE-optimized memory management for speaker diarization pipeline
7 | @available(macOS 13.0, iOS 16.0, *)
8 | public class ANEMemoryOptimizer {
| `- note: class 'ANEMemoryOptimizer' does not conform to the 'Sendable' protocol
9 | // Use shared ANE constants
10 | public static let aneAlignment = ANEMemoryUtils.aneAlignment
:
12 |
13 | /// Shared instance for resource management
14 | public static let shared = ANEMemoryOptimizer()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ANEMemoryOptimizer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | private var bufferPool: [String: MLMultiArray] = [:]
[34/45] Compiling FluidAudio ANEMemoryOptimizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/ANEMemoryOptimizer.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ANEMemoryOptimizer' may have shared mutable state; this is an error in the Swift 6 language mode
6 | /// ANE-optimized memory management for speaker diarization pipeline
7 | @available(macOS 13.0, iOS 16.0, *)
8 | public class ANEMemoryOptimizer {
| `- note: class 'ANEMemoryOptimizer' does not conform to the 'Sendable' protocol
9 | // Use shared ANE constants
10 | public static let aneAlignment = ANEMemoryUtils.aneAlignment
:
12 |
13 | /// Shared instance for resource management
14 | public static let shared = ANEMemoryOptimizer()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ANEMemoryOptimizer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | private var bufferPool: [String: MLMultiArray] = [:]
[35/45] Compiling FluidAudio ANEMemoryUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/ANEMemoryOptimizer.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ANEMemoryOptimizer' may have shared mutable state; this is an error in the Swift 6 language mode
6 | /// ANE-optimized memory management for speaker diarization pipeline
7 | @available(macOS 13.0, iOS 16.0, *)
8 | public class ANEMemoryOptimizer {
| `- note: class 'ANEMemoryOptimizer' does not conform to the 'Sendable' protocol
9 | // Use shared ANE constants
10 | public static let aneAlignment = ANEMemoryUtils.aneAlignment
:
12 |
13 | /// Shared instance for resource management
14 | public static let shared = ANEMemoryOptimizer()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ANEMemoryOptimizer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | private var bufferPool: [String: MLMultiArray] = [:]
[36/45] Compiling FluidAudio PerformanceMetrics.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/PerformanceMetrics.swift:55:32: warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
36 |
37 | /// Track performance for a processing session
38 | public func trackSession<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
39 | operation: String,
40 | audioLengthSeconds: Float,
:
53 |
54 | // Execute the operation
55 | let result = try await block()
| `- warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
56 |
57 | let totalTime = Date().timeIntervalSince(startTime)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/PerformanceMetrics.swift:88:32: warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
78 |
79 | /// Track a specific component's execution time
80 | public func trackComponent<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
81 | _ component: String,
82 | block: () async throws -> T
:
86 |
87 | let startTime = Date()
88 | let result = try await block()
| `- warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
89 | let time = Date().timeIntervalSince(startTime)
90 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:103:13: warning: non-sendable result type 'AVAudioPCMBuffer?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
101 | logger.info("Recognition task started, waiting for audio...")
102 |
103 | for await pcmBuffer in self.inputSequence {
| `- warning: non-sendable result type 'AVAudioPCMBuffer?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
104 | do {
105 | // Convert to 16kHz mono
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h:67:12: note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
65 | */
66 | API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
67 | @interface AVAudioPCMBuffer : AVAudioBuffer
| `- note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
68 |
69 | /*! @method initWithPCMFormat:frameCapacity:
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFAudio'
1 | import AVFoundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFAudio'
2 | import Foundation
3 | import OSLog
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/PerformanceMetrics.swift:168:38: warning: sending value of non-Sendable type '() async throws -> ASRResult' risks causing data races; this is an error in the Swift 6 language mode
166 |
167 | if let monitor = monitor {
168 | return try await monitor.trackSession(
| |- warning: sending value of non-Sendable type '() async throws -> ASRResult' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() async throws -> ASRResult' to actor-isolated instance method 'trackSession(operation:audioLengthSeconds:block:)' risks causing races in between task-isolated and actor-isolated uses
169 | operation: "Transcription",
170 | audioLengthSeconds: audioLengthSeconds
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:87:31: warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
85 | // Initialize ASR manager with provided models
86 | asrManager = AsrManager(config: config.asrConfig)
87 | try await asrManager?.initialize(models: models)
| |- warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.asrManager.some' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
88 |
89 | // Reset decoder state for the specific source
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:90:31: warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
88 |
89 | // Reset decoder state for the specific source
90 | try await asrManager?.resetDecoderState(for: source)
| |- warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.asrManager.some' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
91 |
92 | // Reset sliding window state
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:445:38: warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
443 | if let asrManager = asrManager {
444 | do {
445 | try await asrManager.resetDecoderState(for: audioSource)
| |- warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'asrManager' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
446 | logger.info("Successfully reset decoder state during error recovery")
447 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:312:77: warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
310 |
311 | // Call AsrManager directly with deduplication
312 | let (tokens, timestamps, confidences, _) = try await asrManager.transcribeStreamingChunk(
| |- warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'asrManager' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
313 | windowSamples,
314 | source: audioSource,
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:130:22: warning: sending 'buffer' risks causing data races; this is an error in the Swift 6 language mode
128 | /// - Parameter buffer: Audio buffer in any format (will be converted to 16kHz mono)
129 | public func streamAudio(_ buffer: AVAudioPCMBuffer) {
130 | inputBuilder.yield(buffer)
| |- warning: sending 'buffer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'buffer' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
131 | }
132 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:195:34: warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
193 | // Reset decoder state for the current audio source
194 | if let asrManager = asrManager {
195 | try await asrManager.resetDecoderState(for: audioSource)
| |- warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'asrManager' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
196 | }
197 |
[37/45] Compiling FluidAudio StreamingAsrManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/PerformanceMetrics.swift:55:32: warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
36 |
37 | /// Track performance for a processing session
38 | public func trackSession<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
39 | operation: String,
40 | audioLengthSeconds: Float,
:
53 |
54 | // Execute the operation
55 | let result = try await block()
| `- warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
56 |
57 | let totalTime = Date().timeIntervalSince(startTime)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/PerformanceMetrics.swift:88:32: warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
78 |
79 | /// Track a specific component's execution time
80 | public func trackComponent<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
81 | _ component: String,
82 | block: () async throws -> T
:
86 |
87 | let startTime = Date()
88 | let result = try await block()
| `- warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
89 | let time = Date().timeIntervalSince(startTime)
90 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:103:13: warning: non-sendable result type 'AVAudioPCMBuffer?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
101 | logger.info("Recognition task started, waiting for audio...")
102 |
103 | for await pcmBuffer in self.inputSequence {
| `- warning: non-sendable result type 'AVAudioPCMBuffer?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
104 | do {
105 | // Convert to 16kHz mono
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h:67:12: note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
65 | */
66 | API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
67 | @interface AVAudioPCMBuffer : AVAudioBuffer
| `- note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
68 |
69 | /*! @method initWithPCMFormat:frameCapacity:
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFAudio'
1 | import AVFoundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFAudio'
2 | import Foundation
3 | import OSLog
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/PerformanceMetrics.swift:168:38: warning: sending value of non-Sendable type '() async throws -> ASRResult' risks causing data races; this is an error in the Swift 6 language mode
166 |
167 | if let monitor = monitor {
168 | return try await monitor.trackSession(
| |- warning: sending value of non-Sendable type '() async throws -> ASRResult' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() async throws -> ASRResult' to actor-isolated instance method 'trackSession(operation:audioLengthSeconds:block:)' risks causing races in between task-isolated and actor-isolated uses
169 | operation: "Transcription",
170 | audioLengthSeconds: audioLengthSeconds
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:87:31: warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
85 | // Initialize ASR manager with provided models
86 | asrManager = AsrManager(config: config.asrConfig)
87 | try await asrManager?.initialize(models: models)
| |- warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.asrManager.some' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
88 |
89 | // Reset decoder state for the specific source
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:90:31: warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
88 |
89 | // Reset decoder state for the specific source
90 | try await asrManager?.resetDecoderState(for: source)
| |- warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.asrManager.some' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
91 |
92 | // Reset sliding window state
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:445:38: warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
443 | if let asrManager = asrManager {
444 | do {
445 | try await asrManager.resetDecoderState(for: audioSource)
| |- warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'asrManager' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
446 | logger.info("Successfully reset decoder state during error recovery")
447 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:312:77: warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
310 |
311 | // Call AsrManager directly with deduplication
312 | let (tokens, timestamps, confidences, _) = try await asrManager.transcribeStreamingChunk(
| |- warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'asrManager' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
313 | windowSamples,
314 | source: audioSource,
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:130:22: warning: sending 'buffer' risks causing data races; this is an error in the Swift 6 language mode
128 | /// - Parameter buffer: Audio buffer in any format (will be converted to 16kHz mono)
129 | public func streamAudio(_ buffer: AVAudioPCMBuffer) {
130 | inputBuilder.yield(buffer)
| |- warning: sending 'buffer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'buffer' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
131 | }
132 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:195:34: warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
193 | // Reset decoder state for the current audio source
194 | if let asrManager = asrManager {
195 | try await asrManager.resetDecoderState(for: audioSource)
| |- warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'asrManager' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
196 | }
197 |
[38/45] Compiling FluidAudio StreamingAsrSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/PerformanceMetrics.swift:55:32: warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
36 |
37 | /// Track performance for a processing session
38 | public func trackSession<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
39 | operation: String,
40 | audioLengthSeconds: Float,
:
53 |
54 | // Execute the operation
55 | let result = try await block()
| `- warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
56 |
57 | let totalTime = Date().timeIntervalSince(startTime)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/PerformanceMetrics.swift:88:32: warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
78 |
79 | /// Track a specific component's execution time
80 | public func trackComponent<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
81 | _ component: String,
82 | block: () async throws -> T
:
86 |
87 | let startTime = Date()
88 | let result = try await block()
| `- warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
89 | let time = Date().timeIntervalSince(startTime)
90 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:103:13: warning: non-sendable result type 'AVAudioPCMBuffer?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
101 | logger.info("Recognition task started, waiting for audio...")
102 |
103 | for await pcmBuffer in self.inputSequence {
| `- warning: non-sendable result type 'AVAudioPCMBuffer?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
104 | do {
105 | // Convert to 16kHz mono
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h:67:12: note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
65 | */
66 | API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
67 | @interface AVAudioPCMBuffer : AVAudioBuffer
| `- note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
68 |
69 | /*! @method initWithPCMFormat:frameCapacity:
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFAudio'
1 | import AVFoundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFAudio'
2 | import Foundation
3 | import OSLog
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/PerformanceMetrics.swift:168:38: warning: sending value of non-Sendable type '() async throws -> ASRResult' risks causing data races; this is an error in the Swift 6 language mode
166 |
167 | if let monitor = monitor {
168 | return try await monitor.trackSession(
| |- warning: sending value of non-Sendable type '() async throws -> ASRResult' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() async throws -> ASRResult' to actor-isolated instance method 'trackSession(operation:audioLengthSeconds:block:)' risks causing races in between task-isolated and actor-isolated uses
169 | operation: "Transcription",
170 | audioLengthSeconds: audioLengthSeconds
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:87:31: warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
85 | // Initialize ASR manager with provided models
86 | asrManager = AsrManager(config: config.asrConfig)
87 | try await asrManager?.initialize(models: models)
| |- warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.asrManager.some' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
88 |
89 | // Reset decoder state for the specific source
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:90:31: warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
88 |
89 | // Reset decoder state for the specific source
90 | try await asrManager?.resetDecoderState(for: source)
| |- warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.asrManager.some' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
91 |
92 | // Reset sliding window state
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:445:38: warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
443 | if let asrManager = asrManager {
444 | do {
445 | try await asrManager.resetDecoderState(for: audioSource)
| |- warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'asrManager' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
446 | logger.info("Successfully reset decoder state during error recovery")
447 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:312:77: warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
310 |
311 | // Call AsrManager directly with deduplication
312 | let (tokens, timestamps, confidences, _) = try await asrManager.transcribeStreamingChunk(
| |- warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'asrManager' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
313 | windowSamples,
314 | source: audioSource,
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:130:22: warning: sending 'buffer' risks causing data races; this is an error in the Swift 6 language mode
128 | /// - Parameter buffer: Audio buffer in any format (will be converted to 16kHz mono)
129 | public func streamAudio(_ buffer: AVAudioPCMBuffer) {
130 | inputBuilder.yield(buffer)
| |- warning: sending 'buffer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'buffer' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
131 | }
132 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:195:34: warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
193 | // Reset decoder state for the current audio source
194 | if let asrManager = asrManager {
195 | try await asrManager.resetDecoderState(for: audioSource)
| |- warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'asrManager' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
196 | }
197 |
[39/45] Compiling FluidAudio TdtConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/PerformanceMetrics.swift:55:32: warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
36 |
37 | /// Track performance for a processing session
38 | public func trackSession<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
39 | operation: String,
40 | audioLengthSeconds: Float,
:
53 |
54 | // Execute the operation
55 | let result = try await block()
| `- warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
56 |
57 | let totalTime = Date().timeIntervalSince(startTime)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/PerformanceMetrics.swift:88:32: warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
78 |
79 | /// Track a specific component's execution time
80 | public func trackComponent<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
81 | _ component: String,
82 | block: () async throws -> T
:
86 |
87 | let startTime = Date()
88 | let result = try await block()
| `- warning: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'block'; this is an error in the Swift 6 language mode
89 | let time = Date().timeIntervalSince(startTime)
90 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:103:13: warning: non-sendable result type 'AVAudioPCMBuffer?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
101 | logger.info("Recognition task started, waiting for audio...")
102 |
103 | for await pcmBuffer in self.inputSequence {
| `- warning: non-sendable result type 'AVAudioPCMBuffer?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
104 | do {
105 | // Convert to 16kHz mono
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h:67:12: note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
65 | */
66 | API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
67 | @interface AVAudioPCMBuffer : AVAudioBuffer
| `- note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
68 |
69 | /*! @method initWithPCMFormat:frameCapacity:
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFAudio'
1 | import AVFoundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFAudio'
2 | import Foundation
3 | import OSLog
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/PerformanceMetrics.swift:168:38: warning: sending value of non-Sendable type '() async throws -> ASRResult' risks causing data races; this is an error in the Swift 6 language mode
166 |
167 | if let monitor = monitor {
168 | return try await monitor.trackSession(
| |- warning: sending value of non-Sendable type '() async throws -> ASRResult' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() async throws -> ASRResult' to actor-isolated instance method 'trackSession(operation:audioLengthSeconds:block:)' risks causing races in between task-isolated and actor-isolated uses
169 | operation: "Transcription",
170 | audioLengthSeconds: audioLengthSeconds
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:87:31: warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
85 | // Initialize ASR manager with provided models
86 | asrManager = AsrManager(config: config.asrConfig)
87 | try await asrManager?.initialize(models: models)
| |- warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.asrManager.some' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
88 |
89 | // Reset decoder state for the specific source
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:90:31: warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
88 |
89 | // Reset decoder state for the specific source
90 | try await asrManager?.resetDecoderState(for: source)
| |- warning: sending 'self.asrManager.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.asrManager.some' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
91 |
92 | // Reset sliding window state
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:445:38: warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
443 | if let asrManager = asrManager {
444 | do {
445 | try await asrManager.resetDecoderState(for: audioSource)
| |- warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'asrManager' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
446 | logger.info("Successfully reset decoder state during error recovery")
447 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:312:77: warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
310 |
311 | // Call AsrManager directly with deduplication
312 | let (tokens, timestamps, confidences, _) = try await asrManager.transcribeStreamingChunk(
| |- warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'asrManager' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
313 | windowSamples,
314 | source: audioSource,
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:130:22: warning: sending 'buffer' risks causing data races; this is an error in the Swift 6 language mode
128 | /// - Parameter buffer: Audio buffer in any format (will be converted to 16kHz mono)
129 | public func streamAudio(_ buffer: AVAudioPCMBuffer) {
130 | inputBuilder.yield(buffer)
| |- warning: sending 'buffer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'buffer' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
131 | }
132 |
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/ASR/Streaming/StreamingAsrManager.swift:195:34: warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
193 | // Reset decoder state for the current audio source
194 | if let asrManager = asrManager {
195 | try await asrManager.resetDecoderState(for: audioSource)
| |- warning: sending 'asrManager' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'asrManager' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
196 | }
197 |
[40/45] Compiling FluidAudio ASRConstants.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/AudioConverter.swift:42:58: warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
40 |
41 | // Create or update converter if needed
42 | if converter == nil || converter?.inputFormat != inputFormat || converter?.outputFormat != format {
| | `- note: access can happen concurrently
| |- warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'inputFormat' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
43 | converter = AVAudioConverter(from: inputFormat, to: format)
44 | converter?.primeMethod = .none // Avoid timestamp drift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/AudioConverter.swift:42:100: warning: sending 'format' risks causing data races; this is an error in the Swift 6 language mode
40 |
41 | // Create or update converter if needed
42 | if converter == nil || converter?.inputFormat != inputFormat || converter?.outputFormat != format {
| |- warning: sending 'format' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'format' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
43 | converter = AVAudioConverter(from: inputFormat, to: format)
| `- note: access can happen concurrently
44 | converter?.primeMethod = .none // Avoid timestamp drift
45 |
:
54 |
55 | // Calculate output buffer size
56 | let sampleRateRatio = format.sampleRate / inputFormat.sampleRate
| `- note: access can happen concurrently
57 | let scaledFrameLength = Double(buffer.frameLength) * sampleRateRatio
58 | let frameCapacity = AVAudioFrameCount(scaledFrameLength.rounded(.up))
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/AudioConverter.swift:26:65: warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
24 |
25 | // If already in target format, just extract samples
26 | if inputFormat.sampleRate == targetFormat.sampleRate && inputFormat.channelCount == targetFormat.channelCount
| |- warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'inputFormat' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
27 | && inputFormat.commonFormat == targetFormat.commonFormat
| `- note: access can happen concurrently
28 | {
29 | return extractFloatArray(from: buffer)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/AudioConverter.swift:27:16: warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
25 | // If already in target format, just extract samples
26 | if inputFormat.sampleRate == targetFormat.sampleRate && inputFormat.channelCount == targetFormat.channelCount
27 | && inputFormat.commonFormat == targetFormat.commonFormat
| |- warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'inputFormat' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
28 | {
29 | return extractFloatArray(from: buffer)
| `- note: access can happen concurrently
30 | }
31 |
32 | // Convert to target format
33 | let convertedBuffer = try convertBuffer(buffer, to: targetFormat)
| `- note: access can happen concurrently
34 | return extractFloatArray(from: convertedBuffer)
35 | }
[41/45] Compiling FluidAudio AudioConverter.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/AudioConverter.swift:42:58: warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
40 |
41 | // Create or update converter if needed
42 | if converter == nil || converter?.inputFormat != inputFormat || converter?.outputFormat != format {
| | `- note: access can happen concurrently
| |- warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'inputFormat' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
43 | converter = AVAudioConverter(from: inputFormat, to: format)
44 | converter?.primeMethod = .none // Avoid timestamp drift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/AudioConverter.swift:42:100: warning: sending 'format' risks causing data races; this is an error in the Swift 6 language mode
40 |
41 | // Create or update converter if needed
42 | if converter == nil || converter?.inputFormat != inputFormat || converter?.outputFormat != format {
| |- warning: sending 'format' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'format' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
43 | converter = AVAudioConverter(from: inputFormat, to: format)
| `- note: access can happen concurrently
44 | converter?.primeMethod = .none // Avoid timestamp drift
45 |
:
54 |
55 | // Calculate output buffer size
56 | let sampleRateRatio = format.sampleRate / inputFormat.sampleRate
| `- note: access can happen concurrently
57 | let scaledFrameLength = Double(buffer.frameLength) * sampleRateRatio
58 | let frameCapacity = AVAudioFrameCount(scaledFrameLength.rounded(.up))
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/AudioConverter.swift:26:65: warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
24 |
25 | // If already in target format, just extract samples
26 | if inputFormat.sampleRate == targetFormat.sampleRate && inputFormat.channelCount == targetFormat.channelCount
| |- warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'inputFormat' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
27 | && inputFormat.commonFormat == targetFormat.commonFormat
| `- note: access can happen concurrently
28 | {
29 | return extractFloatArray(from: buffer)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/AudioConverter.swift:27:16: warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
25 | // If already in target format, just extract samples
26 | if inputFormat.sampleRate == targetFormat.sampleRate && inputFormat.channelCount == targetFormat.channelCount
27 | && inputFormat.commonFormat == targetFormat.commonFormat
| |- warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'inputFormat' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
28 | {
29 | return extractFloatArray(from: buffer)
| `- note: access can happen concurrently
30 | }
31 |
32 | // Convert to target format
33 | let convertedBuffer = try convertBuffer(buffer, to: targetFormat)
| `- note: access can happen concurrently
34 | return extractFloatArray(from: convertedBuffer)
35 | }
[42/45] Compiling FluidAudio VadAudioProcessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/AudioConverter.swift:42:58: warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
40 |
41 | // Create or update converter if needed
42 | if converter == nil || converter?.inputFormat != inputFormat || converter?.outputFormat != format {
| | `- note: access can happen concurrently
| |- warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'inputFormat' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
43 | converter = AVAudioConverter(from: inputFormat, to: format)
44 | converter?.primeMethod = .none // Avoid timestamp drift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/AudioConverter.swift:42:100: warning: sending 'format' risks causing data races; this is an error in the Swift 6 language mode
40 |
41 | // Create or update converter if needed
42 | if converter == nil || converter?.inputFormat != inputFormat || converter?.outputFormat != format {
| |- warning: sending 'format' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'format' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
43 | converter = AVAudioConverter(from: inputFormat, to: format)
| `- note: access can happen concurrently
44 | converter?.primeMethod = .none // Avoid timestamp drift
45 |
:
54 |
55 | // Calculate output buffer size
56 | let sampleRateRatio = format.sampleRate / inputFormat.sampleRate
| `- note: access can happen concurrently
57 | let scaledFrameLength = Double(buffer.frameLength) * sampleRateRatio
58 | let frameCapacity = AVAudioFrameCount(scaledFrameLength.rounded(.up))
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/AudioConverter.swift:26:65: warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
24 |
25 | // If already in target format, just extract samples
26 | if inputFormat.sampleRate == targetFormat.sampleRate && inputFormat.channelCount == targetFormat.channelCount
| |- warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'inputFormat' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
27 | && inputFormat.commonFormat == targetFormat.commonFormat
| `- note: access can happen concurrently
28 | {
29 | return extractFloatArray(from: buffer)
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudio/Shared/AudioConverter.swift:27:16: warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
25 | // If already in target format, just extract samples
26 | if inputFormat.sampleRate == targetFormat.sampleRate && inputFormat.channelCount == targetFormat.channelCount
27 | && inputFormat.commonFormat == targetFormat.commonFormat
| |- warning: sending 'inputFormat' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'inputFormat' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
28 | {
29 | return extractFloatArray(from: buffer)
| `- note: access can happen concurrently
30 | }
31 |
32 | // Convert to target format
33 | let convertedBuffer = try convertBuffer(buffer, to: targetFormat)
| `- note: access can happen concurrently
34 | return extractFloatArray(from: convertedBuffer)
35 | }
[43/64] Compiling FluidAudioCLI TextNormalizer.swift
[44/64] Compiling FluidAudioCLI main.swift
[45/64] Compiling FluidAudioCLI DatasetDownloader.swift
[46/64] Compiling FluidAudioCLI CLIModels.swift
[47/64] Compiling FluidAudioCLI StreamingUI.swift
[48/64] Compiling FluidAudioCLI TerminalUI.swift
[49/64] Compiling FluidAudioCLI AudioProcessor.swift
[50/64] Compiling FluidAudioCLI ResultsFormatter.swift
[51/64] Compiling FluidAudioCLI VadBenchmark.swift
[52/64] Compiling FluidAudioCLI AMIParser.swift
[53/65] Compiling FluidAudioCLI resource_bundle_accessor.swift
[54/65] Compiling FluidAudioCLI FleursBenchmark.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudioCLI/Commands/ASR/TranscribeCommand.swift:318:36: warning: sending 'chunkBuffer' risks causing data races; this is an error in the Swift 6 language mode
316 |
317 | // Stream the chunk immediately - no waiting
318 | await streamingAsr.streamAudio(chunkBuffer)
| |- warning: sending 'chunkBuffer' risks causing data races; this is an error in the Swift 6 language mode
| |- note: sending 'chunkBuffer' to actor-isolated instance method 'streamAudio' risks causing data races between actor-isolated and local nonisolated uses
| `- note: access can happen concurrently
319 |
320 | // Update progress with actual processing time
[55/65] Compiling FluidAudioCLI TranscribeCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudioCLI/Commands/ASR/TranscribeCommand.swift:318:36: warning: sending 'chunkBuffer' risks causing data races; this is an error in the Swift 6 language mode
316 |
317 | // Stream the chunk immediately - no waiting
318 | await streamingAsr.streamAudio(chunkBuffer)
| |- warning: sending 'chunkBuffer' risks causing data races; this is an error in the Swift 6 language mode
| |- note: sending 'chunkBuffer' to actor-isolated instance method 'streamAudio' risks causing data races between actor-isolated and local nonisolated uses
| `- note: access can happen concurrently
319 |
320 | // Update progress with actual processing time
[56/65] Emitting module FluidAudioCLI
[57/65] Compiling FluidAudioCLI MultiStreamCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudioCLI/Commands/MultiStreamCommand.swift:234:26: warning: sending 'chunkBuffer' risks causing data races; this is an error in the Swift 6 language mode
232 | chunkBuffer.frameLength = AVAudioFrameCount(chunkSize)
233 |
234 | await stream.streamAudio(chunkBuffer)
| |- warning: sending 'chunkBuffer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'chunkBuffer' to actor-isolated instance method 'streamAudio' risks causing data races between actor-isolated and task-isolated uses
235 |
236 | position += chunkSize
[58/65] Compiling FluidAudioCLI ProcessCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluidAudioCLI/Commands/MultiStreamCommand.swift:234:26: warning: sending 'chunkBuffer' risks causing data races; this is an error in the Swift 6 language mode
232 | chunkBuffer.frameLength = AVAudioFrameCount(chunkSize)
233 |
234 | await stream.streamAudio(chunkBuffer)
| |- warning: sending 'chunkBuffer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'chunkBuffer' to actor-isolated instance method 'streamAudio' risks causing data races between actor-isolated and task-isolated uses
235 |
236 | position += chunkSize
[59/65] Compiling FluidAudioCLI DiarizationBenchmark.swift
[60/65] Compiling FluidAudioCLI DownloadCommand.swift
[61/65] Compiling FluidAudioCLI AsrBenchmark.swift
[62/65] Compiling FluidAudioCLI AsrBenchmarkTypes.swift
[62/65] Write Objects.LinkFileList
[63/65] Linking fluidaudio
[64/65] Applying fluidaudio
Build complete! (12.51s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "FluidAudio",
"name" : "FluidAudio",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "FluidAudio",
"targets" : [
"FluidAudio"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "fluidaudio",
"targets" : [
"FluidAudioCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "FluidAudioTests",
"module_type" : "SwiftTarget",
"name" : "FluidAudioTests",
"path" : "Tests/FluidAudioTests",
"sources" : [
"ANEMemoryOptimizerTests.swift",
"ANEMemoryUtilsEdgeCaseTests.swift",
"ANEOptimizerTests.swift",
"ASRConstantsTests.swift",
"ArraySliceTests.swift",
"AsrManagerExtensionTests.swift",
"AsrManagerTests.swift",
"AsrModelsTests.swift",
"AsrTranscriptionTests.swift",
"AudioConverterTests.swift",
"AudioSourceTests.swift",
"BasicInitializationTests.swift",
"CITests.swift",
"ChunkProcessorEdgeCaseTests.swift",
"ChunkProcessorTests.swift",
"DecoderStateTests.swift",
"DiarizerMemoryTests.swift",
"EmbeddingExtractorMemoryTests.swift",
"MLArrayCacheTests.swift",
"RandomAccessCollectionTests.swift",
"SegmentationProcessorEdgeCaseTests.swift",
"SegmentationProcessorTests.swift",
"SendableTests.swift",
"SpeakerManagerTests.swift",
"SpeakerOperationsTests.swift",
"SpeakerTests.swift",
"StreamingAsrManagerTests.swift",
"StreamingAsrSessionTests.swift",
"TdtConfigTests.swift",
"TdtDecoderChunkTests.swift",
"TdtDecoderStateV3Tests.swift",
"TdtDecoderTests.swift",
"TdtTimeJumpIntegrationTests.swift",
"VadTests.swift"
],
"target_dependencies" : [
"FluidAudio"
],
"type" : "test"
},
{
"c99name" : "FluidAudioCLI",
"module_type" : "SwiftTarget",
"name" : "FluidAudioCLI",
"path" : "Sources/FluidAudioCLI",
"product_memberships" : [
"fluidaudio"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/FluidAudioCLI/Utils/english.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Commands/ASR/AsrBenchmark.swift",
"Commands/ASR/AsrBenchmarkTypes.swift",
"Commands/ASR/FleursBenchmark.swift",
"Commands/ASR/TranscribeCommand.swift",
"Commands/DiarizationBenchmark.swift",
"Commands/DownloadCommand.swift",
"Commands/MultiStreamCommand.swift",
"Commands/ProcessCommand.swift",
"Commands/VadBenchmark.swift",
"DatasetParsers/AMIParser.swift",
"DatasetParsers/DatasetDownloader.swift",
"Models/CLIModels.swift",
"Utils/AudioProcessor.swift",
"Utils/ResultsFormatter.swift",
"Utils/StreamingUI.swift",
"Utils/TerminalUI.swift",
"Utils/TextNormalizer.swift",
"main.swift"
],
"target_dependencies" : [
"FluidAudio"
],
"type" : "executable"
},
{
"c99name" : "FluidAudio",
"module_type" : "SwiftTarget",
"name" : "FluidAudio",
"path" : "Sources/FluidAudio",
"product_memberships" : [
"FluidAudio",
"fluidaudio"
],
"sources" : [
"ASR/ANEOptimizer.swift",
"ASR/AsrManager.swift",
"ASR/AsrModels.swift",
"ASR/AsrTranscription.swift",
"ASR/AsrTypes.swift",
"ASR/AudioBuffer.swift",
"ASR/ChunkProcessor.swift",
"ASR/MLArrayCache.swift",
"ASR/PerformanceMetrics.swift",
"ASR/Streaming/StreamingAsrManager.swift",
"ASR/Streaming/StreamingAsrSession.swift",
"ASR/TDT/TdtConfig.swift",
"ASR/TDT/TdtDecoder.swift",
"ASR/TDT/TdtDecoderState.swift",
"ASR/TDT/TdtHypothesis.swift",
"Diarizer/AudioValidation.swift",
"Diarizer/DiarizerManager.swift",
"Diarizer/DiarizerModels.swift",
"Diarizer/DiarizerTypes.swift",
"Diarizer/EmbeddingExtractor.swift",
"Diarizer/SegmentationProcessor.swift",
"Diarizer/SlidingWindow.swift",
"Diarizer/SpeakerManager.swift",
"Diarizer/SpeakerOperations.swift",
"Diarizer/SpeakerTypes.swift",
"DownloadUtils.swift",
"FluidAudioSwift.swift",
"ModelNames.swift",
"Shared/ANEMemoryOptimizer.swift",
"Shared/ANEMemoryUtils.swift",
"Shared/ASRConstants.swift",
"Shared/AudioConverter.swift",
"VAD/VadAudioProcessor.swift",
"VAD/VadManager.swift",
"VAD/VadModelProcessor.swift",
"VAD/VadTypes.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.