Build Information
Successful build of FDSoundActivatedRecorder with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fulldecent/FDSoundActivatedRecorder.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fulldecent/FDSoundActivatedRecorder
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at a03435e Merge pull request #37 from shalamowww/master
Cloned https://github.com/fulldecent/FDSoundActivatedRecorder.git
Revision (git rev-parse @):
a03435e8b93548a35634959b57e53cd59f449cdb
SUCCESS checkout https://github.com/fulldecent/FDSoundActivatedRecorder.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/fulldecent/FDSoundActivatedRecorder.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/4] Compiling FDSoundActivatedRecorder FDSoundActivatedRecorder.swift
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:154:19: warning: capture of 'self' with non-sendable type 'FDSoundActivatedRecorder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 |
62 | /// An automated listener / recorder
63 | open class FDSoundActivatedRecorder: NSObject, AVAudioRecorderDelegate {
| `- note: class 'FDSoundActivatedRecorder' does not conform to the 'Sendable' protocol
64 |
65 | /// Number of seconds until recording stops automatically
:
152 | intervalTimer.invalidate()
153 | intervalTimer = Timer.scheduledTimer(withTimeInterval: intervalSeconds, repeats: true, block: { (Timer) in
154 | guard self.audioRecorder.isRecording else {
| `- warning: capture of 'self' with non-sendable type 'FDSoundActivatedRecorder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | // Timed out
156 | self.abort()
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:224:17: warning: capture of 'self' with non-sendable type 'FDSoundActivatedRecorder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 |
62 | /// An automated listener / recorder
63 | open class FDSoundActivatedRecorder: NSObject, AVAudioRecorderDelegate {
| `- note: class 'FDSoundActivatedRecorder' does not conform to the 'Sendable' protocol
64 |
65 | /// Number of seconds until recording stops automatically
:
222 | exportSession.exportAsynchronously {
223 | DispatchQueue.main.async {
224 | self.status = .inactive
| `- warning: capture of 'self' with non-sendable type 'FDSoundActivatedRecorder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |
226 | switch exportSession.status {
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:226:24: warning: capture of 'exportSession' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
224 | self.status = .inactive
225 |
226 | switch exportSession.status {
| `- warning: capture of 'exportSession' with non-sendable type 'AVAssetExportSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
227 | case .completed:
228 | self.delegate?.soundActivatedRecorderDidFinishRecording(self, andSaved: trimmedAudioFileURL)
AVFoundation.AVAssetExportSession:2:12: note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class AVAssetExportSession : NSObject {
| `- note: class 'AVAssetExportSession' does not conform to the 'Sendable' protocol
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
8 |
9 | import Foundation
10 | import AVFoundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
11 |
12 | /*
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:224:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
222 | exportSession.exportAsynchronously {
223 | DispatchQueue.main.async {
224 | self.status = .inactive
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
225 |
226 | switch exportSession.status {
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:226:24: warning: sending 'exportSession' risks causing data races; this is an error in the Swift 6 language mode
224 | self.status = .inactive
225 |
226 | switch exportSession.status {
| |- warning: sending 'exportSession' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'exportSession' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
227 | case .completed:
228 | self.delegate?.soundActivatedRecorderDidFinishRecording(self, andSaved: trimmedAudioFileURL)
[4/4] Emitting module FDSoundActivatedRecorder
Build complete! (26.67s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "FDSoundActivatedRecorder",
"name" : "FDSoundActivatedRecorder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
}
],
"products" : [
{
"name" : "FDSoundActivatedRecorder",
"targets" : [
"FDSoundActivatedRecorder"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FDSoundActivatedRecorderTests",
"module_type" : "SwiftTarget",
"name" : "FDSoundActivatedRecorderTests",
"path" : "Tests/FDSoundActivatedRecorderTests",
"sources" : [
"FDSoundActivatedRecorderTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"FDSoundActivatedRecorder"
],
"type" : "test"
},
{
"c99name" : "FDSoundActivatedRecorder",
"module_type" : "SwiftTarget",
"name" : "FDSoundActivatedRecorder",
"path" : "Sources/FDSoundActivatedRecorder",
"product_memberships" : [
"FDSoundActivatedRecorder"
],
"sources" : [
"FDSoundActivatedRecorder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.