Build Information
Successful build of SmoothGradient, reference main (7f11f2
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 10:45:40 UTC.
Swift 6 data race errors: 4
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/raymondjavaxx/SmoothGradient.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/raymondjavaxx/SmoothGradient
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7f11f2e Bump Xcode version (#6)
Cloned https://github.com/raymondjavaxx/SmoothGradient.git
Revision (git rev-parse @):
7f11f2e0f2e3c4466ec78087242be49f6e8b00cc
SUCCESS checkout https://github.com/raymondjavaxx/SmoothGradient.git at main
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/12436] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (3.07s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.11.1 (3.17s)
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.11.1
========================================
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": "smoothgradient",
"name": "SmoothGradient",
"url": "https://github.com/raymondjavaxx/SmoothGradient.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SmoothGradient",
"dependencies": [
]
}
]
}
Fetching https://github.com/raymondjavaxx/SmoothGradient.git
[1/233] Fetching smoothgradient
Fetched https://github.com/raymondjavaxx/SmoothGradient.git from cache (1.17s)
Creating working copy for https://github.com/raymondjavaxx/SmoothGradient.git
Working copy of https://github.com/raymondjavaxx/SmoothGradient.git resolved at main (7f11f2e)
warning: '.resolve-product-dependencies': dependency 'smoothgradient' 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/raymondjavaxx/SmoothGradient.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/8] Compiling SmoothGradient SmoothLinearGradient.swift
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/SmoothLinearGradient.swift:76:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | /// A smooth linear gradient.
15 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
16 | public struct SmoothLinearGradient: ShapeStyle, View {
| `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
17 | let from: Gradient.Stop
18 | let to: Gradient.Stop
:
74 | }
75 |
76 | public func resolve(in environment: EnvironmentValues) -> LinearGradient {
| |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
77 | LinearGradient(
78 | gradient: .smooth(from: from, to: to, curve: curve, steps: steps),
SwiftUICore.ShapeStyle:12:10: note: 'resolve(in:)' declared here
10 | associatedtype Resolved : ShapeStyle = Never
11 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
12 | func resolve(in environment: EnvironmentValues) -> Self.Resolved
| `- note: 'resolve(in:)' declared here
13 | }
[4/8] Compiling SmoothGradient CubicBezierCurve.swift
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:31:23: warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
22 | public struct CubicBezierCurve: Curve {
| `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
23 | let p1: UnitPoint
24 | let p2: UnitPoint
:
29 |
30 | /// A bezier curve that starts out slowly, then speeds up as it finishes.
31 | public static let easeIn = CubicBezierCurve(
| |- warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'easeIn' 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 | p1: UnitPoint(x: 0.42, y: 0),
33 | p2: UnitPoint(x: 1, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:37:23: warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
22 | public struct CubicBezierCurve: Curve {
| `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
23 | let p1: UnitPoint
24 | let p2: UnitPoint
:
35 |
36 | /// A bezier curve that starts out quickly, then slows down as it approaches the end.
37 | public static let easeOut = CubicBezierCurve(
| |- warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'easeOut' 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
38 | p1: UnitPoint(x: 0, y: 0),
39 | p2: UnitPoint(x: 0.58, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:43:23: warning: static property 'easeInOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
22 | public struct CubicBezierCurve: Curve {
| `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
23 | let p1: UnitPoint
24 | let p2: UnitPoint
:
41 |
42 | /// A bezier curve that starts out slowly, speeds up over the middle, then slows down again as it approaches the end.
43 | public static let easeInOut = CubicBezierCurve(
| |- warning: static property 'easeInOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'easeInOut' 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 | p1: UnitPoint(x: 0.42, y: 0),
45 | p2: UnitPoint(x: 0.58, y: 1)
[5/8] Compiling SmoothGradient Curve.swift
[6/8] Emitting module SmoothGradient
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:31:23: warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
22 | public struct CubicBezierCurve: Curve {
| `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
23 | let p1: UnitPoint
24 | let p2: UnitPoint
:
29 |
30 | /// A bezier curve that starts out slowly, then speeds up as it finishes.
31 | public static let easeIn = CubicBezierCurve(
| |- warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'easeIn' 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 | p1: UnitPoint(x: 0.42, y: 0),
33 | p2: UnitPoint(x: 1, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:37:23: warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
22 | public struct CubicBezierCurve: Curve {
| `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
23 | let p1: UnitPoint
24 | let p2: UnitPoint
:
35 |
36 | /// A bezier curve that starts out quickly, then slows down as it approaches the end.
37 | public static let easeOut = CubicBezierCurve(
| |- warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'easeOut' 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
38 | p1: UnitPoint(x: 0, y: 0),
39 | p2: UnitPoint(x: 0.58, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:43:23: warning: static property 'easeInOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
22 | public struct CubicBezierCurve: Curve {
| `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
23 | let p1: UnitPoint
24 | let p2: UnitPoint
:
41 |
42 | /// A bezier curve that starts out slowly, speeds up over the middle, then slows down again as it approaches the end.
43 | public static let easeInOut = CubicBezierCurve(
| |- warning: static property 'easeInOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'easeInOut' 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 | p1: UnitPoint(x: 0.42, y: 0),
45 | p2: UnitPoint(x: 0.58, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/SmoothLinearGradient.swift:76:17: warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | /// A smooth linear gradient.
15 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
16 | public struct SmoothLinearGradient: ShapeStyle, View {
| `- note: add '@preconcurrency' to the 'ShapeStyle' conformance to defer isolation checking to run time
17 | let from: Gradient.Stop
18 | let to: Gradient.Stop
:
74 | }
75 |
76 | public func resolve(in environment: EnvironmentValues) -> LinearGradient {
| |- warning: main actor-isolated instance method 'resolve(in:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'resolve(in:)' to make this instance method not isolated to the actor
77 | LinearGradient(
78 | gradient: .smooth(from: from, to: to, curve: curve, steps: steps),
SwiftUICore.ShapeStyle:12:10: note: 'resolve(in:)' declared here
10 | associatedtype Resolved : ShapeStyle = Never
11 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
12 | func resolve(in environment: EnvironmentValues) -> Self.Resolved
| `- note: 'resolve(in:)' declared here
13 | }
[7/8] Compiling SmoothGradient GradientInterpolator.swift
[8/8] Compiling SmoothGradient Gradient+Smooth.swift
/Users/admin/builder/spi-builder-workspace/Sources/SmoothGradient/CubicBezierCurve.swift:43:23: warning: static property 'easeInOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
20 | @available(watchOS, introduced: 7.0, deprecated: 10.0, message: "use UnitCurve instead")
21 | @available(visionOS, deprecated: 1.0, message: "use UnitCurve instead")
22 | public struct CubicBezierCurve: Curve {
| `- note: consider making struct 'CubicBezierCurve' conform to the 'Sendable' protocol
23 | let p1: UnitPoint
24 | let p2: UnitPoint
:
41 |
42 | /// A bezier curve that starts out slowly, speeds up over the middle, then slows down again as it approaches the end.
43 | public static let easeInOut = CubicBezierCurve(
| |- warning: static property 'easeInOut' is not concurrency-safe because non-'Sendable' type 'CubicBezierCurve' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'easeInOut' 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 | p1: UnitPoint(x: 0.42, y: 0),
45 | p2: UnitPoint(x: 0.58, y: 1)
Build complete! (15.81s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-snapshot-testing",
"requirement" : {
"range" : [
{
"lower_bound" : "1.11.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-snapshot-testing"
}
],
"manifest_display_name" : "SmoothGradient",
"name" : "SmoothGradient",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "maccatalyst",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "SmoothGradient",
"targets" : [
"SmoothGradient"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SmoothGradientTests",
"module_type" : "SwiftTarget",
"name" : "SmoothGradientTests",
"path" : "Tests/SmoothGradientTests",
"product_dependencies" : [
"SnapshotTesting"
],
"sources" : [
"CubicBezierCurveTests.swift",
"GradientSmoothTests.swift",
"SmoothLinearGradientTests.swift"
],
"target_dependencies" : [
"SmoothGradient"
],
"type" : "test"
},
{
"c99name" : "SmoothGradient",
"module_type" : "SwiftTarget",
"name" : "SmoothGradient",
"path" : "Sources/SmoothGradient",
"product_memberships" : [
"SmoothGradient"
],
"sources" : [
"CubicBezierCurve.swift",
"Curve.swift",
"Gradient+Smooth.swift",
"GradientInterpolator.swift",
"SmoothLinearGradient.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.