Build Information
Successful build of AudioKitUI with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 4
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/AudioKitUI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AudioKit/AudioKitUI
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 83bacdb Minor adjustments to documentation and minor adjust to SpectrogramFlatView (#86)
Cloned https://github.com/AudioKit/AudioKitUI.git
Revision (git rev-parse @):
83bacdba297ad921f793ead02f0ebaf8619c7b41
SUCCESS checkout https://github.com/AudioKit/AudioKitUI.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/AudioKit/AudioKitUI.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/7] Write sources
[1/7] Copying short.aif
[2/7] Copying PrivacyInfo.xcprivacy
[2/7] Copying drumloop.wav
[5/7] Write sources
[6/7] Write swift-version-6F35C1178C84523A.txt
[8/147] Emitting module AudioKit
[9/160] Compiling AudioKit MIDIFileChunkEvent.swift
[10/160] Compiling AudioKit MIDIFileHeaderChunk.swift
[11/160] Compiling AudioKit MIDIFileTempoTrack.swift
[12/160] Compiling AudioKit MIDIFileTrack.swift
[13/160] Compiling AudioKit MIDIFileTrackChunk.swift
[14/160] Compiling AudioKit MIDIFileTrackMap.swift
[15/160] Compiling AudioKit MIDIInstrument.swift
[16/160] Compiling AudioKit MIDIListener.swift
[17/160] Compiling AudioKit MIDINoteData.swift
[18/160] Compiling AudioKit MIDIPlayer.swift
[19/160] Compiling AudioKit MIDISampler.swift
[20/160] Compiling AudioKit MIDITransformer.swift
[21/160] Compiling AudioKit MIDIPacket+Extensions.swift
[22/160] Compiling AudioKit MIDIPacket+SequenceType.swift
[23/160] Compiling AudioKit MIDIPacketList+SequenceType.swift
[24/160] Compiling AudioKit BPM+StatisticalTools.swift
[25/160] Compiling AudioKit MIDIHelper.swift
[26/160] Compiling AudioKit MIDISysexMessage.swift
[27/160] Compiling AudioKit MIDITimeout.swift
[28/160] Compiling AudioKit MIDIVariableLengthQuantity.swift
[29/160] Compiling AudioKit AVAudioUnitEffect+Apple.swift
[30/160] Compiling AudioKit Delay.swift
[31/160] Compiling AudioKit AppleDistortion.swift
[32/160] Compiling AudioKit Decimator.swift
[33/160] Compiling AudioKit Distortion.swift
[34/160] Compiling AudioKit RingModulator.swift
[35/160] Compiling AudioKit Compressor.swift
[36/160] Compiling AudioKit DynamicsProcessor.swift
[37/160] Compiling AudioKit MemoryAddress.swift
[38/160] Compiling AudioKit MusicalDuration.swift
[39/160] Compiling AudioKit ThreadLockedAccessor.swift
[40/160] Compiling AudioKit BluetoothMIDIButton.swift
[41/160] Compiling AudioKit MIDIControl.swift
[42/160] Compiling AudioKit MIDICustomMetaEvent.swift
[43/160] Compiling AudioKit MIDIMessage.swift
[44/160] Compiling AudioKit MIDIStatus.swift
[45/160] Compiling AudioKit MIDISystemCommand.swift
[46/160] Compiling AudioKit MIDIBeatObserver.swift
[47/160] Compiling AudioKit MIDIClockListener.swift
[48/160] Compiling AudioKit MIDIMonoPolyListener.swift
[49/160] Compiling AudioKit MIDIObserverMaster.swift
[50/160] Compiling AudioKit MIDIOmniListener.swift
[51/160] Compiling AudioKit AVAudioFile+Utilities.swift
[52/160] Compiling AudioKit AVAudioPCMBuffer+Processing.swift
[53/160] Compiling AudioKit AVAudioPCMBuffer+Utilities.swift
[54/160] Compiling AudioKit FormatConverter+Compressed.swift
[55/160] Compiling AudioKit FormatConverter+PCM.swift
[56/160] Compiling AudioKit FormatConverter+Utilities.swift
[57/160] Compiling AudioKit FormatConverter.swift
[58/160] Compiling AudioKit WaveformDataRequest.swift
[59/160] Compiling AudioKit AVAudioUnit+Helpers.swift
[60/160] Compiling AudioKit AudioComponentDescription+Helpers.swift
[61/160] Compiling AudioKit AudioUnit+Helpers.swift
[62/160] Compiling AudioKit AVAudioEngine+Extensions.swift
[63/160] Compiling AudioKit AudioEngine+connectionTreeDescription.swift
[64/160] Compiling AudioKit AudioEngine.swift
[65/160] Compiling AudioKit CheckError.swift
[66/160] Compiling AudioKit CommonError.swift
[67/160] Compiling AudioKit AVAudioEngine+Devices.swift
[68/160] Compiling AudioKit Device.swift
[69/160] Compiling AudioKit DeviceUtils.swift
[70/160] Compiling AudioKit Settings+iOSVariants.swift
[71/160] Compiling AudioKit Settings+macOS.swift
[72/160] Compiling AudioKit Settings.swift
[73/160] Compiling AudioKit Table+AdditiveSynthesis.swift
[74/160] Compiling AudioKit Table.swift
[75/160] Compiling AudioKit AVAudioPCMBuffer+audition.swift
[76/160] Compiling AudioKit AVAudioTimeShim.swift
[77/160] Compiling AudioKit AudioKitHelpers.swift
[78/160] Compiling AudioKit Log.swift
[79/160] Compiling AudioKit Expander.swift
[80/160] Compiling AudioKit PeakLimiter.swift
[81/160] Compiling AudioKit BandPassFilter.swift
[82/160] Compiling AudioKit HighPassFilter.swift
[83/160] Compiling AudioKit HighShelfFilter.swift
[84/160] Compiling AudioKit LowPassFilter.swift
[85/160] Compiling AudioKit LowShelfFilter.swift
[86/160] Compiling AudioKit ParametricEQ.swift
[87/160] Compiling AudioKit NewPitch.swift
[88/160] Compiling AudioKit Reverb.swift
[89/160] Compiling AudioKit PlaygroundNoiseGenerator.swift
[90/160] Compiling AudioKit PlaygroundOscillator.swift
[91/160] Compiling AudioKit EnvironmentalNode.swift
[92/160] Compiling AudioKit MatrixMixer.swift
[93/160] Compiling AudioKit AudioPlayer+Buffering.swift
[94/160] Compiling AudioKit AudioPlayer+Legacy.swift
[95/160] Compiling AudioKit AudioPlayer+Playback.swift
[96/160] Compiling AudioKit AudioPlayer+Scheduling.swift
[97/160] Compiling AudioKit AudioPlayer.swift
[98/160] Compiling AudioKit MultiSegmentAudioPlayer.swift
[99/160] Compiling AudioKit TimePitch.swift
[100/160] Compiling AudioKit VariSpeed.swift
[101/160] Compiling AudioKit AppleSequencer.swift
[102/160] Compiling AudioKit MIDIMetaEvent+allocate.swift
[103/160] Compiling AudioKit MusicTrack+Events.swift
[104/160] Compiling AudioKit MusicTrack+Load.swift
[105/160] Compiling AudioKit MusicTrack.swift
[106/160] Compiling AudioKit Mixer.swift
[107/160] Compiling AudioKit Mixer3D.swift
[108/160] Compiling AudioKit NamedNode.swift
[109/160] Compiling AudioKit Node+ConnectStrategy.swift
[110/160] Compiling AudioKit Node+Graphviz.swift
[111/160] Compiling AudioKit Node+connectionTreeDescription.swift
[112/160] Compiling AudioKit Node+disconnectStrategy.swift
[113/160] Compiling AudioKit Node.swift
[114/160] Compiling AudioKit NodeParameter.swift
[115/160] Compiling AudioKit NodeStatus.swift
[116/160] Compiling AudioKit AppleSampler+SoundFonts.swift
[117/160] Compiling AudioKit AppleSampler+getAUPresetXML.swift
[118/160] Compiling AudioKit AppleSampler.swift
[119/160] Compiling AudioKit PresetBuilder.swift
[120/160] Compiling AudioKit MIDISystemRealTimeListener.swift
[121/160] Compiling AudioKit MIDISystemRealTimeObserver.swift
[122/160] Compiling AudioKit MIDITempoListener.swift
[123/160] Compiling AudioKit MIDITempoObserver.swift
[124/160] Compiling AudioKit MIDI+Extensions.swift
[125/160] Compiling AudioKit MIDI+Receiving.swift
[126/160] Compiling AudioKit MIDI+Sending.swift
[127/160] Compiling AudioKit MIDI+VirtualPorts.swift
[128/160] Compiling AudioKit MIDI.swift
[129/160] Compiling AudioKit MIDICallbackInstrument.swift
[130/160] Compiling AudioKit MIDIEndpointInfo.swift
[131/160] Compiling AudioKit MIDIEvent.swift
[132/160] Compiling AudioKit MIDIFile.swift
[133/160] Compiling AudioKit MIDIFileChunk.swift
[134/160] Compiling Controls SingleTouchView.swift
[135/160] Compiling Controls XYPad.swift
[136/161] Compiling Controls PlanarGeometry.swift
[137/161] Compiling Controls SmallKnob.swift
[142/161] Compiling Controls Ribbon.swift
[145/161] Emitting module Controls
[148/161] Compiling Controls TwoParameterControl.swift
[149/161] Compiling AudioKit TimeSignature.swift
[150/161] Compiling AudioKit UnsafeMIDIMetaEventPointer.swift
[151/161] Compiling AudioKit Duration.swift
[152/161] Compiling AudioKit AmplitudeTap.swift
[153/161] Compiling AudioKit BaseTap.swift
[154/161] Compiling AudioKit FFTTap.swift
[155/161] Compiling AudioKit MultiChannelInputNodeTap+WriteableFile.swift
[156/161] Compiling AudioKit MultiChannelInputNodeTap.swift
[157/161] Compiling AudioKit NodeRecorder.swift
[158/161] Compiling AudioKit RawBufferTap.swift
[159/161] Compiling AudioKit RawDataTap.swift
[160/161] Compiling AudioKit Tap.swift
[161/161] Compiling AudioKit resource_bundle_accessor.swift
[162/199] Compiling AudioKitUI MetalView.swift
[163/199] Compiling AudioKitUI NodeFFTView.swift
[164/199] Compiling AudioKitUI NodeOutputView.swift
[165/199] Compiling AudioKitUI NodeRollingView.swift
[166/203] Compiling AudioKitUI MultitouchOverlayView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/AmplitudeView.swift:43:13: warning: capture of 'self' with non-sendable type 'AmplitudeModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | class AmplitudeModel: ObservableObject {
| `- note: class 'AmplitudeModel' does not conform to the 'Sendable' protocol
7 | @Published var amplitude: Double = 0.0
8 | var nodeTap: AmplitudeTap!
:
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAmplitudeChange()
| `- warning: capture of 'self' with non-sendable type 'AmplitudeModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/AmplitudeView.swift:43:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAmplitudeChange()
| |- 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
44 | }
45 | }
[167/203] Compiling AudioKitUI TestAudioURLs.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/AmplitudeView.swift:43:13: warning: capture of 'self' with non-sendable type 'AmplitudeModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | class AmplitudeModel: ObservableObject {
| `- note: class 'AmplitudeModel' does not conform to the 'Sendable' protocol
7 | @Published var amplitude: Double = 0.0
8 | var nodeTap: AmplitudeTap!
:
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAmplitudeChange()
| `- warning: capture of 'self' with non-sendable type 'AmplitudeModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/AmplitudeView.swift:43:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAmplitudeChange()
| |- 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
44 | }
45 | }
[168/203] Compiling AudioKitUI AmplitudeView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/AmplitudeView.swift:43:13: warning: capture of 'self' with non-sendable type 'AmplitudeModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | class AmplitudeModel: ObservableObject {
| `- note: class 'AmplitudeModel' does not conform to the 'Sendable' protocol
7 | @Published var amplitude: Double = 0.0
8 | var nodeTap: AmplitudeTap!
:
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAmplitudeChange()
| `- warning: capture of 'self' with non-sendable type 'AmplitudeModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/AmplitudeView.swift:43:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAmplitudeChange()
| |- 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
44 | }
45 | }
[169/203] Compiling AudioKitUI AudioFileWaveform.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/AmplitudeView.swift:43:13: warning: capture of 'self' with non-sendable type 'AmplitudeModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | class AmplitudeModel: ObservableObject {
| `- note: class 'AmplitudeModel' does not conform to the 'Sendable' protocol
7 | @Published var amplitude: Double = 0.0
8 | var nodeTap: AmplitudeTap!
:
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAmplitudeChange()
| `- warning: capture of 'self' with non-sendable type 'AmplitudeModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/AmplitudeView.swift:43:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAmplitudeChange()
| |- 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
44 | }
45 | }
[170/203] Compiling AudioKitUI TapCountingDrumPadGrid.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Helpers/MorphableShape.swift:105:16: warning: static property 'zero' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
103 | // zero is identity element for aditions
104 | // = all values are zero
105 | static var zero = AnimatableVector()
| |- warning: static property 'zero' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |
107 | static func + (lhs: AnimatableVector, rhs: AnimatableVector) -> AnimatableVector {
[171/203] Compiling AudioKitUI TempoDraggableStepper.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Helpers/MorphableShape.swift:105:16: warning: static property 'zero' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
103 | // zero is identity element for aditions
104 | // = all values are zero
105 | static var zero = AnimatableVector()
| |- warning: static property 'zero' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |
107 | static func + (lhs: AnimatableVector, rhs: AnimatableVector) -> AnimatableVector {
[172/203] Compiling AudioKitUI AudioKitUIHelpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Helpers/MorphableShape.swift:105:16: warning: static property 'zero' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
103 | // zero is identity element for aditions
104 | // = all values are zero
105 | static var zero = AnimatableVector()
| |- warning: static property 'zero' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |
107 | static func + (lhs: AnimatableVector, rhs: AnimatableVector) -> AnimatableVector {
[173/203] Compiling AudioKitUI MorphableShape.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Helpers/MorphableShape.swift:105:16: warning: static property 'zero' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
103 | // zero is identity element for aditions
104 | // = all values are zero
105 | static var zero = AnimatableVector()
| |- warning: static property 'zero' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |
107 | static func + (lhs: AnimatableVector, rhs: AnimatableVector) -> AnimatableVector {
[174/203] Compiling AudioKitUI UIColor+intermediate.swift
[175/203] Compiling AudioKitUI SpectrogramView.swift
[176/203] Compiling AudioKitUI CircleCursorView.swift
[177/203] Compiling AudioKitUI SpectrumPopupView.swift
[178/203] Emitting module AudioKitUI
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: capture of 'self' with non-sendable type 'ParameterEditorModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class ParameterEditorModel: ObservableObject {
| `- note: class 'ParameterEditorModel' does not conform to the 'Sendable' protocol
8 | @Published var value: AUValue = 0 {
9 | didSet {
:
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| `- warning: capture of 'self' with non-sendable type 'ParameterEditorModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Helpers/MorphableShape.swift:105:16: warning: static property 'zero' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
103 | // zero is identity element for aditions
104 | // = all values are zero
105 | static var zero = AnimatableVector()
| |- warning: static property 'zero' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |
107 | static func + (lhs: AnimatableVector, rhs: AnimatableVector) -> AnimatableVector {
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| |- 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
25 | }
26 | }
[179/203] Compiling AudioKitUI AudioKitUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:95:34: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
93 | let noteLevel = (maxh - (CGFloat(noteNumber) * noteh))
94 | let singleNoteRect = CGRect(x: notePosition, y: noteLevel, width: noteLength, height: noteh)
95 | let singleNoteView = NSView(frame: singleNoteRect)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
AppKit.NSView:2:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
3 | @MainActor public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:96:28: warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
94 | let singleNoteRect = CGRect(x: notePosition, y: noteLevel, width: noteLength, height: noteh)
95 | let singleNoteView = NSView(frame: singleNoteRect)
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
| `- warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
98 | nsView.addSubview(singleNoteView)
AppKit.NSView:272:25: note: property declared here
270 | @MainActor open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | @MainActor open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:97:28: warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
95 | let singleNoteView = NSView(frame: singleNoteRect)
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
| `- warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
98 | nsView.addSubview(singleNoteView)
99 | }
AppKit.NSView:272:25: note: property declared here
270 | @MainActor open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | @MainActor open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:98:20: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
98 | nsView.addSubview(singleNoteView)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 | }
AppKit.NSView:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
[180/203] Compiling AudioKitUI ADSRView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:95:34: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
93 | let noteLevel = (maxh - (CGFloat(noteNumber) * noteh))
94 | let singleNoteRect = CGRect(x: notePosition, y: noteLevel, width: noteLength, height: noteh)
95 | let singleNoteView = NSView(frame: singleNoteRect)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
AppKit.NSView:2:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
3 | @MainActor public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:96:28: warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
94 | let singleNoteRect = CGRect(x: notePosition, y: noteLevel, width: noteLength, height: noteh)
95 | let singleNoteView = NSView(frame: singleNoteRect)
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
| `- warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
98 | nsView.addSubview(singleNoteView)
AppKit.NSView:272:25: note: property declared here
270 | @MainActor open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | @MainActor open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:97:28: warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
95 | let singleNoteView = NSView(frame: singleNoteRect)
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
| `- warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
98 | nsView.addSubview(singleNoteView)
99 | }
AppKit.NSView:272:25: note: property declared here
270 | @MainActor open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | @MainActor open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:98:20: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
98 | nsView.addSubview(singleNoteView)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 | }
AppKit.NSView:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
[181/203] Compiling AudioKitUI ADSRWidget.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:95:34: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
93 | let noteLevel = (maxh - (CGFloat(noteNumber) * noteh))
94 | let singleNoteRect = CGRect(x: notePosition, y: noteLevel, width: noteLength, height: noteh)
95 | let singleNoteView = NSView(frame: singleNoteRect)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
AppKit.NSView:2:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
3 | @MainActor public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:96:28: warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
94 | let singleNoteRect = CGRect(x: notePosition, y: noteLevel, width: noteLength, height: noteh)
95 | let singleNoteView = NSView(frame: singleNoteRect)
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
| `- warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
98 | nsView.addSubview(singleNoteView)
AppKit.NSView:272:25: note: property declared here
270 | @MainActor open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | @MainActor open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:97:28: warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
95 | let singleNoteView = NSView(frame: singleNoteRect)
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
| `- warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
98 | nsView.addSubview(singleNoteView)
99 | }
AppKit.NSView:272:25: note: property declared here
270 | @MainActor open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | @MainActor open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:98:20: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
98 | nsView.addSubview(singleNoteView)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 | }
AppKit.NSView:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
[182/203] Compiling AudioKitUI MIDITrackView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:95:34: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
93 | let noteLevel = (maxh - (CGFloat(noteNumber) * noteh))
94 | let singleNoteRect = CGRect(x: notePosition, y: noteLevel, width: noteLength, height: noteh)
95 | let singleNoteView = NSView(frame: singleNoteRect)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
AppKit.NSView:2:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
3 | @MainActor public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:96:28: warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
94 | let singleNoteRect = CGRect(x: notePosition, y: noteLevel, width: noteLength, height: noteh)
95 | let singleNoteView = NSView(frame: singleNoteRect)
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
| `- warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
98 | nsView.addSubview(singleNoteView)
AppKit.NSView:272:25: note: property declared here
270 | @MainActor open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | @MainActor open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:97:28: warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
95 | let singleNoteView = NSView(frame: singleNoteRect)
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
| `- warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
98 | nsView.addSubview(singleNoteView)
99 | }
AppKit.NSView:272:25: note: property declared here
270 | @MainActor open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | @MainActor open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:98:20: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
98 | nsView.addSubview(singleNoteView)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 | }
AppKit.NSView:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
[183/203] Compiling AudioKitUI MusicalDurationStepper.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:95:34: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
93 | let noteLevel = (maxh - (CGFloat(noteNumber) * noteh))
94 | let singleNoteRect = CGRect(x: notePosition, y: noteLevel, width: noteLength, height: noteh)
95 | let singleNoteView = NSView(frame: singleNoteRect)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
AppKit.NSView:2:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
3 | @MainActor public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:96:28: warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
94 | let singleNoteRect = CGRect(x: notePosition, y: noteLevel, width: noteLength, height: noteh)
95 | let singleNoteView = NSView(frame: singleNoteRect)
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
| `- warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
98 | nsView.addSubview(singleNoteView)
AppKit.NSView:272:25: note: property declared here
270 | @MainActor open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | @MainActor open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:97:28: warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
95 | let singleNoteView = NSView(frame: singleNoteRect)
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
| `- warning: main actor-isolated property 'layer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
98 | nsView.addSubview(singleNoteView)
99 | }
AppKit.NSView:272:25: note: property declared here
270 | @MainActor open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | @MainActor open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/MIDITrackView.swift:98:20: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
81 | func populateViewNotes(_ nsView: NSView, context: Context, noteMap: MIDIFileTrackNoteMap) {
| `- note: add '@MainActor' to make instance method 'populateViewNotes(_:context:noteMap:)' part of global actor 'MainActor'
82 | let noteList = noteMap.noteList
83 | let low = noteMap.loNote
:
96 | singleNoteView.layer?.backgroundColor = CGColor(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
97 | singleNoteView.layer?.cornerRadius = noteh * 0.5
98 | nsView.addSubview(singleNoteView)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 | }
AppKit.NSView:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
[184/203] Compiling AudioKitUI WaveformLayer.swift
[185/203] Compiling AudioKitUI WavetableArrayView.swift
[186/203] Compiling AudioKitUI WavetableView.swift
[187/203] Compiling AudioKitUI resource_bundle_accessor.swift
[188/203] Compiling AudioKitUI ParameterEditor.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: capture of 'self' with non-sendable type 'ParameterEditorModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class ParameterEditorModel: ObservableObject {
| `- note: class 'ParameterEditorModel' does not conform to the 'Sendable' protocol
8 | @Published var value: AUValue = 0 {
9 | didSet {
:
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| `- warning: capture of 'self' with non-sendable type 'ParameterEditorModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| |- 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
25 | }
26 | }
[189/203] Compiling AudioKitUI ParameterEditor2.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: capture of 'self' with non-sendable type 'ParameterEditorModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class ParameterEditorModel: ObservableObject {
| `- note: class 'ParameterEditorModel' does not conform to the 'Sendable' protocol
8 | @Published var value: AUValue = 0 {
9 | didSet {
:
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| `- warning: capture of 'self' with non-sendable type 'ParameterEditorModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| |- 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
25 | }
26 | }
[190/203] Compiling AudioKitUI ParameterSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: capture of 'self' with non-sendable type 'ParameterEditorModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class ParameterEditorModel: ObservableObject {
| `- note: class 'ParameterEditorModel' does not conform to the 'Sendable' protocol
8 | @Published var value: AUValue = 0 {
9 | didSet {
:
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| `- warning: capture of 'self' with non-sendable type 'ParameterEditorModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| |- 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
25 | }
26 | }
[191/203] Compiling AudioKitUI ReverbPresetStepper.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: capture of 'self' with non-sendable type 'ParameterEditorModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class ParameterEditorModel: ObservableObject {
| `- note: class 'ParameterEditorModel' does not conform to the 'Sendable' protocol
8 | @Published var value: AUValue = 0 {
9 | didSet {
:
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| `- warning: capture of 'self' with non-sendable type 'ParameterEditorModel?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Controls/ParameterEditor.swift:24:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
22 | paramToken = param.parameter.token { [weak self] _, newValue in
23 | DispatchQueue.main.async {
24 | self?.value = newValue
| |- 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
25 | }
26 | }
[192/203] Compiling AudioKitUI RawOutputView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/RawOutputView.swift:43:13: warning: capture of 'self' with non-sendable type 'RawOutputModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | class RawOutputModel: ObservableObject {
| `- note: class 'RawOutputModel' does not conform to the 'Sendable' protocol
7 | @Environment(\.isPreview) var isPreview
8 | @Published var data: [CGFloat] = []
:
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAudioInput()
| `- warning: capture of 'self' with non-sendable type 'RawOutputModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/RawOutputView.swift:43:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAudioInput()
| |- 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
44 | }
45 | }
[193/203] Compiling AudioKitUI SpectrogramFlatView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/RawOutputView.swift:43:13: warning: capture of 'self' with non-sendable type 'RawOutputModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | class RawOutputModel: ObservableObject {
| `- note: class 'RawOutputModel' does not conform to the 'Sendable' protocol
7 | @Environment(\.isPreview) var isPreview
8 | @Published var data: [CGFloat] = []
:
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAudioInput()
| `- warning: capture of 'self' with non-sendable type 'RawOutputModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/RawOutputView.swift:43:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAudioInput()
| |- 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
44 | }
45 | }
[194/203] Compiling AudioKitUI SpectrogramModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/RawOutputView.swift:43:13: warning: capture of 'self' with non-sendable type 'RawOutputModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | class RawOutputModel: ObservableObject {
| `- note: class 'RawOutputModel' does not conform to the 'Sendable' protocol
7 | @Environment(\.isPreview) var isPreview
8 | @Published var data: [CGFloat] = []
:
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAudioInput()
| `- warning: capture of 'self' with non-sendable type 'RawOutputModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/RawOutputView.swift:43:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAudioInput()
| |- 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
44 | }
45 | }
[195/203] Compiling AudioKitUI SpectrogramSlice.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/RawOutputView.swift:43:13: warning: capture of 'self' with non-sendable type 'RawOutputModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | import SwiftUI
5 |
6 | class RawOutputModel: ObservableObject {
| `- note: class 'RawOutputModel' does not conform to the 'Sendable' protocol
7 | @Environment(\.isPreview) var isPreview
8 | @Published var data: [CGFloat] = []
:
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAudioInput()
| `- warning: capture of 'self' with non-sendable type 'RawOutputModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/RawOutputView.swift:43:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
41 | let waitTime: TimeInterval = 0.1
42 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
43 | self.mockAudioInput()
| |- 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
44 | }
45 | }
[196/203] Compiling AudioKitUI AudioWaveform.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:60:13: warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class FFTModel: ObservableObject {
| `- note: class 'FFTModel' does not conform to the 'Sendable' protocol
8 | @Published var amplitudes: [Float?] = Array(repeating: nil, count: 50)
9 | var nodeTap: FFTTap!
:
58 | // swap the amplitude array
59 | DispatchQueue.main.async {
60 | self.amplitudes = decibels
| `- warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:60:31: warning: reference to captured var 'decibels' in concurrently-executing code; this is an error in the Swift 6 language mode
58 | // swap the amplitude array
59 | DispatchQueue.main.async {
60 | self.amplitudes = decibels
| `- warning: reference to captured var 'decibels' in concurrently-executing code; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:72:13: warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class FFTModel: ObservableObject {
| `- note: class 'FFTModel' does not conform to the 'Sendable' protocol
8 | @Published var amplitudes: [Float?] = Array(repeating: nil, count: 50)
9 | var nodeTap: FFTTap!
:
70 | let waitTime: TimeInterval = 0.1
71 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
72 | self.mockAudioInput()
| `- warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:166:48: 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
160 | }
161 |
162 | public func draw(in view: MTKView) {
| `- note: add '@MainActor' to make instance method 'draw(in:)' part of global actor 'MainActor'
163 | updateWaveform(samples: dataCallback())
164 |
165 | if let commandBuffer = commandQueue.makeCommandBuffer() {
166 | if let renderPassDescriptor = view.currentRenderPassDescriptor {
| `- 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
167 | encode(to: commandBuffer, pass: renderPassDescriptor)
168 | if let drawable = view.currentDrawable {
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/AudioKitUI/Visualizations/FloatPlot.swift:168:40: 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
160 | }
161 |
162 | public func draw(in view: MTKView) {
| `- note: add '@MainActor' to make instance method 'draw(in:)' part of global actor 'MainActor'
163 | updateWaveform(samples: dataCallback())
164 |
:
166 | if let renderPassDescriptor = view.currentRenderPassDescriptor {
167 | encode(to: commandBuffer, pass: renderPassDescriptor)
168 | if let drawable = 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
169 | commandBuffer.present(drawable)
170 | }
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, *)
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:189:20: warning: call to main actor-isolated initializer 'init(frame:device:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 |
188 | var view: MTKView {
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
| `- warning: call to main actor-isolated initializer 'init(frame:device:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
191 | view.delegate = renderer
MetalKit.MTKView:3:12: note: calls to initializer 'init(frame:device:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.11, *)
2 | @MainActor open class MTKView : NSView, NSCoding, CALayerDelegate {
3 | public init(frame frameRect: CGRect, device: (any MTLDevice)?)
| `- note: calls to initializer 'init(frame:device:)' from outside of its actor context are implicitly asynchronous
4 | public init(coder: NSCoder)
5 | weak open var delegate: (any MTKViewDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:190:14: warning: main actor-isolated property 'clearColor' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
188 | var view: MTKView {
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
| `- warning: main actor-isolated property 'clearColor' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
191 | view.delegate = renderer
192 | return view
MetalKit.MTKView:19:14: note: mutation of this property is only permitted within the actor
17 | open var depthStencilStorageMode: MTLStorageMode { get set }
18 | open var sampleCount: Int { get set }
19 | open var clearColor: MTLClearColor { get set }
| `- note: mutation of this property is only permitted within the actor
20 | open var clearDepth: Double { get set }
21 | open var clearStencil: UInt32 { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:191:14: warning: main actor-isolated property 'delegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
191 | view.delegate = renderer
| `- warning: main actor-isolated property 'delegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
192 | return view
193 | }
MetalKit.MTKView:5:19: note: mutation of this property is only permitted within the actor
3 | public init(frame frameRect: CGRect, device: (any MTLDevice)?)
4 | public init(coder: NSCoder)
5 | weak open var delegate: (any MTKViewDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var device: (any MTLDevice)? { get set }
7 | open var currentDrawable: (any CAMetalDrawable)? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:60:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
58 | // swap the amplitude array
59 | DispatchQueue.main.async {
60 | self.amplitudes = decibels
| |- 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
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:72:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
70 | let waitTime: TimeInterval = 0.1
71 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
72 | self.mockAudioInput()
| |- 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
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:189:20: warning: sending 'self.renderer.device' risks causing data races; this is an error in the Swift 6 language mode
187 |
188 | var view: MTKView {
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
| |- warning: sending 'self.renderer.device' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.renderer.device' to main actor-isolated initializer 'init(frame:device:)' risks causing data races between main actor-isolated and task-isolated uses
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
191 | view.delegate = renderer
[197/203] Compiling AudioKitUI DryWetMixView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:60:13: warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class FFTModel: ObservableObject {
| `- note: class 'FFTModel' does not conform to the 'Sendable' protocol
8 | @Published var amplitudes: [Float?] = Array(repeating: nil, count: 50)
9 | var nodeTap: FFTTap!
:
58 | // swap the amplitude array
59 | DispatchQueue.main.async {
60 | self.amplitudes = decibels
| `- warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:60:31: warning: reference to captured var 'decibels' in concurrently-executing code; this is an error in the Swift 6 language mode
58 | // swap the amplitude array
59 | DispatchQueue.main.async {
60 | self.amplitudes = decibels
| `- warning: reference to captured var 'decibels' in concurrently-executing code; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:72:13: warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class FFTModel: ObservableObject {
| `- note: class 'FFTModel' does not conform to the 'Sendable' protocol
8 | @Published var amplitudes: [Float?] = Array(repeating: nil, count: 50)
9 | var nodeTap: FFTTap!
:
70 | let waitTime: TimeInterval = 0.1
71 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
72 | self.mockAudioInput()
| `- warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:166:48: 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
160 | }
161 |
162 | public func draw(in view: MTKView) {
| `- note: add '@MainActor' to make instance method 'draw(in:)' part of global actor 'MainActor'
163 | updateWaveform(samples: dataCallback())
164 |
165 | if let commandBuffer = commandQueue.makeCommandBuffer() {
166 | if let renderPassDescriptor = view.currentRenderPassDescriptor {
| `- 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
167 | encode(to: commandBuffer, pass: renderPassDescriptor)
168 | if let drawable = view.currentDrawable {
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/AudioKitUI/Visualizations/FloatPlot.swift:168:40: 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
160 | }
161 |
162 | public func draw(in view: MTKView) {
| `- note: add '@MainActor' to make instance method 'draw(in:)' part of global actor 'MainActor'
163 | updateWaveform(samples: dataCallback())
164 |
:
166 | if let renderPassDescriptor = view.currentRenderPassDescriptor {
167 | encode(to: commandBuffer, pass: renderPassDescriptor)
168 | if let drawable = 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
169 | commandBuffer.present(drawable)
170 | }
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, *)
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:189:20: warning: call to main actor-isolated initializer 'init(frame:device:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 |
188 | var view: MTKView {
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
| `- warning: call to main actor-isolated initializer 'init(frame:device:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
191 | view.delegate = renderer
MetalKit.MTKView:3:12: note: calls to initializer 'init(frame:device:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.11, *)
2 | @MainActor open class MTKView : NSView, NSCoding, CALayerDelegate {
3 | public init(frame frameRect: CGRect, device: (any MTLDevice)?)
| `- note: calls to initializer 'init(frame:device:)' from outside of its actor context are implicitly asynchronous
4 | public init(coder: NSCoder)
5 | weak open var delegate: (any MTKViewDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:190:14: warning: main actor-isolated property 'clearColor' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
188 | var view: MTKView {
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
| `- warning: main actor-isolated property 'clearColor' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
191 | view.delegate = renderer
192 | return view
MetalKit.MTKView:19:14: note: mutation of this property is only permitted within the actor
17 | open var depthStencilStorageMode: MTLStorageMode { get set }
18 | open var sampleCount: Int { get set }
19 | open var clearColor: MTLClearColor { get set }
| `- note: mutation of this property is only permitted within the actor
20 | open var clearDepth: Double { get set }
21 | open var clearStencil: UInt32 { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:191:14: warning: main actor-isolated property 'delegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
191 | view.delegate = renderer
| `- warning: main actor-isolated property 'delegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
192 | return view
193 | }
MetalKit.MTKView:5:19: note: mutation of this property is only permitted within the actor
3 | public init(frame frameRect: CGRect, device: (any MTLDevice)?)
4 | public init(coder: NSCoder)
5 | weak open var delegate: (any MTKViewDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var device: (any MTLDevice)? { get set }
7 | open var currentDrawable: (any CAMetalDrawable)? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:60:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
58 | // swap the amplitude array
59 | DispatchQueue.main.async {
60 | self.amplitudes = decibels
| |- 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
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:72:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
70 | let waitTime: TimeInterval = 0.1
71 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
72 | self.mockAudioInput()
| |- 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
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:189:20: warning: sending 'self.renderer.device' risks causing data races; this is an error in the Swift 6 language mode
187 |
188 | var view: MTKView {
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
| |- warning: sending 'self.renderer.device' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.renderer.device' to main actor-isolated initializer 'init(frame:device:)' risks causing data races between main actor-isolated and task-isolated uses
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
191 | view.delegate = renderer
[198/203] Compiling AudioKitUI FFTView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:60:13: warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class FFTModel: ObservableObject {
| `- note: class 'FFTModel' does not conform to the 'Sendable' protocol
8 | @Published var amplitudes: [Float?] = Array(repeating: nil, count: 50)
9 | var nodeTap: FFTTap!
:
58 | // swap the amplitude array
59 | DispatchQueue.main.async {
60 | self.amplitudes = decibels
| `- warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:60:31: warning: reference to captured var 'decibels' in concurrently-executing code; this is an error in the Swift 6 language mode
58 | // swap the amplitude array
59 | DispatchQueue.main.async {
60 | self.amplitudes = decibels
| `- warning: reference to captured var 'decibels' in concurrently-executing code; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:72:13: warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class FFTModel: ObservableObject {
| `- note: class 'FFTModel' does not conform to the 'Sendable' protocol
8 | @Published var amplitudes: [Float?] = Array(repeating: nil, count: 50)
9 | var nodeTap: FFTTap!
:
70 | let waitTime: TimeInterval = 0.1
71 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
72 | self.mockAudioInput()
| `- warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:166:48: 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
160 | }
161 |
162 | public func draw(in view: MTKView) {
| `- note: add '@MainActor' to make instance method 'draw(in:)' part of global actor 'MainActor'
163 | updateWaveform(samples: dataCallback())
164 |
165 | if let commandBuffer = commandQueue.makeCommandBuffer() {
166 | if let renderPassDescriptor = view.currentRenderPassDescriptor {
| `- 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
167 | encode(to: commandBuffer, pass: renderPassDescriptor)
168 | if let drawable = view.currentDrawable {
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/AudioKitUI/Visualizations/FloatPlot.swift:168:40: 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
160 | }
161 |
162 | public func draw(in view: MTKView) {
| `- note: add '@MainActor' to make instance method 'draw(in:)' part of global actor 'MainActor'
163 | updateWaveform(samples: dataCallback())
164 |
:
166 | if let renderPassDescriptor = view.currentRenderPassDescriptor {
167 | encode(to: commandBuffer, pass: renderPassDescriptor)
168 | if let drawable = 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
169 | commandBuffer.present(drawable)
170 | }
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, *)
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:189:20: warning: call to main actor-isolated initializer 'init(frame:device:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 |
188 | var view: MTKView {
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
| `- warning: call to main actor-isolated initializer 'init(frame:device:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
191 | view.delegate = renderer
MetalKit.MTKView:3:12: note: calls to initializer 'init(frame:device:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.11, *)
2 | @MainActor open class MTKView : NSView, NSCoding, CALayerDelegate {
3 | public init(frame frameRect: CGRect, device: (any MTLDevice)?)
| `- note: calls to initializer 'init(frame:device:)' from outside of its actor context are implicitly asynchronous
4 | public init(coder: NSCoder)
5 | weak open var delegate: (any MTKViewDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:190:14: warning: main actor-isolated property 'clearColor' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
188 | var view: MTKView {
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
| `- warning: main actor-isolated property 'clearColor' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
191 | view.delegate = renderer
192 | return view
MetalKit.MTKView:19:14: note: mutation of this property is only permitted within the actor
17 | open var depthStencilStorageMode: MTLStorageMode { get set }
18 | open var sampleCount: Int { get set }
19 | open var clearColor: MTLClearColor { get set }
| `- note: mutation of this property is only permitted within the actor
20 | open var clearDepth: Double { get set }
21 | open var clearStencil: UInt32 { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:191:14: warning: main actor-isolated property 'delegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
191 | view.delegate = renderer
| `- warning: main actor-isolated property 'delegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
192 | return view
193 | }
MetalKit.MTKView:5:19: note: mutation of this property is only permitted within the actor
3 | public init(frame frameRect: CGRect, device: (any MTLDevice)?)
4 | public init(coder: NSCoder)
5 | weak open var delegate: (any MTKViewDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var device: (any MTLDevice)? { get set }
7 | open var currentDrawable: (any CAMetalDrawable)? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:60:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
58 | // swap the amplitude array
59 | DispatchQueue.main.async {
60 | self.amplitudes = decibels
| |- 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
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:72:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
70 | let waitTime: TimeInterval = 0.1
71 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
72 | self.mockAudioInput()
| |- 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
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:189:20: warning: sending 'self.renderer.device' risks causing data races; this is an error in the Swift 6 language mode
187 |
188 | var view: MTKView {
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
| |- warning: sending 'self.renderer.device' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.renderer.device' to main actor-isolated initializer 'init(frame:device:)' risks causing data races between main actor-isolated and task-isolated uses
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
191 | view.delegate = renderer
[199/203] Compiling AudioKitUI FloatPlot.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:60:13: warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class FFTModel: ObservableObject {
| `- note: class 'FFTModel' does not conform to the 'Sendable' protocol
8 | @Published var amplitudes: [Float?] = Array(repeating: nil, count: 50)
9 | var nodeTap: FFTTap!
:
58 | // swap the amplitude array
59 | DispatchQueue.main.async {
60 | self.amplitudes = decibels
| `- warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:60:31: warning: reference to captured var 'decibels' in concurrently-executing code; this is an error in the Swift 6 language mode
58 | // swap the amplitude array
59 | DispatchQueue.main.async {
60 | self.amplitudes = decibels
| `- warning: reference to captured var 'decibels' in concurrently-executing code; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:72:13: warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | import SwiftUI
6 |
7 | class FFTModel: ObservableObject {
| `- note: class 'FFTModel' does not conform to the 'Sendable' protocol
8 | @Published var amplitudes: [Float?] = Array(repeating: nil, count: 50)
9 | var nodeTap: FFTTap!
:
70 | let waitTime: TimeInterval = 0.1
71 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
72 | self.mockAudioInput()
| `- warning: capture of 'self' with non-sendable type 'FFTModel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:166:48: 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
160 | }
161 |
162 | public func draw(in view: MTKView) {
| `- note: add '@MainActor' to make instance method 'draw(in:)' part of global actor 'MainActor'
163 | updateWaveform(samples: dataCallback())
164 |
165 | if let commandBuffer = commandQueue.makeCommandBuffer() {
166 | if let renderPassDescriptor = view.currentRenderPassDescriptor {
| `- 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
167 | encode(to: commandBuffer, pass: renderPassDescriptor)
168 | if let drawable = view.currentDrawable {
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/AudioKitUI/Visualizations/FloatPlot.swift:168:40: 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
160 | }
161 |
162 | public func draw(in view: MTKView) {
| `- note: add '@MainActor' to make instance method 'draw(in:)' part of global actor 'MainActor'
163 | updateWaveform(samples: dataCallback())
164 |
:
166 | if let renderPassDescriptor = view.currentRenderPassDescriptor {
167 | encode(to: commandBuffer, pass: renderPassDescriptor)
168 | if let drawable = 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
169 | commandBuffer.present(drawable)
170 | }
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, *)
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:189:20: warning: call to main actor-isolated initializer 'init(frame:device:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 |
188 | var view: MTKView {
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
| `- warning: call to main actor-isolated initializer 'init(frame:device:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
191 | view.delegate = renderer
MetalKit.MTKView:3:12: note: calls to initializer 'init(frame:device:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.11, *)
2 | @MainActor open class MTKView : NSView, NSCoding, CALayerDelegate {
3 | public init(frame frameRect: CGRect, device: (any MTLDevice)?)
| `- note: calls to initializer 'init(frame:device:)' from outside of its actor context are implicitly asynchronous
4 | public init(coder: NSCoder)
5 | weak open var delegate: (any MTKViewDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:190:14: warning: main actor-isolated property 'clearColor' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
188 | var view: MTKView {
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
| `- warning: main actor-isolated property 'clearColor' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
191 | view.delegate = renderer
192 | return view
MetalKit.MTKView:19:14: note: mutation of this property is only permitted within the actor
17 | open var depthStencilStorageMode: MTLStorageMode { get set }
18 | open var sampleCount: Int { get set }
19 | open var clearColor: MTLClearColor { get set }
| `- note: mutation of this property is only permitted within the actor
20 | open var clearDepth: Double { get set }
21 | open var clearStencil: UInt32 { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:191:14: warning: main actor-isolated property 'delegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
191 | view.delegate = renderer
| `- warning: main actor-isolated property 'delegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
192 | return view
193 | }
MetalKit.MTKView:5:19: note: mutation of this property is only permitted within the actor
3 | public init(frame frameRect: CGRect, device: (any MTLDevice)?)
4 | public init(coder: NSCoder)
5 | weak open var delegate: (any MTKViewDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var device: (any MTLDevice)? { get set }
7 | open var currentDrawable: (any CAMetalDrawable)? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:60:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
58 | // swap the amplitude array
59 | DispatchQueue.main.async {
60 | self.amplitudes = decibels
| |- 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
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FFTView.swift:72:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
70 | let waitTime: TimeInterval = 0.1
71 | DispatchQueue.main.asyncAfter(deadline: .now() + waitTime) {
72 | self.mockAudioInput()
| |- 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
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/FloatPlot.swift:189:20: warning: sending 'self.renderer.device' risks causing data races; this is an error in the Swift 6 language mode
187 |
188 | var view: MTKView {
189 | let view = MTKView(frame: CGRect(x: 0, y: 0, width: 1024, height: 1024), device: renderer.device)
| |- warning: sending 'self.renderer.device' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.renderer.device' to main actor-isolated initializer 'init(frame:device:)' risks causing data races between main actor-isolated and task-isolated uses
190 | view.clearColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0)
191 | view.delegate = renderer
[200/203] Compiling AudioKitUI SpectrumView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:263:18: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
261 | }
262 | .opacity(popupOpacity)
263 | .animation(.default)
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
264 | .drawingGroup()
265 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:323:26: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
321 | .frame(width: width * 0.005)
322 | .position(CGPoint(x: mappedPoints[$0].x * width, y: mappedPoints[$0].y * height))
323 | .animation(.easeInOut(duration: 0.1))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:354:22: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
352 | MorphableShape(controlPoints: AnimatableVector(with: mappedIndexedDoubles))
353 | .stroke(strokeColor, style: StrokeStyle(lineWidth: 1, lineCap: .round, lineJoin: .round))
354 | .animation(.easeInOut(duration: 0.1))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
355 | }
356 |
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:360:22: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
358 | MorphableShape(controlPoints: AnimatableVector(with: mappedIndexedDoubles))
359 | .fill(fillColor)
360 | .animation(.easeInOut(duration: 0.1))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
361 | }
362 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:441:30: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
439 | MorphableShape(controlPoints: AnimatableVector(with: locationData[i].locationData))
440 | .stroke(Color(red: 1.0, green: 1.0, blue: 1.0, opacity: 0.4))
441 | .animation(.easeInOut(duration: 0.2))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
442 |
443 | if shouldDisplayAxisLabel {
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:447:34: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
445 | Text(labelString)
446 | .position(x: geo.size.width * 0.03, y: horizontalLineYLocationsMapped[i] * geo.size.height - geo.size.height * 0.03)
447 | .animation(.easeInOut(duration: 0.2))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
448 | .font(.footnote)
449 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/Waveform.swift:258:20: warning: capture of 'self' with non-sendable type 'Waveform' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |
18 | /// Container CALayer based class for multiple CAWaveformLayers
19 | public class Waveform: CALayer {
| `- note: class 'Waveform' does not conform to the 'Sendable' protocol
20 | private var halfWidth: Int = 0
21 | private var reverseDirection: CGFloat = 1
:
256 | fillPlots(with: data) {
257 | DispatchQueue.main.async {
258 | if self.isReversed {
| `- warning: capture of 'self' with non-sendable type 'Waveform' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.updateReverse()
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/Waveform.swift:258:20: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
256 | fillPlots(with: data) {
257 | DispatchQueue.main.async {
258 | if self.isReversed {
| |- 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
259 | self.updateReverse()
260 | }
[201/203] Compiling AudioKitUI TableView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:263:18: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
261 | }
262 | .opacity(popupOpacity)
263 | .animation(.default)
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
264 | .drawingGroup()
265 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:323:26: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
321 | .frame(width: width * 0.005)
322 | .position(CGPoint(x: mappedPoints[$0].x * width, y: mappedPoints[$0].y * height))
323 | .animation(.easeInOut(duration: 0.1))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:354:22: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
352 | MorphableShape(controlPoints: AnimatableVector(with: mappedIndexedDoubles))
353 | .stroke(strokeColor, style: StrokeStyle(lineWidth: 1, lineCap: .round, lineJoin: .round))
354 | .animation(.easeInOut(duration: 0.1))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
355 | }
356 |
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:360:22: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
358 | MorphableShape(controlPoints: AnimatableVector(with: mappedIndexedDoubles))
359 | .fill(fillColor)
360 | .animation(.easeInOut(duration: 0.1))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
361 | }
362 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:441:30: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
439 | MorphableShape(controlPoints: AnimatableVector(with: locationData[i].locationData))
440 | .stroke(Color(red: 1.0, green: 1.0, blue: 1.0, opacity: 0.4))
441 | .animation(.easeInOut(duration: 0.2))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
442 |
443 | if shouldDisplayAxisLabel {
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:447:34: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
445 | Text(labelString)
446 | .position(x: geo.size.width * 0.03, y: horizontalLineYLocationsMapped[i] * geo.size.height - geo.size.height * 0.03)
447 | .animation(.easeInOut(duration: 0.2))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
448 | .font(.footnote)
449 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/Waveform.swift:258:20: warning: capture of 'self' with non-sendable type 'Waveform' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |
18 | /// Container CALayer based class for multiple CAWaveformLayers
19 | public class Waveform: CALayer {
| `- note: class 'Waveform' does not conform to the 'Sendable' protocol
20 | private var halfWidth: Int = 0
21 | private var reverseDirection: CGFloat = 1
:
256 | fillPlots(with: data) {
257 | DispatchQueue.main.async {
258 | if self.isReversed {
| `- warning: capture of 'self' with non-sendable type 'Waveform' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.updateReverse()
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/Waveform.swift:258:20: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
256 | fillPlots(with: data) {
257 | DispatchQueue.main.async {
258 | if self.isReversed {
| |- 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
259 | self.updateReverse()
260 | }
[202/203] Compiling AudioKitUI TrackView.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:263:18: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
261 | }
262 | .opacity(popupOpacity)
263 | .animation(.default)
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
264 | .drawingGroup()
265 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:323:26: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
321 | .frame(width: width * 0.005)
322 | .position(CGPoint(x: mappedPoints[$0].x * width, y: mappedPoints[$0].y * height))
323 | .animation(.easeInOut(duration: 0.1))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:354:22: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
352 | MorphableShape(controlPoints: AnimatableVector(with: mappedIndexedDoubles))
353 | .stroke(strokeColor, style: StrokeStyle(lineWidth: 1, lineCap: .round, lineJoin: .round))
354 | .animation(.easeInOut(duration: 0.1))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
355 | }
356 |
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:360:22: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
358 | MorphableShape(controlPoints: AnimatableVector(with: mappedIndexedDoubles))
359 | .fill(fillColor)
360 | .animation(.easeInOut(duration: 0.1))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
361 | }
362 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:441:30: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
439 | MorphableShape(controlPoints: AnimatableVector(with: locationData[i].locationData))
440 | .stroke(Color(red: 1.0, green: 1.0, blue: 1.0, opacity: 0.4))
441 | .animation(.easeInOut(duration: 0.2))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
442 |
443 | if shouldDisplayAxisLabel {
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:447:34: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
445 | Text(labelString)
446 | .position(x: geo.size.width * 0.03, y: horizontalLineYLocationsMapped[i] * geo.size.height - geo.size.height * 0.03)
447 | .animation(.easeInOut(duration: 0.2))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
448 | .font(.footnote)
449 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/Waveform.swift:258:20: warning: capture of 'self' with non-sendable type 'Waveform' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |
18 | /// Container CALayer based class for multiple CAWaveformLayers
19 | public class Waveform: CALayer {
| `- note: class 'Waveform' does not conform to the 'Sendable' protocol
20 | private var halfWidth: Int = 0
21 | private var reverseDirection: CGFloat = 1
:
256 | fillPlots(with: data) {
257 | DispatchQueue.main.async {
258 | if self.isReversed {
| `- warning: capture of 'self' with non-sendable type 'Waveform' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.updateReverse()
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/Waveform.swift:258:20: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
256 | fillPlots(with: data) {
257 | DispatchQueue.main.async {
258 | if self.isReversed {
| |- 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
259 | self.updateReverse()
260 | }
[203/203] Compiling AudioKitUI Waveform.swift
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:263:18: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
261 | }
262 | .opacity(popupOpacity)
263 | .animation(.default)
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
264 | .drawingGroup()
265 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:323:26: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
321 | .frame(width: width * 0.005)
322 | .position(CGPoint(x: mappedPoints[$0].x * width, y: mappedPoints[$0].y * height))
323 | .animation(.easeInOut(duration: 0.1))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
324 | }
325 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:354:22: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
352 | MorphableShape(controlPoints: AnimatableVector(with: mappedIndexedDoubles))
353 | .stroke(strokeColor, style: StrokeStyle(lineWidth: 1, lineCap: .round, lineJoin: .round))
354 | .animation(.easeInOut(duration: 0.1))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
355 | }
356 |
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:360:22: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
358 | MorphableShape(controlPoints: AnimatableVector(with: mappedIndexedDoubles))
359 | .fill(fillColor)
360 | .animation(.easeInOut(duration: 0.1))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
361 | }
362 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:441:30: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
439 | MorphableShape(controlPoints: AnimatableVector(with: locationData[i].locationData))
440 | .stroke(Color(red: 1.0, green: 1.0, blue: 1.0, opacity: 0.4))
441 | .animation(.easeInOut(duration: 0.2))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
442 |
443 | if shouldDisplayAxisLabel {
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/SpectrumView/SpectrumView.swift:447:34: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
445 | Text(labelString)
446 | .position(x: geo.size.width * 0.03, y: horizontalLineYLocationsMapped[i] * geo.size.height - geo.size.height * 0.03)
447 | .animation(.easeInOut(duration: 0.2))
| `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
448 | .font(.footnote)
449 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/Waveform.swift:258:20: warning: capture of 'self' with non-sendable type 'Waveform' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |
18 | /// Container CALayer based class for multiple CAWaveformLayers
19 | public class Waveform: CALayer {
| `- note: class 'Waveform' does not conform to the 'Sendable' protocol
20 | private var halfWidth: Int = 0
21 | private var reverseDirection: CGFloat = 1
:
256 | fillPlots(with: data) {
257 | DispatchQueue.main.async {
258 | if self.isReversed {
| `- warning: capture of 'self' with non-sendable type 'Waveform' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | self.updateReverse()
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/Waveform.swift:258:20: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
256 | fillPlots(with: data) {
257 | DispatchQueue.main.async {
258 | if self.isReversed {
| |- 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
259 | self.updateReverse()
260 | }
Build complete! (84.31s)
Fetching https://github.com/AudioKit/Controls.git
Fetching https://github.com/AudioKit/AudioKit.git
[1/1045] Fetching controls
[1046/251322] Fetching controls, audiokit
Fetched https://github.com/AudioKit/AudioKit.git from cache (31.53s)
Fetched https://github.com/AudioKit/Controls.git from cache (31.53s)
Computing version for https://github.com/AudioKit/AudioKit.git
Computed https://github.com/AudioKit/AudioKit.git at 5.6.4 (0.80s)
Computing version for https://github.com/AudioKit/Controls.git
Computed https://github.com/AudioKit/Controls.git at 1.1.4 (0.50s)
Creating working copy for https://github.com/AudioKit/AudioKit.git
Working copy of https://github.com/AudioKit/AudioKit.git resolved at 5.6.4
Creating working copy for https://github.com/AudioKit/Controls.git
Working copy of https://github.com/AudioKit/Controls.git resolved at 1.1.4
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Visualizations/shaders.metal
Build complete.
{
"dependencies" : [
{
"identity" : "audiokit",
"requirement" : {
"range" : [
{
"lower_bound" : "5.6.1",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/AudioKit/AudioKit.git"
},
{
"identity" : "controls",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/AudioKit/Controls.git"
}
],
"manifest_display_name" : "AudioKitUI",
"name" : "AudioKitUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "AudioKitUI",
"targets" : [
"AudioKitUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AudioKitUITests",
"module_type" : "SwiftTarget",
"name" : "AudioKitUITests",
"path" : "Tests/AudioKitUITests",
"sources" : [
"AudioKitUITests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"AudioKitUI"
],
"type" : "test"
},
{
"c99name" : "AudioKitUI",
"module_type" : "SwiftTarget",
"name" : "AudioKitUI",
"path" : "Sources/AudioKitUI",
"product_dependencies" : [
"AudioKit",
"Controls"
],
"product_memberships" : [
"AudioKitUI"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Resources/drumloop.wav",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/AudioKitUI/Resources/short.aif",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"AudioKitUI.swift",
"Controls/ADSRView.swift",
"Controls/ADSRWidget.swift",
"Controls/MIDITrackView.swift",
"Controls/MusicalDurationStepper.swift",
"Controls/ParameterEditor.swift",
"Controls/ParameterEditor2.swift",
"Controls/ParameterSlider.swift",
"Controls/ReverbPresetStepper.swift",
"Controls/TapCountingDrumPadGrid.swift",
"Controls/TempoDraggableStepper.swift",
"Helpers/AudioKitUIHelpers.swift",
"Helpers/MorphableShape.swift",
"Helpers/MultitouchOverlayView.swift",
"Helpers/TestAudioURLs.swift",
"Visualizations/AmplitudeView.swift",
"Visualizations/AudioFileWaveform.swift",
"Visualizations/AudioWaveform.swift",
"Visualizations/DryWetMixView.swift",
"Visualizations/FFTView.swift",
"Visualizations/FloatPlot.swift",
"Visualizations/MetalView.swift",
"Visualizations/NodeFFTView.swift",
"Visualizations/NodeOutputView.swift",
"Visualizations/NodeRollingView.swift",
"Visualizations/RawOutputView.swift",
"Visualizations/SpectrogramFlatView/SpectrogramFlatView.swift",
"Visualizations/SpectrogramFlatView/SpectrogramModel.swift",
"Visualizations/SpectrogramFlatView/SpectrogramSlice.swift",
"Visualizations/SpectrogramFlatView/UIColor+intermediate.swift",
"Visualizations/SpectrogramView.swift",
"Visualizations/SpectrumView/CircleCursorView.swift",
"Visualizations/SpectrumView/SpectrumPopupView.swift",
"Visualizations/SpectrumView/SpectrumView.swift",
"Visualizations/TableView.swift",
"Visualizations/TrackView.swift",
"Visualizations/Waveform.swift",
"Visualizations/WaveformLayer.swift",
"Visualizations/WavetableArrayView.swift",
"Visualizations/WavetableView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.