Build Information
Successful build of SwiftUIPreviewUtils with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
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/CypherPoet/SwiftUIPreviewUtils.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CypherPoet/SwiftUIPreviewUtils
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 07c37cc 0.0.10
Cloned https://github.com/CypherPoet/SwiftUIPreviewUtils.git
Revision (git rev-parse @):
07c37ccf8ceeafcacb88288d47b30f033539b098
SUCCESS checkout https://github.com/CypherPoet/SwiftUIPreviewUtils.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/CypherPoet/SwiftUIPreviewUtils.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/14] Compiling SwiftUIPreviewUtils LayoutDirectionPreview.swift
[4/14] Compiling SwiftUIPreviewUtils FullScreenPreview.swift
[5/14] Compiling SwiftUIPreviewUtils OpenedFromNavigationLinkViewModifier.swift
[6/14] Compiling SwiftUIPreviewUtils ContentSizeCategory+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPreviewUtils/Extensions/ContentSizeCategory+Utils.swift:7:23: warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension ContentSizeCategory {
7 | public static let smallestAndLargest = [allCases.first!, allCases.last!]
| |- warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smallestAndLargest' 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
8 | }
9 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[7/14] Compiling SwiftUIPreviewUtils ContentSizeCategoryPreview.swift
[8/14] Compiling SwiftUIPreviewUtils ColorScheme+previewName.swift
[9/14] Compiling SwiftUIPreviewUtils PreviewDevice+Constants.swift
[10/14] Compiling SwiftUIPreviewUtils LocalePreview.swift
[11/14] Emitting module SwiftUIPreviewUtils
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPreviewUtils/Extensions/ContentSizeCategory+Utils.swift:7:23: warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension ContentSizeCategory {
7 | public static let smallestAndLargest = [allCases.first!, allCases.last!]
| |- warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smallestAndLargest' 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
8 | }
9 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[12/14] Compiling SwiftUIPreviewUtils ColorSchemePreview.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPreviewUtils/Extensions/ContentSizeCategory+Utils.swift:7:23: warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension ContentSizeCategory {
7 | public static let smallestAndLargest = [allCases.first!, allCases.last!]
| |- warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smallestAndLargest' 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
8 | }
9 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[13/14] Compiling SwiftUIPreviewUtils ComponentPreview.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPreviewUtils/Extensions/ContentSizeCategory+Utils.swift:7:23: warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | extension ContentSizeCategory {
7 | public static let smallestAndLargest = [allCases.first!, allCases.last!]
| |- warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smallestAndLargest' 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
8 | }
9 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[14/14] Compiling SwiftUIPreviewUtils PreviewLayout+Landscape.swift
[15/15] Compiling SwiftUIPreviewUtils StatefulPreviewWrapper.swift
Build complete! (42.04s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftUIPreviewUtils",
"name" : "SwiftUIPreviewUtils",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "SwiftUIPreviewUtils",
"targets" : [
"SwiftUIPreviewUtils"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftUIPreviewUtilsTests",
"module_type" : "SwiftTarget",
"name" : "SwiftUIPreviewUtilsTests",
"path" : "Tests/SwiftUIPreviewUtils",
"sources" : [
"Cases/SwiftUIPreviewUtilsTests.swift"
],
"target_dependencies" : [
"SwiftUIPreviewUtils"
],
"type" : "test"
},
{
"c99name" : "SwiftUIPreviewUtils",
"module_type" : "SwiftTarget",
"name" : "SwiftUIPreviewUtils",
"path" : "Sources/SwiftUIPreviewUtils",
"product_memberships" : [
"SwiftUIPreviewUtils"
],
"sources" : [
"ColorSchemePreview.swift",
"ComponentPreview.swift",
"ContentSizeCategoryPreview.swift",
"Extensions/ColorScheme+previewName.swift",
"Extensions/ContentSizeCategory+Utils.swift",
"Extensions/PreviewDevice+Constants.swift",
"Extensions/PreviewLayout+Landscape.swift",
"FullScreenPreview.swift",
"LayoutDirectionPreview.swift",
"LocalePreview.swift",
"OpenedFromNavigationLink/OpenedFromNavigationLinkViewModifier.swift",
"StatefulPreviewWrapper.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.