Build Information
Successful build of Mockingbird with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 36
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/ArgumentCaptor.swift:37:19: warning: generic parameter 'ParameterType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
14 | /// print(nameCaptor.value) // Prints "Ryan"
15 | /// ```
16 | public class ArgumentCaptor<ParameterType>: ArgumentMatcher {
| `- note: 'ParameterType' previously declared here
17 | final class WeakBox<A: AnyObject> {
18 | weak var value: A?
:
35 |
36 | /// Creates an argument matcher that can be passed to a mockable declaration.
37 | public func any<ParameterType: NSObjectProtocol>() -> ParameterType {
| `- warning: generic parameter 'ParameterType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
38 | return createTypeFacade(self)
39 | }
[40/88] Compiling Mockingbird CollectionMatchers.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdCommon/Version.swift:4:12: warning: let 'mockingbirdVersion' is not concurrency-safe because non-'Sendable' type 'Version' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// The current version of Mockingbird.
4 | public let mockingbirdVersion = Version(shortString: "0.20.0")
| |- warning: let 'mockingbirdVersion' is not concurrency-safe because non-'Sendable' type 'Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mockingbirdVersion' 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
5 |
6 | /// A comparable semantic version.
7 | public struct Version: Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
8 | public let semver: [Int]
9 | public var shortString: String { return semver.map({ "\($0)" }).joined(separator: ".") }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/ArgumentCaptor.swift:32:19: warning: generic parameter 'ParameterType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
14 | /// print(nameCaptor.value) // Prints "Ryan"
15 | /// ```
16 | public class ArgumentCaptor<ParameterType>: ArgumentMatcher {
| `- note: 'ParameterType' previously declared here
17 | final class WeakBox<A: AnyObject> {
18 | weak var value: A?
:
30 | /// Creates an argument matcher that can be passed to a mockable declaration.
31 | // The generic constraint shadows the class constraint so the ObjC overload is picked up.
32 | public func any<ParameterType>() -> ParameterType {
| `- warning: generic parameter 'ParameterType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
33 | return createTypeFacade(self)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/ArgumentCaptor.swift:37:19: warning: generic parameter 'ParameterType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
14 | /// print(nameCaptor.value) // Prints "Ryan"
15 | /// ```
16 | public class ArgumentCaptor<ParameterType>: ArgumentMatcher {
| `- note: 'ParameterType' previously declared here
17 | final class WeakBox<A: AnyObject> {
18 | weak var value: A?
:
35 |
36 | /// Creates an argument matcher that can be passed to a mockable declaration.
37 | public func any<ParameterType: NSObjectProtocol>() -> ParameterType {
| `- warning: generic parameter 'ParameterType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
38 | return createTypeFacade(self)
39 | }
[41/88] Compiling Mockingbird CountMatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdCommon/Version.swift:4:12: warning: let 'mockingbirdVersion' is not concurrency-safe because non-'Sendable' type 'Version' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// The current version of Mockingbird.
4 | public let mockingbirdVersion = Version(shortString: "0.20.0")
| |- warning: let 'mockingbirdVersion' is not concurrency-safe because non-'Sendable' type 'Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mockingbirdVersion' 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
5 |
6 | /// A comparable semantic version.
7 | public struct Version: Comparable, CustomStringConvertible {
| `- note: consider making struct 'Version' conform to the 'Sendable' protocol
8 | public let semver: [Int]
9 | public var shortString: String { return semver.map({ "\($0)" }).joined(separator: ".") }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/ArgumentCaptor.swift:32:19: warning: generic parameter 'ParameterType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
14 | /// print(nameCaptor.value) // Prints "Ryan"
15 | /// ```
16 | public class ArgumentCaptor<ParameterType>: ArgumentMatcher {
| `- note: 'ParameterType' previously declared here
17 | final class WeakBox<A: AnyObject> {
18 | weak var value: A?
:
30 | /// Creates an argument matcher that can be passed to a mockable declaration.
31 | // The generic constraint shadows the class constraint so the ObjC overload is picked up.
32 | public func any<ParameterType>() -> ParameterType {
| `- warning: generic parameter 'ParameterType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
33 | return createTypeFacade(self)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/ArgumentCaptor.swift:37:19: warning: generic parameter 'ParameterType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
14 | /// print(nameCaptor.value) // Prints "Ryan"
15 | /// ```
16 | public class ArgumentCaptor<ParameterType>: ArgumentMatcher {
| `- note: 'ParameterType' previously declared here
17 | final class WeakBox<A: AnyObject> {
18 | weak var value: A?
:
35 |
36 | /// Creates an argument matcher that can be passed to a mockable declaration.
37 | public func any<ParameterType: NSObjectProtocol>() -> ParameterType {
| `- warning: generic parameter 'ParameterType' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
38 | return createTypeFacade(self)
39 | }
[42/88] Compiling Mockingbird DynamicCast.swift
[43/88] Compiling Mockingbird MockingbirdBridge.swift
[44/88] Compiling Mockingbird ObjCTypeEncodings.swift
[45/88] Compiling Mockingbird Optional+Extensions.swift
[46/88] Compiling Mockingbird SourceLocation.swift
[47/88] Compiling Mockingbird StackTrace.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:12:14: warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| `- warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | private(set) weak var parent: ExpectationGroup?
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
:
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| |- note: annotate 'contextKey' 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
13 |
14 | private(set) weak var parent: ExpectationGroup?
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:24:9: warning: stored property 'sourceLocation' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'SourceLocation'; this is an error in the Swift 6 language mode
22 | struct Failure: Error {
23 | let error: TestFailure
24 | let sourceLocation: SourceLocation
| `- warning: stored property 'sourceLocation' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'SourceLocation'; this is an error in the Swift 6 language mode
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Utilities/SourceLocation.swift:4:15: note: consider making struct 'SourceLocation' conform to the 'Sendable' protocol
2 |
3 | /// References a line of code in a file.
4 | public struct SourceLocation {
| `- note: consider making struct 'SourceLocation' conform to the 'Sendable' protocol
5 | let file: StaticString
6 | let line: UInt
[48/88] Compiling Mockingbird String+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:12:14: warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| `- warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | private(set) weak var parent: ExpectationGroup?
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
:
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| |- note: annotate 'contextKey' 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
13 |
14 | private(set) weak var parent: ExpectationGroup?
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:24:9: warning: stored property 'sourceLocation' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'SourceLocation'; this is an error in the Swift 6 language mode
22 | struct Failure: Error {
23 | let error: TestFailure
24 | let sourceLocation: SourceLocation
| `- warning: stored property 'sourceLocation' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'SourceLocation'; this is an error in the Swift 6 language mode
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Utilities/SourceLocation.swift:4:15: note: consider making struct 'SourceLocation' conform to the 'Sendable' protocol
2 |
3 | /// References a line of code in a file.
4 | public struct SourceLocation {
| `- note: consider making struct 'SourceLocation' conform to the 'Sendable' protocol
5 | let file: StaticString
6 | let line: UInt
[49/88] Compiling Mockingbird AsyncVerification.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:12:14: warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| `- warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | private(set) weak var parent: ExpectationGroup?
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
:
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| |- note: annotate 'contextKey' 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
13 |
14 | private(set) weak var parent: ExpectationGroup?
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:24:9: warning: stored property 'sourceLocation' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'SourceLocation'; this is an error in the Swift 6 language mode
22 | struct Failure: Error {
23 | let error: TestFailure
24 | let sourceLocation: SourceLocation
| `- warning: stored property 'sourceLocation' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'SourceLocation'; this is an error in the Swift 6 language mode
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Utilities/SourceLocation.swift:4:15: note: consider making struct 'SourceLocation' conform to the 'Sendable' protocol
2 |
3 | /// References a line of code in a file.
4 | public struct SourceLocation {
| `- note: consider making struct 'SourceLocation' conform to the 'Sendable' protocol
5 | let file: StaticString
6 | let line: UInt
[50/88] Compiling Mockingbird ExpectationGroup.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:12:14: warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| `- warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | private(set) weak var parent: ExpectationGroup?
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
:
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| |- note: annotate 'contextKey' 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
13 |
14 | private(set) weak var parent: ExpectationGroup?
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:24:9: warning: stored property 'sourceLocation' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'SourceLocation'; this is an error in the Swift 6 language mode
22 | struct Failure: Error {
23 | let error: TestFailure
24 | let sourceLocation: SourceLocation
| `- warning: stored property 'sourceLocation' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'SourceLocation'; this is an error in the Swift 6 language mode
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Utilities/SourceLocation.swift:4:15: note: consider making struct 'SourceLocation' conform to the 'Sendable' protocol
2 |
3 | /// References a line of code in a file.
4 | public struct SourceLocation {
| `- note: consider making struct 'SourceLocation' conform to the 'Sendable' protocol
5 | let file: StaticString
6 | let line: UInt
[51/88] Compiling Mockingbird Invocation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:12:14: warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| `- warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | private(set) weak var parent: ExpectationGroup?
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
:
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| |- note: annotate 'contextKey' 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
13 |
14 | private(set) weak var parent: ExpectationGroup?
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:24:9: warning: stored property 'sourceLocation' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'SourceLocation'; this is an error in the Swift 6 language mode
22 | struct Failure: Error {
23 | let error: TestFailure
24 | let sourceLocation: SourceLocation
| `- warning: stored property 'sourceLocation' of 'Sendable'-conforming struct 'Failure' has non-sendable type 'SourceLocation'; this is an error in the Swift 6 language mode
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Utilities/SourceLocation.swift:4:15: note: consider making struct 'SourceLocation' conform to the 'Sendable' protocol
2 |
3 | /// References a line of code in a file.
4 | public struct SourceLocation {
| `- note: consider making struct 'SourceLocation' conform to the 'Sendable' protocol
5 | let file: StaticString
6 | let line: UInt
[52/88] Compiling Mockingbird ValueProvider+Foundation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:13:14: warning: static property 'primitivesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | /// https://developer.apple.com/documentation/foundation/numbers_data_and_basic_values
13 | static let primitivesProvider = ValueProvider(values: [
| |- warning: static property 'primitivesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primitivesProvider' 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
14 | ObjectIdentifier(Void.self): (),
15 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:47:13: warning: let 'basicsProviderCGValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | #if canImport(CoreGraphics)
47 | private let basicsProviderCGValues = [
| |- warning: let 'basicsProviderCGValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basicsProviderCGValues' 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
48 | ObjectIdentifier(CGFloat.self): CGFloat(),
49 | ObjectIdentifier(CGPoint.self): CGPoint(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:60:14: warning: static property 'basicsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
58 | ///
59 | /// https://developer.apple.com/documentation/foundation/numbers_data_and_basic_values
60 | static let basicsProvider = ValueProvider(
| |- warning: static property 'basicsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basicsProvider' 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
61 | values: [
62 | ObjectIdentifier(Data.self): Data(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:73:13: warning: let 'stringsProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | #if canImport(ObjectiveC)
73 | private let stringsProviderNSValues = [
| |- warning: let 'stringsProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsProviderNSValues' 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
74 | ObjectIdentifier(NSAttributedString.self): NSAttributedString(),
75 | ObjectIdentifier(NSMutableAttributedString.self): NSMutableAttributedString(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:84:14: warning: static property 'stringsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
82 | ///
83 | /// https://developer.apple.com/documentation/foundation/strings_and_text
84 | static let stringsProvider = ValueProvider(values: [
| |- warning: static property 'stringsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsProvider' 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
85 | ObjectIdentifier(String.self): String(),
86 | ObjectIdentifier(Character.self): "",
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:92:13: warning: let 'datesProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | #if canImport(ObjectiveC)
92 | private let datesProviderNSValues = [
| |- warning: let 'datesProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'datesProviderNSValues' 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
93 | ObjectIdentifier(NSDate.self): NSDate(),
94 | ] as [ObjectIdentifier: Any]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:102:14: warning: static property 'datesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
100 | ///
101 | /// https://developer.apple.com/documentation/foundation/dates_and_times
102 | static let datesProvider = ValueProvider(values: [
| |- warning: static property 'datesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'datesProvider' 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
103 | ObjectIdentifier(Date.self): Date(),
104 | ObjectIdentifier(TimeInterval.self): TimeInterval(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:74:14: warning: static property 'baseValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
72 |
73 | /// Enables all mocks to handle methods that return `Void`.
74 | static let baseValues: [ObjectIdentifier: Any] = [ObjectIdentifier(Void.self): ()]
| |- warning: static property 'baseValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'baseValues' 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
75 |
76 | init(values: [ObjectIdentifier: Any] = [:], identifiers: Set<String> = []) {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:247:21: warning: static property 'standardProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
:
245 |
246 | /// All preset value providers.
247 | public static let standardProvider = ValueProvider() +
| |- warning: static property 'standardProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardProvider' 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
248 | .collectionsProvider +
249 | .primitivesProvider +
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Collections.swift:32:14: warning: static property 'collectionsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
30 | ///
31 | /// https://developer.apple.com/documentation/foundation/collections
32 | static let collectionsProvider = ValueProvider(
| |- warning: static property 'collectionsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'collectionsProvider' 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
33 | values: collectionsProviderNSValues,
34 | identifiers: [
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
[53/88] Compiling Mockingbird ValueProvider+Tuples.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:13:14: warning: static property 'primitivesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | /// https://developer.apple.com/documentation/foundation/numbers_data_and_basic_values
13 | static let primitivesProvider = ValueProvider(values: [
| |- warning: static property 'primitivesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primitivesProvider' 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
14 | ObjectIdentifier(Void.self): (),
15 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:47:13: warning: let 'basicsProviderCGValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | #if canImport(CoreGraphics)
47 | private let basicsProviderCGValues = [
| |- warning: let 'basicsProviderCGValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basicsProviderCGValues' 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
48 | ObjectIdentifier(CGFloat.self): CGFloat(),
49 | ObjectIdentifier(CGPoint.self): CGPoint(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:60:14: warning: static property 'basicsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
58 | ///
59 | /// https://developer.apple.com/documentation/foundation/numbers_data_and_basic_values
60 | static let basicsProvider = ValueProvider(
| |- warning: static property 'basicsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basicsProvider' 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
61 | values: [
62 | ObjectIdentifier(Data.self): Data(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:73:13: warning: let 'stringsProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | #if canImport(ObjectiveC)
73 | private let stringsProviderNSValues = [
| |- warning: let 'stringsProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsProviderNSValues' 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
74 | ObjectIdentifier(NSAttributedString.self): NSAttributedString(),
75 | ObjectIdentifier(NSMutableAttributedString.self): NSMutableAttributedString(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:84:14: warning: static property 'stringsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
82 | ///
83 | /// https://developer.apple.com/documentation/foundation/strings_and_text
84 | static let stringsProvider = ValueProvider(values: [
| |- warning: static property 'stringsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsProvider' 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
85 | ObjectIdentifier(String.self): String(),
86 | ObjectIdentifier(Character.self): "",
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:92:13: warning: let 'datesProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | #if canImport(ObjectiveC)
92 | private let datesProviderNSValues = [
| |- warning: let 'datesProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'datesProviderNSValues' 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
93 | ObjectIdentifier(NSDate.self): NSDate(),
94 | ] as [ObjectIdentifier: Any]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:102:14: warning: static property 'datesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
100 | ///
101 | /// https://developer.apple.com/documentation/foundation/dates_and_times
102 | static let datesProvider = ValueProvider(values: [
| |- warning: static property 'datesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'datesProvider' 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
103 | ObjectIdentifier(Date.self): Date(),
104 | ObjectIdentifier(TimeInterval.self): TimeInterval(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:74:14: warning: static property 'baseValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
72 |
73 | /// Enables all mocks to handle methods that return `Void`.
74 | static let baseValues: [ObjectIdentifier: Any] = [ObjectIdentifier(Void.self): ()]
| |- warning: static property 'baseValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'baseValues' 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
75 |
76 | init(values: [ObjectIdentifier: Any] = [:], identifiers: Set<String> = []) {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:247:21: warning: static property 'standardProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
:
245 |
246 | /// All preset value providers.
247 | public static let standardProvider = ValueProvider() +
| |- warning: static property 'standardProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardProvider' 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
248 | .collectionsProvider +
249 | .primitivesProvider +
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Collections.swift:32:14: warning: static property 'collectionsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
30 | ///
31 | /// https://developer.apple.com/documentation/foundation/collections
32 | static let collectionsProvider = ValueProvider(
| |- warning: static property 'collectionsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'collectionsProvider' 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
33 | values: collectionsProviderNSValues,
34 | identifiers: [
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
[54/88] Compiling Mockingbird ValueProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:13:14: warning: static property 'primitivesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | /// https://developer.apple.com/documentation/foundation/numbers_data_and_basic_values
13 | static let primitivesProvider = ValueProvider(values: [
| |- warning: static property 'primitivesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primitivesProvider' 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
14 | ObjectIdentifier(Void.self): (),
15 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:47:13: warning: let 'basicsProviderCGValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | #if canImport(CoreGraphics)
47 | private let basicsProviderCGValues = [
| |- warning: let 'basicsProviderCGValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basicsProviderCGValues' 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
48 | ObjectIdentifier(CGFloat.self): CGFloat(),
49 | ObjectIdentifier(CGPoint.self): CGPoint(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:60:14: warning: static property 'basicsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
58 | ///
59 | /// https://developer.apple.com/documentation/foundation/numbers_data_and_basic_values
60 | static let basicsProvider = ValueProvider(
| |- warning: static property 'basicsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basicsProvider' 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
61 | values: [
62 | ObjectIdentifier(Data.self): Data(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:73:13: warning: let 'stringsProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | #if canImport(ObjectiveC)
73 | private let stringsProviderNSValues = [
| |- warning: let 'stringsProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsProviderNSValues' 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
74 | ObjectIdentifier(NSAttributedString.self): NSAttributedString(),
75 | ObjectIdentifier(NSMutableAttributedString.self): NSMutableAttributedString(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:84:14: warning: static property 'stringsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
82 | ///
83 | /// https://developer.apple.com/documentation/foundation/strings_and_text
84 | static let stringsProvider = ValueProvider(values: [
| |- warning: static property 'stringsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsProvider' 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
85 | ObjectIdentifier(String.self): String(),
86 | ObjectIdentifier(Character.self): "",
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:92:13: warning: let 'datesProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | #if canImport(ObjectiveC)
92 | private let datesProviderNSValues = [
| |- warning: let 'datesProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'datesProviderNSValues' 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
93 | ObjectIdentifier(NSDate.self): NSDate(),
94 | ] as [ObjectIdentifier: Any]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:102:14: warning: static property 'datesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
100 | ///
101 | /// https://developer.apple.com/documentation/foundation/dates_and_times
102 | static let datesProvider = ValueProvider(values: [
| |- warning: static property 'datesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'datesProvider' 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
103 | ObjectIdentifier(Date.self): Date(),
104 | ObjectIdentifier(TimeInterval.self): TimeInterval(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:74:14: warning: static property 'baseValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
72 |
73 | /// Enables all mocks to handle methods that return `Void`.
74 | static let baseValues: [ObjectIdentifier: Any] = [ObjectIdentifier(Void.self): ()]
| |- warning: static property 'baseValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'baseValues' 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
75 |
76 | init(values: [ObjectIdentifier: Any] = [:], identifiers: Set<String> = []) {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:247:21: warning: static property 'standardProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
:
245 |
246 | /// All preset value providers.
247 | public static let standardProvider = ValueProvider() +
| |- warning: static property 'standardProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardProvider' 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
248 | .collectionsProvider +
249 | .primitivesProvider +
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Collections.swift:32:14: warning: static property 'collectionsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
30 | ///
31 | /// https://developer.apple.com/documentation/foundation/collections
32 | static let collectionsProvider = ValueProvider(
| |- warning: static property 'collectionsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'collectionsProvider' 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
33 | values: collectionsProviderNSValues,
34 | identifiers: [
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
[55/88] Compiling Mockingbird Array+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:13:14: warning: static property 'primitivesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | /// https://developer.apple.com/documentation/foundation/numbers_data_and_basic_values
13 | static let primitivesProvider = ValueProvider(values: [
| |- warning: static property 'primitivesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primitivesProvider' 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
14 | ObjectIdentifier(Void.self): (),
15 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:47:13: warning: let 'basicsProviderCGValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | #if canImport(CoreGraphics)
47 | private let basicsProviderCGValues = [
| |- warning: let 'basicsProviderCGValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basicsProviderCGValues' 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
48 | ObjectIdentifier(CGFloat.self): CGFloat(),
49 | ObjectIdentifier(CGPoint.self): CGPoint(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:60:14: warning: static property 'basicsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
58 | ///
59 | /// https://developer.apple.com/documentation/foundation/numbers_data_and_basic_values
60 | static let basicsProvider = ValueProvider(
| |- warning: static property 'basicsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basicsProvider' 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
61 | values: [
62 | ObjectIdentifier(Data.self): Data(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:73:13: warning: let 'stringsProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | #if canImport(ObjectiveC)
73 | private let stringsProviderNSValues = [
| |- warning: let 'stringsProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsProviderNSValues' 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
74 | ObjectIdentifier(NSAttributedString.self): NSAttributedString(),
75 | ObjectIdentifier(NSMutableAttributedString.self): NSMutableAttributedString(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:84:14: warning: static property 'stringsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
82 | ///
83 | /// https://developer.apple.com/documentation/foundation/strings_and_text
84 | static let stringsProvider = ValueProvider(values: [
| |- warning: static property 'stringsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsProvider' 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
85 | ObjectIdentifier(String.self): String(),
86 | ObjectIdentifier(Character.self): "",
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:92:13: warning: let 'datesProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | #if canImport(ObjectiveC)
92 | private let datesProviderNSValues = [
| |- warning: let 'datesProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'datesProviderNSValues' 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
93 | ObjectIdentifier(NSDate.self): NSDate(),
94 | ] as [ObjectIdentifier: Any]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:102:14: warning: static property 'datesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
100 | ///
101 | /// https://developer.apple.com/documentation/foundation/dates_and_times
102 | static let datesProvider = ValueProvider(values: [
| |- warning: static property 'datesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'datesProvider' 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
103 | ObjectIdentifier(Date.self): Date(),
104 | ObjectIdentifier(TimeInterval.self): TimeInterval(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:74:14: warning: static property 'baseValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
72 |
73 | /// Enables all mocks to handle methods that return `Void`.
74 | static let baseValues: [ObjectIdentifier: Any] = [ObjectIdentifier(Void.self): ()]
| |- warning: static property 'baseValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'baseValues' 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
75 |
76 | init(values: [ObjectIdentifier: Any] = [:], identifiers: Set<String> = []) {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:247:21: warning: static property 'standardProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
:
245 |
246 | /// All preset value providers.
247 | public static let standardProvider = ValueProvider() +
| |- warning: static property 'standardProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardProvider' 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
248 | .collectionsProvider +
249 | .primitivesProvider +
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Collections.swift:32:14: warning: static property 'collectionsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
30 | ///
31 | /// https://developer.apple.com/documentation/foundation/collections
32 | static let collectionsProvider = ValueProvider(
| |- warning: static property 'collectionsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'collectionsProvider' 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
33 | values: collectionsProviderNSValues,
34 | identifiers: [
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
[56/88] Compiling Mockingbird CwlDemangle.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:13:14: warning: static property 'primitivesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | /// https://developer.apple.com/documentation/foundation/numbers_data_and_basic_values
13 | static let primitivesProvider = ValueProvider(values: [
| |- warning: static property 'primitivesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primitivesProvider' 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
14 | ObjectIdentifier(Void.self): (),
15 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:47:13: warning: let 'basicsProviderCGValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | #if canImport(CoreGraphics)
47 | private let basicsProviderCGValues = [
| |- warning: let 'basicsProviderCGValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basicsProviderCGValues' 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
48 | ObjectIdentifier(CGFloat.self): CGFloat(),
49 | ObjectIdentifier(CGPoint.self): CGPoint(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:60:14: warning: static property 'basicsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
58 | ///
59 | /// https://developer.apple.com/documentation/foundation/numbers_data_and_basic_values
60 | static let basicsProvider = ValueProvider(
| |- warning: static property 'basicsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basicsProvider' 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
61 | values: [
62 | ObjectIdentifier(Data.self): Data(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:73:13: warning: let 'stringsProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
71 |
72 | #if canImport(ObjectiveC)
73 | private let stringsProviderNSValues = [
| |- warning: let 'stringsProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsProviderNSValues' 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
74 | ObjectIdentifier(NSAttributedString.self): NSAttributedString(),
75 | ObjectIdentifier(NSMutableAttributedString.self): NSMutableAttributedString(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:84:14: warning: static property 'stringsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
82 | ///
83 | /// https://developer.apple.com/documentation/foundation/strings_and_text
84 | static let stringsProvider = ValueProvider(values: [
| |- warning: static property 'stringsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsProvider' 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
85 | ObjectIdentifier(String.self): String(),
86 | ObjectIdentifier(Character.self): "",
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:92:13: warning: let 'datesProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | #if canImport(ObjectiveC)
92 | private let datesProviderNSValues = [
| |- warning: let 'datesProviderNSValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'datesProviderNSValues' 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
93 | ObjectIdentifier(NSDate.self): NSDate(),
94 | ] as [ObjectIdentifier: Any]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift:102:14: warning: static property 'datesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
100 | ///
101 | /// https://developer.apple.com/documentation/foundation/dates_and_times
102 | static let datesProvider = ValueProvider(values: [
| |- warning: static property 'datesProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'datesProvider' 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
103 | ObjectIdentifier(Date.self): Date(),
104 | ObjectIdentifier(TimeInterval.self): TimeInterval(),
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:74:14: warning: static property 'baseValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
72 |
73 | /// Enables all mocks to handle methods that return `Void`.
74 | static let baseValues: [ObjectIdentifier: Any] = [ObjectIdentifier(Void.self): ()]
| |- warning: static property 'baseValues' is not concurrency-safe because non-'Sendable' type '[ObjectIdentifier : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'baseValues' 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
75 |
76 | init(values: [ObjectIdentifier: Any] = [:], identifiers: Set<String> = []) {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:247:21: warning: static property 'standardProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
:
245 |
246 | /// All preset value providers.
247 | public static let standardProvider = ValueProvider() +
| |- warning: static property 'standardProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardProvider' 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
248 | .collectionsProvider +
249 | .primitivesProvider +
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider+Collections.swift:32:14: warning: static property 'collectionsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
30 | ///
31 | /// https://developer.apple.com/documentation/foundation/collections
32 | static let collectionsProvider = ValueProvider(
| |- warning: static property 'collectionsProvider' is not concurrency-safe because non-'Sendable' type 'ValueProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'collectionsProvider' 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
33 | values: collectionsProviderNSValues,
34 | identifiers: [
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Stubbing/ValueProvider.swift:69:15: note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
67 | /// print(bird.name) // Prints "Ryan"
68 | /// ```
69 | public struct ValueProvider {
| `- note: consider making struct 'ValueProvider' conform to the 'Sendable' protocol
70 | var storedValues = [ObjectIdentifier: Any]()
71 | var enabledIdentifiers = Set<String>()
[57/88] Compiling Mockingbird MonotonicIncreasingIndex.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/MonotonicIncreasingIndex.swift:3:13: warning: let 'index' is not concurrency-safe because non-'Sendable' type 'Synchronized<UInt>' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | private let index = Synchronized<UInt>(0)
| |- warning: let 'index' is not concurrency-safe because non-'Sendable' type 'Synchronized<UInt>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'index' 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
4 |
5 | enum MonotonicIncreasingIndex {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdCommon/Synchronized.swift:4:14: note: generic class 'Synchronized' does not conform to the 'Sendable' protocol
2 |
3 | /// A simple wrapper for thread-safe data access.
4 | public class Synchronized<T> {
| `- note: generic class 'Synchronized' does not conform to the 'Sendable' protocol
5 | private let queue = DispatchQueue(label: "co.bird.mockingbird.synchronized",
6 | attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:85:21: warning: static property 'noInvocationsBefore' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
83 | /// }
84 | /// ```
85 | public static let noInvocationsBefore = OrderedVerificationOptions(rawValue: 1 << 0)
| |- warning: static property 'noInvocationsBefore' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noInvocationsBefore' 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
86 |
87 | /// Check that there are no recorded invocations after those explicitly verified in the block.
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:108:21: warning: static property 'noInvocationsAfter' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
106 | /// }
107 | /// ```
108 | public static let noInvocationsAfter = OrderedVerificationOptions(rawValue: 1 << 1)
| |- warning: static property 'noInvocationsAfter' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noInvocationsAfter' 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
109 |
110 | /// Check that there are no recorded invocations between those explicitly verified in the block.
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:131:21: warning: static property 'onlyConsecutiveInvocations' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
129 | /// }
130 | /// ```
131 | public static let onlyConsecutiveInvocations = OrderedVerificationOptions(rawValue: 1 << 2)
| |- warning: static property 'onlyConsecutiveInvocations' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onlyConsecutiveInvocations' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:12:14: warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| `- warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | private(set) weak var parent: ExpectationGroup?
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
:
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| |- note: annotate 'contextKey' 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
13 |
14 | private(set) weak var parent: ExpectationGroup?
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CountMatcher'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CountMatcher'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/CountMatcher.swift:4:15: note: consider making struct 'CountMatcher' conform to the 'Sendable' protocol
2 |
3 | /// Checks whether a number matches some expected count.
4 | public struct CountMatcher {
| `- note: consider making struct 'CountMatcher' conform to the 'Sendable' protocol
5 | let matcher: (Int) -> Bool
6 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:12:8: warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
10 | allInvocations: [Invocation] // All captured invocations matching the selector.
11 | )
12 | case unexpectedInvocations(
| `- warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
13 | baseInvocation: Invocation,
14 | unexpectedInvocations: [Invocation],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:12:8: warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
10 | allInvocations: [Invocation] // All captured invocations matching the selector.
11 | )
12 | case unexpectedInvocations(
| `- warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
13 | baseInvocation: Invocation,
14 | unexpectedInvocations: [Invocation],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:17:8: warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CapturedExpectation'; this is an error in the Swift 6 language mode
15 | priorToBase: Bool // Whether the unexpected invocations happened before the base invocation.
16 | )
17 | case unsatisfiableExpectations(
| `- warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CapturedExpectation'; this is an error in the Swift 6 language mode
18 | capturedExpectations: [CapturedExpectation],
19 | allInvocations: [Invocation]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:4:8: note: consider making struct 'CapturedExpectation' conform to the 'Sendable' protocol
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
4 | struct CapturedExpectation {
| `- note: consider making struct 'CapturedExpectation' conform to the 'Sendable' protocol
5 | let mockingContext: MockingContext
6 | let invocation: Invocation
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:17:8: warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
15 | priorToBase: Bool // Whether the unexpected invocations happened before the base invocation.
16 | )
17 | case unsatisfiableExpectations(
| `- warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
18 | capturedExpectations: [CapturedExpectation],
19 | allInvocations: [Invocation]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:21:8: warning: associated value 'missingStubbedImplementation(invocation:stubbedSelectorNames:stackTrace:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
19 | allInvocations: [Invocation]
20 | )
21 | case missingStubbedImplementation(
| `- warning: associated value 'missingStubbedImplementation(invocation:stubbedSelectorNames:stackTrace:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
22 | invocation: Invocation,
23 | stubbedSelectorNames: [String],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:27:8: warning: associated value 'missingExplicitArgumentPosition(matcher:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'ArgumentMatcher'; this is an error in the Swift 6 language mode
25 | )
26 | case unmockableExpression
27 | case missingExplicitArgumentPosition(
| `- warning: associated value 'missingExplicitArgumentPosition(matcher:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'ArgumentMatcher'; this is an error in the Swift 6 language mode
28 | matcher: ArgumentMatcher?
29 | )
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/ArgumentMatcher.swift:4:40: note: class 'ArgumentMatcher' does not conform to the 'Sendable' protocol
2 |
3 | /// Matches argument values with a comparator.
4 | @objc(MKBArgumentMatcher) public class ArgumentMatcher: NSObject {
| `- note: class 'ArgumentMatcher' does not conform to the 'Sendable' protocol
5 | /// Necessary for custom comparators such as `any()` that only work on the lhs.
6 | enum Priority: UInt {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/XCTFailSwizzler.swift:57:13: warning: var 'testFailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
55 | }
56 |
57 | private var testFailer: TestFailer = StandardTestFailer()
| |- warning: var 'testFailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testFailer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testFailer' 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
58 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/XCTFailSwizzler.swift:23:31: warning: sending 'testFailer' risks causing data races; this is an error in the Swift 6 language mode
21 | testFailer = newTestFailer
22 | } else {
23 | DispatchQueue.main.sync { testFailer = newTestFailer }
| |- warning: sending 'testFailer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'testFailer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
24 | }
25 | }
[58/88] Compiling Mockingbird OrderedVerification.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/MonotonicIncreasingIndex.swift:3:13: warning: let 'index' is not concurrency-safe because non-'Sendable' type 'Synchronized<UInt>' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | private let index = Synchronized<UInt>(0)
| |- warning: let 'index' is not concurrency-safe because non-'Sendable' type 'Synchronized<UInt>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'index' 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
4 |
5 | enum MonotonicIncreasingIndex {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdCommon/Synchronized.swift:4:14: note: generic class 'Synchronized' does not conform to the 'Sendable' protocol
2 |
3 | /// A simple wrapper for thread-safe data access.
4 | public class Synchronized<T> {
| `- note: generic class 'Synchronized' does not conform to the 'Sendable' protocol
5 | private let queue = DispatchQueue(label: "co.bird.mockingbird.synchronized",
6 | attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:85:21: warning: static property 'noInvocationsBefore' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
83 | /// }
84 | /// ```
85 | public static let noInvocationsBefore = OrderedVerificationOptions(rawValue: 1 << 0)
| |- warning: static property 'noInvocationsBefore' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noInvocationsBefore' 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
86 |
87 | /// Check that there are no recorded invocations after those explicitly verified in the block.
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:108:21: warning: static property 'noInvocationsAfter' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
106 | /// }
107 | /// ```
108 | public static let noInvocationsAfter = OrderedVerificationOptions(rawValue: 1 << 1)
| |- warning: static property 'noInvocationsAfter' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noInvocationsAfter' 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
109 |
110 | /// Check that there are no recorded invocations between those explicitly verified in the block.
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:131:21: warning: static property 'onlyConsecutiveInvocations' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
129 | /// }
130 | /// ```
131 | public static let onlyConsecutiveInvocations = OrderedVerificationOptions(rawValue: 1 << 2)
| |- warning: static property 'onlyConsecutiveInvocations' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onlyConsecutiveInvocations' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:12:14: warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| `- warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | private(set) weak var parent: ExpectationGroup?
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
:
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| |- note: annotate 'contextKey' 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
13 |
14 | private(set) weak var parent: ExpectationGroup?
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CountMatcher'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CountMatcher'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/CountMatcher.swift:4:15: note: consider making struct 'CountMatcher' conform to the 'Sendable' protocol
2 |
3 | /// Checks whether a number matches some expected count.
4 | public struct CountMatcher {
| `- note: consider making struct 'CountMatcher' conform to the 'Sendable' protocol
5 | let matcher: (Int) -> Bool
6 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:12:8: warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
10 | allInvocations: [Invocation] // All captured invocations matching the selector.
11 | )
12 | case unexpectedInvocations(
| `- warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
13 | baseInvocation: Invocation,
14 | unexpectedInvocations: [Invocation],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:12:8: warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
10 | allInvocations: [Invocation] // All captured invocations matching the selector.
11 | )
12 | case unexpectedInvocations(
| `- warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
13 | baseInvocation: Invocation,
14 | unexpectedInvocations: [Invocation],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:17:8: warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CapturedExpectation'; this is an error in the Swift 6 language mode
15 | priorToBase: Bool // Whether the unexpected invocations happened before the base invocation.
16 | )
17 | case unsatisfiableExpectations(
| `- warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CapturedExpectation'; this is an error in the Swift 6 language mode
18 | capturedExpectations: [CapturedExpectation],
19 | allInvocations: [Invocation]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:4:8: note: consider making struct 'CapturedExpectation' conform to the 'Sendable' protocol
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
4 | struct CapturedExpectation {
| `- note: consider making struct 'CapturedExpectation' conform to the 'Sendable' protocol
5 | let mockingContext: MockingContext
6 | let invocation: Invocation
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:17:8: warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
15 | priorToBase: Bool // Whether the unexpected invocations happened before the base invocation.
16 | )
17 | case unsatisfiableExpectations(
| `- warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
18 | capturedExpectations: [CapturedExpectation],
19 | allInvocations: [Invocation]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:21:8: warning: associated value 'missingStubbedImplementation(invocation:stubbedSelectorNames:stackTrace:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
19 | allInvocations: [Invocation]
20 | )
21 | case missingStubbedImplementation(
| `- warning: associated value 'missingStubbedImplementation(invocation:stubbedSelectorNames:stackTrace:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
22 | invocation: Invocation,
23 | stubbedSelectorNames: [String],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:27:8: warning: associated value 'missingExplicitArgumentPosition(matcher:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'ArgumentMatcher'; this is an error in the Swift 6 language mode
25 | )
26 | case unmockableExpression
27 | case missingExplicitArgumentPosition(
| `- warning: associated value 'missingExplicitArgumentPosition(matcher:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'ArgumentMatcher'; this is an error in the Swift 6 language mode
28 | matcher: ArgumentMatcher?
29 | )
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/ArgumentMatcher.swift:4:40: note: class 'ArgumentMatcher' does not conform to the 'Sendable' protocol
2 |
3 | /// Matches argument values with a comparator.
4 | @objc(MKBArgumentMatcher) public class ArgumentMatcher: NSObject {
| `- note: class 'ArgumentMatcher' does not conform to the 'Sendable' protocol
5 | /// Necessary for custom comparators such as `any()` that only work on the lhs.
6 | enum Priority: UInt {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/XCTFailSwizzler.swift:57:13: warning: var 'testFailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
55 | }
56 |
57 | private var testFailer: TestFailer = StandardTestFailer()
| |- warning: var 'testFailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testFailer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testFailer' 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
58 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/XCTFailSwizzler.swift:23:31: warning: sending 'testFailer' risks causing data races; this is an error in the Swift 6 language mode
21 | testFailer = newTestFailer
22 | } else {
23 | DispatchQueue.main.sync { testFailer = newTestFailer }
| |- warning: sending 'testFailer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'testFailer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
24 | }
25 | }
[59/88] Compiling Mockingbird TestFailure.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/MonotonicIncreasingIndex.swift:3:13: warning: let 'index' is not concurrency-safe because non-'Sendable' type 'Synchronized<UInt>' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | private let index = Synchronized<UInt>(0)
| |- warning: let 'index' is not concurrency-safe because non-'Sendable' type 'Synchronized<UInt>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'index' 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
4 |
5 | enum MonotonicIncreasingIndex {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdCommon/Synchronized.swift:4:14: note: generic class 'Synchronized' does not conform to the 'Sendable' protocol
2 |
3 | /// A simple wrapper for thread-safe data access.
4 | public class Synchronized<T> {
| `- note: generic class 'Synchronized' does not conform to the 'Sendable' protocol
5 | private let queue = DispatchQueue(label: "co.bird.mockingbird.synchronized",
6 | attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:85:21: warning: static property 'noInvocationsBefore' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
83 | /// }
84 | /// ```
85 | public static let noInvocationsBefore = OrderedVerificationOptions(rawValue: 1 << 0)
| |- warning: static property 'noInvocationsBefore' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noInvocationsBefore' 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
86 |
87 | /// Check that there are no recorded invocations after those explicitly verified in the block.
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:108:21: warning: static property 'noInvocationsAfter' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
106 | /// }
107 | /// ```
108 | public static let noInvocationsAfter = OrderedVerificationOptions(rawValue: 1 << 1)
| |- warning: static property 'noInvocationsAfter' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noInvocationsAfter' 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
109 |
110 | /// Check that there are no recorded invocations between those explicitly verified in the block.
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:131:21: warning: static property 'onlyConsecutiveInvocations' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
129 | /// }
130 | /// ```
131 | public static let onlyConsecutiveInvocations = OrderedVerificationOptions(rawValue: 1 << 2)
| |- warning: static property 'onlyConsecutiveInvocations' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onlyConsecutiveInvocations' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:12:14: warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| `- warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | private(set) weak var parent: ExpectationGroup?
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
:
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| |- note: annotate 'contextKey' 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
13 |
14 | private(set) weak var parent: ExpectationGroup?
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CountMatcher'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CountMatcher'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/CountMatcher.swift:4:15: note: consider making struct 'CountMatcher' conform to the 'Sendable' protocol
2 |
3 | /// Checks whether a number matches some expected count.
4 | public struct CountMatcher {
| `- note: consider making struct 'CountMatcher' conform to the 'Sendable' protocol
5 | let matcher: (Int) -> Bool
6 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:12:8: warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
10 | allInvocations: [Invocation] // All captured invocations matching the selector.
11 | )
12 | case unexpectedInvocations(
| `- warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
13 | baseInvocation: Invocation,
14 | unexpectedInvocations: [Invocation],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:12:8: warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
10 | allInvocations: [Invocation] // All captured invocations matching the selector.
11 | )
12 | case unexpectedInvocations(
| `- warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
13 | baseInvocation: Invocation,
14 | unexpectedInvocations: [Invocation],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:17:8: warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CapturedExpectation'; this is an error in the Swift 6 language mode
15 | priorToBase: Bool // Whether the unexpected invocations happened before the base invocation.
16 | )
17 | case unsatisfiableExpectations(
| `- warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CapturedExpectation'; this is an error in the Swift 6 language mode
18 | capturedExpectations: [CapturedExpectation],
19 | allInvocations: [Invocation]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:4:8: note: consider making struct 'CapturedExpectation' conform to the 'Sendable' protocol
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
4 | struct CapturedExpectation {
| `- note: consider making struct 'CapturedExpectation' conform to the 'Sendable' protocol
5 | let mockingContext: MockingContext
6 | let invocation: Invocation
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:17:8: warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
15 | priorToBase: Bool // Whether the unexpected invocations happened before the base invocation.
16 | )
17 | case unsatisfiableExpectations(
| `- warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
18 | capturedExpectations: [CapturedExpectation],
19 | allInvocations: [Invocation]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:21:8: warning: associated value 'missingStubbedImplementation(invocation:stubbedSelectorNames:stackTrace:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
19 | allInvocations: [Invocation]
20 | )
21 | case missingStubbedImplementation(
| `- warning: associated value 'missingStubbedImplementation(invocation:stubbedSelectorNames:stackTrace:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
22 | invocation: Invocation,
23 | stubbedSelectorNames: [String],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:27:8: warning: associated value 'missingExplicitArgumentPosition(matcher:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'ArgumentMatcher'; this is an error in the Swift 6 language mode
25 | )
26 | case unmockableExpression
27 | case missingExplicitArgumentPosition(
| `- warning: associated value 'missingExplicitArgumentPosition(matcher:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'ArgumentMatcher'; this is an error in the Swift 6 language mode
28 | matcher: ArgumentMatcher?
29 | )
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/ArgumentMatcher.swift:4:40: note: class 'ArgumentMatcher' does not conform to the 'Sendable' protocol
2 |
3 | /// Matches argument values with a comparator.
4 | @objc(MKBArgumentMatcher) public class ArgumentMatcher: NSObject {
| `- note: class 'ArgumentMatcher' does not conform to the 'Sendable' protocol
5 | /// Necessary for custom comparators such as `any()` that only work on the lhs.
6 | enum Priority: UInt {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/XCTFailSwizzler.swift:57:13: warning: var 'testFailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
55 | }
56 |
57 | private var testFailer: TestFailer = StandardTestFailer()
| |- warning: var 'testFailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testFailer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testFailer' 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
58 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/XCTFailSwizzler.swift:23:31: warning: sending 'testFailer' risks causing data races; this is an error in the Swift 6 language mode
21 | testFailer = newTestFailer
22 | } else {
23 | DispatchQueue.main.sync { testFailer = newTestFailer }
| |- warning: sending 'testFailer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'testFailer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
24 | }
25 | }
[60/88] Compiling Mockingbird Verification.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/MonotonicIncreasingIndex.swift:3:13: warning: let 'index' is not concurrency-safe because non-'Sendable' type 'Synchronized<UInt>' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | private let index = Synchronized<UInt>(0)
| |- warning: let 'index' is not concurrency-safe because non-'Sendable' type 'Synchronized<UInt>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'index' 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
4 |
5 | enum MonotonicIncreasingIndex {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdCommon/Synchronized.swift:4:14: note: generic class 'Synchronized' does not conform to the 'Sendable' protocol
2 |
3 | /// A simple wrapper for thread-safe data access.
4 | public class Synchronized<T> {
| `- note: generic class 'Synchronized' does not conform to the 'Sendable' protocol
5 | private let queue = DispatchQueue(label: "co.bird.mockingbird.synchronized",
6 | attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:85:21: warning: static property 'noInvocationsBefore' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
83 | /// }
84 | /// ```
85 | public static let noInvocationsBefore = OrderedVerificationOptions(rawValue: 1 << 0)
| |- warning: static property 'noInvocationsBefore' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noInvocationsBefore' 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
86 |
87 | /// Check that there are no recorded invocations after those explicitly verified in the block.
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:108:21: warning: static property 'noInvocationsAfter' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
106 | /// }
107 | /// ```
108 | public static let noInvocationsAfter = OrderedVerificationOptions(rawValue: 1 << 1)
| |- warning: static property 'noInvocationsAfter' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noInvocationsAfter' 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
109 |
110 | /// Check that there are no recorded invocations between those explicitly verified in the block.
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:131:21: warning: static property 'onlyConsecutiveInvocations' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
129 | /// }
130 | /// ```
131 | public static let onlyConsecutiveInvocations = OrderedVerificationOptions(rawValue: 1 << 2)
| |- warning: static property 'onlyConsecutiveInvocations' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onlyConsecutiveInvocations' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:12:14: warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| `- warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | private(set) weak var parent: ExpectationGroup?
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
:
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| |- note: annotate 'contextKey' 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
13 |
14 | private(set) weak var parent: ExpectationGroup?
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CountMatcher'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CountMatcher'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/CountMatcher.swift:4:15: note: consider making struct 'CountMatcher' conform to the 'Sendable' protocol
2 |
3 | /// Checks whether a number matches some expected count.
4 | public struct CountMatcher {
| `- note: consider making struct 'CountMatcher' conform to the 'Sendable' protocol
5 | let matcher: (Int) -> Bool
6 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:12:8: warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
10 | allInvocations: [Invocation] // All captured invocations matching the selector.
11 | )
12 | case unexpectedInvocations(
| `- warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
13 | baseInvocation: Invocation,
14 | unexpectedInvocations: [Invocation],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:12:8: warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
10 | allInvocations: [Invocation] // All captured invocations matching the selector.
11 | )
12 | case unexpectedInvocations(
| `- warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
13 | baseInvocation: Invocation,
14 | unexpectedInvocations: [Invocation],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:17:8: warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CapturedExpectation'; this is an error in the Swift 6 language mode
15 | priorToBase: Bool // Whether the unexpected invocations happened before the base invocation.
16 | )
17 | case unsatisfiableExpectations(
| `- warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CapturedExpectation'; this is an error in the Swift 6 language mode
18 | capturedExpectations: [CapturedExpectation],
19 | allInvocations: [Invocation]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:4:8: note: consider making struct 'CapturedExpectation' conform to the 'Sendable' protocol
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
4 | struct CapturedExpectation {
| `- note: consider making struct 'CapturedExpectation' conform to the 'Sendable' protocol
5 | let mockingContext: MockingContext
6 | let invocation: Invocation
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:17:8: warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
15 | priorToBase: Bool // Whether the unexpected invocations happened before the base invocation.
16 | )
17 | case unsatisfiableExpectations(
| `- warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
18 | capturedExpectations: [CapturedExpectation],
19 | allInvocations: [Invocation]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:21:8: warning: associated value 'missingStubbedImplementation(invocation:stubbedSelectorNames:stackTrace:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
19 | allInvocations: [Invocation]
20 | )
21 | case missingStubbedImplementation(
| `- warning: associated value 'missingStubbedImplementation(invocation:stubbedSelectorNames:stackTrace:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
22 | invocation: Invocation,
23 | stubbedSelectorNames: [String],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:27:8: warning: associated value 'missingExplicitArgumentPosition(matcher:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'ArgumentMatcher'; this is an error in the Swift 6 language mode
25 | )
26 | case unmockableExpression
27 | case missingExplicitArgumentPosition(
| `- warning: associated value 'missingExplicitArgumentPosition(matcher:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'ArgumentMatcher'; this is an error in the Swift 6 language mode
28 | matcher: ArgumentMatcher?
29 | )
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/ArgumentMatcher.swift:4:40: note: class 'ArgumentMatcher' does not conform to the 'Sendable' protocol
2 |
3 | /// Matches argument values with a comparator.
4 | @objc(MKBArgumentMatcher) public class ArgumentMatcher: NSObject {
| `- note: class 'ArgumentMatcher' does not conform to the 'Sendable' protocol
5 | /// Necessary for custom comparators such as `any()` that only work on the lhs.
6 | enum Priority: UInt {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/XCTFailSwizzler.swift:57:13: warning: var 'testFailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
55 | }
56 |
57 | private var testFailer: TestFailer = StandardTestFailer()
| |- warning: var 'testFailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testFailer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testFailer' 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
58 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/XCTFailSwizzler.swift:23:31: warning: sending 'testFailer' risks causing data races; this is an error in the Swift 6 language mode
21 | testFailer = newTestFailer
22 | } else {
23 | DispatchQueue.main.sync { testFailer = newTestFailer }
| |- warning: sending 'testFailer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'testFailer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
24 | }
25 | }
[61/88] Compiling Mockingbird XCTFailSwizzler.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/MonotonicIncreasingIndex.swift:3:13: warning: let 'index' is not concurrency-safe because non-'Sendable' type 'Synchronized<UInt>' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | private let index = Synchronized<UInt>(0)
| |- warning: let 'index' is not concurrency-safe because non-'Sendable' type 'Synchronized<UInt>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'index' 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
4 |
5 | enum MonotonicIncreasingIndex {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdCommon/Synchronized.swift:4:14: note: generic class 'Synchronized' does not conform to the 'Sendable' protocol
2 |
3 | /// A simple wrapper for thread-safe data access.
4 | public class Synchronized<T> {
| `- note: generic class 'Synchronized' does not conform to the 'Sendable' protocol
5 | private let queue = DispatchQueue(label: "co.bird.mockingbird.synchronized",
6 | attributes: .concurrent)
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:85:21: warning: static property 'noInvocationsBefore' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
83 | /// }
84 | /// ```
85 | public static let noInvocationsBefore = OrderedVerificationOptions(rawValue: 1 << 0)
| |- warning: static property 'noInvocationsBefore' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noInvocationsBefore' 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
86 |
87 | /// Check that there are no recorded invocations after those explicitly verified in the block.
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:108:21: warning: static property 'noInvocationsAfter' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
106 | /// }
107 | /// ```
108 | public static let noInvocationsAfter = OrderedVerificationOptions(rawValue: 1 << 1)
| |- warning: static property 'noInvocationsAfter' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noInvocationsAfter' 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
109 |
110 | /// Check that there are no recorded invocations between those explicitly verified in the block.
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/OrderedVerification.swift:131:21: warning: static property 'onlyConsecutiveInvocations' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// Additional options to increase the strictness of `inOrder` verification blocks.
58 | public struct OrderedVerificationOptions: OptionSet {
| `- note: consider making struct 'OrderedVerificationOptions' conform to the 'Sendable' protocol
59 | public let rawValue: Int
60 | public init(rawValue: Int) {
:
129 | /// }
130 | /// ```
131 | public static let onlyConsecutiveInvocations = OrderedVerificationOptions(rawValue: 1 << 2)
| |- warning: static property 'onlyConsecutiveInvocations' is not concurrency-safe because non-'Sendable' type 'OrderedVerificationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'onlyConsecutiveInvocations' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:12:14: warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| `- warning: static property 'contextKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<ExpectationGroup>' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | private(set) weak var parent: ExpectationGroup?
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
:
10 | /// Stores all expectations invoked by verification methods within a scoped context.
11 | class ExpectationGroup {
12 | static let contextKey = DispatchSpecificKey<ExpectationGroup>()
| |- note: annotate 'contextKey' 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
13 |
14 | private(set) weak var parent: ExpectationGroup?
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CountMatcher'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CountMatcher'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/CountMatcher.swift:4:15: note: consider making struct 'CountMatcher' conform to the 'Sendable' protocol
2 |
3 | /// Checks whether a number matches some expected count.
4 | public struct CountMatcher {
| `- note: consider making struct 'CountMatcher' conform to the 'Sendable' protocol
5 | let matcher: (Int) -> Bool
6 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:6:8: warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
4 | /// Internal errors thrown due to a failed test assertion or precondition.
5 | enum TestFailure: Error, CustomStringConvertible {
6 | case incorrectInvocationCount(
| `- warning: associated value 'incorrectInvocationCount(invocationCount:invocation:countMatcher:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
7 | invocationCount: Int,
8 | invocation: Invocation,
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:12:8: warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
10 | allInvocations: [Invocation] // All captured invocations matching the selector.
11 | )
12 | case unexpectedInvocations(
| `- warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
13 | baseInvocation: Invocation,
14 | unexpectedInvocations: [Invocation],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:12:8: warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
10 | allInvocations: [Invocation] // All captured invocations matching the selector.
11 | )
12 | case unexpectedInvocations(
| `- warning: associated value 'unexpectedInvocations(baseInvocation:unexpectedInvocations:priorToBase:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
13 | baseInvocation: Invocation,
14 | unexpectedInvocations: [Invocation],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:17:8: warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CapturedExpectation'; this is an error in the Swift 6 language mode
15 | priorToBase: Bool // Whether the unexpected invocations happened before the base invocation.
16 | )
17 | case unsatisfiableExpectations(
| `- warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'CapturedExpectation'; this is an error in the Swift 6 language mode
18 | capturedExpectations: [CapturedExpectation],
19 | allInvocations: [Invocation]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/ExpectationGroup.swift:4:8: note: consider making struct 'CapturedExpectation' conform to the 'Sendable' protocol
2 |
3 | /// A deferred expectation that can be fulfilled when an invocation arrives later.
4 | struct CapturedExpectation {
| `- note: consider making struct 'CapturedExpectation' conform to the 'Sendable' protocol
5 | let mockingContext: MockingContext
6 | let invocation: Invocation
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:17:8: warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
15 | priorToBase: Bool // Whether the unexpected invocations happened before the base invocation.
16 | )
17 | case unsatisfiableExpectations(
| `- warning: associated value 'unsatisfiableExpectations(capturedExpectations:allInvocations:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
18 | capturedExpectations: [CapturedExpectation],
19 | allInvocations: [Invocation]
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:21:8: warning: associated value 'missingStubbedImplementation(invocation:stubbedSelectorNames:stackTrace:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
19 | allInvocations: [Invocation]
20 | )
21 | case missingStubbedImplementation(
| `- warning: associated value 'missingStubbedImplementation(invocation:stubbedSelectorNames:stackTrace:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'any Invocation'; this is an error in the Swift 6 language mode
22 | invocation: Invocation,
23 | stubbedSelectorNames: [String],
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/Invocation.swift:23:10: note: protocol 'Invocation' does not conform to the 'Sendable' protocol
21 |
22 | /// Mocks create invocations when receiving calls to methods or member methods.
23 | protocol Invocation: CustomStringConvertible {
| `- note: protocol 'Invocation' does not conform to the 'Sendable' protocol
24 | var selectorName: String { get }
25 | var selectorType: SelectorType { get }
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/TestFailure.swift:27:8: warning: associated value 'missingExplicitArgumentPosition(matcher:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'ArgumentMatcher'; this is an error in the Swift 6 language mode
25 | )
26 | case unmockableExpression
27 | case missingExplicitArgumentPosition(
| `- warning: associated value 'missingExplicitArgumentPosition(matcher:)' of 'Sendable'-conforming enum 'TestFailure' has non-sendable type 'ArgumentMatcher'; this is an error in the Swift 6 language mode
28 | matcher: ArgumentMatcher?
29 | )
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Matching/ArgumentMatcher.swift:4:40: note: class 'ArgumentMatcher' does not conform to the 'Sendable' protocol
2 |
3 | /// Matches argument values with a comparator.
4 | @objc(MKBArgumentMatcher) public class ArgumentMatcher: NSObject {
| `- note: class 'ArgumentMatcher' does not conform to the 'Sendable' protocol
5 | /// Necessary for custom comparators such as `any()` that only work on the lhs.
6 | enum Priority: UInt {
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/XCTFailSwizzler.swift:57:13: warning: var 'testFailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
55 | }
56 |
57 | private var testFailer: TestFailer = StandardTestFailer()
| |- warning: var 'testFailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testFailer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testFailer' 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
58 |
/Users/admin/builder/spi-builder-workspace/Sources/MockingbirdFramework/Verification/XCTFailSwizzler.swift:23:31: warning: sending 'testFailer' risks causing data races; this is an error in the Swift 6 language mode
21 | testFailer = newTestFailer
22 | } else {
23 | DispatchQueue.main.sync { testFailer = newTestFailer }
| |- warning: sending 'testFailer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'testFailer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
24 | }
25 | }
[61/88] Compiling MockingbirdObjC MKBClassMock.m
[62/88] Compiling NSInvocation+MKBErrorObjectType.m
[63/88] Compiling MockingbirdObjC MKBProtocolMock.m
[64/88] Compiling MockingbirdObjC MKBProperty.m
[65/88] Compiling MKBUnsignedCharInvocationHandler.m
[66/88] Compiling MKBUnsignedIntInvocationHandler.m
[67/88] Compiling MKBUnsignedLongInvocationHandler.m
[68/88] Compiling MKBUnsignedLongLongInvocationHandler.m
[69/88] Compiling MKBUnsignedShortInvocationHandler.m
[70/88] Compiling MKBStructInvocationHandler.m
[71/88] Compiling MKBPointerInvocationHandler.m
[72/88] Compiling MKBShortInvocationHandler.m
[72/88] Compiling MKBSelectorInvocationHandler.m
[74/88] Compiling MockingbirdObjC MKBConcreteMock.m
[75/88] Compiling MKBLongLongInvocationHandler.m
[76/88] Compiling MKBLongInvocationHandler.m
[77/88] Compiling MKBInvocationHandler.m
[78/88] Compiling MKBInvocationHandlerChain.m
[79/88] Compiling MKBFloatInvocationHandler.m
[80/88] Compiling MKBIntInvocationHandler.m
[81/88] Compiling MKBDoubleInvocationHandler.m
[82/88] Compiling MKBComparator.m
[83/88] Compiling MKBClassInvocationHandler.m
[84/88] Compiling MKBCharInvocationHandler.m
[85/88] Compiling MKBCStringInvocationHandler.m
[86/88] Compiling MKBBoolInvocationHandler.m
[87/88] Compiling MKBObjectInvocationHandler.m
Build complete! (36.23s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Mockingbird",
"name" : "Mockingbird",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "watchos",
"version" : "7.4"
}
],
"products" : [
{
"name" : "Mockingbird",
"targets" : [
"Mockingbird",
"MockingbirdObjC"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MockingbirdObjC",
"module_type" : "ClangTarget",
"name" : "MockingbirdObjC",
"path" : "Sources/MockingbirdFramework/Objective-C",
"product_memberships" : [
"Mockingbird"
],
"sources" : [
"InvocationHandlers/MKBBoolInvocationHandler.m",
"InvocationHandlers/MKBCStringInvocationHandler.m",
"InvocationHandlers/MKBCharInvocationHandler.m",
"InvocationHandlers/MKBClassInvocationHandler.m",
"InvocationHandlers/MKBComparator.m",
"InvocationHandlers/MKBDoubleInvocationHandler.m",
"InvocationHandlers/MKBFloatInvocationHandler.m",
"InvocationHandlers/MKBIntInvocationHandler.m",
"InvocationHandlers/MKBInvocationHandler.m",
"InvocationHandlers/MKBInvocationHandlerChain.m",
"InvocationHandlers/MKBLongInvocationHandler.m",
"InvocationHandlers/MKBLongLongInvocationHandler.m",
"InvocationHandlers/MKBObjectInvocationHandler.m",
"InvocationHandlers/MKBPointerInvocationHandler.m",
"InvocationHandlers/MKBSelectorInvocationHandler.m",
"InvocationHandlers/MKBShortInvocationHandler.m",
"InvocationHandlers/MKBStructInvocationHandler.m",
"InvocationHandlers/MKBUnsignedCharInvocationHandler.m",
"InvocationHandlers/MKBUnsignedIntInvocationHandler.m",
"InvocationHandlers/MKBUnsignedLongInvocationHandler.m",
"InvocationHandlers/MKBUnsignedLongLongInvocationHandler.m",
"InvocationHandlers/MKBUnsignedShortInvocationHandler.m",
"InvocationHandlers/NSInvocation+MKBErrorObjectType.m",
"MKBClassMock.m",
"MKBConcreteMock.m",
"MKBProperty.m",
"MKBProtocolMock.m"
],
"target_dependencies" : [
"Mockingbird",
"MockingbirdBridge"
],
"type" : "library"
},
{
"c99name" : "MockingbirdBridge",
"module_type" : "ClangTarget",
"name" : "MockingbirdBridge",
"path" : "Sources/MockingbirdFramework/Objective-C/Bridge",
"product_memberships" : [
"Mockingbird"
],
"sources" : [
"sources/MKBMocking.m",
"sources/MKBTestExpectation.m",
"sources/MKBTestUtils.m",
"sources/MKBTypeFacade.m"
],
"type" : "library"
},
{
"c99name" : "Mockingbird",
"module_type" : "SwiftTarget",
"name" : "Mockingbird",
"path" : "Sources",
"product_memberships" : [
"Mockingbird"
],
"sources" : [
"MockingbirdCommon/Data+SHA1.swift",
"MockingbirdCommon/ProcessInfo+ControlCodes.swift",
"MockingbirdCommon/String+ControlCodes.swift",
"MockingbirdCommon/String+Interpolation.swift",
"MockingbirdCommon/String+Regex.swift",
"MockingbirdCommon/Synchronized.swift",
"MockingbirdCommon/Version.swift",
"MockingbirdFramework/Matching/ArgumentCaptor.swift",
"MockingbirdFramework/Matching/ArgumentMatcher.swift",
"MockingbirdFramework/Matching/ArgumentPosition.swift",
"MockingbirdFramework/Matching/CollectionMatchers.swift",
"MockingbirdFramework/Matching/CountMatcher.swift",
"MockingbirdFramework/Matching/NonEscapingType.swift",
"MockingbirdFramework/Matching/TypeFacade.swift",
"MockingbirdFramework/Matching/WildcardMatchers.swift",
"MockingbirdFramework/Mocking/Context.swift",
"MockingbirdFramework/Mocking/Declaration.swift",
"MockingbirdFramework/Mocking/GenericStaticMockContext.swift",
"MockingbirdFramework/Mocking/Mock.swift",
"MockingbirdFramework/Mocking/Mocking.swift",
"MockingbirdFramework/Mocking/MockingContext.swift",
"MockingbirdFramework/Stubbing/DefaultValues.swift",
"MockingbirdFramework/Stubbing/DynamicStubbingManager.swift",
"MockingbirdFramework/Stubbing/ImplementationProvider.swift",
"MockingbirdFramework/Stubbing/InvocationForwarding.swift",
"MockingbirdFramework/Stubbing/InvocationRecorder.swift",
"MockingbirdFramework/Stubbing/PropertyProviders.swift",
"MockingbirdFramework/Stubbing/ProxyContext.swift",
"MockingbirdFramework/Stubbing/SequenceProviders.swift",
"MockingbirdFramework/Stubbing/Stubbing+ObjC.swift",
"MockingbirdFramework/Stubbing/Stubbing.swift",
"MockingbirdFramework/Stubbing/StubbingContext+ObjC.swift",
"MockingbirdFramework/Stubbing/StubbingContext.swift",
"MockingbirdFramework/Stubbing/ValueProvider+Collections.swift",
"MockingbirdFramework/Stubbing/ValueProvider+Foundation.swift",
"MockingbirdFramework/Stubbing/ValueProvider+Tuples.swift",
"MockingbirdFramework/Stubbing/ValueProvider.swift",
"MockingbirdFramework/Utilities/Array+Extensions.swift",
"MockingbirdFramework/Utilities/CwlDemangle.swift",
"MockingbirdFramework/Utilities/DynamicCast.swift",
"MockingbirdFramework/Utilities/MockingbirdBridge.swift",
"MockingbirdFramework/Utilities/ObjCTypeEncodings.swift",
"MockingbirdFramework/Utilities/Optional+Extensions.swift",
"MockingbirdFramework/Utilities/SourceLocation.swift",
"MockingbirdFramework/Utilities/StackTrace.swift",
"MockingbirdFramework/Utilities/String+Extensions.swift",
"MockingbirdFramework/Verification/AsyncVerification.swift",
"MockingbirdFramework/Verification/ExpectationGroup.swift",
"MockingbirdFramework/Verification/Invocation.swift",
"MockingbirdFramework/Verification/MonotonicIncreasingIndex.swift",
"MockingbirdFramework/Verification/OrderedVerification.swift",
"MockingbirdFramework/Verification/TestFailure.swift",
"MockingbirdFramework/Verification/Verification.swift",
"MockingbirdFramework/Verification/XCTFailSwizzler.swift"
],
"target_dependencies" : [
"MockingbirdBridge"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.