Build Information
Successful build of Stitch, reference v1.0.0 (e26561
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 02:43:26 UTC.
Swift 6 data race errors: 3
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/entrhq/stitch.git
Reference: v1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/entrhq/stitch
* tag v1.0.0 -> FETCH_HEAD
HEAD is now at e26561e Updated readme with examples
Cloned https://github.com/entrhq/stitch.git
Revision (git rev-parse @):
e26561e44eafa1f951d7568100c6bb1b817e275c
SUCCESS checkout https://github.com/entrhq/stitch.git at v1.0.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": "stitch",
"name": "Stitch",
"url": "https://github.com/entrhq/stitch.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/stitch",
"dependencies": [
]
}
]
}
Fetching https://github.com/entrhq/stitch.git
[1/190] Fetching stitch
Fetched https://github.com/entrhq/stitch.git from cache (0.76s)
Creating working copy for https://github.com/entrhq/stitch.git
Working copy of https://github.com/entrhq/stitch.git resolved at v1.0.0 (e26561e)
warning: '.resolve-product-dependencies': dependency 'stitch' 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/entrhq/stitch.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/12] Compiling Stitch StitchObservable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Injection/StitchObservable.swift:32:24: warning: capture of 'self' with non-sendable type 'StitchObservable<Dependency>.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | public struct StitchObservable<Dependency>: DynamicProperty, DependencyLifecycleScope {
20 | @dynamicMemberLookup
21 | public struct Wrapper {
| `- note: consider making struct 'Wrapper' conform to the 'Sendable' protocol
22 | private var wrapped: StitchObservable
23 |
:
30 | ) -> Binding<Subject> {
31 | Binding(
32 | get: { self.wrapped.wrappedValue[keyPath: keyPath] },
| `- warning: capture of 'self' with non-sendable type 'StitchObservable<Dependency>.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | set: { self.wrapped.wrappedValue[keyPath: keyPath] = $0 }
34 | )
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Injection/StitchObservable.swift:32:59: warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<Dependency, Subject>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | ) -> Binding<Subject> {
31 | Binding(
32 | get: { self.wrapped.wrappedValue[keyPath: keyPath] },
| `- warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<Dependency, Subject>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | set: { self.wrapped.wrappedValue[keyPath: keyPath] = $0 }
34 | )
Swift.ReferenceWritableKeyPath:1:14: note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class ReferenceWritableKeyPath<Root, Value> : WritableKeyPath<Root, Value> {
| `- note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Injection/StitchObservable.swift:32:37: warning: main actor-isolated property 'wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | ) -> Binding<Subject> {
31 | Binding(
32 | get: { self.wrapped.wrappedValue[keyPath: keyPath] },
| `- warning: main actor-isolated property 'wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | set: { self.wrapped.wrappedValue[keyPath: keyPath] = $0 }
34 | )
:
37 |
38 | private let keyPath: WritableKeyPath<DependencyMap, Dependency>
39 | public var wrappedValue: Dependency {
| `- note: property declared here
40 | get { resolve(keyPath) }
41 | set {
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Injection/StitchObservable.swift:33:24: warning: capture of 'self' with non-sendable type 'StitchObservable<Dependency>.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | public struct StitchObservable<Dependency>: DynamicProperty, DependencyLifecycleScope {
20 | @dynamicMemberLookup
21 | public struct Wrapper {
| `- note: consider making struct 'Wrapper' conform to the 'Sendable' protocol
22 | private var wrapped: StitchObservable
23 |
:
31 | Binding(
32 | get: { self.wrapped.wrappedValue[keyPath: keyPath] },
33 | set: { self.wrapped.wrappedValue[keyPath: keyPath] = $0 }
| `- warning: capture of 'self' with non-sendable type 'StitchObservable<Dependency>.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | )
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Injection/StitchObservable.swift:33:59: warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<Dependency, Subject>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | Binding(
32 | get: { self.wrapped.wrappedValue[keyPath: keyPath] },
33 | set: { self.wrapped.wrappedValue[keyPath: keyPath] = $0 }
| `- warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<Dependency, Subject>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | )
35 | }
Swift.ReferenceWritableKeyPath:1:14: note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class ReferenceWritableKeyPath<Root, Value> : WritableKeyPath<Root, Value> {
| `- note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Injection/StitchObservable.swift:33:37: warning: main actor-isolated property 'wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
31 | Binding(
32 | get: { self.wrapped.wrappedValue[keyPath: keyPath] },
33 | set: { self.wrapped.wrappedValue[keyPath: keyPath] = $0 }
| `- warning: main actor-isolated property 'wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 | )
35 | }
:
37 |
38 | private let keyPath: WritableKeyPath<DependencyMap, Dependency>
39 | public var wrappedValue: Dependency {
| `- note: property declared here
40 | get { resolve(keyPath) }
41 | set {
[4/12] Compiling Stitch Preconditions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Foundation/Preconditions.swift:33:23: warning: static property 'closure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// Wrapper closure for executing swift's default precondition whilst providing
32 | /// the ability to swap out at run time for testing.
33 | public static var closure: (Bool, String, StaticString, UInt) -> Void = defaultPreconditionClosure
| |- warning: static property 'closure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'closure' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'closure' 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
34 | public static let defaultPreconditionClosure = {Swift.precondition($0, $1, file: $2, line: $3)}
35 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Foundation/Preconditions.swift:34:23: warning: static property 'defaultPreconditionClosure' is not concurrency-safe because non-'Sendable' type '(Bool, String, StaticString, UInt) -> ()' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// the ability to swap out at run time for testing.
33 | public static var closure: (Bool, String, StaticString, UInt) -> Void = defaultPreconditionClosure
34 | public static let defaultPreconditionClosure = {Swift.precondition($0, $1, file: $2, line: $3)}
| |- warning: static property 'defaultPreconditionClosure' is not concurrency-safe because non-'Sendable' type '(Bool, String, StaticString, UInt) -> ()' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultPreconditionClosure' 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
35 | }
36 |
[5/12] Compiling Stitch Stitch.swift
[6/12] Compiling Stitch AnyObservableObject.swift
[7/12] Compiling Stitch ErasedObservableObject.swift
[8/12] Compiling Stitch DependencyKey.swift
[9/12] Compiling Stitch DependencyMap.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Dependencies/DependencyMap.swift:55:25: warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
53 | ///
54 | public class DependencyMap: DependencyLifecycleScope {
55 | internal static var map = DependencyMap()
| |- warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'map' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'map' 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
56 | }
57 |
[10/12] Emitting module Stitch
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Dependencies/DependencyMap.swift:55:25: warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
53 | ///
54 | public class DependencyMap: DependencyLifecycleScope {
55 | internal static var map = DependencyMap()
| |- warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'map' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'map' 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
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Foundation/Preconditions.swift:33:23: warning: static property 'closure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | /// Wrapper closure for executing swift's default precondition whilst providing
32 | /// the ability to swap out at run time for testing.
33 | public static var closure: (Bool, String, StaticString, UInt) -> Void = defaultPreconditionClosure
| |- warning: static property 'closure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'closure' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'closure' 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
34 | public static let defaultPreconditionClosure = {Swift.precondition($0, $1, file: $2, line: $3)}
35 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Foundation/Preconditions.swift:34:23: warning: static property 'defaultPreconditionClosure' is not concurrency-safe because non-'Sendable' type '(Bool, String, StaticString, UInt) -> ()' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// the ability to swap out at run time for testing.
33 | public static var closure: (Bool, String, StaticString, UInt) -> Void = defaultPreconditionClosure
34 | public static let defaultPreconditionClosure = {Swift.precondition($0, $1, file: $2, line: $3)}
| |- warning: static property 'defaultPreconditionClosure' is not concurrency-safe because non-'Sendable' type '(Bool, String, StaticString, UInt) -> ()' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultPreconditionClosure' 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
35 | }
36 |
[11/12] Compiling Stitch DependencyMocker.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Dependencies/DependencyMap.swift:55:25: warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
53 | ///
54 | public class DependencyMap: DependencyLifecycleScope {
55 | internal static var map = DependencyMap()
| |- warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'map' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'map' 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
56 | }
57 |
[12/12] Compiling Stitch DependencyLifecycleScope.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stitch/Dependencies/DependencyMap.swift:55:25: warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
53 | ///
54 | public class DependencyMap: DependencyLifecycleScope {
55 | internal static var map = DependencyMap()
| |- warning: static property 'map' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'map' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'map' 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
56 | }
57 |
[13/13] Compiling Stitch StitchPublished.swift
Build complete! (16.47s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Stitch",
"name" : "Stitch",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "Stitch",
"targets" : [
"Stitch"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "StitchTests",
"module_type" : "SwiftTarget",
"name" : "StitchTests",
"path" : "Tests/StitchTests",
"sources" : [
"Mocks/TestObject.swift",
"Mocks/TestObservableObject.swift",
"Tests/StitchNonObservablePreconditionPropertyWrapperTest.swift",
"Tests/StitchObservablePropertyWrapperTest.swift",
"Tests/StitchPropertyWrapperTest.swift",
"Tests/StitchPublishedPropertyWrapperTests.swift",
"Utility/Publisher+sinkToExpectation.swift",
"Utility/XCTestCase+expectingPreconditionFailure.swift"
],
"target_dependencies" : [
"Stitch"
],
"type" : "test"
},
{
"c99name" : "Stitch",
"module_type" : "SwiftTarget",
"name" : "Stitch",
"path" : "Sources/Stitch",
"product_memberships" : [
"Stitch"
],
"sources" : [
"Dependencies/DependencyKey.swift",
"Dependencies/DependencyLifecycleScope.swift",
"Dependencies/DependencyMap.swift",
"Dependencies/DependencyMocker.swift",
"Foundation/Observables/AnyObservableObject.swift",
"Foundation/Observables/ErasedObservableObject.swift",
"Foundation/Preconditions.swift",
"Injection/Stitch.swift",
"Injection/StitchObservable.swift",
"Injection/StitchPublished.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.