Build Information
Successful build of IsScrolling, reference main (f828c0
), with Swift 6.0 for macOS (SPM) on 28 Mar 2025 02:48:13 UTC.
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fatbobman/IsScrolling.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fatbobman/IsScrolling
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f828c01 Merge pull request #4 from jmonroe/main
Cloned https://github.com/fatbobman/IsScrolling.git
Revision (git rev-parse @):
f828c01e563abe06778e46a6784d46f73cb28deb
SUCCESS checkout https://github.com/fatbobman/IsScrolling.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": "isscrolling",
"name": "IsScrolling",
"url": "https://github.com/fatbobman/IsScrolling.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/IsScrolling",
"dependencies": [
]
}
]
}
Fetching https://github.com/fatbobman/IsScrolling.git
[1/185] Fetching isscrolling
Fetched https://github.com/fatbobman/IsScrolling.git from cache (0.58s)
Creating working copy for https://github.com/fatbobman/IsScrolling.git
Working copy of https://github.com/fatbobman/IsScrolling.git resolved at main (f828c01)
warning: '.resolve-product-dependencies': dependency 'isscrolling' 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/fatbobman/IsScrolling.git
https://github.com/fatbobman/IsScrolling.git
{
"dependencies" : [
],
"manifest_display_name" : "IsScrolling",
"name" : "IsScrolling",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "maccatalyst",
"version" : "14.0"
}
],
"products" : [
{
"name" : "IsScrolling",
"targets" : [
"IsScrolling"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "IsScrollingTests",
"module_type" : "SwiftTarget",
"name" : "IsScrollingTests",
"path" : "Tests/IsScrollingTests",
"sources" : [
"IsScrollingTests.swift"
],
"target_dependencies" : [
"IsScrolling"
],
"type" : "test"
},
{
"c99name" : "IsScrolling",
"module_type" : "SwiftTarget",
"name" : "IsScrolling",
"path" : "Sources/IsScrolling",
"product_memberships" : [
"IsScrolling"
],
"sources" : [
"IsScrolling.swift",
"Key.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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-5BDAB9E9C0126B9D.txt
[3/5] Compiling IsScrolling Key.swift
/Users/admin/builder/spi-builder-workspace/Sources/IsScrolling/Key.swift:12:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | struct IsScrollingValueKey: EnvironmentKey {
12 | static var defaultValue = false
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/IsScrolling/Key.swift:23:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | public struct MinValueKey: PreferenceKey {
23 | public static var defaultValue: CGRect = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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
24 | public static func reduce(value: inout CGRect, nextValue: () -> CGRect) {
25 | value = nextValue()
[4/5] Compiling IsScrolling IsScrolling.swift
/Users/admin/builder/spi-builder-workspace/Sources/IsScrolling/IsScrolling.swift:108:17: warning: main actor-isolated property 'store' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
97 |
98 | struct ScrollStatusMonitorCommonModifier: ViewModifier {
99 | @StateObject private var store = CommonStore()
| `- note: property declared here
100 | @Binding var isScrolling: Bool
101 | func body(content: Content) -> some View {
:
106 | }
107 | .onPreferenceChange(MinValueKey.self) { _ in
108 | store.preferencePublisher.send(1)
| `- warning: main actor-isolated property 'store' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
109 | }
110 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/IsScrolling/IsScrolling.swift:135:53: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
133 | self.timestamp = Date()
134 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.15) {
135 | if Date().timeIntervalSince(self.timestamp) > 0.1 {
| |- 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
136 | self.timeoutPublisher.send(0)
137 | }
[5/5] Emitting module IsScrolling
/Users/admin/builder/spi-builder-workspace/Sources/IsScrolling/Key.swift:12:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | struct IsScrollingValueKey: EnvironmentKey {
12 | static var defaultValue = false
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/IsScrolling/Key.swift:23:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | public struct MinValueKey: PreferenceKey {
23 | public static var defaultValue: CGRect = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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
24 | public static func reduce(value: inout CGRect, nextValue: () -> CGRect) {
25 | value = nextValue()
Build complete! (9.66s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "IsScrolling",
"name" : "IsScrolling",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "maccatalyst",
"version" : "14.0"
}
],
"products" : [
{
"name" : "IsScrolling",
"targets" : [
"IsScrolling"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "IsScrollingTests",
"module_type" : "SwiftTarget",
"name" : "IsScrollingTests",
"path" : "Tests/IsScrollingTests",
"sources" : [
"IsScrollingTests.swift"
],
"target_dependencies" : [
"IsScrolling"
],
"type" : "test"
},
{
"c99name" : "IsScrolling",
"module_type" : "SwiftTarget",
"name" : "IsScrolling",
"path" : "Sources/IsScrolling",
"product_memberships" : [
"IsScrolling"
],
"sources" : [
"IsScrolling.swift",
"Key.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.