Build Information
Successful build of PianoRoll with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 2
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/PianoRoll.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AudioKit/PianoRoll
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at fa7d51e Cleanup: Use binding with ForEach
Cloned https://github.com/AudioKit/PianoRoll.git
Revision (git rev-parse @):
fa7d51e1826f4877bc7f37c57d58fd21d3bc8dd7
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/AudioKit/PianoRoll.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/AudioKit/PianoRoll.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/10] Compiling PianoRoll VerticalPianoRollNoteView.swift
[4/10] Compiling PianoRoll PreferenceKeys.swift
/Users/admin/builder/spi-builder-workspace/Sources/PianoRoll/PreferenceKeys.swift:5:23: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
3 | /// For accumulating note view offsets.
4 | public struct NoteOffsetsKey: PreferenceKey {
5 | public static var defaultValue: [NoteOffsetInfo] = []
| |- warning: static property 'defaultValue' 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 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
6 |
7 | public static func reduce(value: inout [NoteOffsetInfo], nextValue: () -> [NoteOffsetInfo]) {
[5/10] Compiling PianoRoll PianoRollModel.swift
[6/10] Compiling PianoRoll PianoRollNoteView.swift
[7/10] Compiling PianoRoll PianoRollNote.swift
[8/10] Emitting module PianoRoll
/Users/admin/builder/spi-builder-workspace/Sources/PianoRoll/PianoRollGrid.swift:13:9: warning: stored property 'layout' of 'Sendable'-conforming struct 'PianoRollGrid' has non-sendable type 'PianoRoll.Layout'; this is an error in the Swift 6 language mode
11 | var length: Int
12 | var height: Int
13 | var layout: PianoRoll.Layout
| `- warning: stored property 'layout' of 'Sendable'-conforming struct 'PianoRollGrid' has non-sendable type 'PianoRoll.Layout'; this is an error in the Swift 6 language mode
14 |
15 | func path(in rect: CGRect) -> Path {
/Users/admin/builder/spi-builder-workspace/Sources/PianoRoll/PianoRoll.swift:9:17: note: consider making enum 'Layout' conform to the 'Sendable' protocol
7 | /// Note: Requires macOS 12 / iOS 15 due to SwiftUI bug (crashes in SwiftUI when deleting notes).
8 | public struct PianoRoll: View {
9 | public enum Layout {
| `- note: consider making enum 'Layout' conform to the 'Sendable' protocol
10 | case horizontal
11 | case vertical
/Users/admin/builder/spi-builder-workspace/Sources/PianoRoll/PreferenceKeys.swift:5:23: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
3 | /// For accumulating note view offsets.
4 | public struct NoteOffsetsKey: PreferenceKey {
5 | public static var defaultValue: [NoteOffsetInfo] = []
| |- warning: static property 'defaultValue' 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 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' 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
6 |
7 | public static func reduce(value: inout [NoteOffsetInfo], nextValue: () -> [NoteOffsetInfo]) {
[9/10] Compiling PianoRoll PianoRoll.swift
[10/10] Compiling PianoRoll PianoRollGrid.swift
/Users/admin/builder/spi-builder-workspace/Sources/PianoRoll/PianoRollGrid.swift:13:9: warning: stored property 'layout' of 'Sendable'-conforming struct 'PianoRollGrid' has non-sendable type 'PianoRoll.Layout'; this is an error in the Swift 6 language mode
11 | var length: Int
12 | var height: Int
13 | var layout: PianoRoll.Layout
| `- warning: stored property 'layout' of 'Sendable'-conforming struct 'PianoRollGrid' has non-sendable type 'PianoRoll.Layout'; this is an error in the Swift 6 language mode
14 |
15 | func path(in rect: CGRect) -> Path {
/Users/admin/builder/spi-builder-workspace/Sources/PianoRoll/PianoRoll.swift:9:17: note: consider making enum 'Layout' conform to the 'Sendable' protocol
7 | /// Note: Requires macOS 12 / iOS 15 due to SwiftUI bug (crashes in SwiftUI when deleting notes).
8 | public struct PianoRoll: View {
9 | public enum Layout {
| `- note: consider making enum 'Layout' conform to the 'Sendable' protocol
10 | case horizontal
11 | case vertical
Build complete! (35.02s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "PianoRoll",
"name" : "PianoRoll",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "PianoRoll",
"targets" : [
"PianoRoll"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PianoRollTests",
"module_type" : "SwiftTarget",
"name" : "PianoRollTests",
"path" : "Tests/PianoRollTests",
"sources" : [
"PianoRollTests.swift"
],
"target_dependencies" : [
"PianoRoll"
],
"type" : "test"
},
{
"c99name" : "PianoRoll",
"module_type" : "SwiftTarget",
"name" : "PianoRoll",
"path" : "Sources/PianoRoll",
"product_memberships" : [
"PianoRoll"
],
"sources" : [
"PianoRoll.swift",
"PianoRollGrid.swift",
"PianoRollModel.swift",
"PianoRollNote.swift",
"PianoRollNoteView.swift",
"PreferenceKeys.swift",
"VerticalPianoRollNoteView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.