Build Information
Successful build of CarouselView, reference main (779be6), with Swift 6.1 for macOS (SPM) on 27 Dec 2025 14:41:18 UTC.
Swift 6 data race errors: 1
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 InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AnbalaganD/CarouselView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AnbalaganD/CarouselView
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 779be6a Enhance carousel interaction tracking and update documentation
Cloned https://github.com/AnbalaganD/CarouselView.git
Revision (git rev-parse @):
779be6a51829968c8bc05b32c2ce0af999a9064b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/AnbalaganD/CarouselView.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/AnbalaganD/CarouselView.git
https://github.com/AnbalaganD/CarouselView.git
{
"dependencies" : [
],
"manifest_display_name" : "CarouselView",
"name" : "CarouselView",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "CarouselView",
"targets" : [
"CarouselView"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CarouselView",
"module_type" : "SwiftTarget",
"name" : "CarouselView",
"path" : "Sources/CarouselView",
"product_memberships" : [
"CarouselView"
],
"sources" : [
"AutoscrollModifier.swift",
"CarouselInteractionKey.swift",
"CarouselView.swift",
"HeightPreferenceKey.swift",
"ViewExtension.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/8] Compiling CarouselView ViewExtension.swift
[4/8] Compiling CarouselView CarouselView.swift
[5/8] Compiling CarouselView CarouselInteractionKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselInteractionKey.swift:15: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
13 | /// up the view hierarchy, enabling features like auto-pause during manual scrolling.
14 | struct CarouselInteractionKey: PreferenceKey {
15 | static var defaultValue: Bool = 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
16 |
17 | static func reduce(value: inout Bool, nextValue: () -> Bool) {
[6/8] Compiling CarouselView AutoscrollModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/AutoscrollModifier.swift:37:16: warning: main actor-isolated property 'isInteracting' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
15 |
16 | @State private var timer: Timer?
17 | @State private var isInteracting: Bool = false
| `- note: property declared here
18 |
19 | func body(content: Content) -> some View {
:
35 | timer = Timer.scheduledTimer(withTimeInterval: interval, repeats: true) { _ in
36 | // Pause autoscroll when user is actively interacting with the carousel
37 | if isInteracting { return }
| `- warning: main actor-isolated property 'isInteracting' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
38 | withAnimation { selectedIndex = (selectedIndex + 1) % itemCount }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/AutoscrollModifier.swift:38:29: warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
11 | let interval: TimeInterval
12 | @Binding var isEnabled: Bool
13 | @Binding var selectedIndex: Int
| `- note: mutation of this property is only permitted within the actor
14 | let itemCount: Int
15 |
:
36 | // Pause autoscroll when user is actively interacting with the carousel
37 | if isInteracting { return }
38 | withAnimation { selectedIndex = (selectedIndex + 1) % itemCount }
| `- warning: main actor-isolated property 'selectedIndex' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/AutoscrollModifier.swift:38:46: warning: main actor-isolated property 'selectedIndex' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
11 | let interval: TimeInterval
12 | @Binding var isEnabled: Bool
13 | @Binding var selectedIndex: Int
| `- note: property declared here
14 | let itemCount: Int
15 |
:
36 | // Pause autoscroll when user is actively interacting with the carousel
37 | if isInteracting { return }
38 | withAnimation { selectedIndex = (selectedIndex + 1) % itemCount }
| `- warning: main actor-isolated property 'selectedIndex' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | }
40 | }
[7/8] Compiling CarouselView HeightPreferenceKey.swift
[8/8] Emitting module CarouselView
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselInteractionKey.swift:15: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
13 | /// up the view hierarchy, enabling features like auto-pause during manual scrolling.
14 | struct CarouselInteractionKey: PreferenceKey {
15 | static var defaultValue: Bool = 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
16 |
17 | static func reduce(value: inout Bool, nextValue: () -> Bool) {
Build complete! (9.19s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CarouselView",
"name" : "CarouselView",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "CarouselView",
"targets" : [
"CarouselView"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CarouselView",
"module_type" : "SwiftTarget",
"name" : "CarouselView",
"path" : "Sources/CarouselView",
"product_memberships" : [
"CarouselView"
],
"sources" : [
"AutoscrollModifier.swift",
"CarouselInteractionKey.swift",
"CarouselView.swift",
"HeightPreferenceKey.swift",
"ViewExtension.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.