Build Information
Successful build of swift-music, reference master (ab1026
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 09:11:15 UTC.
Swift 6 data race errors: 6
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sh3l6orrr/swift-music.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sh3l6orrr/swift-music
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at ab10261 refactor code
Cloned https://github.com/sh3l6orrr/swift-music.git
Revision (git rev-parse @):
ab10261921f2b991b77c856ef793b3e23202c13d
SUCCESS checkout https://github.com/sh3l6orrr/swift-music.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swift-music",
"name": "swift-music",
"url": "https://github.com/sh3l6orrr/swift-music.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-music",
"dependencies": [
]
}
]
}
Fetching https://github.com/sh3l6orrr/swift-music.git
[11/1058] Fetching swift-music
Fetched https://github.com/sh3l6orrr/swift-music.git from cache (0.86s)
Creating working copy for https://github.com/sh3l6orrr/swift-music.git
Working copy of https://github.com/sh3l6orrr/swift-music.git resolved at master (ab10261)
warning: '.resolve-product-dependencies': dependency 'swift-music' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/sh3l6orrr/swift-music.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun 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
[2/7] Write Run-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
[5/15] Compiling MusicTheory Chord.swift
[6/15] Compiling MusicTheory Interval.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:16:5: warning: var 'semitoneToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | ]
15 |
16 | var semitoneToInterval: [Int : Interval] = [
| |- warning: var 'semitoneToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'semitoneToInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'semitoneToInterval' 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
17 | 0 :.octave ,
18 | 1 :.m2 ,
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:1:5: warning: var 'nameToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | var nameToInterval: [String : Interval] = [
| |- warning: var 'nameToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToInterval' 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
2 | "octave" :.octave ,
3 | "minor second" :.m2 ,
[7/15] Emitting module MusicTheory
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:1:5: warning: var 'nameToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | var nameToInterval: [String : Interval] = [
| |- warning: var 'nameToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToInterval' 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
2 | "octave" :.octave ,
3 | "minor second" :.m2 ,
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:16:5: warning: var 'semitoneToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | ]
15 |
16 | var semitoneToInterval: [Int : Interval] = [
| |- warning: var 'semitoneToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'semitoneToInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'semitoneToInterval' 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
17 | 0 :.octave ,
18 | 1 :.m2 ,
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:31:5: warning: var 'modeToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | ]
30 |
31 | var modeToIntervals: [Mode : [Interval]] = [
| |- warning: var 'modeToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modeToIntervals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'modeToIntervals' 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
32 | .major : [.octave, .M2, .M3, .p4, .p5, .M6, .M7],
33 | .minor : [.octave, .M2, .m3, .p4, .p5, .m6, .m7]
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:43:5: warning: var 'nameToNote' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | ]
42 |
43 | var nameToNote: [String : Note] = [
| |- warning: var 'nameToNote' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToNote' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToNote' 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
44 | "C" : .C ,
45 | "C#" : .CD ,
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:63:5: warning: var 'qualityToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | ]
62 |
63 | var qualityToIntervals: [Quality : [Interval]] = [
| |- warning: var 'qualityToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'qualityToIntervals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'qualityToIntervals' 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
64 | .power: [.octave, .p5],
65 | .suspended2ndTriad: [.octave, .M2, .p5],
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:91:5: warning: var 'nameToQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
89 | ]
90 |
91 | var nameToQuality: [String : Quality] = [
| |- warning: var 'nameToQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToQuality' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToQuality' 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
92 | "5": .power,
93 | "sus2": .suspended2ndTriad,
[8/15] Compiling MusicTheory Quality.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:63:5: warning: var 'qualityToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | ]
62 |
63 | var qualityToIntervals: [Quality : [Interval]] = [
| |- warning: var 'qualityToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'qualityToIntervals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'qualityToIntervals' 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
64 | .power: [.octave, .p5],
65 | .suspended2ndTriad: [.octave, .M2, .p5],
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:91:5: warning: var 'nameToQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
89 | ]
90 |
91 | var nameToQuality: [String : Quality] = [
| |- warning: var 'nameToQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToQuality' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToQuality' 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
92 | "5": .power,
93 | "sus2": .suspended2ndTriad,
[9/15] Compiling MusicTheory Note.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:43:5: warning: var 'nameToNote' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | ]
42 |
43 | var nameToNote: [String : Note] = [
| |- warning: var 'nameToNote' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToNote' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToNote' 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
44 | "C" : .C ,
45 | "C#" : .CD ,
[10/15] Compiling MusicTheory Scale.swift
[11/15] Compiling MusicTheory Lookup.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:1:5: warning: var 'nameToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | var nameToInterval: [String : Interval] = [
| |- warning: var 'nameToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToInterval' 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
2 | "octave" :.octave ,
3 | "minor second" :.m2 ,
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:16:5: warning: var 'semitoneToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | ]
15 |
16 | var semitoneToInterval: [Int : Interval] = [
| |- warning: var 'semitoneToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'semitoneToInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'semitoneToInterval' 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
17 | 0 :.octave ,
18 | 1 :.m2 ,
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:31:5: warning: var 'modeToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | ]
30 |
31 | var modeToIntervals: [Mode : [Interval]] = [
| |- warning: var 'modeToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modeToIntervals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'modeToIntervals' 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
32 | .major : [.octave, .M2, .M3, .p4, .p5, .M6, .M7],
33 | .minor : [.octave, .M2, .m3, .p4, .p5, .m6, .m7]
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:43:5: warning: var 'nameToNote' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | ]
42 |
43 | var nameToNote: [String : Note] = [
| |- warning: var 'nameToNote' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToNote' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToNote' 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
44 | "C" : .C ,
45 | "C#" : .CD ,
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:63:5: warning: var 'qualityToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | ]
62 |
63 | var qualityToIntervals: [Quality : [Interval]] = [
| |- warning: var 'qualityToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'qualityToIntervals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'qualityToIntervals' 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
64 | .power: [.octave, .p5],
65 | .suspended2ndTriad: [.octave, .M2, .p5],
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:91:5: warning: var 'nameToQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
89 | ]
90 |
91 | var nameToQuality: [String : Quality] = [
| |- warning: var 'nameToQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToQuality' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToQuality' 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
92 | "5": .power,
93 | "sus2": .suspended2ndTriad,
[12/15] Compiling MusicTheory Mode.swift
[13/17] Emitting module Run
[14/17] Compiling Run main.swift
[14/17] Write Objects.LinkFileList
[15/17] Linking Run
[16/17] Applying Run
Build complete! (4.40s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swift-music",
"name" : "swift-music",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "4.0"
},
{
"name" : "tvos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "MusicTheory",
"targets" : [
"MusicTheory"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Run",
"targets" : [
"Run"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "Run",
"module_type" : "SwiftTarget",
"name" : "Run",
"path" : "Sources/Run",
"product_memberships" : [
"Run"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"MusicTheory"
],
"type" : "executable"
},
{
"c99name" : "MusicTheoryTests",
"module_type" : "SwiftTarget",
"name" : "MusicTheoryTests",
"path" : "Tests/MusicTheoryTests",
"sources" : [
"AnyTest.swift",
"TestChord.swift",
"TestInterval.swift",
"TestNote.swift",
"TestScale.swift"
],
"target_dependencies" : [
"MusicTheory"
],
"type" : "test"
},
{
"c99name" : "MusicTheory",
"module_type" : "SwiftTarget",
"name" : "MusicTheory",
"path" : "Sources/MusicTheory",
"product_memberships" : [
"MusicTheory",
"Run"
],
"sources" : [
"Chord.swift",
"Interval.swift",
"Lookup.swift",
"Mode.swift",
"Note.swift",
"Quality.swift",
"Scale.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.