Build Information
Successful build of ShopIt, reference 0.1.1 (3e985a
), with Swift 6.1 for macOS (SPM) on 1 May 2025 02:04:08 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/enebin/ShopIt.git
Reference: 0.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/enebin/ShopIt
* tag 0.1.1 -> FETCH_HEAD
HEAD is now at 3e985a4 Merge branch 'develop'
Cloned https://github.com/enebin/ShopIt.git
Revision (git rev-parse @):
3e985a4b4fbb9649478686c40d298a79ee9e0683
SUCCESS checkout https://github.com/enebin/ShopIt.git at 0.1.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": "shopit",
"name": "ShopIt",
"url": "https://github.com/enebin/ShopIt.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ShopIt",
"dependencies": [
]
}
]
}
Fetching https://github.com/enebin/ShopIt.git
[4/192] Fetching shopit
Fetched https://github.com/enebin/ShopIt.git from cache (0.90s)
Creating working copy for https://github.com/enebin/ShopIt.git
Working copy of https://github.com/enebin/ShopIt.git resolved at 0.1.1 (3e985a4)
warning: '.resolve-product-dependencies': dependency 'shopit' 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/enebin/ShopIt.git
https://github.com/enebin/ShopIt.git
{
"dependencies" : [
],
"manifest_display_name" : "ShopIt",
"name" : "ShopIt",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "ShopIt",
"targets" : [
"ShopIt"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ShopItTests",
"module_type" : "SwiftTarget",
"name" : "ShopItTests",
"path" : "Tests/ShopItTests",
"sources" : [
"RedirectorTests.swift",
"ShopItTests.swift"
],
"target_dependencies" : [
"ShopIt"
],
"type" : "test"
},
{
"c99name" : "ShopIt",
"module_type" : "SwiftTarget",
"name" : "ShopIt",
"path" : "Sources/ShopIt",
"product_memberships" : [
"ShopIt"
],
"sources" : [
"Model/QueryableURL.swift",
"Redirector/Redirectable + Preset.swift",
"Redirector/Redirectable.swift",
"Redirector/ShopitRedirector + EnvironmentKey.swift",
"Redirector/ShopitRedirector + RedirectPriority.swift",
"Redirector/ShopitRedirector.swift",
"ShopItError.swift",
"SwiftUI/RedirectButton.swift",
"Util/Array + Extension.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
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/12] Compiling ShopIt ShopitRedirector + RedirectPriority.swift
[4/12] Compiling ShopIt ShopItError.swift
[5/12] Compiling ShopIt Array + Extension.swift
[6/12] Compiling ShopIt RedirectButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/ShopIt/SwiftUI/RedirectButton.swift:35:46: warning: sending 'self.redirection' risks causing data races; this is an error in the Swift 6 language mode
33 | Task {
34 | do {
35 | try await redirector.redirect(keyword: keyword, to: redirection)
| |- warning: sending 'self.redirection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.redirection' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
36 | } catch {
37 | print("🚨 [ShopIt] Error occurs: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/ShopIt/SwiftUI/RedirectButton.swift:35:46: warning: sending 'self.redirector' risks causing data races; this is an error in the Swift 6 language mode
33 | Task {
34 | do {
35 | try await redirector.redirect(keyword: keyword, to: redirection)
| |- warning: sending 'self.redirector' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.redirector' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
36 | } catch {
37 | print("🚨 [ShopIt] Error occurs: \(error.localizedDescription)")
[7/12] Compiling ShopIt ShopitRedirector.swift
/Users/admin/builder/spi-builder-workspace/Sources/ShopIt/Redirector/ShopitRedirector.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ShopitRedirector' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public final class ShopitRedirector {
| `- note: class 'ShopitRedirector' does not conform to the 'Sendable' protocol
11 | /// Shared singleton instance of `ShopitRedirector`.
12 | /// - Note: When using ShopitRedirector in a SwiftUI environment, consider using `@Environment(\.redirector)`
13 | /// instead of directly referencing this shared instance.
14 | static public let shared = ShopitRedirector()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ShopitRedirector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | public private(set) var openUrlAction: OpenURLAction?
[8/12] Compiling ShopIt Redirectable.swift
[9/12] Compiling ShopIt Redirectable + Preset.swift
[10/12] Compiling ShopIt QueryableURL.swift
[11/12] Emitting module ShopIt
/Users/admin/builder/spi-builder-workspace/Sources/ShopIt/Redirector/ShopitRedirector + EnvironmentKey.swift:10:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ShopitRedirector' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 | private struct RedirectorKey: EnvironmentKey {
10 | static let defaultValue: ShopitRedirector = ShopitRedirector.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ShopitRedirector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Sources/ShopIt/Redirector/ShopitRedirector.swift:10:20: note: class 'ShopitRedirector' does not conform to the 'Sendable' protocol
8 | import SwiftUI
9 |
10 | public final class ShopitRedirector {
| `- note: class 'ShopitRedirector' does not conform to the 'Sendable' protocol
11 | /// Shared singleton instance of `ShopitRedirector`.
12 | /// - Note: When using ShopitRedirector in a SwiftUI environment, consider using `@Environment(\.redirector)`
/Users/admin/builder/spi-builder-workspace/Sources/ShopIt/Redirector/ShopitRedirector.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ShopitRedirector' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public final class ShopitRedirector {
| `- note: class 'ShopitRedirector' does not conform to the 'Sendable' protocol
11 | /// Shared singleton instance of `ShopitRedirector`.
12 | /// - Note: When using ShopitRedirector in a SwiftUI environment, consider using `@Environment(\.redirector)`
13 | /// instead of directly referencing this shared instance.
14 | static public let shared = ShopitRedirector()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ShopitRedirector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | public private(set) var openUrlAction: OpenURLAction?
[12/12] Compiling ShopIt ShopitRedirector + EnvironmentKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/ShopIt/Redirector/ShopitRedirector + EnvironmentKey.swift:10:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ShopitRedirector' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 | private struct RedirectorKey: EnvironmentKey {
10 | static let defaultValue: ShopitRedirector = ShopitRedirector.shared
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ShopitRedirector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Sources/ShopIt/Redirector/ShopitRedirector.swift:10:20: note: class 'ShopitRedirector' does not conform to the 'Sendable' protocol
8 | import SwiftUI
9 |
10 | public final class ShopitRedirector {
| `- note: class 'ShopitRedirector' does not conform to the 'Sendable' protocol
11 | /// Shared singleton instance of `ShopitRedirector`.
12 | /// - Note: When using ShopitRedirector in a SwiftUI environment, consider using `@Environment(\.redirector)`
Build complete! (8.63s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ShopIt",
"name" : "ShopIt",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "ShopIt",
"targets" : [
"ShopIt"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ShopItTests",
"module_type" : "SwiftTarget",
"name" : "ShopItTests",
"path" : "Tests/ShopItTests",
"sources" : [
"RedirectorTests.swift",
"ShopItTests.swift"
],
"target_dependencies" : [
"ShopIt"
],
"type" : "test"
},
{
"c99name" : "ShopIt",
"module_type" : "SwiftTarget",
"name" : "ShopIt",
"path" : "Sources/ShopIt",
"product_memberships" : [
"ShopIt"
],
"sources" : [
"Model/QueryableURL.swift",
"Redirector/Redirectable + Preset.swift",
"Redirector/Redirectable.swift",
"Redirector/ShopitRedirector + EnvironmentKey.swift",
"Redirector/ShopitRedirector + RedirectPriority.swift",
"Redirector/ShopitRedirector.swift",
"ShopItError.swift",
"SwiftUI/RedirectButton.swift",
"Util/Array + Extension.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.