This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of DSWaveformImage 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/dmrschmidt/DSWaveformImage.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dmrschmidt/DSWaveformImage
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4c56578 fix last column in striped rendering not rendering as proper bar
Cloned https://github.com/dmrschmidt/DSWaveformImage.git
Revision (git rev-parse @):
4c56578ee10128ee2b2c04c9c5aa73812de722db
SUCCESS checkout https://github.com/dmrschmidt/DSWaveformImage.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/dmrschmidt/DSWaveformImage.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/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/13] Compiling DSWaveformImage WaveformImageDrawer.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSWaveformImage/WaveformImageDrawer.swift:52:39: warning: capture of 'self' with non-sendable type 'WaveformImageDrawer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  4 |
  5 | /// Renders a DSImage of the waveform data calculated by the analyzer.
  6 | public class WaveformImageDrawer: ObservableObject {
    |              `- note: class 'WaveformImageDrawer' does not conform to the 'Sendable' protocol
  7 |     public enum GenerationError: Error { case generic }
  8 |
    :
 50 |         Task {
 51 |             do {
 52 |                 let image = try await render(fromAudioAt: audioAssetURL, with: configuration, renderer: renderer, qos: qos, position: position)
    |                                       `- warning: capture of 'self' with non-sendable type 'WaveformImageDrawer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 |                 completionHandler(.success(image))
 54 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/DSWaveformImage/WaveformImageDrawer.swift:52:120: warning: capture of 'qos' with non-sendable type 'DispatchQoS.QoSClass' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 50 |         Task {
 51 |             do {
 52 |                 let image = try await render(fromAudioAt: audioAssetURL, with: configuration, renderer: renderer, qos: qos, position: position)
    |                                                                                                                        `- warning: capture of 'qos' with non-sendable type 'DispatchQoS.QoSClass' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 |                 completionHandler(.success(image))
 54 |             } catch {
Dispatch.DispatchQoS:15:17: note: enum 'QoSClass' does not conform to the 'Sendable' protocol
13 |     public static let userInteractive: DispatchQoS
14 |     public static let unspecified: DispatchQoS
15 |     public enum QoSClass {
   |                 `- note: enum 'QoSClass' does not conform to the 'Sendable' protocol
16 |         @available(macOS 10.10, iOS 8.0, *)
17 |         case background
/Users/admin/builder/spi-builder-workspace/Sources/DSWaveformImage/WaveformImageDrawer.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  1 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  2 | import AVFoundation
  3 | import CoreGraphics
/Users/admin/builder/spi-builder-workspace/Sources/DSWaveformImage/WaveformImageDrawer.swift:52:135: warning: capture of 'position' with non-sendable type 'Waveform.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 50 |         Task {
 51 |             do {
 52 |                 let image = try await render(fromAudioAt: audioAssetURL, with: configuration, renderer: renderer, qos: qos, position: position)
    |                                                                                                                                       `- warning: capture of 'position' with non-sendable type 'Waveform.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 |                 completionHandler(.success(image))
 54 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/DSWaveformImage/WaveformImageTypes.swift:71:18: note: consider making enum 'Position' conform to the 'Sendable' protocol
 69 | public enum Waveform {
 70 |     /** Position of the drawn waveform. */
 71 |      public enum Position: Equatable {
    |                  `- note: consider making enum 'Position' conform to the 'Sendable' protocol
 72 |          /// **top**: Draws the waveform at the top of the image, such that only the bottom 50% are visible.
 73 |          case top
/Users/admin/builder/spi-builder-workspace/Sources/DSWaveformImage/WaveformImageDrawer.swift:53:17: warning: capture of 'completionHandler' with non-sendable type '(Result<DSImage, any Error>) -> ()' (aka '(Result<NSImage, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 51 |             do {
 52 |                 let image = try await render(fromAudioAt: audioAssetURL, with: configuration, renderer: renderer, qos: qos, position: position)
 53 |                 completionHandler(.success(image))
    |                 |- warning: capture of 'completionHandler' with non-sendable type '(Result<DSImage, any Error>) -> ()' (aka '(Result<NSImage, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 54 |             } catch {
 55 |                 completionHandler(.failure(error))
[5/13] Compiling DSWaveformImage WaveformImageDrawer+macOS.swift
[6/13] Compiling DSWaveformImage WaveformImageDrawer+iOS.swift
[7/13] Compiling DSWaveformImage WaveformImageTypes.swift
[8/13] Compiling DSWaveformImage CircularWaveformRenderer.swift
[9/13] Compiling DSWaveformImage WaveformAnalyzer.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSWaveformImage/WaveformAnalyzer.swift:56:96: warning: capture of 'qos' with non-sendable type 'DispatchQoS.QoSClass' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 54 |         Task {
 55 |             do {
 56 |                 let samples = try await samples(fromAudioAt: audioAssetURL, count: count, qos: qos)
    |                                                                                                `- warning: capture of 'qos' with non-sendable type 'DispatchQoS.QoSClass' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 57 |                 completionHandler(.success(samples))
 58 |             } catch {
Dispatch.DispatchQoS:15:17: note: enum 'QoSClass' does not conform to the 'Sendable' protocol
13 |     public static let userInteractive: DispatchQoS
14 |     public static let unspecified: DispatchQoS
15 |     public enum QoSClass {
   |                 `- note: enum 'QoSClass' does not conform to the 'Sendable' protocol
16 |         @available(macOS 10.10, iOS 8.0, *)
17 |         case background
/Users/admin/builder/spi-builder-workspace/Sources/DSWaveformImage/WaveformAnalyzer.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  8 | //
  9 |
 10 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
 11 | import Accelerate
 12 | import AVFoundation
/Users/admin/builder/spi-builder-workspace/Sources/DSWaveformImage/WaveformAnalyzer.swift:57:17: warning: capture of 'completionHandler' with non-sendable type '(Result<[Float], any Error>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 55 |             do {
 56 |                 let samples = try await samples(fromAudioAt: audioAssetURL, count: count, qos: qos)
 57 |                 completionHandler(.success(samples))
    |                 |- warning: capture of 'completionHandler' with non-sendable type '(Result<[Float], any Error>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 58 |             } catch {
 59 |                 completionHandler(.failure(error))
[10/13] Emitting module DSWaveformImage
[11/13] Compiling DSWaveformImage LinearWaveformRenderer.swift
[12/13] Compiling DSWaveformImage WaveformRenderer.swift
[13/13] Compiling DSWaveformImage TempiFFT.swift
[14/21] Compiling DSWaveformImageViews WaveformLiveView.swift
[15/21] Compiling DSWaveformImageViews WaveformImageView.swift
[16/21] Compiling DSWaveformImageViews WaveformView.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSWaveformImageViews/SwiftUI/WaveformView.swift:57:39: warning: capture of 'self' with non-sendable type 'WaveformView<Content>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  4 | @available(iOS 15.0, macOS 12.0, *)
  5 | /// Renders and displays a waveform for the audio at `audioURL`.
  6 | public struct WaveformView<Content: View>: View {
    |               `- note: consider making generic struct 'WaveformView' conform to the 'Sendable' protocol
  7 |     private let audioURL: URL
  8 |     private let configuration: Waveform.Configuration
    :
 55 |                 let samplesNeeded = Int(size.width * configuration.scale)
 56 |                 let samples = try await WaveformAnalyzer().samples(fromAudioAt: url, count: samplesNeeded)
 57 |                 await MainActor.run { self.samples = samples }
    |                                       `- warning: capture of 'self' with non-sendable type 'WaveformView<Content>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 58 |             } catch {
 59 |                 assertionFailure(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/DSWaveformImageViews/SwiftUI/WaveformView.swift:57:39: warning: capture of 'self' with non-sendable type 'WaveformView<Content>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  4 | @available(iOS 15.0, macOS 12.0, *)
  5 | /// Renders and displays a waveform for the audio at `audioURL`.
  6 | public struct WaveformView<Content: View>: View {
    |               `- note: consider making generic struct 'WaveformView' conform to the 'Sendable' protocol
  7 |     private let audioURL: URL
  8 |     private let configuration: Waveform.Configuration
    :
 55 |                 let samplesNeeded = Int(size.width * configuration.scale)
 56 |                 let samples = try await WaveformAnalyzer().samples(fromAudioAt: url, count: samplesNeeded)
 57 |                 await MainActor.run { self.samples = samples }
    |                                       `- warning: capture of 'self' with non-sendable type 'WaveformView<Content>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 58 |             } catch {
 59 |                 assertionFailure(error.localizedDescription)
[17/21] Compiling DSWaveformImageViews WaveformLiveCanvas.swift
[18/21] Compiling DSWaveformImageViews DefaultShapeStyler.swift
[19/21] Compiling DSWaveformImageViews WaveformShape.swift
[20/21] Compiling DSWaveformImageViews VersionMigrations.swift
[21/21] Emitting module DSWaveformImageViews
Build complete! (51.78s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DSWaveformImage",
  "name" : "DSWaveformImage",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "DSWaveformImage",
      "targets" : [
        "DSWaveformImage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "DSWaveformImageViews",
      "targets" : [
        "DSWaveformImageViews"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DSWaveformImageViews",
      "module_type" : "SwiftTarget",
      "name" : "DSWaveformImageViews",
      "path" : "Sources/DSWaveformImageViews",
      "product_memberships" : [
        "DSWaveformImageViews"
      ],
      "sources" : [
        "SwiftUI/DefaultShapeStyler.swift",
        "SwiftUI/VersionMigrations.swift",
        "SwiftUI/WaveformLiveCanvas.swift",
        "SwiftUI/WaveformShape.swift",
        "SwiftUI/WaveformView.swift",
        "UIKit/WaveformImageView.swift",
        "UIKit/WaveformLiveView.swift"
      ],
      "target_dependencies" : [
        "DSWaveformImage"
      ],
      "type" : "library"
    },
    {
      "c99name" : "DSWaveformImage",
      "module_type" : "SwiftTarget",
      "name" : "DSWaveformImage",
      "path" : "Sources/DSWaveformImage",
      "product_memberships" : [
        "DSWaveformImage",
        "DSWaveformImageViews"
      ],
      "sources" : [
        "Renderers/CircularWaveformRenderer.swift",
        "Renderers/LinearWaveformRenderer.swift",
        "Renderers/WaveformRenderer.swift",
        "TempiFFT.swift",
        "WaveformAnalyzer.swift",
        "WaveformImageDrawer+iOS.swift",
        "WaveformImageDrawer+macOS.swift",
        "WaveformImageDrawer.swift",
        "WaveformImageTypes.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.