Build Information
Successful build of Cooponent, reference main (a80f70
), with Swift 6.0 for macOS (SPM) on 26 Dec 2024 16:00:38 UTC.
Swift 6 data race errors: 1
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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Talljack/Cooponent.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Talljack/Cooponent
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a80f702 chore: add Swift language version specification (#2)
Cloned https://github.com/Talljack/Cooponent.git
Revision (git rev-parse @):
a80f702914a6b4fcb676dde3a4d35881d1d9506f
SUCCESS checkout https://github.com/Talljack/Cooponent.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": "cooponent",
"name": "Cooponent",
"url": "https://github.com/Talljack/Cooponent.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Cooponent",
"dependencies": [
]
}
]
}
Fetching https://github.com/Talljack/Cooponent.git
[1/35] Fetching cooponent
Fetched https://github.com/Talljack/Cooponent.git from cache (0.58s)
Creating working copy for https://github.com/Talljack/Cooponent.git
Working copy of https://github.com/Talljack/Cooponent.git resolved at main (a80f702)
warning: '.resolve-product-dependencies': dependency 'cooponent' 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/Talljack/Cooponent.git
https://github.com/Talljack/Cooponent.git
{
"dependencies" : [
],
"manifest_display_name" : "Cooponent",
"name" : "Cooponent",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Cooponent",
"targets" : [
"Button",
"Segment",
"Examples"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "Segment",
"module_type" : "SwiftTarget",
"name" : "Segment",
"path" : "Sources/Segment",
"product_memberships" : [
"Cooponent"
],
"sources" : [
"SegmentedControl.swift"
],
"type" : "library"
},
{
"c99name" : "Examples",
"module_type" : "SwiftTarget",
"name" : "Examples",
"path" : "Sources/Examples",
"product_memberships" : [
"Cooponent"
],
"sources" : [
"SegmentedControlExample.swift"
],
"target_dependencies" : [
"Button",
"Segment"
],
"type" : "library"
},
{
"c99name" : "CooponentTests",
"module_type" : "SwiftTarget",
"name" : "CooponentTests",
"path" : "Tests/CooponentTests",
"sources" : [
"CooponentTests.swift"
],
"target_dependencies" : [
"Button",
"Segment"
],
"type" : "test"
},
{
"c99name" : "Button",
"module_type" : "SwiftTarget",
"name" : "Button",
"path" : "Sources/Button",
"product_memberships" : [
"Cooponent"
],
"sources" : [
"CustomButton.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
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/4] Write sources
[3/4] Write swift-version-5BDAB9E9C0126B9D.txt
[5/8] Emitting module Segment
/Users/admin/builder/spi-builder-workspace/Sources/Segment/SegmentedControl.swift:6: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
4 |
5 | private struct SizeKey: PreferenceKey {
6 | static var defaultValue: CGSize = .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
7 | static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
8 | value = nextValue()
[6/8] Compiling Segment SegmentedControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/SegmentedControl.swift:6: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
4 |
5 | private struct SizeKey: PreferenceKey {
6 | static var defaultValue: CGSize = .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
7 | static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
8 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/Segment/SegmentedControl.swift:98:32: warning: main actor-isolated property 'tabs' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
11 |
12 | public struct SegmentedControl<Indicator: View, Tab: SegmentItem>: View {
13 | public var tabs: [Tab]
| `- note: property declared here
14 | @Binding public var activeTab: Tab
15 | public var height: CGFloat = 45
:
96 | .preference(key: SizeKey.self, value: size)
97 | .onPreferenceChange(SizeKey.self) { _ in
98 | if let index = tabs.firstIndex(of: activeTab) {
| `- warning: main actor-isolated property 'tabs' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
99 | minX = containerWidthForEachTab * CGFloat(index)
100 | excessTabWidth = 0
/Users/admin/builder/spi-builder-workspace/Sources/Segment/SegmentedControl.swift:98:52: warning: main actor-isolated property 'activeTab' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
12 | public struct SegmentedControl<Indicator: View, Tab: SegmentItem>: View {
13 | public var tabs: [Tab]
14 | @Binding public var activeTab: Tab
| `- note: property declared here
15 | public var height: CGFloat = 45
16 | // Marks: - Customization
:
96 | .preference(key: SizeKey.self, value: size)
97 | .onPreferenceChange(SizeKey.self) { _ in
98 | if let index = tabs.firstIndex(of: activeTab) {
| `- warning: main actor-isolated property 'activeTab' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
99 | minX = containerWidthForEachTab * CGFloat(index)
100 | excessTabWidth = 0
/Users/admin/builder/spi-builder-workspace/Sources/Segment/SegmentedControl.swift:99:21: warning: main actor-isolated property 'minX' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
43 |
44 | /// View Properties
45 | @State private var minX: CGFloat = .zero
| `- note: mutation of this property is only permitted within the actor
46 | @State private var excessTabWidth: CGFloat = .zero
47 |
:
97 | .onPreferenceChange(SizeKey.self) { _ in
98 | if let index = tabs.firstIndex(of: activeTab) {
99 | minX = containerWidthForEachTab * CGFloat(index)
| `- warning: main actor-isolated property 'minX' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
100 | excessTabWidth = 0
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/Segment/SegmentedControl.swift:100:21: warning: main actor-isolated property 'excessTabWidth' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
44 | /// View Properties
45 | @State private var minX: CGFloat = .zero
46 | @State private var excessTabWidth: CGFloat = .zero
| `- note: mutation of this property is only permitted within the actor
47 |
48 | public var body: some View {
:
98 | if let index = tabs.firstIndex(of: activeTab) {
99 | minX = containerWidthForEachTab * CGFloat(index)
100 | excessTabWidth = 0
| `- warning: main actor-isolated property 'excessTabWidth' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
101 | }
102 | }
[7/8] Emitting module Button
[8/8] Compiling Button CustomButton.swift
[9/10] Compiling Examples SegmentedControlExample.swift
[10/10] Emitting module Examples
Build complete! (10.89s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Cooponent",
"name" : "Cooponent",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Cooponent",
"targets" : [
"Button",
"Segment",
"Examples"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "Segment",
"module_type" : "SwiftTarget",
"name" : "Segment",
"path" : "Sources/Segment",
"product_memberships" : [
"Cooponent"
],
"sources" : [
"SegmentedControl.swift"
],
"type" : "library"
},
{
"c99name" : "Examples",
"module_type" : "SwiftTarget",
"name" : "Examples",
"path" : "Sources/Examples",
"product_memberships" : [
"Cooponent"
],
"sources" : [
"SegmentedControlExample.swift"
],
"target_dependencies" : [
"Button",
"Segment"
],
"type" : "library"
},
{
"c99name" : "CooponentTests",
"module_type" : "SwiftTarget",
"name" : "CooponentTests",
"path" : "Tests/CooponentTests",
"sources" : [
"CooponentTests.swift"
],
"target_dependencies" : [
"Button",
"Segment"
],
"type" : "test"
},
{
"c99name" : "Button",
"module_type" : "SwiftTarget",
"name" : "Button",
"path" : "Sources/Button",
"product_memberships" : [
"Cooponent"
],
"sources" : [
"CustomButton.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.