Build Information
Successful build of CustomTabView, reference v1.1.0 (622dfe
), with Swift 6.0 for macOS (SPM) on 19 Jan 2025 18:21:16 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/NicFontana/SwiftUI-CustomTabView.git
Reference: v1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/NicFontana/SwiftUI-CustomTabView
* tag v1.1.0 -> FETCH_HEAD
HEAD is now at 622dfef Merge pull request #7 from NicFontana/feat/support-ios-18-swiftui-containers
Cloned https://github.com/NicFontana/SwiftUI-CustomTabView.git
Revision (git rev-parse @):
622dfef343c3840a6c0545e61576ba3fa4424b66
SUCCESS checkout https://github.com/NicFontana/SwiftUI-CustomTabView.git at v1.1.0
========================================
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": "swiftui-customtabview",
"name": "CustomTabView",
"url": "https://github.com/NicFontana/SwiftUI-CustomTabView.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUI-CustomTabView",
"dependencies": [
]
}
]
}
Fetching https://github.com/NicFontana/SwiftUI-CustomTabView.git
[1/127] Fetching swiftui-customtabview
Fetched https://github.com/NicFontana/SwiftUI-CustomTabView.git from cache (1.10s)
Creating working copy for https://github.com/NicFontana/SwiftUI-CustomTabView.git
Working copy of https://github.com/NicFontana/SwiftUI-CustomTabView.git resolved at v1.1.0 (622dfef)
warning: '.resolve-product-dependencies': dependency 'swiftui-customtabview' 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/NicFontana/SwiftUI-CustomTabView.git
https://github.com/NicFontana/SwiftUI-CustomTabView.git
{
"dependencies" : [
],
"manifest_display_name" : "CustomTabView",
"name" : "CustomTabView",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "CustomTabView",
"targets" : [
"CustomTabView"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CustomTabViewTests",
"module_type" : "SwiftTarget",
"name" : "CustomTabViewTests",
"path" : "Tests/CustomTabViewTests",
"sources" : [
"CustomTabViewTests.swift"
],
"target_dependencies" : [
"CustomTabView"
],
"type" : "test"
},
{
"c99name" : "CustomTabView",
"module_type" : "SwiftTarget",
"name" : "CustomTabView",
"path" : "Sources/CustomTabView",
"product_memberships" : [
"CustomTabView"
],
"sources" : [
"CustomTabView.swift",
"EnvironmentValues+TabBarPosition.swift",
"Example/BottomFloatingTabBarView.swift",
"Example/ExampleView.swift",
"Example/Tab.swift",
"Example/TopIndicatorTabBarView.swift",
"iOS/KeyboardReadable.swift",
"iOS/UITabBarControllerRepresentable.swift",
"macOS/NSTabBarControllerRepresentable.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/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/12] Compiling CustomTabView UITabBarControllerRepresentable.swift
[4/12] Compiling CustomTabView KeyboardReadable.swift
[5/12] Compiling CustomTabView Tab.swift
[6/12] Compiling CustomTabView BottomFloatingTabBarView.swift
[7/12] Compiling CustomTabView TopIndicatorTabBarView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomTabView/Example/TopIndicatorTabBarView.swift:83: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
81 |
82 | struct SizePreferenceKey: PreferenceKey {
83 | 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
84 | static func reduce(value: inout CGSize, nextValue: () -> CGSize) {}
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/CustomTabView/Example/TopIndicatorTabBarView.swift:95:62: warning: passing non-sendable parameter 'onChange' to function expecting a @Sendable closure
86 |
87 | extension View {
88 | func readSize(onChange: @escaping (CGSize) -> Void) -> some View {
| `- note: parameter 'onChange' is implicitly non-sendable
89 | background(
90 | GeometryReader { geometryProxy in
:
93 | }
94 | )
95 | .onPreferenceChange(SizePreferenceKey.self, perform: onChange)
| `- warning: passing non-sendable parameter 'onChange' to function expecting a @Sendable closure
96 | }
97 | }
[8/12] Compiling CustomTabView CustomTabView.swift
[9/12] Emitting module CustomTabView
/Users/admin/builder/spi-builder-workspace/Sources/CustomTabView/EnvironmentValues+TabBarPosition.swift:24:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'TabBarPosition' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An enumaration that is used to set the tab bar view position.
11 | public enum TabBarPosition {
| `- note: consider making enum 'TabBarPosition' conform to the 'Sendable' protocol
12 | /// Puts the tab bar next to the content, at one edge of the scene.
13 | ///
:
22 |
23 | private struct TabBarPositionEnvironmentKey: EnvironmentKey {
24 | static let defaultValue: TabBarPosition = .edge(.bottom)
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'TabBarPosition' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/CustomTabView/Example/TopIndicatorTabBarView.swift:83: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
81 |
82 | struct SizePreferenceKey: PreferenceKey {
83 | 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
84 | static func reduce(value: inout CGSize, nextValue: () -> CGSize) {}
85 | }
[10/12] Compiling CustomTabView ExampleView.swift
[11/12] Compiling CustomTabView EnvironmentValues+TabBarPosition.swift
/Users/admin/builder/spi-builder-workspace/Sources/CustomTabView/EnvironmentValues+TabBarPosition.swift:24:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'TabBarPosition' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An enumaration that is used to set the tab bar view position.
11 | public enum TabBarPosition {
| `- note: consider making enum 'TabBarPosition' conform to the 'Sendable' protocol
12 | /// Puts the tab bar next to the content, at one edge of the scene.
13 | ///
:
22 |
23 | private struct TabBarPositionEnvironmentKey: EnvironmentKey {
24 | static let defaultValue: TabBarPosition = .edge(.bottom)
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'TabBarPosition' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
25 | }
26 |
[12/12] Compiling CustomTabView NSTabBarControllerRepresentable.swift
Build complete! (17.04s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CustomTabView",
"name" : "CustomTabView",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "CustomTabView",
"targets" : [
"CustomTabView"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CustomTabViewTests",
"module_type" : "SwiftTarget",
"name" : "CustomTabViewTests",
"path" : "Tests/CustomTabViewTests",
"sources" : [
"CustomTabViewTests.swift"
],
"target_dependencies" : [
"CustomTabView"
],
"type" : "test"
},
{
"c99name" : "CustomTabView",
"module_type" : "SwiftTarget",
"name" : "CustomTabView",
"path" : "Sources/CustomTabView",
"product_memberships" : [
"CustomTabView"
],
"sources" : [
"CustomTabView.swift",
"EnvironmentValues+TabBarPosition.swift",
"Example/BottomFloatingTabBarView.swift",
"Example/ExampleView.swift",
"Example/Tab.swift",
"Example/TopIndicatorTabBarView.swift",
"iOS/KeyboardReadable.swift",
"iOS/UITabBarControllerRepresentable.swift",
"macOS/NSTabBarControllerRepresentable.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.