Build Information
Successful build of swift-snapshot-testing, reference 1.18.3 (1be814
), with Swift 6.1 for macOS (SPM) on 1 May 2025 04:47:11 UTC.
Swift 6 data race errors: 13
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
40 |
41 | @_spi(Internals)
42 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__diffTool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Whether or not to record all new references.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:75:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | @_spi(Internals)
75 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__record' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
77 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:542:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
540 | // We need to clean counter between tests executions in order to support test-iterations.
541 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
542 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
543 |
544 | static func registerIfNeeded() {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_plistNullNSString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:103:12: note: class 'NSString' does not conform to the 'Sendable' protocol
101 |
102 |
103 | @interface NSString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
104 |
105 | #pragma mark *** String funnel methods ***
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:321:13: warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
319 | // accurate. With the FileRecording values we keep track of we modify the files so we can adjust
320 | // line numbers.
321 | private var recordings: Recordings = [:]
| |- warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'recordings' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
322 |
323 | // Deprecated after 1.11.1:
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSImage.swift:7:23: warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Diffing<NSImage>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | extension Diffing where Value == NSImage {
6 | /// A pixel-diffing strategy for NSImage's which requires a 100% match.
7 | public static let image = Diffing.image()
| |- warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Diffing<NSImage>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'image' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | /// A pixel-diffing strategy for NSImage that allows customizing how precise the matching must be.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:5:15: note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
3 |
4 | /// The ability to compare `Value`s and convert them to and from `Data`.
5 | public struct Diffing<Value> {
| `- note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
6 | /// Converts a value _to_ data.
7 | public var toData: (Value) -> Data
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:6:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Snapshotting where Value == String, Format == String {
5 | /// A snapshot strategy for comparing strings based on equality.
6 | public static let lines = Snapshotting(pathExtension: "txt", diffing: .lines)
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lines' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:11:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
9 | extension Diffing where Value == String {
10 | /// A line-diffing strategy for UTF-8 text.
11 | public static let lines = Diffing(
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lines' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | toData: { Data($0.utf8) },
13 | fromData: { String(decoding: $0, as: UTF8.self) }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:5:15: note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
3 |
4 | /// The ability to compare `Value`s and convert them to and from `Data`.
5 | public struct Diffing<Value> {
| `- note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
6 | /// Converts a value _to_ data.
7 | public var toData: (Value) -> Data
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:334:16: warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
332 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
333 | static let inputThresholdKey = "thresholdValue"
334 | static let device = MTLCreateSystemDefaultDevice()
| `- warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
335 |
336 | static var isSupported: Bool {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h:434:11: note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
432 | */
433 | API_AVAILABLE(macos(10.11), ios(8.0))
434 | @protocol MTLDevice <NSObject>
| `- note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
435 |
436 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:195:3: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
193 |
194 | #if os(iOS) || os(tvOS) || os(macOS)
195 | import Accelerate.vImage
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
196 | import CoreImage.CIKernel
197 | import MetalPerformanceShaders
:
332 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
333 | static let inputThresholdKey = "thresholdValue"
334 | static let device = MTLCreateSystemDefaultDevice()
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
335 |
336 | static var isSupported: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:23:23: warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// email=blob%40pointfree.co&name=Blob
22 | /// ```
23 | public static let raw = Snapshotting.raw(pretty: false)
| |- warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'raw' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// A snapshot strategy for comparing requests based on raw equality.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:78:23: warning: static property 'curl' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
76 | // "https://www.pointfree.co/subscribe"
77 | // ```
78 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- warning: static property 'curl' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'curl' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 |
80 | var components = ["curl"]
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
[206/246] Compiling SwiftParser Attributes.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[207/246] Compiling SwiftParser Availability.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[208/246] Compiling SwiftParser CharacterInfo.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[209/246] Compiling SwiftParser CollectionNodes+Parsable.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[210/246] Compiling SwiftParser Declarations.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[216/246] Compiling SwiftParser Nominals.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[217/246] Compiling SwiftParser Parameters.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[218/246] Compiling SwiftParser ParseSourceFile.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift:52:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | precision: precision, perceptualPrecision: perceptualPrecision
51 | ).pullback { scene in
52 | let view = SCNView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | view.scene = scene
54 | return view
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:83:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
81 | @interface NSView : NSResponder <NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElement, NSAccessibility>
82 |
83 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift:53:14: warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | ).pullback { scene in
52 | let view = SCNView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
53 | view.scene = scene
| `- warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
54 | return view
55 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h:72:50: note: mutation of this property is only permitted within the actor
70 | @abstract Specifies the scene of the receiver
71 | */
72 | @property(nonatomic, retain, nullable) SCNScene *scene;
| `- note: mutation of this property is only permitted within the actor
73 |
74 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift:52:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | precision: precision, perceptualPrecision: perceptualPrecision
51 | ).pullback { scene in
52 | let view = SKView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | view.presentScene(scene)
54 | return view
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:83:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
81 | @interface NSView : NSResponder <NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElement, NSAccessibility>
82 |
83 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift:53:14: warning: call to main actor-isolated instance method 'presentScene' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | ).pullback { scene in
52 | let view = SKView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
53 | view.presentScene(scene)
| `- warning: call to main actor-isolated instance method 'presentScene' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | return view
55 | }
SpriteKit.SKView.presentScene:2:22: note: calls to instance method 'presentScene' from outside of its actor context are implicitly asynchronous
1 | class SKView {
2 | @MainActor open func presentScene(_ scene: SKScene?)}
| |- note: calls to instance method 'presentScene' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:6:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Snapshotting where Value == String, Format == String {
5 | /// A snapshot strategy for comparing strings based on equality.
6 | public static let lines = Snapshotting(pathExtension: "txt", diffing: .lines)
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lines' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:11:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
9 | extension Diffing where Value == String {
10 | /// A line-diffing strategy for UTF-8 text.
11 | public static let lines = Diffing(
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lines' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | toData: { Data($0.utf8) },
13 | fromData: { String(decoding: $0, as: UTF8.self) }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:5:15: note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
3 |
4 | /// The ability to compare `Value`s and convert them to and from `Data`.
5 | public struct Diffing<Value> {
| `- note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
6 | /// Converts a value _to_ data.
7 | public var toData: (Value) -> Data
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift:52:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | precision: precision, perceptualPrecision: perceptualPrecision
51 | ).pullback { scene in
52 | let view = SCNView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | view.scene = scene
54 | return view
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:83:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
81 | @interface NSView : NSResponder <NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElement, NSAccessibility>
82 |
83 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift:53:14: warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | ).pullback { scene in
52 | let view = SCNView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
53 | view.scene = scene
| `- warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
54 | return view
55 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h:72:50: note: mutation of this property is only permitted within the actor
70 | @abstract Specifies the scene of the receiver
71 | */
72 | @property(nonatomic, retain, nullable) SCNScene *scene;
| `- note: mutation of this property is only permitted within the actor
73 |
74 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift:52:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | precision: precision, perceptualPrecision: perceptualPrecision
51 | ).pullback { scene in
52 | let view = SKView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | view.presentScene(scene)
54 | return view
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:83:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
81 | @interface NSView : NSResponder <NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElement, NSAccessibility>
82 |
83 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift:53:14: warning: call to main actor-isolated instance method 'presentScene' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | ).pullback { scene in
52 | let view = SKView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
53 | view.presentScene(scene)
| `- warning: call to main actor-isolated instance method 'presentScene' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | return view
55 | }
SpriteKit.SKView.presentScene:2:22: note: calls to instance method 'presentScene' from outside of its actor context are implicitly asynchronous
1 | class SKView {
2 | @MainActor open func presentScene(_ scene: SKScene?)}
| |- note: calls to instance method 'presentScene' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:6:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Snapshotting where Value == String, Format == String {
5 | /// A snapshot strategy for comparing strings based on equality.
6 | public static let lines = Snapshotting(pathExtension: "txt", diffing: .lines)
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lines' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:11:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
9 | extension Diffing where Value == String {
10 | /// A line-diffing strategy for UTF-8 text.
11 | public static let lines = Diffing(
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lines' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | toData: { Data($0.utf8) },
13 | fromData: { String(decoding: $0, as: UTF8.self) }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:5:15: note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
3 |
4 | /// The ability to compare `Value`s and convert them to and from `Data`.
5 | public struct Diffing<Value> {
| `- note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
6 | /// Converts a value _to_ data.
7 | public var toData: (Value) -> Data
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift:52:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | precision: precision, perceptualPrecision: perceptualPrecision
51 | ).pullback { scene in
52 | let view = SCNView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | view.scene = scene
54 | return view
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:83:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
81 | @interface NSView : NSResponder <NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElement, NSAccessibility>
82 |
83 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift:53:14: warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | ).pullback { scene in
52 | let view = SCNView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
53 | view.scene = scene
| `- warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
54 | return view
55 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h:72:50: note: mutation of this property is only permitted within the actor
70 | @abstract Specifies the scene of the receiver
71 | */
72 | @property(nonatomic, retain, nullable) SCNScene *scene;
| `- note: mutation of this property is only permitted within the actor
73 |
74 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift:52:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | precision: precision, perceptualPrecision: perceptualPrecision
51 | ).pullback { scene in
52 | let view = SKView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | view.presentScene(scene)
54 | return view
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:83:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
81 | @interface NSView : NSResponder <NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElement, NSAccessibility>
82 |
83 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift:53:14: warning: call to main actor-isolated instance method 'presentScene' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | ).pullback { scene in
52 | let view = SKView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
53 | view.presentScene(scene)
| `- warning: call to main actor-isolated instance method 'presentScene' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | return view
55 | }
SpriteKit.SKView.presentScene:2:22: note: calls to instance method 'presentScene' from outside of its actor context are implicitly asynchronous
1 | class SKView {
2 | @MainActor open func presentScene(_ scene: SKScene?)}
| |- note: calls to instance method 'presentScene' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:6:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Snapshotting where Value == String, Format == String {
5 | /// A snapshot strategy for comparing strings based on equality.
6 | public static let lines = Snapshotting(pathExtension: "txt", diffing: .lines)
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lines' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:11:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
9 | extension Diffing where Value == String {
10 | /// A line-diffing strategy for UTF-8 text.
11 | public static let lines = Diffing(
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lines' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | toData: { Data($0.utf8) },
13 | fromData: { String(decoding: $0, as: UTF8.self) }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:5:15: note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
3 |
4 | /// The ability to compare `Value`s and convert them to and from `Data`.
5 | public struct Diffing<Value> {
| `- note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
6 | /// Converts a value _to_ data.
7 | public var toData: (Value) -> Data
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:334:16: warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
332 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
333 | static let inputThresholdKey = "thresholdValue"
334 | static let device = MTLCreateSystemDefaultDevice()
| `- warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
335 |
336 | static var isSupported: Bool {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h:434:11: note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
432 | */
433 | API_AVAILABLE(macos(10.11), ios(8.0))
434 | @protocol MTLDevice <NSObject>
| `- note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
435 |
436 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:195:3: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
193 |
194 | #if os(iOS) || os(tvOS) || os(macOS)
195 | import Accelerate.vImage
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
196 | import CoreImage.CIKernel
197 | import MetalPerformanceShaders
:
332 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
333 | static let inputThresholdKey = "thresholdValue"
334 | static let device = MTLCreateSystemDefaultDevice()
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
335 |
336 | static var isSupported: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:334:16: warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
332 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
333 | static let inputThresholdKey = "thresholdValue"
334 | static let device = MTLCreateSystemDefaultDevice()
| `- warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
335 |
336 | static var isSupported: Bool {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h:434:11: note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
432 | */
433 | API_AVAILABLE(macos(10.11), ios(8.0))
434 | @protocol MTLDevice <NSObject>
| `- note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
435 |
436 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:195:3: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
193 |
194 | #if os(iOS) || os(tvOS) || os(macOS)
195 | import Accelerate.vImage
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
196 | import CoreImage.CIKernel
197 | import MetalPerformanceShaders
:
332 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
333 | static let inputThresholdKey = "thresholdValue"
334 | static let device = MTLCreateSystemDefaultDevice()
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
335 |
336 | static var isSupported: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:334:16: warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
332 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
333 | static let inputThresholdKey = "thresholdValue"
334 | static let device = MTLCreateSystemDefaultDevice()
| `- warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
335 |
336 | static var isSupported: Bool {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h:434:11: note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
432 | */
433 | API_AVAILABLE(macos(10.11), ios(8.0))
434 | @protocol MTLDevice <NSObject>
| `- note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
435 |
436 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:195:3: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
193 |
194 | #if os(iOS) || os(tvOS) || os(macOS)
195 | import Accelerate.vImage
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
196 | import CoreImage.CIKernel
197 | import MetalPerformanceShaders
:
332 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
333 | static let inputThresholdKey = "thresholdValue"
334 | static let device = MTLCreateSystemDefaultDevice()
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
335 |
336 | static var isSupported: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:812:17: warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
809 | #endif
810 |
811 | func addImagesForRenderedViews(_ view: View) -> [Async<View>] {
| `- note: add '@MainActor' to make global function 'addImagesForRenderedViews' part of global actor 'MainActor'
812 | return view.snapshot
| `- warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
813 | .map { async in
814 | [
:
832 |
833 | extension View {
834 | var snapshot: Async<Image>? {
| `- note: property declared here
835 | func inWindow<T>(_ perform: () -> T) -> T {
836 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:817:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
815 | Async { callback in
816 | async.run { image in
817 | let imageView = ImageView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
818 | imageView.image = image
819 | imageView.frame = view.frame
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:23:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
21 | @interface NSResponder : NSObject <NSCoding>
22 |
23 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSControl'
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:818:25: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
816 | async.run { image in
817 | let imageView = ImageView()
818 | imageView.image = image
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
819 | imageView.frame = view.frame
820 | #if os(macOS)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageView.h:42:39: note: mutation of this property is only permitted within the actor
40 | + (instancetype)imageViewWithImage:(NSImage *)image API_AVAILABLE(macos(10.12));
41 |
42 | @property (nullable, strong) NSImage *image;
| `- note: mutation of this property is only permitted within the actor
43 |
44 | @property (getter=isEditable) BOOL editable;
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:819:25: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
817 | let imageView = ImageView()
818 | imageView.image = image
819 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: mutation of this property is only permitted within the actor
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: mutation of this property is only permitted within the actor
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:819:38: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
817 | let imageView = ImageView()
818 | imageView.image = image
819 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:821:33: warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
819 | imageView.frame = view.frame
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
822 | #elseif os(iOS) || os(tvOS)
823 | view.superview?.insertSubview(imageView, aboveSubview: view)
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)}
| |- note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:821:22: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
819 | imageView.frame = view.frame
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
822 | #elseif os(iOS) || os(tvOS)
823 | view.superview?.insertSubview(imageView, aboveSubview: view)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:830:15: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
828 | ]
829 | }
830 | ?? view.subviews.flatMap(addImagesForRenderedViews)
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
831 | }
832 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:895:19: warning: capture of 'work' with non-sendable type '() -> ()' in a '@Sendable' closure
893 | subscription = nil
894 | if change.newValue == false {
895 | work()
| |- warning: capture of 'work' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
896 | }
897 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:892:17: warning: reference to captured var 'subscription' in concurrently-executing code
890 | subscription = wkWebView.observe(\.isLoading, options: [.initial, .new]) {
891 | (webview, change) in
892 | subscription?.invalidate()
| `- warning: reference to captured var 'subscription' in concurrently-executing code
893 | subscription = nil
894 | if change.newValue == false {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:893:17: warning: mutation of captured var 'subscription' in concurrently-executing code
891 | (webview, change) in
892 | subscription?.invalidate()
893 | subscription = nil
| `- warning: mutation of captured var 'subscription' in concurrently-executing code
894 | if change.newValue == false {
895 | work()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:812:17: warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
809 | #endif
810 |
811 | func addImagesForRenderedViews(_ view: View) -> [Async<View>] {
| `- note: add '@MainActor' to make global function 'addImagesForRenderedViews' part of global actor 'MainActor'
812 | return view.snapshot
| `- warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
813 | .map { async in
814 | [
:
832 |
833 | extension View {
834 | var snapshot: Async<Image>? {
| `- note: property declared here
835 | func inWindow<T>(_ perform: () -> T) -> T {
836 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:817:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
815 | Async { callback in
816 | async.run { image in
817 | let imageView = ImageView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
818 | imageView.image = image
819 | imageView.frame = view.frame
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:23:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
21 | @interface NSResponder : NSObject <NSCoding>
22 |
23 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSControl'
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:818:25: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
816 | async.run { image in
817 | let imageView = ImageView()
818 | imageView.image = image
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
819 | imageView.frame = view.frame
820 | #if os(macOS)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageView.h:42:39: note: mutation of this property is only permitted within the actor
40 | + (instancetype)imageViewWithImage:(NSImage *)image API_AVAILABLE(macos(10.12));
41 |
42 | @property (nullable, strong) NSImage *image;
| `- note: mutation of this property is only permitted within the actor
43 |
44 | @property (getter=isEditable) BOOL editable;
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:819:25: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
817 | let imageView = ImageView()
818 | imageView.image = image
819 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: mutation of this property is only permitted within the actor
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: mutation of this property is only permitted within the actor
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:819:38: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
817 | let imageView = ImageView()
818 | imageView.image = image
819 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:821:33: warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
819 | imageView.frame = view.frame
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
822 | #elseif os(iOS) || os(tvOS)
823 | view.superview?.insertSubview(imageView, aboveSubview: view)
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)}
| |- note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:821:22: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
819 | imageView.frame = view.frame
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
822 | #elseif os(iOS) || os(tvOS)
823 | view.superview?.insertSubview(imageView, aboveSubview: view)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:830:15: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
828 | ]
829 | }
830 | ?? view.subviews.flatMap(addImagesForRenderedViews)
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
831 | }
832 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:895:19: warning: capture of 'work' with non-sendable type '() -> ()' in a '@Sendable' closure
893 | subscription = nil
894 | if change.newValue == false {
895 | work()
| |- warning: capture of 'work' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
896 | }
897 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:892:17: warning: reference to captured var 'subscription' in concurrently-executing code
890 | subscription = wkWebView.observe(\.isLoading, options: [.initial, .new]) {
891 | (webview, change) in
892 | subscription?.invalidate()
| `- warning: reference to captured var 'subscription' in concurrently-executing code
893 | subscription = nil
894 | if change.newValue == false {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:893:17: warning: mutation of captured var 'subscription' in concurrently-executing code
891 | (webview, change) in
892 | subscription?.invalidate()
893 | subscription = nil
| `- warning: mutation of captured var 'subscription' in concurrently-executing code
894 | if change.newValue == false {
895 | work()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:812:17: warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
809 | #endif
810 |
811 | func addImagesForRenderedViews(_ view: View) -> [Async<View>] {
| `- note: add '@MainActor' to make global function 'addImagesForRenderedViews' part of global actor 'MainActor'
812 | return view.snapshot
| `- warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
813 | .map { async in
814 | [
:
832 |
833 | extension View {
834 | var snapshot: Async<Image>? {
| `- note: property declared here
835 | func inWindow<T>(_ perform: () -> T) -> T {
836 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:817:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
815 | Async { callback in
816 | async.run { image in
817 | let imageView = ImageView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
818 | imageView.image = image
819 | imageView.frame = view.frame
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:23:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
21 | @interface NSResponder : NSObject <NSCoding>
22 |
23 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSControl'
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:818:25: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
816 | async.run { image in
817 | let imageView = ImageView()
818 | imageView.image = image
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
819 | imageView.frame = view.frame
820 | #if os(macOS)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageView.h:42:39: note: mutation of this property is only permitted within the actor
40 | + (instancetype)imageViewWithImage:(NSImage *)image API_AVAILABLE(macos(10.12));
41 |
42 | @property (nullable, strong) NSImage *image;
| `- note: mutation of this property is only permitted within the actor
43 |
44 | @property (getter=isEditable) BOOL editable;
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:819:25: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
817 | let imageView = ImageView()
818 | imageView.image = image
819 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: mutation of this property is only permitted within the actor
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: mutation of this property is only permitted within the actor
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:819:38: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
817 | let imageView = ImageView()
818 | imageView.image = image
819 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:821:33: warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
819 | imageView.frame = view.frame
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
822 | #elseif os(iOS) || os(tvOS)
823 | view.superview?.insertSubview(imageView, aboveSubview: view)
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)}
| |- note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:821:22: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
819 | imageView.frame = view.frame
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
822 | #elseif os(iOS) || os(tvOS)
823 | view.superview?.insertSubview(imageView, aboveSubview: view)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:830:15: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
828 | ]
829 | }
830 | ?? view.subviews.flatMap(addImagesForRenderedViews)
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
831 | }
832 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:895:19: warning: capture of 'work' with non-sendable type '() -> ()' in a '@Sendable' closure
893 | subscription = nil
894 | if change.newValue == false {
895 | work()
| |- warning: capture of 'work' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
896 | }
897 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:892:17: warning: reference to captured var 'subscription' in concurrently-executing code
890 | subscription = wkWebView.observe(\.isLoading, options: [.initial, .new]) {
891 | (webview, change) in
892 | subscription?.invalidate()
| `- warning: reference to captured var 'subscription' in concurrently-executing code
893 | subscription = nil
894 | if change.newValue == false {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:893:17: warning: mutation of captured var 'subscription' in concurrently-executing code
891 | (webview, change) in
892 | subscription?.invalidate()
893 | subscription = nil
| `- warning: mutation of captured var 'subscription' in concurrently-executing code
894 | if change.newValue == false {
895 | work()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:812:17: warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
809 | #endif
810 |
811 | func addImagesForRenderedViews(_ view: View) -> [Async<View>] {
| `- note: add '@MainActor' to make global function 'addImagesForRenderedViews' part of global actor 'MainActor'
812 | return view.snapshot
| `- warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
813 | .map { async in
814 | [
:
832 |
833 | extension View {
834 | var snapshot: Async<Image>? {
| `- note: property declared here
835 | func inWindow<T>(_ perform: () -> T) -> T {
836 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:817:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
815 | Async { callback in
816 | async.run { image in
817 | let imageView = ImageView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
818 | imageView.image = image
819 | imageView.frame = view.frame
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:23:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
21 | @interface NSResponder : NSObject <NSCoding>
22 |
23 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSControl'
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:818:25: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
816 | async.run { image in
817 | let imageView = ImageView()
818 | imageView.image = image
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
819 | imageView.frame = view.frame
820 | #if os(macOS)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageView.h:42:39: note: mutation of this property is only permitted within the actor
40 | + (instancetype)imageViewWithImage:(NSImage *)image API_AVAILABLE(macos(10.12));
41 |
42 | @property (nullable, strong) NSImage *image;
| `- note: mutation of this property is only permitted within the actor
43 |
44 | @property (getter=isEditable) BOOL editable;
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:819:25: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
817 | let imageView = ImageView()
818 | imageView.image = image
819 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: mutation of this property is only permitted within the actor
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: mutation of this property is only permitted within the actor
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:819:38: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
817 | let imageView = ImageView()
818 | imageView.image = image
819 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:821:33: warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
819 | imageView.frame = view.frame
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
822 | #elseif os(iOS) || os(tvOS)
823 | view.superview?.insertSubview(imageView, aboveSubview: view)
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)}
| |- note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:821:22: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
819 | imageView.frame = view.frame
820 | #if os(macOS)
821 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
822 | #elseif os(iOS) || os(tvOS)
823 | view.superview?.insertSubview(imageView, aboveSubview: view)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:830:15: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
828 | ]
829 | }
830 | ?? view.subviews.flatMap(addImagesForRenderedViews)
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
831 | }
832 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:895:19: warning: capture of 'work' with non-sendable type '() -> ()' in a '@Sendable' closure
893 | subscription = nil
894 | if change.newValue == false {
895 | work()
| |- warning: capture of 'work' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
896 | }
897 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:892:17: warning: reference to captured var 'subscription' in concurrently-executing code
890 | subscription = wkWebView.observe(\.isLoading, options: [.initial, .new]) {
891 | (webview, change) in
892 | subscription?.invalidate()
| `- warning: reference to captured var 'subscription' in concurrently-executing code
893 | subscription = nil
894 | if change.newValue == false {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:893:17: warning: mutation of captured var 'subscription' in concurrently-executing code
891 | (webview, change) in
892 | subscription?.invalidate()
893 | subscription = nil
| `- warning: mutation of captured var 'subscription' in concurrently-executing code
894 | if change.newValue == false {
895 | work()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:42:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | @_spi(Internals)
42 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__diffTool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Whether or not to record all new references.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:75:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | @_spi(Internals)
75 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__record' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
77 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:542:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
540 | // We need to clean counter between tests executions in order to support test-iterations.
541 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
542 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
543 |
544 | static func registerIfNeeded() {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:376:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
363 | }
364 |
365 | func recordSnapshot(writeToDisk: Bool) throws {
| `- note: add '@MainActor' to make local function 'recordSnapshot(writeToDisk:)' part of global actor 'MainActor'
366 | let snapshotData = snapshotting.diffing.toData(diffable)
367 |
:
374 | ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS")
375 | {
376 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
377 | if writeToDisk {
378 | // Snapshot was written to disk. Create attachment from file
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:463:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
461 | !isSwiftTesting
462 | {
463 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
464 | attachments.forEach {
465 | activity.add($0)
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_plistNullNSString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:103:12: note: class 'NSString' does not conform to the 'Sendable' protocol
101 |
102 |
103 | @interface NSString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
104 |
105 | #pragma mark *** String funnel methods ***
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:383:38: warning: sending 'snapshotting' risks causing data races; this is an error in the Swift 6 language mode
381 | } else {
382 | // Snapshot was not written to disk. Create attachment from data and path extension
383 | let typeIdentifier = snapshotting.pathExtension.flatMap(
| |- warning: sending 'snapshotting' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshotting' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
384 | uniformTypeIdentifier(fromExtension:))
385 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:464:15: warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
462 | {
463 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
464 | attachments.forEach {
| |- warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'attachments' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
465 | activity.add($0)
466 | }
:
483 |
484 | if record == .failed {
485 | try recordSnapshot(writeToDisk: true)
| `- note: access can happen concurrently
486 | failureMessage += " A new snapshot was automatically recorded."
487 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:42:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | @_spi(Internals)
42 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__diffTool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Whether or not to record all new references.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:75:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | @_spi(Internals)
75 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__record' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
77 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:542:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
540 | // We need to clean counter between tests executions in order to support test-iterations.
541 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
542 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
543 |
544 | static func registerIfNeeded() {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:376:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
363 | }
364 |
365 | func recordSnapshot(writeToDisk: Bool) throws {
| `- note: add '@MainActor' to make local function 'recordSnapshot(writeToDisk:)' part of global actor 'MainActor'
366 | let snapshotData = snapshotting.diffing.toData(diffable)
367 |
:
374 | ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS")
375 | {
376 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
377 | if writeToDisk {
378 | // Snapshot was written to disk. Create attachment from file
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:463:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
461 | !isSwiftTesting
462 | {
463 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
464 | attachments.forEach {
465 | activity.add($0)
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_plistNullNSString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:103:12: note: class 'NSString' does not conform to the 'Sendable' protocol
101 |
102 |
103 | @interface NSString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
104 |
105 | #pragma mark *** String funnel methods ***
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:383:38: warning: sending 'snapshotting' risks causing data races; this is an error in the Swift 6 language mode
381 | } else {
382 | // Snapshot was not written to disk. Create attachment from data and path extension
383 | let typeIdentifier = snapshotting.pathExtension.flatMap(
| |- warning: sending 'snapshotting' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshotting' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
384 | uniformTypeIdentifier(fromExtension:))
385 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:464:15: warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
462 | {
463 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
464 | attachments.forEach {
| |- warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'attachments' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
465 | activity.add($0)
466 | }
:
483 |
484 | if record == .failed {
485 | try recordSnapshot(writeToDisk: true)
| `- note: access can happen concurrently
486 | failureMessage += " A new snapshot was automatically recorded."
487 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:42:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | @_spi(Internals)
42 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__diffTool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Whether or not to record all new references.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:75:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | @_spi(Internals)
75 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__record' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
77 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:542:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
540 | // We need to clean counter between tests executions in order to support test-iterations.
541 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
542 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
543 |
544 | static func registerIfNeeded() {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:376:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
363 | }
364 |
365 | func recordSnapshot(writeToDisk: Bool) throws {
| `- note: add '@MainActor' to make local function 'recordSnapshot(writeToDisk:)' part of global actor 'MainActor'
366 | let snapshotData = snapshotting.diffing.toData(diffable)
367 |
:
374 | ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS")
375 | {
376 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
377 | if writeToDisk {
378 | // Snapshot was written to disk. Create attachment from file
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:463:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
461 | !isSwiftTesting
462 | {
463 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
464 | attachments.forEach {
465 | activity.add($0)
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_plistNullNSString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:103:12: note: class 'NSString' does not conform to the 'Sendable' protocol
101 |
102 |
103 | @interface NSString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
104 |
105 | #pragma mark *** String funnel methods ***
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:383:38: warning: sending 'snapshotting' risks causing data races; this is an error in the Swift 6 language mode
381 | } else {
382 | // Snapshot was not written to disk. Create attachment from data and path extension
383 | let typeIdentifier = snapshotting.pathExtension.flatMap(
| |- warning: sending 'snapshotting' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshotting' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
384 | uniformTypeIdentifier(fromExtension:))
385 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:464:15: warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
462 | {
463 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
464 | attachments.forEach {
| |- warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'attachments' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
465 | activity.add($0)
466 | }
:
483 |
484 | if record == .failed {
485 | try recordSnapshot(writeToDisk: true)
| `- note: access can happen concurrently
486 | failureMessage += " A new snapshot was automatically recorded."
487 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:42:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | @_spi(Internals)
42 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__diffTool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Whether or not to record all new references.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:75:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | @_spi(Internals)
75 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '__record' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
77 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:542:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
540 | // We need to clean counter between tests executions in order to support test-iterations.
541 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
542 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'registered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
543 |
544 | static func registerIfNeeded() {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:376:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
363 | }
364 |
365 | func recordSnapshot(writeToDisk: Bool) throws {
| `- note: add '@MainActor' to make local function 'recordSnapshot(writeToDisk:)' part of global actor 'MainActor'
366 | let snapshotData = snapshotting.diffing.toData(diffable)
367 |
:
374 | ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS")
375 | {
376 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
377 | if writeToDisk {
378 | // Snapshot was written to disk. Create attachment from file
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:463:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
461 | !isSwiftTesting
462 | {
463 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
464 | attachments.forEach {
465 | activity.add($0)
XCTest.XCTContext.runActivity:2:46: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | class XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result}
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_plistNullNSString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:103:12: note: class 'NSString' does not conform to the 'Sendable' protocol
101 |
102 |
103 | @interface NSString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
104 |
105 | #pragma mark *** String funnel methods ***
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:383:38: warning: sending 'snapshotting' risks causing data races; this is an error in the Swift 6 language mode
381 | } else {
382 | // Snapshot was not written to disk. Create attachment from data and path extension
383 | let typeIdentifier = snapshotting.pathExtension.flatMap(
| |- warning: sending 'snapshotting' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'snapshotting' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
384 | uniformTypeIdentifier(fromExtension:))
385 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:464:15: warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
462 | {
463 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
464 | attachments.forEach {
| |- warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'attachments' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
465 | activity.add($0)
466 | }
:
483 |
484 | if record == .failed {
485 | try recordSnapshot(writeToDisk: true)
| `- note: access can happen concurrently
486 | failureMessage += " A new snapshot was automatically recorded."
487 | }
[240/246] Compiling SnapshotTesting UIView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:23:23: warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// email=blob%40pointfree.co&name=Blob
22 | /// ```
23 | public static let raw = Snapshotting.raw(pretty: false)
| |- warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'raw' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// A snapshot strategy for comparing requests based on raw equality.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:78:23: warning: static property 'curl' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
76 | // "https://www.pointfree.co/subscribe"
77 | // ```
78 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- warning: static property 'curl' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'curl' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 |
80 | var components = ["curl"]
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
[241/246] Compiling SnapshotTesting UIViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:23:23: warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// email=blob%40pointfree.co&name=Blob
22 | /// ```
23 | public static let raw = Snapshotting.raw(pretty: false)
| |- warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'raw' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// A snapshot strategy for comparing requests based on raw equality.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:78:23: warning: static property 'curl' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
76 | // "https://www.pointfree.co/subscribe"
77 | // ```
78 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- warning: static property 'curl' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'curl' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 |
80 | var components = ["curl"]
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
[242/246] Compiling SnapshotTesting URLRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:23:23: warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// email=blob%40pointfree.co&name=Blob
22 | /// ```
23 | public static let raw = Snapshotting.raw(pretty: false)
| |- warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'raw' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// A snapshot strategy for comparing requests based on raw equality.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/URLRequest.swift:78:23: warning: static property 'curl' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
76 | // "https://www.pointfree.co/subscribe"
77 | // ```
78 | public static let curl = SimplySnapshotting.lines.pullback { (request: URLRequest) in
| |- warning: static property 'curl' is not concurrency-safe because non-'Sendable' type 'Snapshotting<URLRequest, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'curl' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 |
80 | var components = ["curl"]
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
[243/248] Compiling SwiftParser IsLexerClassified.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[244/248] Compiling SwiftParser LayoutNodes+Parsable.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[245/248] Compiling SwiftParser Parser+TokenSpecSet.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[246/248] Compiling SwiftParser TokenSpecStaticMembers.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[247/261] Compiling SwiftParserDiagnostics Utils.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[248/261] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[249/261] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[250/261] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[251/262] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[252/262] Compiling SwiftParserDiagnostics PresenceUtils.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[253/262] Compiling SwiftParserDiagnostics MissingNodesError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[254/262] Compiling SwiftParserDiagnostics MissingTokenError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[255/262] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[256/262] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[257/262] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[258/262] Emitting module SwiftParserDiagnostics
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[259/262] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[260/262] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[261/277] Compiling SnapshotTestingCustomDump CustomDump.swift
[262/277] Emitting module SnapshotTestingCustomDump
[263/277] Emitting module SwiftSyntaxBuilder
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[264/278] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[265/278] Compiling SwiftSyntaxBuilder ResultBuilders.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[266/278] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[267/278] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[268/278] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[269/278] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[270/278] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[271/278] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[272/278] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[273/278] Compiling SwiftSyntaxBuilder Indenter.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[274/278] Compiling SwiftSyntaxBuilder ListBuilder.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[275/278] Compiling SwiftSyntaxBuilder BuildableNodes.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[276/278] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[277/278] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[278/278] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[279/281] Compiling InlineSnapshotTesting Exports.swift
[280/281] Compiling InlineSnapshotTesting AssertInlineSnapshot.swift
/Users/admin/builder/spi-builder-workspace/Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift:382:31: warning: var 'inlineSnapshotState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
380 | }
381 |
382 | @_spi(Internals) public var inlineSnapshotState: [File: [InlineSnapshot]] = [:]
| |- warning: var 'inlineSnapshotState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'inlineSnapshotState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'inlineSnapshotState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
383 |
384 | private struct TestSource {
/Users/admin/builder/spi-builder-workspace/Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift:408:15: warning: var 'testSourceCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
406 | }
407 |
408 | private var testSourceCache: [File: TestSource] = [:]
| |- warning: var 'testSourceCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSourceCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'testSourceCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
409 |
410 | private func writeInlineSnapshots() {
[281/281] Emitting module InlineSnapshotTesting
/Users/admin/builder/spi-builder-workspace/Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift:382:31: warning: var 'inlineSnapshotState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
380 | }
381 |
382 | @_spi(Internals) public var inlineSnapshotState: [File: [InlineSnapshot]] = [:]
| |- warning: var 'inlineSnapshotState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'inlineSnapshotState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'inlineSnapshotState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
383 |
384 | private struct TestSource {
/Users/admin/builder/spi-builder-workspace/Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift:408:15: warning: var 'testSourceCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
406 | }
407 |
408 | private var testSourceCache: [File: TestSource] = [:]
| |- warning: var 'testSourceCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSourceCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'testSourceCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
409 |
410 | private func writeInlineSnapshots() {
Build complete! (21.99s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-custom-dump",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-custom-dump"
},
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "509.0.0",
"upper_bound" : "602.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax"
}
],
"manifest_display_name" : "swift-snapshot-testing",
"name" : "swift-snapshot-testing",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "SnapshotTesting",
"targets" : [
"SnapshotTesting"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "InlineSnapshotTesting",
"targets" : [
"InlineSnapshotTesting"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SnapshotTestingCustomDump",
"targets" : [
"SnapshotTestingCustomDump"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "SnapshotTestingTests",
"module_type" : "SwiftTarget",
"name" : "SnapshotTestingTests",
"path" : "Tests/SnapshotTestingTests",
"sources" : [
"AssertSnapshotSwiftTests.swift",
"DeprecationTests.swift",
"Internal/BaseSuite.swift",
"Internal/BaseTestCase.swift",
"Internal/TestHelpers.swift",
"RecordTests.swift",
"SnapshotTestingTests.swift",
"SnapshotsTraitTests.swift",
"SwiftTestingTests.swift",
"WaitTests.swift",
"WithSnapshotTestingTests.swift"
],
"target_dependencies" : [
"SnapshotTesting"
],
"type" : "test"
},
{
"c99name" : "SnapshotTestingCustomDump",
"module_type" : "SwiftTarget",
"name" : "SnapshotTestingCustomDump",
"path" : "Sources/SnapshotTestingCustomDump",
"product_dependencies" : [
"CustomDump"
],
"product_memberships" : [
"InlineSnapshotTesting",
"SnapshotTestingCustomDump"
],
"sources" : [
"CustomDump.swift"
],
"target_dependencies" : [
"SnapshotTesting"
],
"type" : "library"
},
{
"c99name" : "SnapshotTesting",
"module_type" : "SwiftTarget",
"name" : "SnapshotTesting",
"path" : "Sources/SnapshotTesting",
"product_memberships" : [
"SnapshotTesting",
"InlineSnapshotTesting",
"SnapshotTestingCustomDump"
],
"sources" : [
"AssertSnapshot.swift",
"Async.swift",
"Common/Internal.swift",
"Common/PlistEncoder.swift",
"Common/String+SpecialCharacters.swift",
"Common/View.swift",
"Common/XCTAttachment.swift",
"Diff.swift",
"Diffing.swift",
"Extensions/Wait.swift",
"Internal/Deprecations.swift",
"Internal/RecordIssue.swift",
"SnapshotTestingConfiguration.swift",
"SnapshotsTestTrait.swift",
"Snapshotting.swift",
"Snapshotting/Any.swift",
"Snapshotting/CALayer.swift",
"Snapshotting/CGPath.swift",
"Snapshotting/CaseIterable.swift",
"Snapshotting/Data.swift",
"Snapshotting/Encodable.swift",
"Snapshotting/NSBezierPath.swift",
"Snapshotting/NSImage.swift",
"Snapshotting/NSView.swift",
"Snapshotting/NSViewController.swift",
"Snapshotting/SceneKit.swift",
"Snapshotting/SpriteKit.swift",
"Snapshotting/String.swift",
"Snapshotting/SwiftUIView.swift",
"Snapshotting/UIBezierPath.swift",
"Snapshotting/UIImage.swift",
"Snapshotting/UIView.swift",
"Snapshotting/UIViewController.swift",
"Snapshotting/URLRequest.swift"
],
"type" : "library"
},
{
"c99name" : "InlineSnapshotTestingTests",
"module_type" : "SwiftTarget",
"name" : "InlineSnapshotTestingTests",
"path" : "Tests/InlineSnapshotTestingTests",
"sources" : [
"AssertInlineSnapshotSwiftTests.swift",
"CustomDumpTests.swift",
"InlineSnapshotTestingTests.swift",
"Internal/BaseSuite.swift",
"Internal/BaseTestCase.swift"
],
"target_dependencies" : [
"InlineSnapshotTesting"
],
"type" : "test"
},
{
"c99name" : "InlineSnapshotTesting",
"module_type" : "SwiftTarget",
"name" : "InlineSnapshotTesting",
"path" : "Sources/InlineSnapshotTesting",
"product_dependencies" : [
"SwiftParser",
"SwiftSyntax",
"SwiftSyntaxBuilder"
],
"product_memberships" : [
"InlineSnapshotTesting"
],
"sources" : [
"AssertInlineSnapshot.swift",
"Exports.swift"
],
"target_dependencies" : [
"SnapshotTesting",
"SnapshotTestingCustomDump"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/pointfreeco/swift-snapshot-testing/1.18.3
Repository: pointfreeco/swift-snapshot-testing
Swift version used: 6.1
Target: SnapshotTesting
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
* branch release/6.2 -> FETCH_HEAD
* [new branch] release/6.2 -> origin/release/6.2
HEAD is now at 8799b69 Update the artifact
Cloned https://github.com/swiftlang/swift-docc-render-artifact
Extracting symbol information for 'SnapshotTesting'...
Finished extracting symbol information for 'SnapshotTesting'. (7.70s)
Building documentation for 'SnapshotTesting'...
warning: External name 'file' used to document parameter
--> ../AssertSnapshot.swift:94:9-94:13
92 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case in
93 | /// which this function was called.
94 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
95 | /// which this function was called.
96 | /// - testName: The name of the test in which failure occurred. Defaults to the function name of
warning: External name 'file' used to document parameter
--> ../AssertSnapshot.swift:146:9-146:13
144 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case in
145 | /// which this function was called.
146 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
147 | /// which this function was called.
148 | /// - testName: The name of the test in which failure occurred. Defaults to the function name of
warning: External name 'file' used to document parameter
--> ../AssertSnapshot.swift:190:9-190:13
188 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case in
189 | /// which this function was called.
190 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
191 | /// which this function was called.
192 | /// - testName: The name of the test in which failure occurred. Defaults to the function name of
warning: External name 'file' used to document parameter
--> ../AssertSnapshot.swift:268:9-268:13
266 | /// directory `__Snapshots__` that sits next to your test file.
267 | /// - timeout: The amount of time a snapshot must be generated in.
268 + /// - file: The file in which failure occurred. Defaults to the file name of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
269 | /// which this function was called.
270 | /// - testName: The name of the test in which failure occurred. Defaults to the function name of
warning: Parameter 'column' is missing documentation
--> ../AssertSnapshot.swift:273:29-273:29
271 | /// the test case in which this function was called.
272 | /// - line: The line number on which failure occurred. Defaults to the line number on which this
273 + /// function was called.
| ╰─suggestion: Document 'column' parameter
274 | /// - Returns: A failure message or, if the value matches, nil.
275 | public func verifySnapshot<Value, Format>(
warning: Parameter 'fileID' is missing documentation
--> ../AssertSnapshot.swift:273:29-273:29
271 | /// the test case in which this function was called.
272 | /// - line: The line number on which failure occurred. Defaults to the line number on which this
273 + /// function was called.
274 | /// - Returns: A failure message or, if the value matches, nil.
275 | public func verifySnapshot<Value, Format>(
warning: 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' doesn't exist at '/SnapshotTesting/IntegratingWithTestFrameworks'
--> Articles/IntegratingWithTestFrameworks.md:21:7-21:69
19 |
20 | However, these details have all been hidden away in the SnapshotTesting library. You can simply
21 + use ``assertSnapshot(of:as:named:record:timeout:file:testName:line:)`` in either an `XCTestCase`
22 | subclass _or_ `@Test`, and it will dynamically detect what context it is running in and trigger
23 | the correct test failure:
warning: No symbol matched 'SnapshotTesting/assertSnapshot(of:as:named:record:timeout:file:testName:line:)'. 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' doesn't exist at '/SnapshotTesting'.
--> Extensions/AssertSnapshot.md:1:3-1:85
1 + # ``SnapshotTesting/assertSnapshot(of:as:named:record:timeout:file:testName:line:)``
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'assertSnapshot(of:as:named:record:timeout:fileID:file:testName:line:column:)'
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'assertSnapshot(matching:as:named:record:timeout:file:testName:line:)'
| ╰─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'verifySnapshot(of:as:named:record:snapshotDirectory:timeout:fileID:file:testName:line:column:)'
2 |
3 | ## Topics
warning: No symbol matched 'SnapshotTesting/Testing/Trait/snapshots(diffTool:record:)'. 'snapshots(diffTool:record:)' doesn't exist at '/SnapshotTesting/Testing/Trait'.
--> Extensions/SnapshotsTrait.md:1:3-1:64
1 + # ``SnapshotTesting/Testing/Trait/snapshots(diffTool:record:)``
| ├─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots(record:diffTool:)'
| ├─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots(_:)'
| ╰─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots'
2 |
3 | ### Configuration
warning: 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' doesn't exist at '/SnapshotTesting'
--> SnapshotTesting.md:9:5-9:67
7 | ### Essentials
8 |
9 + - ``assertSnapshot(of:as:named:record:timeout:file:testName:line:)``
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'assertSnapshot(of:as:named:record:timeout:fileID:file:testName:line:column:)'
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'assertSnapshot(matching:as:named:record:timeout:file:testName:line:)'
| ╰─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'verifySnapshot(of:as:named:record:snapshotDirectory:timeout:fileID:file:testName:line:column:)'
10 | - <doc:IntegratingWithTestFrameworks>
11 | - <doc:MigrationGuides>
warning: 'snapshots(diffTool:record:)' doesn't exist at '/SnapshotTesting/Testing/Trait'
--> SnapshotTesting.md:22:19-22:46
20 | ### Configuration
21 |
22 + - ``Testing/Trait/snapshots(diffTool:record:)``
| ├─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots(record:diffTool:)'
| ├─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots(_:)'
| ╰─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots'
23 | - ``withSnapshotTesting(record:diffTool:operation:)-2kuyr``
24 | - ``SnapshotTestingConfiguration``
warning: 'snapshots(diffTool:record:)' doesn't exist at '/SnapshotTesting/Testing/Trait'
--> ../SnapshotTestingConfiguration.swift:8:23-8:50
6 | ///
7 | /// > Note: To customize tests when using Swift's native Testing library, use the
8 + /// > ``Testing/Trait/snapshots(diffTool:record:)`` trait.
| ├─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots(record:diffTool:)'
| ├─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots(_:)'
| ╰─suggestion: Replace 'snapshots(diffTool:record:)' with 'snapshots'
9 | ///
10 | /// For example, to specify to put an entire test class in record mode you do the following:
Finished building documentation for 'SnapshotTesting' (0.22s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/pointfreeco/swift-snapshot-testing/1.18.3
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Updating https://github.com/swiftlang/swift-syntax
Updating https://github.com/pointfreeco/swift-custom-dump
Updating https://github.com/pointfreeco/xctest-dynamic-overlay
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.45s)
Updated https://github.com/pointfreeco/xctest-dynamic-overlay (0.47s)
Updated https://github.com/pointfreeco/swift-custom-dump (0.47s)
Updated https://github.com/swiftlang/swift-syntax (0.85s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (1.52s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (0.48s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.4.3 (0.47s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (0.56s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.82s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.41s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/8] Write sources
[2/8] Write snippet-extract-tool-entitlement.plist
[3/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Compiling SymbolKit GenericConstraint.swift
[7/53] Compiling SymbolKit GenericParameter.swift
[8/53] Compiling SymbolKit Generics.swift
[9/53] Compiling SymbolKit Namespace.swift
[10/57] Compiling SymbolKit Symbol.swift
[11/57] Compiling SymbolKit SymbolKind.swift
[12/57] Compiling SymbolKit SymbolGraph.swift
[13/57] Compiling SymbolKit GraphCollector.swift
[14/57] Compiling SymbolKit DeclarationFragments.swift
[15/57] Compiling SymbolKit Fragment.swift
[16/57] Compiling SymbolKit FragmentKind.swift
[17/57] Compiling SymbolKit FunctionParameter.swift
[18/57] Compiling SymbolKit FunctionSignature.swift
[19/57] Compiling SymbolKit Identifier.swift
[20/57] Compiling SymbolKit KindIdentifier.swift
[21/57] Compiling SymbolKit Location.swift
[22/57] Compiling SymbolKit Mutability.swift
[23/57] Compiling SymbolKit Relationship.swift
[24/57] Compiling SymbolKit RelationshipKind.swift
[25/57] Compiling SymbolKit SourceOrigin.swift
[26/57] Compiling SymbolKit GenericConstraints.swift
[27/57] Compiling SymbolKit Swift.swift
[28/57] Compiling SymbolKit Mixin+Equals.swift
[29/57] Compiling SymbolKit Mixin+Hash.swift
[30/57] Compiling SymbolKit Mixin.swift
[31/57] Compiling SymbolKit LineList.swift
[32/57] Compiling SymbolKit Position.swift
[33/57] Emitting module SymbolKit
[34/57] Compiling SymbolKit SourceRange.swift
[35/57] Compiling SymbolKit Metadata.swift
[36/57] Compiling SymbolKit Module.swift
[37/57] Compiling SymbolKit OperatingSystem.swift
[38/57] Compiling SymbolKit Platform.swift
[39/57] Compiling SymbolKit Names.swift
[40/57] Compiling SymbolKit SPI.swift
[41/57] Compiling SymbolKit Snippet.swift
[42/57] Compiling SymbolKit Extension.swift
[43/57] Compiling Snippets Snippet.swift
[44/57] Compiling Snippets SnippetParser.swift
[45/57] Emitting module Snippets
[46/57] Compiling SymbolKit SemanticVersion.swift
[47/57] Compiling SymbolKit AccessControl.swift
[48/57] Compiling SymbolKit Availability.swift
[49/57] Compiling SymbolKit AvailabilityItem.swift
[50/57] Compiling SymbolKit Domain.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.28s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/33] Compiling SnapshotTesting SceneKit.swift
[3/33] Compiling SnapshotTesting SpriteKit.swift
[4/33] Compiling SnapshotTesting String.swift
[5/36] Compiling SnapshotTesting Data.swift
[6/36] Compiling SnapshotTesting Encodable.swift
[7/36] Compiling SnapshotTesting NSBezierPath.swift
[8/36] Compiling SnapshotTesting Diffing.swift
[9/36] Compiling SnapshotTesting Wait.swift
[10/36] Compiling SnapshotTesting Deprecations.swift
[11/36] Compiling SnapshotTesting RecordIssue.swift
[12/36] Compiling SnapshotTesting NSImage.swift
[13/36] Compiling SnapshotTesting NSView.swift
[14/36] Compiling SnapshotTesting NSViewController.swift
[15/36] Compiling SnapshotTesting String+SpecialCharacters.swift
[16/36] Compiling SnapshotTesting View.swift
[17/36] Compiling SnapshotTesting XCTAttachment.swift
[18/36] Compiling SnapshotTesting Diff.swift
[19/36] Emitting module SnapshotTesting
[20/36] Compiling SnapshotTesting SnapshotTestingConfiguration.swift
[21/36] Compiling SnapshotTesting SnapshotsTestTrait.swift
[22/36] Compiling SnapshotTesting Snapshotting.swift
[23/36] Compiling SnapshotTesting Any.swift
[24/36] Compiling SnapshotTesting UIView.swift
[25/36] Compiling SnapshotTesting UIViewController.swift
[26/36] Compiling SnapshotTesting URLRequest.swift
[27/36] Compiling SnapshotTesting SwiftUIView.swift
[28/36] Compiling SnapshotTesting UIBezierPath.swift
[29/36] Compiling SnapshotTesting UIImage.swift
[30/36] Compiling SnapshotTesting CALayer.swift
[31/36] Compiling SnapshotTesting CGPath.swift
[32/36] Compiling SnapshotTesting CaseIterable.swift
[33/36] Compiling SnapshotTesting AssertSnapshot.swift
[34/36] Compiling SnapshotTesting Async.swift
[35/36] Compiling SnapshotTesting Internal.swift
[36/36] Compiling SnapshotTesting PlistEncoder.swift
Build of target: 'SnapshotTesting' complete! (2.07s)
Target: InlineSnapshotTesting
Extracting symbol information for 'InlineSnapshotTesting'...
Finished extracting symbol information for 'InlineSnapshotTesting'. (13.23s)
Building documentation for 'InlineSnapshotTesting'...
warning: Parameter 'isRecording' not found in function declaration
--> ../AssertInlineSnapshot.swift:18:9-18:65
16 | /// - snapshotting: A strategy for snapshotting and comparing values.
17 | /// - message: An optional description of the assertion, for inclusion in test results.
18 + /// - isRecording: Whether or not to record a new reference.
| ╰─suggestion: Remove 'isRecording' parameter documentation
19 | /// - timeout: The amount of time a snapshot must be generated in.
20 | /// - syntaxDescriptor: An optional description of where the snapshot is inlined. This parameter
warning: External name 'file' used to document parameter
--> ../AssertInlineSnapshot.swift:28:11-28:15
26 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case in
27 | /// which this function was called.
28 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
29 | /// which this function was called.
30 | /// - function: The function where the assertion occurs. The default is the name of the test
warning: Parameter 'record' is missing documentation
--> ../AssertInlineSnapshot.swift:35:31-35:31
33 | /// function was called.
34 | /// - column: The column on which failure occurred. Defaults to the column on which this
35 + /// function was called.
36 | public func assertInlineSnapshot<Value>(
37 | of value: @autoclosure () throws -> Value?,
warning: 'assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)' doesn't exist at '/InlineSnapshotTesting/InlineSnapshotSyntaxDescriptor'
--> ../AssertInlineSnapshot.swift:217:7-217:109
215 | ///
216 | /// Provide this structure when defining custom snapshot functions that call
217 + /// ``assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)``
218 | /// under the hood.
219 | public struct InlineSnapshotSyntaxDescriptor: Hashable {
warning: External name 'file' used to document parameter
--> ../AssertInlineSnapshot.swift:284:13-284:17
282 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case
283 | /// in which this function was called.
284 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
285 | /// which this function was called.
286 | /// - line: The line number on which failure occurred. Defaults to the line number on which
warning: 'assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)' doesn't exist at '/InlineSnapshotTesting'
--> InlineSnapshotTesting.md:71:5-71:107
69 | ### Essentials
70 |
71 + - ``assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)``
| ╰─suggestion: Replace 'assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)' with 'assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:fileID:file:function:line:column:)'
72 |
73 | ### Writing a custom helper
Finished building documentation for 'InlineSnapshotTesting' (0.06s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/pointfreeco/swift-snapshot-testing/1.18.3
Building for debugging...
[0/3] Write swift-version-2F0A5646E1D333AE.txt
Build of product 'snippet-extract' complete! (0.35s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/26] Compiling SwiftSyntax509 Empty.swift
[3/26] Compiling SwiftSyntax600 Empty.swift
[4/26] Compiling SwiftSyntax510 Empty.swift
[5/26] Emitting module SwiftSyntax509
[6/26] Emitting module SwiftSyntax510
[7/26] Emitting module SwiftSyntax600
[8/26] Compiling IssueReporting IssueReporter.swift
[9/26] Compiling IssueReporting BreakpointReporter.swift
[10/26] Compiling IssueReporting FatalErrorReporter.swift
[11/26] Compiling IssueReporting RuntimeWarningReporter.swift
[12/26] Compiling IssueReporting XCTest.swift
[13/26] Compiling IssueReporting IsTesting.swift
[14/26] Compiling IssueReporting ReportIssue.swift
[15/26] Compiling IssueReporting TestContext.swift
[16/26] Compiling IssueReporting Unimplemented.swift
[17/26] Compiling IssueReporting WithExpectedIssue.swift
[18/27] Compiling IssueReporting UncheckedSendable.swift
[19/27] Compiling IssueReporting Warn.swift
[20/27] Compiling IssueReporting FailureObserver.swift
[21/27] Compiling IssueReporting LockIsolated.swift
[22/27] Compiling IssueReporting AppHostWarning.swift
[23/27] Compiling IssueReporting Deprecations.swift
[24/27] Compiling IssueReporting Rethrows.swift
[25/27] Compiling IssueReporting SwiftTesting.swift
[26/42] Emitting module IssueReporting
[27/92] Compiling IssueReporting WithIssueContext.swift
[28/95] Compiling SwiftSyntax Identifier.swift
[29/95] Compiling SwiftSyntax MemoryLayout.swift
[30/95] Compiling SwiftSyntax MissingNodeInitializers.swift
[31/95] Compiling SwiftSyntax RawSyntax.swift
[32/95] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[33/95] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[34/95] Compiling SwiftSyntax RawSyntaxTokenView.swift
[35/101] Compiling XCTestDynamicOverlay Exports.swift
[36/101] Emitting module XCTestDynamicOverlay
[37/101] Compiling XCTestDynamicOverlay Deprecations.swift
[38/102] Compiling SwiftSyntax SyntaxProtocol.swift
[39/102] Compiling SwiftSyntax SyntaxText.swift
[40/102] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[41/102] Compiling SwiftSyntax TokenDiagnostic.swift
[42/102] Compiling SwiftSyntax TokenSequence.swift
[43/102] Compiling SwiftSyntax TokenSyntax.swift
[44/102] Compiling SwiftSyntax Trivia.swift
[45/102] Compiling SwiftSyntax SourceEdit.swift
[46/102] Compiling SwiftSyntax SourceLength.swift
[47/102] Compiling SwiftSyntax SourceLocation.swift
[48/102] Compiling SwiftSyntax SourcePresence.swift
[49/102] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[50/102] Compiling SwiftSyntax Syntax.swift
[51/102] Compiling SwiftSyntax SyntaxArena.swift
[52/130] Compiling CustomDump CoreImage.swift
[53/130] Compiling CustomDump CoreLocation.swift
[54/130] Compiling CustomDump CoreMotion.swift
[55/132] Compiling CustomDump Dump.swift
[56/132] Compiling CustomDump ExpectDifference.swift
[57/132] Compiling CustomDump ExpectNoDifference.swift
[58/132] Compiling CustomDump CustomDumpRepresentable.swift
[59/132] Compiling CustomDump CustomDumpStringConvertible.swift
[60/132] Compiling CustomDump Diff.swift
[61/132] Compiling CustomDump Photos.swift
[62/132] Compiling CustomDump Speech.swift
[63/132] Compiling CustomDump StoreKit.swift
[64/132] Compiling CustomDump Swift.swift
[65/132] Compiling CustomDump SwiftUI.swift
[66/132] Compiling CustomDump UIKit.swift
[67/132] Compiling CustomDump UserNotifications.swift
[68/132] Compiling CustomDump UserNotificationsUI.swift
[69/132] Compiling CustomDump CustomDumpReflectable.swift
[70/132] Compiling CustomDump AnyType.swift
[71/132] Compiling CustomDump CollectionDifference.swift
[72/132] Compiling CustomDump Identifiable.swift
[73/132] Compiling CustomDump Mirror.swift
[74/132] Compiling CustomDump String.swift
[75/132] Compiling CustomDump Unordered.swift
[76/132] Emitting module CustomDump
[77/132] Compiling CustomDump Foundation.swift
[78/132] Compiling CustomDump GameKit.swift
[79/132] Compiling CustomDump KeyPath.swift
[80/132] Compiling CustomDump XCTAssertDifference.swift
[81/132] Compiling CustomDump XCTAssertNoDifference.swift
[82/134] Emitting module SnapshotTestingCustomDump
[83/134] Compiling SnapshotTestingCustomDump CustomDump.swift
[84/134] Emitting module SwiftSyntax
[86/134] Compiling SwiftSyntax SyntaxChildren.swift
[87/134] Compiling SwiftSyntax SyntaxCollection.swift
[88/134] Compiling SwiftSyntax SyntaxHashable.swift
[89/134] Compiling SwiftSyntax SyntaxIdentifier.swift
[90/134] Compiling SwiftSyntax SyntaxNodeFactory.swift
[91/134] Compiling SwiftSyntax SyntaxNodeStructure.swift
[92/134] Compiling SwiftSyntax AbsolutePosition.swift
[93/134] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[94/134] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[95/134] Compiling SwiftSyntax Assert.swift
[96/134] Compiling SwiftSyntax BumpPtrAllocator.swift
[97/134] Compiling SwiftSyntax CommonAncestor.swift
[98/134] Compiling SwiftSyntax Convenience.swift
[99/134] Compiling SwiftSyntax CustomTraits.swift
[100/134] Compiling SwiftSyntax SyntaxCollections.swift
[101/134] Compiling SwiftSyntax SyntaxEnum.swift
[102/134] Compiling SwiftSyntax SyntaxKind.swift
[103/134] Compiling SwiftSyntax SyntaxRewriter.swift
[104/134] Compiling SwiftSyntax SyntaxTraits.swift
[105/134] Compiling SwiftSyntax SyntaxVisitor.swift
[106/134] Compiling SwiftSyntax TokenKind.swift
[114/134] Compiling SwiftSyntax SyntaxNodesD.swift
[115/134] Compiling SwiftSyntax SyntaxNodesEF.swift
[116/134] Compiling SwiftSyntax SyntaxNodesGHI.swift
[117/134] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[118/134] Compiling SwiftSyntax SyntaxNodesOP.swift
[119/134] Compiling SwiftSyntax SyntaxNodesQRS.swift
[120/134] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[135/192] Compiling SwiftDiagnostics Message.swift
[136/193] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[137/193] Compiling SwiftBasicFormat Syntax+Extensions.swift
[138/193] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[139/193] Compiling SwiftDiagnostics Note.swift
[140/193] Compiling SwiftDiagnostics FixIt.swift
[141/193] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[142/193] Compiling SwiftDiagnostics Convenience.swift
[143/193] Compiling SwiftDiagnostics BasicDiagnosticDecorator.swift
[144/193] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[145/193] Compiling SwiftDiagnostics ANSIDiagnosticDecorator.swift
[146/193] Compiling SwiftDiagnostics Diagnostic.swift
[147/193] Emitting module SwiftDiagnostics
[148/193] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[149/193] Compiling SwiftBasicFormat InferIndentation.swift
[150/193] Compiling SwiftBasicFormat BasicFormat.swift
[151/193] Emitting module SwiftBasicFormat
[152/193] Compiling SwiftParser TopLevel.swift
[153/193] Compiling SwiftParser TriviaParser.swift
[154/193] Compiling SwiftParser Types.swift
[155/193] Compiling SwiftParser ExperimentalFeatures.swift
[156/193] Compiling SwiftParser TokenConsumer.swift
[157/193] Compiling SwiftParser TokenPrecedence.swift
[158/193] Compiling SwiftParser TokenSpec.swift
[159/193] Compiling SwiftParser TokenSpecSet.swift
[160/197] Compiling SwiftParser Recovery.swift
[161/197] Compiling SwiftParser Specifiers.swift
[162/197] Compiling SwiftParser Statements.swift
[163/197] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[164/197] Compiling SwiftParser StringLiterals.swift
[165/197] Compiling SwiftParser SwiftParserCompatibility.swift
[166/197] Compiling SwiftParser SwiftVersion.swift
[167/197] Compiling SwiftParser SyntaxUtils.swift
[168/197] Compiling SwiftParser Directives.swift
[169/197] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[170/197] Compiling SwiftParser Expressions.swift
[171/197] Compiling SwiftParser IncrementalParseTransition.swift
[172/197] Compiling SwiftParser IsValidIdentifier.swift
[173/197] Emitting module SwiftParser
[174/197] Compiling SwiftParser Cursor.swift
[175/197] Compiling SwiftParser Lexeme.swift
[176/197] Compiling SwiftParser LexemeSequence.swift
[177/197] Compiling SwiftParser Lexer.swift
[178/197] Compiling SwiftParser RegexLiteralLexer.swift
[179/197] Compiling SwiftParser UnicodeScalarExtensions.swift
[180/197] Compiling SwiftParser Lookahead.swift
[181/197] Compiling SwiftParser LoopProgressCondition.swift
[182/197] Compiling SwiftParser Modifiers.swift
[183/197] Compiling SwiftParser Names.swift
[184/197] Compiling SwiftParser Nominals.swift
[185/197] Compiling SwiftParser Parameters.swift
[186/197] Compiling SwiftParser ParseSourceFile.swift
[187/197] Compiling SwiftParser Parser.swift
[188/197] Compiling SwiftParser Patterns.swift
[189/197] Compiling SwiftParser Attributes.swift
[190/197] Compiling SwiftParser Availability.swift
[191/197] Compiling SwiftParser CharacterInfo.swift
[192/197] Compiling SwiftParser CollectionNodes+Parsable.swift
[193/197] Compiling SwiftParser Declarations.swift
[194/197] Compiling SwiftParser IsLexerClassified.swift
[195/197] Compiling SwiftParser LayoutNodes+Parsable.swift
[196/197] Compiling SwiftParser Parser+TokenSpecSet.swift
[197/197] Compiling SwiftParser TokenSpecStaticMembers.swift
[198/210] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[199/210] Compiling SwiftParserDiagnostics Utils.swift
[200/210] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[201/210] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[202/210] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[203/210] Compiling SwiftParserDiagnostics PresenceUtils.swift
[204/211] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[205/211] Compiling SwiftParserDiagnostics MissingNodesError.swift
[206/211] Compiling SwiftParserDiagnostics MissingTokenError.swift
[207/211] Emitting module SwiftParserDiagnostics
[208/211] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[209/211] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[210/211] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[211/211] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[212/226] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[213/226] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[214/226] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[215/227] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[216/227] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[217/227] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[218/227] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[219/227] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[220/227] Compiling SwiftSyntaxBuilder Indenter.swift
[221/227] Compiling SwiftSyntaxBuilder ListBuilder.swift
[222/227] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[223/227] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[224/227] Emitting module SwiftSyntaxBuilder
[225/227] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[226/227] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[227/227] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[228/230] Compiling InlineSnapshotTesting Exports.swift
[229/230] Compiling InlineSnapshotTesting AssertInlineSnapshot.swift
[230/230] Emitting module InlineSnapshotTesting
Build of target: 'InlineSnapshotTesting' complete! (13.04s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/pointfreeco/swift-snapshot-testing/1.18.3/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/pointfreeco/swift-snapshot-testing/1.18.3/linkable-paths.json
388
4 /Users/admin/builder/spi-builder-workspace/.docs/pointfreeco/swift-snapshot-testing/1.18.3
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/pointfreeco/swift-snapshot-testing/1.18.3
File count: 388
Doc size: 4.0MB
Preparing doc bundle ...
Uploading prod-pointfreeco-swift-snapshot-testing-1.18.3-6cad1cd2.zip to s3://spi-docs-inbox/prod-pointfreeco-swift-snapshot-testing-1.18.3-6cad1cd2.zip
Copying... [16%]
Copying... [24%]
Copying... [32%]
Copying... [48%]
Copying... [56%]
Copying... [64%]
Copying... [72%]
Copying... [88%]
Copying... [96%]
Copying... [100%]
Done.