Build Information
Successful build of IsScrolling, reference main (f828c0
), with Swift 6.1 for macOS (SPM) on 1 May 2025 03:45:26 UTC.
Swift 6 data race errors: 2
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.2
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.64s)
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.1
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.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/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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] 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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()
[5/5] Compiling IsScrolling IsScrolling.swift
/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 | }
Build complete! (7.36s)
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.