Build Information
Successful build of sort-state-university, reference main (6f721f
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 14:33:05 UTC.
Swift 6 data race errors: 5
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kylehughes/sort-state-university.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kylehughes/sort-state-university
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6f721f2 Improve quicksort algorithm with harmonic numbers
Cloned https://github.com/kylehughes/sort-state-university.git
Revision (git rev-parse @):
6f721f2274b0965dd5e54ba156c4e82e953a47d3
SUCCESS checkout https://github.com/kylehughes/sort-state-university.git at main
========================================
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": "sort-state-university",
"name": "sort-state-university",
"url": "https://github.com/kylehughes/sort-state-university.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/sort-state-university",
"dependencies": [
]
}
]
}
Fetching https://github.com/kylehughes/sort-state-university.git
[1/734] Fetching sort-state-university
Fetched https://github.com/kylehughes/sort-state-university.git from cache (0.85s)
Creating working copy for https://github.com/kylehughes/sort-state-university.git
Working copy of https://github.com/kylehughes/sort-state-university.git resolved at main (6f721f2)
warning: '.resolve-product-dependencies': dependency 'sort-state-university' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/kylehughes/sort-state-university.git
https://github.com/kylehughes/sort-state-university.git
{
"dependencies" : [
],
"manifest_display_name" : "sort-state-university",
"name" : "sort-state-university",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "SortStateUniversity",
"targets" : [
"SortStateUniversity"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SortStateUniversityTests",
"module_type" : "SwiftTarget",
"name" : "SortStateUniversityTests",
"path" : "Tests/SortStateUniversityTests",
"sources" : [
"Tests/AbstractSortingAlgorithmTest.swift",
"Tests/BuiltInSortingAlgorithmTypeTests.swift",
"Tests/ComparisonTests.swift",
"Tests/ComplexityTests.swift",
"Tests/Insertion Sort/InsertionSortTests.swift",
"Tests/Merge Sort/MergeSortTests.swift",
"Tests/Quicksort/QuicksortTests.swift",
"Tests/SortingAlgorithmStepTests.swift",
"Utilities/DefaultSortingAlgorithmInputFactory.swift",
"Utilities/SortingAlgorithmInputCase.swift",
"Utilities/SortingAlgorithmInputFactory.swift"
],
"target_dependencies" : [
"SortStateUniversity"
],
"type" : "test"
},
{
"c99name" : "SortStateUniversity",
"module_type" : "SwiftTarget",
"name" : "SortStateUniversity",
"path" : "Sources/SortStateUniversity",
"product_memberships" : [
"SortStateUniversity"
],
"sources" : [
"BuiltInSortingAlgorithmType.swift",
"Comparison.swift",
"Complexity.swift",
"Extensions/Standard Library/Array+SortStateUniversity.swift",
"Extensions/Standard Library/Double+SortStateUniversity.swift",
"Extensions/Standard Library/Int+SortStateUniversity.swift",
"Insertion Sort/InsertionSort.swift",
"Merge Sort/MergeSort+Merge.swift",
"Merge Sort/MergeSort.swift",
"Quicksort/Quicksort+Partition.swift",
"Quicksort/Quicksort.swift",
"SortingAlgorithm.swift",
"SortingAlgorithmLabel.swift",
"SortingAlgorithmStep.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/16] Compiling SortStateUniversity Complexity.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/Complexity.swift:44:23: warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
17 | ///
18 | /// - SeeAlso: https://en.wikipedia.org/wiki/Big_O_notation
19 | public enum Complexity: Equatable, Hashable, CaseIterable {
| `- note: consider making enum 'Complexity' conform to the 'Sendable' protocol
20 | /// O(1)
21 | case constant
:
42 |
43 | /// A collection of all complexity values from least complex to most complex.
44 | public static let allCasesInOrder: [Complexity] = [
| |- warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'allCasesInOrder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | .constant,
46 | .logarithmic,
[4/16] Compiling SortStateUniversity Array+SortStateUniversity.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/Complexity.swift:44:23: warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
17 | ///
18 | /// - SeeAlso: https://en.wikipedia.org/wiki/Big_O_notation
19 | public enum Complexity: Equatable, Hashable, CaseIterable {
| `- note: consider making enum 'Complexity' conform to the 'Sendable' protocol
20 | /// O(1)
21 | case constant
:
42 |
43 | /// A collection of all complexity values from least complex to most complex.
44 | public static let allCasesInOrder: [Complexity] = [
| |- warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'allCasesInOrder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | .constant,
46 | .logarithmic,
[5/16] Compiling SortStateUniversity BuiltInSortingAlgorithmType.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/BuiltInSortingAlgorithmType.swift:28:23: warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Enumeration of all sorting algorithms that are built into the library.
9 | public enum BuiltInSortingAlgorithmType: String, CaseIterable, Equatable, Hashable {
| `- note: consider making enum 'BuiltInSortingAlgorithmType' conform to the 'Sendable' protocol
10 | /// A simple sorting algorithm that sorts its elements one at a time.
11 | ///
:
26 |
27 | /// A collection of all values in this type, in alphabetical order (in American English).
28 | public static let allCasesInAlphabeticalOrder: [Self] = [.insertionSort, .mergeSort, .quicksort,]
| |- warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'allCasesInAlphabeticalOrder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | // MARK: Public Instance Interface
[6/16] Compiling SortStateUniversity Comparison.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/BuiltInSortingAlgorithmType.swift:28:23: warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Enumeration of all sorting algorithms that are built into the library.
9 | public enum BuiltInSortingAlgorithmType: String, CaseIterable, Equatable, Hashable {
| `- note: consider making enum 'BuiltInSortingAlgorithmType' conform to the 'Sendable' protocol
10 | /// A simple sorting algorithm that sorts its elements one at a time.
11 | ///
:
26 |
27 | /// A collection of all values in this type, in alphabetical order (in American English).
28 | public static let allCasesInAlphabeticalOrder: [Self] = [.insertionSort, .mergeSort, .quicksort,]
| |- warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'allCasesInAlphabeticalOrder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | // MARK: Public Instance Interface
[7/16] Compiling SortStateUniversity SortingAlgorithmLabel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
36 |
37 | /// The label of the ``InsertionSort`` algorithm.
38 | public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
| |- warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'insertionSort' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// The label of the ``MergeSort`` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
39 |
40 | /// The label of the ``MergeSort`` algorithm.
41 | public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
| |- warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mergeSort' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// The label of the ``Quicksort`` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
42 |
43 | /// The label of the ``Quicksort`` algorithm.
44 | public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
| |- warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'quicksort' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
[8/16] Compiling SortStateUniversity SortingAlgorithm.swift
[9/16] Compiling SortStateUniversity Quicksort+Partition.swift
[10/16] Compiling SortStateUniversity Double+SortStateUniversity.swift
[11/16] Compiling SortStateUniversity Int+SortStateUniversity.swift
[12/16] Emitting module SortStateUniversity
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/BuiltInSortingAlgorithmType.swift:28:23: warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Enumeration of all sorting algorithms that are built into the library.
9 | public enum BuiltInSortingAlgorithmType: String, CaseIterable, Equatable, Hashable {
| `- note: consider making enum 'BuiltInSortingAlgorithmType' conform to the 'Sendable' protocol
10 | /// A simple sorting algorithm that sorts its elements one at a time.
11 | ///
:
26 |
27 | /// A collection of all values in this type, in alphabetical order (in American English).
28 | public static let allCasesInAlphabeticalOrder: [Self] = [.insertionSort, .mergeSort, .quicksort,]
| |- warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'allCasesInAlphabeticalOrder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | // MARK: Public Instance Interface
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/Complexity.swift:44:23: warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
17 | ///
18 | /// - SeeAlso: https://en.wikipedia.org/wiki/Big_O_notation
19 | public enum Complexity: Equatable, Hashable, CaseIterable {
| `- note: consider making enum 'Complexity' conform to the 'Sendable' protocol
20 | /// O(1)
21 | case constant
:
42 |
43 | /// A collection of all complexity values from least complex to most complex.
44 | public static let allCasesInOrder: [Complexity] = [
| |- warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'allCasesInOrder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | .constant,
46 | .logarithmic,
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
36 |
37 | /// The label of the ``InsertionSort`` algorithm.
38 | public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
| |- warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'insertionSort' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// The label of the ``MergeSort`` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
39 |
40 | /// The label of the ``MergeSort`` algorithm.
41 | public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
| |- warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mergeSort' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// The label of the ``Quicksort`` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
42 |
43 | /// The label of the ``Quicksort`` algorithm.
44 | public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
| |- warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'quicksort' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
[13/16] Compiling SortStateUniversity Quicksort.swift
[14/16] Compiling SortStateUniversity MergeSort.swift
[15/16] Compiling SortStateUniversity InsertionSort.swift
[16/16] Compiling SortStateUniversity MergeSort+Merge.swift
[17/17] Compiling SortStateUniversity SortingAlgorithmStep.swift
Build complete! (5.30s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "sort-state-university",
"name" : "sort-state-university",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "SortStateUniversity",
"targets" : [
"SortStateUniversity"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SortStateUniversityTests",
"module_type" : "SwiftTarget",
"name" : "SortStateUniversityTests",
"path" : "Tests/SortStateUniversityTests",
"sources" : [
"Tests/AbstractSortingAlgorithmTest.swift",
"Tests/BuiltInSortingAlgorithmTypeTests.swift",
"Tests/ComparisonTests.swift",
"Tests/ComplexityTests.swift",
"Tests/Insertion Sort/InsertionSortTests.swift",
"Tests/Merge Sort/MergeSortTests.swift",
"Tests/Quicksort/QuicksortTests.swift",
"Tests/SortingAlgorithmStepTests.swift",
"Utilities/DefaultSortingAlgorithmInputFactory.swift",
"Utilities/SortingAlgorithmInputCase.swift",
"Utilities/SortingAlgorithmInputFactory.swift"
],
"target_dependencies" : [
"SortStateUniversity"
],
"type" : "test"
},
{
"c99name" : "SortStateUniversity",
"module_type" : "SwiftTarget",
"name" : "SortStateUniversity",
"path" : "Sources/SortStateUniversity",
"product_memberships" : [
"SortStateUniversity"
],
"sources" : [
"BuiltInSortingAlgorithmType.swift",
"Comparison.swift",
"Complexity.swift",
"Extensions/Standard Library/Array+SortStateUniversity.swift",
"Extensions/Standard Library/Double+SortStateUniversity.swift",
"Extensions/Standard Library/Int+SortStateUniversity.swift",
"Insertion Sort/InsertionSort.swift",
"Merge Sort/MergeSort+Merge.swift",
"Merge Sort/MergeSort.swift",
"Quicksort/Quicksort+Partition.swift",
"Quicksort/Quicksort.swift",
"SortingAlgorithm.swift",
"SortingAlgorithmLabel.swift",
"SortingAlgorithmStep.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.