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 Waveform with Swift 6.0 (beta) 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/AudioKit/Waveform.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AudioKit/Waveform
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at bacd3ef Merge pull request #6 from atomhax/main
Cloned https://github.com/AudioKit/Waveform.git
Revision (git rev-parse @):
bacd3ef84ab0febae1da145cbdb581f34c2b65a0
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/AudioKit/Waveform.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/AudioKit/Waveform.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/4] Write sources
[1/4] Copying Waveform.metal
[2/4] Copying Waveform.docc
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/11] Compiling Waveform SampleBuffer.swift
[6/11] Compiling Waveform Renderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Waveform/Renderer.swift:119:25: warning: main actor-isolated property 'frame' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
116 |     }
117 |
118 |     func draw(in view: MTKView) {
    |          `- note: add '@MainActor' to make instance method 'draw(in:)' part of global actor 'MainActor'
119 |         let size = view.frame.size
    |                         `- warning: main actor-isolated property 'frame' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
120 |         let w = Float(size.width)
121 |         let h = Float(size.height)
AppKit.NSView:60:25: note: property declared here
 58 |     open func setFrameOrigin(_ newOrigin: NSPoint)
 59 |     open func setFrameSize(_ newSize: NSSize)
 60 |     @MainActor open var frame: NSRect { get set }
    |                         `- note: property declared here
 61 |     open var frameRotation: CGFloat { get set }
 62 |     @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/Waveform/Renderer.swift:138:44: warning: main actor-isolated property 'currentRenderPassDescriptor' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
116 |     }
117 |
118 |     func draw(in view: MTKView) {
    |          `- note: add '@MainActor' to make instance method 'draw(in:)' part of global actor 'MainActor'
119 |         let size = view.frame.size
120 |         let w = Float(size.width)
    :
136 |         }
137 |
138 |         if let renderPassDescriptor = view.currentRenderPassDescriptor, let currentDrawable = view.currentDrawable {
    |                                            `- warning: main actor-isolated property 'currentRenderPassDescriptor' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
139 |             encode(to: commandBuffer, pass: renderPassDescriptor, width: size.width)
140 |
MetalKit.MTKView:25:25: note: property declared here
23 |     open var multisampleColorTexture: (any MTLTexture)? { get }
24 |     open func releaseDrawables()
25 |     @MainActor open var currentRenderPassDescriptor: MTLRenderPassDescriptor? { get }
   |                         `- note: property declared here
26 |     open var preferredFramesPerSecond: Int { get set }
27 |     open var enableSetNeedsDisplay: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Waveform/Renderer.swift:138:100: warning: main actor-isolated property 'currentDrawable' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
116 |     }
117 |
118 |     func draw(in view: MTKView) {
    |          `- note: add '@MainActor' to make instance method 'draw(in:)' part of global actor 'MainActor'
119 |         let size = view.frame.size
120 |         let w = Float(size.width)
    :
136 |         }
137 |
138 |         if let renderPassDescriptor = view.currentRenderPassDescriptor, let currentDrawable = view.currentDrawable {
    |                                                                                                    `- warning: main actor-isolated property 'currentDrawable' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
139 |             encode(to: commandBuffer, pass: renderPassDescriptor, width: size.width)
140 |
MetalKit.MTKView:7:14: note: property declared here
 5 |     weak open var delegate: (any MTKViewDelegate)? { get set }
 6 |     open var device: (any MTLDevice)? { get set }
 7 |     open var currentDrawable: (any CAMetalDrawable)? { get }
   |              `- note: property declared here
 8 |     open var framebufferOnly: Bool { get set }
 9 |     @available(macOS 10.15, *)
[7/11] Compiling Waveform Waveform.swift
[8/11] Compiling Waveform Helpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Waveform/Helpers.swift:74:26: warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.
 72 |     func setFragmentBytes<T>(_ value: T, index: Int) {
 73 |         var copy = value
 74 |         setFragmentBytes(&copy, length: MemoryLayout<T>.size, index: index)
    |                          `- warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.
 75 |     }
 76 |
/Users/admin/builder/spi-builder-workspace/Sources/Waveform/Helpers.swift:79:26: warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.
 77 |     func setFragmentBytes<T>(_ value: T, index: Int32) {
 78 |         var copy = value
 79 |         setFragmentBytes(&copy, length: MemoryLayout<T>.size, index: Int(index))
    |                          `- warning: forming 'UnsafeRawPointer' to a variable of type 'T'; this is likely incorrect because 'T' may contain an object reference.
 80 |     }
 81 | }
[9/11] Emitting module Waveform
[10/11] Compiling Waveform AVAudio+FloatData.swift
[11/11] Compiling Waveform resource_bundle_accessor.swift
Build complete! (45.76s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Waveform",
  "name" : "Waveform",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "Waveform",
      "targets" : [
        "Waveform"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WaveformTests",
      "module_type" : "SwiftTarget",
      "name" : "WaveformTests",
      "path" : "Tests/WaveformTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/WaveformTests/beat.aiff",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "MTLTexture+Image.swift",
        "WaveformTests.swift"
      ],
      "target_dependencies" : [
        "Waveform"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Waveform",
      "module_type" : "SwiftTarget",
      "name" : "Waveform",
      "path" : "Sources/Waveform",
      "product_memberships" : [
        "Waveform"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Waveform/Waveform.metal",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Waveform/Waveform.docc",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "AVAudio+FloatData.swift",
        "Helpers.swift",
        "Renderer.swift",
        "SampleBuffer.swift",
        "Waveform.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.