Build Information
Successful build of SnapshotPreviews, reference v0.11.0 (6dfb28), with Swift 6.1 for macOS (SPM) on 18 Nov 2025 23:25:54 UTC.
Swift 6 data race errors: 24
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 InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/EmergeTools/SnapshotPreviews.git
Reference: v0.11.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/EmergeTools/SnapshotPreviews
* tag v0.11.0 -> FETCH_HEAD
HEAD is now at 6dfb281 Remove extra print (#249)
Cloned https://github.com/EmergeTools/SnapshotPreviews.git
Revision (git rev-parse @):
6dfb281493e48e7c09ae9717593ae0b8eb47b15c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/EmergeTools/SnapshotPreviews.git at v0.11.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/EmergeTools/SnapshotPreviews.git
https://github.com/EmergeTools/SnapshotPreviews.git
{
"cxx_language_standard" : "c++11",
"dependencies" : [
{
"identity" : "flyingfox",
"requirement" : {
"exact" : [
"0.16.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/swhitty/FlyingFox.git"
},
{
"identity" : "simpledebugger",
"requirement" : {
"exact" : [
"1.0.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/EmergeTools/SimpleDebugger.git"
}
],
"manifest_display_name" : "SnapshotPreviews",
"name" : "SnapshotPreviews",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "PreviewGallery",
"targets" : [
"PreviewGallery"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "SnapshottingTests",
"targets" : [
"SnapshottingTests"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "SnapshotPreferences",
"targets" : [
"SnapshotPreferences"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SnapshotPreviewsCore",
"targets" : [
"SnapshotPreviewsCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Snapshotting",
"targets" : [
"Snapshotting"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "SnapshottingTestsObjc",
"module_type" : "ClangTarget",
"name" : "SnapshottingTestsObjc",
"path" : "Sources/SnapshottingTestsObjc",
"product_dependencies" : [
"SimpleDebugger"
],
"product_memberships" : [
"SnapshottingTests"
],
"sources" : [
"EMGInvocationCreator.mm"
],
"type" : "library"
},
{
"c99name" : "SnapshottingTests",
"module_type" : "SwiftTarget",
"name" : "SnapshottingTests",
"path" : "Sources/SnapshottingTests",
"product_memberships" : [
"SnapshottingTests"
],
"sources" : [
"AccessibilityPreviewTest.swift",
"DiscoveredPreview+PreviewType.swift",
"PreviewBaseTest.swift",
"PreviewFilters.swift",
"PreviewLayoutTest.swift",
"SnapshotTest.swift"
],
"target_dependencies" : [
"SnapshotPreviewsCore",
"SnapshottingTestsObjc"
],
"type" : "library"
},
{
"c99name" : "SnapshottingSwift",
"module_type" : "SwiftTarget",
"name" : "SnapshottingSwift",
"path" : "Sources/SnapshottingSwift",
"product_dependencies" : [
"FlyingFox"
],
"product_memberships" : [
"Snapshotting"
],
"sources" : [
"Initializer.swift",
"Snapshots.swift"
],
"target_dependencies" : [
"SnapshotPreviewsCore"
],
"type" : "library"
},
{
"c99name" : "Snapshotting",
"module_type" : "ClangTarget",
"name" : "Snapshotting",
"path" : "Sources/Snapshotting",
"product_memberships" : [
"Snapshotting"
],
"sources" : [
"Initializer.m"
],
"target_dependencies" : [
"SnapshottingSwift"
],
"type" : "library"
},
{
"c99name" : "SnapshotSharedModels",
"module_type" : "SwiftTarget",
"name" : "SnapshotSharedModels",
"path" : "Sources/SnapshotSharedModels",
"product_memberships" : [
"PreviewGallery",
"SnapshottingTests",
"SnapshotPreferences",
"SnapshotPreviewsCore",
"Snapshotting"
],
"sources" : [
"RenderingMode.swift"
],
"type" : "library"
},
{
"c99name" : "SnapshotPreviewsTests",
"module_type" : "SwiftTarget",
"name" : "SnapshotPreviewsTests",
"path" : "Tests/SnapshotPreviewsTests",
"sources" : [
"ETBrowserTests.swift"
],
"target_dependencies" : [
"SnapshotPreviewsCore"
],
"type" : "test"
},
{
"c99name" : "SnapshotPreviewsCore",
"module_type" : "SwiftTarget",
"name" : "SnapshotPreviewsCore",
"path" : "Sources/SnapshotPreviewsCore",
"product_memberships" : [
"PreviewGallery",
"SnapshottingTests",
"SnapshotPreviewsCore",
"Snapshotting"
],
"sources" : [
"AppKitRenderingStrategy.swift",
"ConformanceLookup.swift",
"ExpandingViewController.swift",
"MetadataTypes.swift",
"ModifierFinder.swift",
"NSImage+EMG.swift",
"Orientation.swift",
"PreferredColorSchemeWrapper.swift",
"RenderingStrategy.swift",
"ScrollExpansion.swift",
"SnapshotPreviewsCore.swift",
"String+Split.swift",
"SwiftUIRenderingStrategy.swift",
"UIImage+EMG.swift",
"UIKitRenderingStrategy.swift",
"UIViewWrapper.swift",
"View+Snapshot.swift",
"ViewSelector.swift"
],
"target_dependencies" : [
"PreviewsSupport",
"SnapshotSharedModels"
],
"type" : "library"
},
{
"c99name" : "SnapshotPreferences",
"module_type" : "SwiftTarget",
"name" : "SnapshotPreferences",
"path" : "Sources/SnapshotPreferences",
"product_memberships" : [
"PreviewGallery",
"SnapshotPreferences"
],
"sources" : [
"AccessibiltyPreference.swift",
"AppStoreSnapshotPreference.swift",
"EmergeModifierFinder.swift",
"ExpansionPreference.swift",
"PrecisionPreference.swift",
"RenderingModePreference.swift"
],
"target_dependencies" : [
"SnapshotSharedModels"
],
"type" : "library"
},
{
"c99name" : "PreviewsSupport",
"module_type" : "BinaryTarget",
"name" : "PreviewsSupport",
"path" : "PreviewsSupport/PreviewsSupport.xcframework",
"product_memberships" : [
"PreviewGallery",
"SnapshottingTests",
"SnapshotPreviewsCore",
"Snapshotting"
],
"sources" : [
],
"type" : "binary"
},
{
"c99name" : "PreviewGallery",
"module_type" : "SwiftTarget",
"name" : "PreviewGallery",
"path" : "Sources/PreviewGallery",
"product_memberships" : [
"PreviewGallery"
],
"sources" : [
"Array+Filter.swift",
"Checkerboard.swift",
"Colors.swift",
"ModulePreviews.swift",
"ModuleScreens.swift",
"Preview+FullScreen.swift",
"PreviewCell.swift",
"PreviewData.swift",
"PreviewGallery.swift",
"PreviewsDetail.swift",
"TitleSubtitleRow.swift"
],
"target_dependencies" : [
"SnapshotPreviewsCore",
"SnapshotPreferences"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/20] Write sources
[8/20] Copying PreviewsSupport.framework
[9/20] Write swift-version-2F0A5646E1D333AE.txt
[10/47] Compiling SimpleDebugger emg_vm_protect.c
[11/47] Compiling SnapshottingTestsObjc EMGInvocationCreator.mm
[12/47] Compiling SimpleDebugger SimpleDebugger.cpp
[14/47] Emitting module FlyingSocks
[15/49] Compiling FlyingSocks Task+Timeout.swift
[16/49] Compiling FlyingSocks Transferring.swift
[17/49] Compiling FlyingSocks ConsumingAsyncSequence.swift
[18/49] Compiling FlyingSocks IdentifiableContinuation.swift
[19/49] Compiling FlyingSocks Logging+OSLog.swift
[20/49] Compiling FlyingSocks SocketPool.swift
[21/49] Compiling FlyingSocks SwiftSupport.swift
[22/49] Compiling FlyingSocks Socket+WinSock2.swift
[23/49] Compiling FlyingSocks Socket.swift
[24/49] Compiling FlyingSocks SocketAddress.swift
[25/49] Compiling FlyingSocks SocketPool+ePoll.swift
[26/49] Compiling FlyingSocks SocketPool+kQueue.swift
[27/49] Compiling FlyingSocks Logging.swift
[28/49] Compiling FlyingSocks Socket+Darwin.swift
[29/49] Compiling FlyingSocks Socket+Glibc.swift
[30/49] Compiling FlyingSocks AsyncBufferedFileSequence.swift
[31/49] Compiling FlyingSocks AsyncBufferedSequence+Extensions.swift
[32/49] Compiling FlyingSocks AsyncBufferedSequence.swift
[33/49] Compiling FlyingSocks SocketError.swift
[34/49] Compiling FlyingSocks SocketPool+Poll.swift
[35/49] Compiling FlyingSocks AsyncChunkedSequence.swift
[36/49] Compiling FlyingSocks AsyncSharedReplaySequence.swift
[37/49] Compiling FlyingSocks AsyncSocket.swift
[38/49] Compiling FlyingSocks AllocatedLock.swift
[39/49] Compiling FlyingSocks AsyncBufferedCollection.swift
[40/49] Compiling FlyingSocks AsyncBufferedEmptySequence.swift
[41/49] Compiling SnapshotSharedModels RenderingMode.swift
[42/49] Emitting module SnapshotSharedModels
[43/113] Compiling FlyingFox HTTPLogging+OSLog.swift
[44/113] Compiling FlyingFox HTTPLogging.swift
[45/113] Compiling FlyingFox HTTPMethod.swift
[46/113] Compiling FlyingFox HTTPRequest+Address.swift
[47/117] Compiling FlyingFox DirectoryHTTPHandler.swift
[48/117] Compiling FlyingFox FileHTTPHandler.swift
[49/117] Compiling FlyingFox ProxyHTTPHandler.swift
[50/117] Compiling FlyingFox RedirectHTTPHandler.swift
[51/117] Compiling FlyingFox UncheckedSendable.swift
[52/117] Compiling FlyingFox AsyncStream+WSFrame.swift
[53/117] Compiling FlyingFox SHA1.swift
[54/117] Compiling FlyingFox WSFrame.swift
[55/117] Compiling FlyingFox RoutedHTTPHandler.swift
[56/117] Compiling FlyingFox WebSocketHTTPHandler.swift
[57/117] Compiling FlyingFox SocketAddress+Glibc.swift
[58/117] Compiling FlyingFox URLSession+Async.swift
[59/117] Emitting module FlyingFox
[60/117] Compiling FlyingFox HTTPServer.swift
[61/117] Compiling FlyingFox HTTPStatusCode.swift
[62/117] Compiling FlyingFox HTTPVersion.swift
[63/117] Compiling FlyingFox ClosureHTTPHandler.swift
[64/117] Compiling FlyingFox HTTPRequest+QueryItem.swift
[65/117] Compiling FlyingFox HTTPRequest+RouteParameter.swift
[66/117] Compiling FlyingFox HTTPRequest.swift
[67/117] Compiling FlyingFox HTTPResponse.swift
[68/117] Compiling FlyingFox HTTPRoute.swift
[69/117] Compiling FlyingFox HTTPRouteParameterValue.swift
[70/117] Compiling FlyingFox HTTPServer+Configuration.swift
[71/117] Compiling FlyingFox HTTPServer+Listening.swift
[72/117] Compiling FlyingFox AsyncSequence+Extensions.swift
[73/117] Compiling FlyingFox HTTPBodyPattern.swift
[74/117] Compiling FlyingFox HTTPBodySequence.swift
[75/117] Compiling FlyingFox HTTPChunkedEncodedSequence.swift
[76/117] Compiling FlyingFox HTTPClient.swift
[77/117] Compiling FlyingFox HTTPConnection.swift
[78/117] Compiling FlyingFox HTTPDecoder.swift
[79/117] Compiling FlyingFox HTTPEncoder.swift
[80/117] Compiling FlyingFox HTTPHandler.swift
[81/117] Compiling FlyingFox HTTPHeader.swift
[82/117] Compiling FlyingFox WSFrameEncoder.swift
[83/117] Compiling FlyingFox WSFrameValidator.swift
[84/117] Compiling FlyingFox WSHandler.swift
[85/117] Compiling FlyingFox WSMessage.swift
[86/117] Compiling SnapshotPreferences RenderingModePreference.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreferences/RenderingModePreference.swift:17:14: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | }
16 |
17 | static var defaultValue: EmergeRenderingMode.RawValue? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | }
19 |
[87/117] Compiling SnapshotPreferences PrecisionPreference.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreferences/PrecisionPreference.swift:16:14: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | static var defaultValue: Float? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | }
18 |
[88/117] Compiling SnapshotPreferences ExpansionPreference.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreferences/ExpansionPreference.swift:18:14: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | static var defaultValue: Bool? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
[89/117] Compiling SnapshotPreferences AppStoreSnapshotPreference.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreferences/AppStoreSnapshotPreference.swift:18:14: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | static var defaultValue: Bool? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
[90/117] Compiling SnapshotPreferences AccessibiltyPreference.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreferences/AccessibiltyPreference.swift:18:14: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | static var defaultValue: Bool? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
[91/117] Emitting module SnapshotPreferences
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreferences/AccessibiltyPreference.swift:18:14: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | static var defaultValue: Bool? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreferences/AppStoreSnapshotPreference.swift:18:14: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | static var defaultValue: Bool? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreferences/EmergeModifierFinder.swift:20:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EmergeModifierState' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @objc(EmergeModifierState)
17 | class EmergeModifierState: NSObject {
| `- note: class 'EmergeModifierState' does not conform to the 'Sendable' protocol
18 |
19 | @objc
20 | static let shared = EmergeModifierState()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EmergeModifierState' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | func reset() {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreferences/ExpansionPreference.swift:18:14: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | static var defaultValue: Bool? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreferences/PrecisionPreference.swift:16:14: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | static var defaultValue: Float? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreferences/RenderingModePreference.swift:17:14: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | }
16 |
17 | static var defaultValue: EmergeRenderingMode.RawValue? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | }
19 |
[92/117] Compiling SnapshotPreferences EmergeModifierFinder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreferences/EmergeModifierFinder.swift:20:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EmergeModifierState' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @objc(EmergeModifierState)
17 | class EmergeModifierState: NSObject {
| `- note: class 'EmergeModifierState' does not conform to the 'Sendable' protocol
18 |
19 | @objc
20 | static let shared = EmergeModifierState()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'EmergeModifierState' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | func reset() {
[93/117] Compiling SnapshotPreviewsCore View+Snapshot.swift
[98/118] Compiling SnapshotPreviewsCore ViewSelector.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:112:7: warning: main actor-isolated property 'contentHeight' cannot be used to satisfy nonisolated requirement from protocol 'ContentHeightProviding'; this is an error in the Swift 6 language mode
16 |
17 | protocol ContentHeightProviding {
18 | var contentHeight: CGFloat { get }
| `- note: requirement 'contentHeight' declared here
19 |
20 | var visibleContentHeight: CGFloat { get }
:
108 |
109 | #if canImport(AppKit) && !targetEnvironment(macCatalyst)
110 | extension NSScrollView: ContentHeightProviding {
| `- note: add '@preconcurrency' to the 'ContentHeightProviding' conformance to defer isolation checking to run time
111 |
112 | var contentHeight: CGFloat {
| `- warning: main actor-isolated property 'contentHeight' cannot be used to satisfy nonisolated requirement from protocol 'ContentHeightProviding'; this is an error in the Swift 6 language mode
113 | documentView?.frame.size.height ?? 0
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:116:7: warning: main actor-isolated property 'visibleContentHeight' cannot be used to satisfy nonisolated requirement from protocol 'ContentHeightProviding'; this is an error in the Swift 6 language mode
18 | var contentHeight: CGFloat { get }
19 |
20 | var visibleContentHeight: CGFloat { get }
| `- note: requirement 'visibleContentHeight' declared here
21 | }
22 |
:
114 | }
115 |
116 | var visibleContentHeight: CGFloat {
| `- warning: main actor-isolated property 'visibleContentHeight' cannot be used to satisfy nonisolated requirement from protocol 'ContentHeightProviding'; this is an error in the Swift 6 language mode
117 | frame.height - (contentInsets.top + contentInsets.bottom)
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:122:7: warning: main actor-isolated property 'firstScrollView' cannot be used to satisfy nonisolated requirement from protocol 'FirstScrollViewProviding'; this is an error in the Swift 6 language mode
22 |
23 | protocol FirstScrollViewProviding {
24 | var firstScrollView: ContentHeightProviding? { get }
| `- note: requirement 'firstScrollView' declared here
25 | }
26 |
:
119 | }
120 |
121 | extension NSView: FirstScrollViewProviding {
| `- note: add '@preconcurrency' to the 'FirstScrollViewProviding' conformance to defer isolation checking to run time
122 | var firstScrollView: ContentHeightProviding? {
| `- warning: main actor-isolated property 'firstScrollView' cannot be used to satisfy nonisolated requirement from protocol 'FirstScrollViewProviding'; this is an error in the Swift 6 language mode
123 | var subviews = subviews
124 | while !subviews.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:141:7: warning: main actor-isolated property 'firstScrollView' cannot be used to satisfy nonisolated requirement from protocol 'FirstScrollViewProviding'; this is an error in the Swift 6 language mode
22 |
23 | protocol FirstScrollViewProviding {
24 | var firstScrollView: ContentHeightProviding? { get }
| `- note: requirement 'firstScrollView' declared here
25 | }
26 |
:
138 | }
139 |
140 | extension NSViewController: FirstScrollViewProviding {
| `- note: add '@preconcurrency' to the 'FirstScrollViewProviding' conformance to defer isolation checking to run time
141 | var firstScrollView: ContentHeightProviding? {
| `- warning: main actor-isolated property 'firstScrollView' cannot be used to satisfy nonisolated requirement from protocol 'FirstScrollViewProviding'; this is an error in the Swift 6 language mode
142 | view.firstScrollView
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:112:7: warning: main actor-isolated property 'contentHeight' cannot be used to satisfy nonisolated requirement from protocol 'ContentHeightProviding'; this is an error in the Swift 6 language mode
16 |
17 | protocol ContentHeightProviding {
18 | var contentHeight: CGFloat { get }
| `- note: requirement 'contentHeight' declared here
19 |
20 | var visibleContentHeight: CGFloat { get }
:
108 |
109 | #if canImport(AppKit) && !targetEnvironment(macCatalyst)
110 | extension NSScrollView: ContentHeightProviding {
| `- note: add '@preconcurrency' to the 'ContentHeightProviding' conformance to defer isolation checking to run time
111 |
112 | var contentHeight: CGFloat {
| `- warning: main actor-isolated property 'contentHeight' cannot be used to satisfy nonisolated requirement from protocol 'ContentHeightProviding'; this is an error in the Swift 6 language mode
113 | documentView?.frame.size.height ?? 0
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:116:7: warning: main actor-isolated property 'visibleContentHeight' cannot be used to satisfy nonisolated requirement from protocol 'ContentHeightProviding'; this is an error in the Swift 6 language mode
18 | var contentHeight: CGFloat { get }
19 |
20 | var visibleContentHeight: CGFloat { get }
| `- note: requirement 'visibleContentHeight' declared here
21 | }
22 |
:
114 | }
115 |
116 | var visibleContentHeight: CGFloat {
| `- warning: main actor-isolated property 'visibleContentHeight' cannot be used to satisfy nonisolated requirement from protocol 'ContentHeightProviding'; this is an error in the Swift 6 language mode
117 | frame.height - (contentInsets.top + contentInsets.bottom)
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:122:7: warning: main actor-isolated property 'firstScrollView' cannot be used to satisfy nonisolated requirement from protocol 'FirstScrollViewProviding'; this is an error in the Swift 6 language mode
22 |
23 | protocol FirstScrollViewProviding {
24 | var firstScrollView: ContentHeightProviding? { get }
| `- note: requirement 'firstScrollView' declared here
25 | }
26 |
:
119 | }
120 |
121 | extension NSView: FirstScrollViewProviding {
| `- note: add '@preconcurrency' to the 'FirstScrollViewProviding' conformance to defer isolation checking to run time
122 | var firstScrollView: ContentHeightProviding? {
| `- warning: main actor-isolated property 'firstScrollView' cannot be used to satisfy nonisolated requirement from protocol 'FirstScrollViewProviding'; this is an error in the Swift 6 language mode
123 | var subviews = subviews
124 | while !subviews.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:141:7: warning: main actor-isolated property 'firstScrollView' cannot be used to satisfy nonisolated requirement from protocol 'FirstScrollViewProviding'; this is an error in the Swift 6 language mode
22 |
23 | protocol FirstScrollViewProviding {
24 | var firstScrollView: ContentHeightProviding? { get }
| `- note: requirement 'firstScrollView' declared here
25 | }
26 |
:
138 | }
139 |
140 | extension NSViewController: FirstScrollViewProviding {
| `- note: add '@preconcurrency' to the 'FirstScrollViewProviding' conformance to defer isolation checking to run time
141 | var firstScrollView: ContentHeightProviding? {
| `- warning: main actor-isolated property 'firstScrollView' cannot be used to satisfy nonisolated requirement from protocol 'FirstScrollViewProviding'; this is an error in the Swift 6 language mode
142 | view.firstScrollView
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ModifierFinder.swift:12:13: warning: let 'modifierFinderClass' is not concurrency-safe because non-'Sendable' type 'NSObject?' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import SnapshotSharedModels
11 |
12 | private let modifierFinderClass = (NSClassFromString("EmergeModifierFinder") as? NSObject.Type)?.init()
| `- warning: let 'modifierFinderClass' is not concurrency-safe because non-'Sendable' type 'NSObject?' may have shared mutable state; this is an error in the Swift 6 language mode
13 | private let finder = modifierFinderClass != nil ? Mirror(reflecting: modifierFinderClass!).descendant("finder") as? (any View) -> any View : nil
14 | private let modifierState = NSClassFromString("EmergeModifierState") as? NSObject.Type
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ModifierFinder.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 | //
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
9 | import SwiftUI
10 | import SnapshotSharedModels
11 |
12 | private let modifierFinderClass = (NSClassFromString("EmergeModifierFinder") as? NSObject.Type)?.init()
| |- note: add '@MainActor' to make let 'modifierFinderClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | private let finder = modifierFinderClass != nil ? Mirror(reflecting: modifierFinderClass!).descendant("finder") as? (any View) -> any View : nil
14 | private let modifierState = NSClassFromString("EmergeModifierState") as? NSObject.Type
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ModifierFinder.swift:13:13: warning: let 'finder' is not concurrency-safe because non-'Sendable' type '((any View) -> any View)?' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | private let modifierFinderClass = (NSClassFromString("EmergeModifierFinder") as? NSObject.Type)?.init()
13 | private let finder = modifierFinderClass != nil ? Mirror(reflecting: modifierFinderClass!).descendant("finder") as? (any View) -> any View : nil
| |- warning: let 'finder' is not concurrency-safe because non-'Sendable' type '((any View) -> any View)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'finder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private let modifierState = NSClassFromString("EmergeModifierState") as? NSObject.Type
15 | private let stateMirror = modifierState != nil ? Mirror(
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ModifierFinder.swift:15:13: warning: let 'stateMirror' is not concurrency-safe because non-'Sendable' type 'Mirror?' may have shared mutable state; this is an error in the Swift 6 language mode
13 | private let finder = modifierFinderClass != nil ? Mirror(reflecting: modifierFinderClass!).descendant("finder") as? (any View) -> any View : nil
14 | private let modifierState = NSClassFromString("EmergeModifierState") as? NSObject.Type
15 | private let stateMirror = modifierState != nil ? Mirror(
| |- warning: let 'stateMirror' is not concurrency-safe because non-'Sendable' type 'Mirror?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'stateMirror' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | reflecting: modifierState!
17 | .perform(NSSelectorFromString("shared"))
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ModifierFinder.swift:12:13: warning: let 'modifierFinderClass' is not concurrency-safe because non-'Sendable' type 'NSObject?' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import SnapshotSharedModels
11 |
12 | private let modifierFinderClass = (NSClassFromString("EmergeModifierFinder") as? NSObject.Type)?.init()
| `- warning: let 'modifierFinderClass' is not concurrency-safe because non-'Sendable' type 'NSObject?' may have shared mutable state; this is an error in the Swift 6 language mode
13 | private let finder = modifierFinderClass != nil ? Mirror(reflecting: modifierFinderClass!).descendant("finder") as? (any View) -> any View : nil
14 | private let modifierState = NSClassFromString("EmergeModifierState") as? NSObject.Type
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ModifierFinder.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 | //
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
9 | import SwiftUI
10 | import SnapshotSharedModels
11 |
12 | private let modifierFinderClass = (NSClassFromString("EmergeModifierFinder") as? NSObject.Type)?.init()
| |- note: add '@MainActor' to make let 'modifierFinderClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | private let finder = modifierFinderClass != nil ? Mirror(reflecting: modifierFinderClass!).descendant("finder") as? (any View) -> any View : nil
14 | private let modifierState = NSClassFromString("EmergeModifierState") as? NSObject.Type
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ModifierFinder.swift:13:13: warning: let 'finder' is not concurrency-safe because non-'Sendable' type '((any View) -> any View)?' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | private let modifierFinderClass = (NSClassFromString("EmergeModifierFinder") as? NSObject.Type)?.init()
13 | private let finder = modifierFinderClass != nil ? Mirror(reflecting: modifierFinderClass!).descendant("finder") as? (any View) -> any View : nil
| |- warning: let 'finder' is not concurrency-safe because non-'Sendable' type '((any View) -> any View)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'finder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private let modifierState = NSClassFromString("EmergeModifierState") as? NSObject.Type
15 | private let stateMirror = modifierState != nil ? Mirror(
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ModifierFinder.swift:15:13: warning: let 'stateMirror' is not concurrency-safe because non-'Sendable' type 'Mirror?' may have shared mutable state; this is an error in the Swift 6 language mode
13 | private let finder = modifierFinderClass != nil ? Mirror(reflecting: modifierFinderClass!).descendant("finder") as? (any View) -> any View : nil
14 | private let modifierState = NSClassFromString("EmergeModifierState") as? NSObject.Type
15 | private let stateMirror = modifierState != nil ? Mirror(
| |- warning: let 'stateMirror' is not concurrency-safe because non-'Sendable' type 'Mirror?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'stateMirror' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | reflecting: modifierState!
17 | .perform(NSSelectorFromString("shared"))
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/SnapshotPreviewsCore.swift:97:23: warning: main actor-isolated static property '_allPreviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
95 | self.fileID = nil
96 | self.line = nil
97 | self.previews = A._allPreviews.map { Preview(preview: $0, type: A.self) }
| `- warning: main actor-isolated static property '_allPreviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
98 | self.platform = A.platform
99 | }
SwiftUI._PreviewProvider._allPreviews:2:46: note: static property declared here
1 | protocol _PreviewProvider {
2 | @MainActor @preconcurrency public static var _allPreviews: [_Preview] { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/SnapshotPreviewsCore.swift:98:23: warning: main actor-isolated static property 'platform' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
96 | self.line = nil
97 | self.previews = A._allPreviews.map { Preview(preview: $0, type: A.self) }
98 | self.platform = A.platform
| `- warning: main actor-isolated static property 'platform' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
SwiftUI.PreviewProvider.platform:2:39: note: static property declared here
1 | protocol PreviewProvider {
2 | @MainActor @preconcurrency static var platform: PreviewPlatform? { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/SnapshotPreviewsCore.swift:13:49: warning: sending 'preview' risks causing data races; this is an error in the Swift 6 language mode
11 | layout = preview.layout
12 | _view = {
13 | ViewSelectorTree(SnapshotViewModel(index: preview.id)) {
| |- warning: sending 'preview' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'preview' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
14 | P.previews
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/SnapshotPreviewsCore.swift:97:23: warning: main actor-isolated static property '_allPreviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
95 | self.fileID = nil
96 | self.line = nil
97 | self.previews = A._allPreviews.map { Preview(preview: $0, type: A.self) }
| `- warning: main actor-isolated static property '_allPreviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
98 | self.platform = A.platform
99 | }
SwiftUI._PreviewProvider._allPreviews:2:46: note: static property declared here
1 | protocol _PreviewProvider {
2 | @MainActor @preconcurrency public static var _allPreviews: [_Preview] { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/SnapshotPreviewsCore.swift:98:23: warning: main actor-isolated static property 'platform' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
96 | self.line = nil
97 | self.previews = A._allPreviews.map { Preview(preview: $0, type: A.self) }
98 | self.platform = A.platform
| `- warning: main actor-isolated static property 'platform' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
SwiftUI.PreviewProvider.platform:2:39: note: static property declared here
1 | protocol PreviewProvider {
2 | @MainActor @preconcurrency static var platform: PreviewPlatform? { get }}
| `- note: static property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/SnapshotPreviewsCore.swift:13:49: warning: sending 'preview' risks causing data races; this is an error in the Swift 6 language mode
11 | layout = preview.layout
12 | _view = {
13 | ViewSelectorTree(SnapshotViewModel(index: preview.id)) {
| |- warning: sending 'preview' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'preview' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
14 | P.previews
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:22:13: warning: var '_colorScheme' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | private var _colorScheme: ColorScheme? = nil
| |- warning: var '_colorScheme' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_colorScheme' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_colorScheme' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | public class AppKitRenderingStrategy: RenderingStrategy {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:117:7: warning: main actor-isolated property 'previousHeight' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
109 | }
110 |
111 | final class AppKitContainer: NSHostingController<EmergeModifierView>, ScrollExpansionProviding {
| `- note: add '@preconcurrency' to the 'ScrollExpansionProviding' conformance to defer isolation checking to run time
112 |
113 | var supportsExpansion: Bool {
:
115 | }
116 | var heightAnchor: NSLayoutConstraint?
117 | var previousHeight: CGFloat?
| `- warning: main actor-isolated property 'previousHeight' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
118 |
119 | public var rendered: ((EmergeRenderingMode?, Float?, Bool?, Bool?) -> Void)? {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:29:7: note: requirement 'previousHeight' declared here
27 | #if !os(watchOS)
28 | protocol ScrollExpansionProviding: AnyObject, FirstScrollViewProviding {
29 | var previousHeight: CGFloat? { get set }
| `- note: requirement 'previousHeight' declared here
30 | var heightAnchor: NSLayoutConstraint? { get }
31 | var supportsExpansion: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:116:7: warning: main actor-isolated property 'heightAnchor' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
114 | rootView.supportsExpansion
115 | }
116 | var heightAnchor: NSLayoutConstraint?
| `- warning: main actor-isolated property 'heightAnchor' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
117 | var previousHeight: CGFloat?
118 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:30:7: note: requirement 'heightAnchor' declared here
28 | protocol ScrollExpansionProviding: AnyObject, FirstScrollViewProviding {
29 | var previousHeight: CGFloat? { get set }
30 | var heightAnchor: NSLayoutConstraint? { get }
| `- note: requirement 'heightAnchor' declared here
31 | var supportsExpansion: Bool { get }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:113:7: warning: main actor-isolated property 'supportsExpansion' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
111 | final class AppKitContainer: NSHostingController<EmergeModifierView>, ScrollExpansionProviding {
112 |
113 | var supportsExpansion: Bool {
| `- warning: main actor-isolated property 'supportsExpansion' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
114 | rootView.supportsExpansion
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:31:7: note: requirement 'supportsExpansion' declared here
29 | var previousHeight: CGFloat? { get set }
30 | var heightAnchor: NSLayoutConstraint? { get }
31 | var supportsExpansion: Bool { get }
| `- note: requirement 'supportsExpansion' declared here
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:29:14: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 |
28 | public init() {
29 | window = BorderlessWindow()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | window.makeKeyAndOrderFront(nil)
31 | }
/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 'NSResponder'
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:30:12: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | public init() {
29 | window = BorderlessWindow()
30 | window.makeKeyAndOrderFront(nil)
| `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | }
32 |
AppKit.NSWindow.makeKeyAndOrderFront:2:22: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func makeKeyAndOrderFront(_ sender: Any?)}
| |- note: calls to instance method 'makeKeyAndOrderFront' 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/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:68:41: warning: call to main actor-isolated instance method 'layerSnapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
63 | }
64 |
65 | private static func takeSnapshot(mode: EmergeRenderingMode, viewController: NSViewController?, window: NSWindow?, completion: @escaping (NSImage?) -> Void) {
| `- note: add '@MainActor' to make static method 'takeSnapshot(mode:viewController:window:completion:)' part of global actor 'MainActor'
66 | switch mode {
67 | case .coreAnimation:
68 | completion(viewController?.view.layerSnapshot())
| `- warning: call to main actor-isolated instance method 'layerSnapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 | case .nsView:
70 | completion(viewController?.view.snapshot())
:
201 | }
202 |
203 | func layerSnapshot() -> NSImage? {
| |- note: calls to instance method 'layerSnapshot()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
204 | let scale = window?.backingScaleFactor ?? 1
205 | let height = Int(bounds.size.height * scale)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:68:36: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | }
64 |
65 | private static func takeSnapshot(mode: EmergeRenderingMode, viewController: NSViewController?, window: NSWindow?, completion: @escaping (NSImage?) -> Void) {
| `- note: add '@MainActor' to make static method 'takeSnapshot(mode:viewController:window:completion:)' part of global actor 'MainActor'
66 | switch mode {
67 | case .coreAnimation:
68 | completion(viewController?.view.layerSnapshot())
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
69 | case .nsView:
70 | completion(viewController?.view.snapshot())
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:78:37: note: property declared here
76 | /* The default implementation of the getter first invokes [self loadView] if the view hasn't been set yet. After -loadView is called, -viewDidLoad will be called. The setter can be used to assign a view that's created in a different manner than what -view's default implementation would do.
77 | */
78 | @property (strong) IBOutlet NSView *view;
| `- note: property declared here
79 |
80 | /* Returns the view controller's view, or nil if the view has not been loaded.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:70:39: warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
63 | }
64 |
65 | private static func takeSnapshot(mode: EmergeRenderingMode, viewController: NSViewController?, window: NSWindow?, completion: @escaping (NSImage?) -> Void) {
| `- note: add '@MainActor' to make static method 'takeSnapshot(mode:viewController:window:completion:)' part of global actor 'MainActor'
66 | switch mode {
67 | case .coreAnimation:
68 | completion(viewController?.view.layerSnapshot())
69 | case .nsView:
70 | completion(viewController?.view.snapshot())
| `- warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | case .window:
72 | if let window {
:
188 |
189 | extension NSView {
190 | func snapshot() -> NSImage? {
| |- note: calls to instance method 'snapshot()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
191 | guard let bitmapRep = bitmapImageRepForCachingDisplay(in: bounds) else {
192 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:70:34: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | }
64 |
65 | private static func takeSnapshot(mode: EmergeRenderingMode, viewController: NSViewController?, window: NSWindow?, completion: @escaping (NSImage?) -> Void) {
| `- note: add '@MainActor' to make static method 'takeSnapshot(mode:viewController:window:completion:)' part of global actor 'MainActor'
66 | switch mode {
67 | case .coreAnimation:
68 | completion(viewController?.view.layerSnapshot())
69 | case .nsView:
70 | completion(viewController?.view.snapshot())
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
71 | case .window:
72 | if let window {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:78:37: note: property declared here
76 | /* The default implementation of the getter first invokes [self loadView] if the view hasn't been set yet. After -loadView is called, -viewDidLoad will be called. The setter can be used to assign a view that's created in a different manner than what -view's default implementation would do.
77 | */
78 | @property (strong) IBOutlet NSView *view;
| `- note: property declared here
79 |
80 | /* Returns the view controller's view, or nil if the view has not been loaded.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:88:26: warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
85 | }
86 |
87 | func trySnapshot(attempt: Int) {
| `- note: add '@MainActor' to make local function 'trySnapshot(attempt:)' part of global actor 'MainActor'
88 | let image = window.snapshot()
| `- warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
89 |
90 | if image != nil || attempt >= maxAttempts {
:
223 |
224 | extension NSWindow {
225 | func snapshot() -> NSImage? {
| |- note: calls to instance method 'snapshot()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
226 | guard let cgImage = CGWindowListCreateImage(.null,
227 | .optionIncludingWindow,
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:102:74: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
100 | let exponentialDelay = baseDelay * pow(2.0, Double(attempt - 1))
101 |
102 | DispatchQueue.main.asyncAfter(deadline: .now() + exponentialDelay) {
| `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
103 | trySnapshot(attempt: attempt + 1)
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:22:13: warning: var '_colorScheme' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | private var _colorScheme: ColorScheme? = nil
| |- warning: var '_colorScheme' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_colorScheme' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_colorScheme' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | public class AppKitRenderingStrategy: RenderingStrategy {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:117:7: warning: main actor-isolated property 'previousHeight' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
109 | }
110 |
111 | final class AppKitContainer: NSHostingController<EmergeModifierView>, ScrollExpansionProviding {
| `- note: add '@preconcurrency' to the 'ScrollExpansionProviding' conformance to defer isolation checking to run time
112 |
113 | var supportsExpansion: Bool {
:
115 | }
116 | var heightAnchor: NSLayoutConstraint?
117 | var previousHeight: CGFloat?
| `- warning: main actor-isolated property 'previousHeight' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
118 |
119 | public var rendered: ((EmergeRenderingMode?, Float?, Bool?, Bool?) -> Void)? {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:29:7: note: requirement 'previousHeight' declared here
27 | #if !os(watchOS)
28 | protocol ScrollExpansionProviding: AnyObject, FirstScrollViewProviding {
29 | var previousHeight: CGFloat? { get set }
| `- note: requirement 'previousHeight' declared here
30 | var heightAnchor: NSLayoutConstraint? { get }
31 | var supportsExpansion: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:116:7: warning: main actor-isolated property 'heightAnchor' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
114 | rootView.supportsExpansion
115 | }
116 | var heightAnchor: NSLayoutConstraint?
| `- warning: main actor-isolated property 'heightAnchor' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
117 | var previousHeight: CGFloat?
118 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:30:7: note: requirement 'heightAnchor' declared here
28 | protocol ScrollExpansionProviding: AnyObject, FirstScrollViewProviding {
29 | var previousHeight: CGFloat? { get set }
30 | var heightAnchor: NSLayoutConstraint? { get }
| `- note: requirement 'heightAnchor' declared here
31 | var supportsExpansion: Bool { get }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:113:7: warning: main actor-isolated property 'supportsExpansion' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
111 | final class AppKitContainer: NSHostingController<EmergeModifierView>, ScrollExpansionProviding {
112 |
113 | var supportsExpansion: Bool {
| `- warning: main actor-isolated property 'supportsExpansion' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
114 | rootView.supportsExpansion
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:31:7: note: requirement 'supportsExpansion' declared here
29 | var previousHeight: CGFloat? { get set }
30 | var heightAnchor: NSLayoutConstraint? { get }
31 | var supportsExpansion: Bool { get }
| `- note: requirement 'supportsExpansion' declared here
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:29:14: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 |
28 | public init() {
29 | window = BorderlessWindow()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | window.makeKeyAndOrderFront(nil)
31 | }
/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 'NSResponder'
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:30:12: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | public init() {
29 | window = BorderlessWindow()
30 | window.makeKeyAndOrderFront(nil)
| `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | }
32 |
AppKit.NSWindow.makeKeyAndOrderFront:2:22: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func makeKeyAndOrderFront(_ sender: Any?)}
| |- note: calls to instance method 'makeKeyAndOrderFront' 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/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:68:41: warning: call to main actor-isolated instance method 'layerSnapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
63 | }
64 |
65 | private static func takeSnapshot(mode: EmergeRenderingMode, viewController: NSViewController?, window: NSWindow?, completion: @escaping (NSImage?) -> Void) {
| `- note: add '@MainActor' to make static method 'takeSnapshot(mode:viewController:window:completion:)' part of global actor 'MainActor'
66 | switch mode {
67 | case .coreAnimation:
68 | completion(viewController?.view.layerSnapshot())
| `- warning: call to main actor-isolated instance method 'layerSnapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 | case .nsView:
70 | completion(viewController?.view.snapshot())
:
201 | }
202 |
203 | func layerSnapshot() -> NSImage? {
| |- note: calls to instance method 'layerSnapshot()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
204 | let scale = window?.backingScaleFactor ?? 1
205 | let height = Int(bounds.size.height * scale)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:68:36: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | }
64 |
65 | private static func takeSnapshot(mode: EmergeRenderingMode, viewController: NSViewController?, window: NSWindow?, completion: @escaping (NSImage?) -> Void) {
| `- note: add '@MainActor' to make static method 'takeSnapshot(mode:viewController:window:completion:)' part of global actor 'MainActor'
66 | switch mode {
67 | case .coreAnimation:
68 | completion(viewController?.view.layerSnapshot())
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
69 | case .nsView:
70 | completion(viewController?.view.snapshot())
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:78:37: note: property declared here
76 | /* The default implementation of the getter first invokes [self loadView] if the view hasn't been set yet. After -loadView is called, -viewDidLoad will be called. The setter can be used to assign a view that's created in a different manner than what -view's default implementation would do.
77 | */
78 | @property (strong) IBOutlet NSView *view;
| `- note: property declared here
79 |
80 | /* Returns the view controller's view, or nil if the view has not been loaded.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:70:39: warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
63 | }
64 |
65 | private static func takeSnapshot(mode: EmergeRenderingMode, viewController: NSViewController?, window: NSWindow?, completion: @escaping (NSImage?) -> Void) {
| `- note: add '@MainActor' to make static method 'takeSnapshot(mode:viewController:window:completion:)' part of global actor 'MainActor'
66 | switch mode {
67 | case .coreAnimation:
68 | completion(viewController?.view.layerSnapshot())
69 | case .nsView:
70 | completion(viewController?.view.snapshot())
| `- warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | case .window:
72 | if let window {
:
188 |
189 | extension NSView {
190 | func snapshot() -> NSImage? {
| |- note: calls to instance method 'snapshot()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
191 | guard let bitmapRep = bitmapImageRepForCachingDisplay(in: bounds) else {
192 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:70:34: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | }
64 |
65 | private static func takeSnapshot(mode: EmergeRenderingMode, viewController: NSViewController?, window: NSWindow?, completion: @escaping (NSImage?) -> Void) {
| `- note: add '@MainActor' to make static method 'takeSnapshot(mode:viewController:window:completion:)' part of global actor 'MainActor'
66 | switch mode {
67 | case .coreAnimation:
68 | completion(viewController?.view.layerSnapshot())
69 | case .nsView:
70 | completion(viewController?.view.snapshot())
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
71 | case .window:
72 | if let window {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:78:37: note: property declared here
76 | /* The default implementation of the getter first invokes [self loadView] if the view hasn't been set yet. After -loadView is called, -viewDidLoad will be called. The setter can be used to assign a view that's created in a different manner than what -view's default implementation would do.
77 | */
78 | @property (strong) IBOutlet NSView *view;
| `- note: property declared here
79 |
80 | /* Returns the view controller's view, or nil if the view has not been loaded.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:88:26: warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
85 | }
86 |
87 | func trySnapshot(attempt: Int) {
| `- note: add '@MainActor' to make local function 'trySnapshot(attempt:)' part of global actor 'MainActor'
88 | let image = window.snapshot()
| `- warning: call to main actor-isolated instance method 'snapshot()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
89 |
90 | if image != nil || attempt >= maxAttempts {
:
223 |
224 | extension NSWindow {
225 | func snapshot() -> NSImage? {
| |- note: calls to instance method 'snapshot()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
226 | guard let cgImage = CGWindowListCreateImage(.null,
227 | .optionIncludingWindow,
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:102:74: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
100 | let exponentialDelay = baseDelay * pow(2.0, Double(attempt - 1))
101 |
102 | DispatchQueue.main.asyncAfter(deadline: .now() + exponentialDelay) {
| `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
103 | trySnapshot(attempt: attempt + 1)
104 | }
[111/118] Emitting module SnapshotPreviewsCore
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:22:13: warning: var '_colorScheme' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | private var _colorScheme: ColorScheme? = nil
| |- warning: var '_colorScheme' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_colorScheme' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_colorScheme' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | public class AppKitRenderingStrategy: RenderingStrategy {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:117:7: warning: main actor-isolated property 'previousHeight' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
109 | }
110 |
111 | final class AppKitContainer: NSHostingController<EmergeModifierView>, ScrollExpansionProviding {
| `- note: add '@preconcurrency' to the 'ScrollExpansionProviding' conformance to defer isolation checking to run time
112 |
113 | var supportsExpansion: Bool {
:
115 | }
116 | var heightAnchor: NSLayoutConstraint?
117 | var previousHeight: CGFloat?
| `- warning: main actor-isolated property 'previousHeight' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
118 |
119 | public var rendered: ((EmergeRenderingMode?, Float?, Bool?, Bool?) -> Void)? {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:29:7: note: requirement 'previousHeight' declared here
27 | #if !os(watchOS)
28 | protocol ScrollExpansionProviding: AnyObject, FirstScrollViewProviding {
29 | var previousHeight: CGFloat? { get set }
| `- note: requirement 'previousHeight' declared here
30 | var heightAnchor: NSLayoutConstraint? { get }
31 | var supportsExpansion: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:116:7: warning: main actor-isolated property 'heightAnchor' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
114 | rootView.supportsExpansion
115 | }
116 | var heightAnchor: NSLayoutConstraint?
| `- warning: main actor-isolated property 'heightAnchor' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
117 | var previousHeight: CGFloat?
118 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:30:7: note: requirement 'heightAnchor' declared here
28 | protocol ScrollExpansionProviding: AnyObject, FirstScrollViewProviding {
29 | var previousHeight: CGFloat? { get set }
30 | var heightAnchor: NSLayoutConstraint? { get }
| `- note: requirement 'heightAnchor' declared here
31 | var supportsExpansion: Bool { get }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift:113:7: warning: main actor-isolated property 'supportsExpansion' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
111 | final class AppKitContainer: NSHostingController<EmergeModifierView>, ScrollExpansionProviding {
112 |
113 | var supportsExpansion: Bool {
| `- warning: main actor-isolated property 'supportsExpansion' cannot be used to satisfy nonisolated requirement from protocol 'ScrollExpansionProviding'; this is an error in the Swift 6 language mode
114 | rootView.supportsExpansion
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:31:7: note: requirement 'supportsExpansion' declared here
29 | var previousHeight: CGFloat? { get set }
30 | var heightAnchor: NSLayoutConstraint? { get }
31 | var supportsExpansion: Bool { get }
| `- note: requirement 'supportsExpansion' declared here
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ModifierFinder.swift:12:13: warning: let 'modifierFinderClass' is not concurrency-safe because non-'Sendable' type 'NSObject?' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import SnapshotSharedModels
11 |
12 | private let modifierFinderClass = (NSClassFromString("EmergeModifierFinder") as? NSObject.Type)?.init()
| `- warning: let 'modifierFinderClass' is not concurrency-safe because non-'Sendable' type 'NSObject?' may have shared mutable state; this is an error in the Swift 6 language mode
13 | private let finder = modifierFinderClass != nil ? Mirror(reflecting: modifierFinderClass!).descendant("finder") as? (any View) -> any View : nil
14 | private let modifierState = NSClassFromString("EmergeModifierState") as? NSObject.Type
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:53:12: note: class 'NSObject' does not conform to the 'Sendable' protocol
51 | OBJC_ROOT_CLASS
52 | OBJC_EXPORT
53 | @interface NSObject <NSObject> {
| `- note: class 'NSObject' does not conform to the 'Sendable' protocol
54 | #pragma clang diagnostic push
55 | #pragma clang diagnostic ignored "-Wobjc-interface-ivars"
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ModifierFinder.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
6 | //
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
9 | import SwiftUI
10 | import SnapshotSharedModels
11 |
12 | private let modifierFinderClass = (NSClassFromString("EmergeModifierFinder") as? NSObject.Type)?.init()
| |- note: add '@MainActor' to make let 'modifierFinderClass' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | private let finder = modifierFinderClass != nil ? Mirror(reflecting: modifierFinderClass!).descendant("finder") as? (any View) -> any View : nil
14 | private let modifierState = NSClassFromString("EmergeModifierState") as? NSObject.Type
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ModifierFinder.swift:13:13: warning: let 'finder' is not concurrency-safe because non-'Sendable' type '((any View) -> any View)?' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | private let modifierFinderClass = (NSClassFromString("EmergeModifierFinder") as? NSObject.Type)?.init()
13 | private let finder = modifierFinderClass != nil ? Mirror(reflecting: modifierFinderClass!).descendant("finder") as? (any View) -> any View : nil
| |- warning: let 'finder' is not concurrency-safe because non-'Sendable' type '((any View) -> any View)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'finder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private let modifierState = NSClassFromString("EmergeModifierState") as? NSObject.Type
15 | private let stateMirror = modifierState != nil ? Mirror(
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ModifierFinder.swift:15:13: warning: let 'stateMirror' is not concurrency-safe because non-'Sendable' type 'Mirror?' may have shared mutable state; this is an error in the Swift 6 language mode
13 | private let finder = modifierFinderClass != nil ? Mirror(reflecting: modifierFinderClass!).descendant("finder") as? (any View) -> any View : nil
14 | private let modifierState = NSClassFromString("EmergeModifierState") as? NSObject.Type
15 | private let stateMirror = modifierState != nil ? Mirror(
| |- warning: let 'stateMirror' is not concurrency-safe because non-'Sendable' type 'Mirror?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'stateMirror' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | reflecting: modifierState!
17 | .perform(NSSelectorFromString("shared"))
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:112:7: warning: main actor-isolated property 'contentHeight' cannot be used to satisfy nonisolated requirement from protocol 'ContentHeightProviding'; this is an error in the Swift 6 language mode
16 |
17 | protocol ContentHeightProviding {
18 | var contentHeight: CGFloat { get }
| `- note: requirement 'contentHeight' declared here
19 |
20 | var visibleContentHeight: CGFloat { get }
:
108 |
109 | #if canImport(AppKit) && !targetEnvironment(macCatalyst)
110 | extension NSScrollView: ContentHeightProviding {
| `- note: add '@preconcurrency' to the 'ContentHeightProviding' conformance to defer isolation checking to run time
111 |
112 | var contentHeight: CGFloat {
| `- warning: main actor-isolated property 'contentHeight' cannot be used to satisfy nonisolated requirement from protocol 'ContentHeightProviding'; this is an error in the Swift 6 language mode
113 | documentView?.frame.size.height ?? 0
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:116:7: warning: main actor-isolated property 'visibleContentHeight' cannot be used to satisfy nonisolated requirement from protocol 'ContentHeightProviding'; this is an error in the Swift 6 language mode
18 | var contentHeight: CGFloat { get }
19 |
20 | var visibleContentHeight: CGFloat { get }
| `- note: requirement 'visibleContentHeight' declared here
21 | }
22 |
:
114 | }
115 |
116 | var visibleContentHeight: CGFloat {
| `- warning: main actor-isolated property 'visibleContentHeight' cannot be used to satisfy nonisolated requirement from protocol 'ContentHeightProviding'; this is an error in the Swift 6 language mode
117 | frame.height - (contentInsets.top + contentInsets.bottom)
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:122:7: warning: main actor-isolated property 'firstScrollView' cannot be used to satisfy nonisolated requirement from protocol 'FirstScrollViewProviding'; this is an error in the Swift 6 language mode
22 |
23 | protocol FirstScrollViewProviding {
24 | var firstScrollView: ContentHeightProviding? { get }
| `- note: requirement 'firstScrollView' declared here
25 | }
26 |
:
119 | }
120 |
121 | extension NSView: FirstScrollViewProviding {
| `- note: add '@preconcurrency' to the 'FirstScrollViewProviding' conformance to defer isolation checking to run time
122 | var firstScrollView: ContentHeightProviding? {
| `- warning: main actor-isolated property 'firstScrollView' cannot be used to satisfy nonisolated requirement from protocol 'FirstScrollViewProviding'; this is an error in the Swift 6 language mode
123 | var subviews = subviews
124 | while !subviews.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotPreviewsCore/ScrollExpansion.swift:141:7: warning: main actor-isolated property 'firstScrollView' cannot be used to satisfy nonisolated requirement from protocol 'FirstScrollViewProviding'; this is an error in the Swift 6 language mode
22 |
23 | protocol FirstScrollViewProviding {
24 | var firstScrollView: ContentHeightProviding? { get }
| `- note: requirement 'firstScrollView' declared here
25 | }
26 |
:
138 | }
139 |
140 | extension NSViewController: FirstScrollViewProviding {
| `- note: add '@preconcurrency' to the 'FirstScrollViewProviding' conformance to defer isolation checking to run time
141 | var firstScrollView: ContentHeightProviding? {
| `- warning: main actor-isolated property 'firstScrollView' cannot be used to satisfy nonisolated requirement from protocol 'FirstScrollViewProviding'; this is an error in the Swift 6 language mode
142 | view.firstScrollView
143 | }
[112/139] Compiling PreviewGallery PreviewData.swift
[113/140] Compiling PreviewGallery PreviewsDetail.swift
[114/140] Compiling PreviewGallery PreviewGallery.swift
[115/140] Compiling PreviewGallery Preview+FullScreen.swift
[116/140] Compiling PreviewGallery PreviewCell.swift
[117/140] Compiling PreviewGallery ModulePreviews.swift
[118/140] Compiling PreviewGallery Array+Filter.swift
[119/140] Compiling PreviewGallery Checkerboard.swift
[120/140] Emitting module PreviewGallery
[121/140] Compiling PreviewGallery ModuleScreens.swift
[122/140] Compiling PreviewGallery Colors.swift
[123/140] Emitting module SnapshottingSwift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingSwift/Initializer.swift:17:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Initializer' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | @objc
14 | public class Initializer: NSObject {
| `- note: class 'Initializer' does not conform to the 'Sendable' protocol
15 |
16 | @objc
17 | static public let shared = Initializer()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Initializer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | override init() {
[124/140] Compiling SnapshottingSwift Snapshots.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingSwift/Snapshots.swift:60:17: warning: capture of 'self' with non-sendable type 'Snapshots?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
24 | }
25 |
26 | class Snapshots {
| `- note: class 'Snapshots' does not conform to the 'Sendable' protocol
27 | let server = HTTPServer(address: .loopback(port: 38824))
28 |
:
58 | await server.appendRoute("GET /display/*") { [weak self] request in
59 | let pathComponents = request.path.components(separatedBy: "/")
60 | guard let self, pathComponents.count > 3 else {
| `- warning: capture of 'self' with non-sendable type 'Snapshots?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
61 | return HTTPResponse(statusCode: .badRequest)
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingSwift/Snapshots.swift:68:42: warning: non-sendable result type '(Result<ImageType, any Error>, Preview)' (aka '(Result<NSImage, any Error>, Preview)') cannot be sent from main actor-isolated context in call to instance method 'render(typeName:id:)'; this is an error in the Swift 6 language mode
66 |
67 | var result: [String: String] = [:]
68 | let (imageResult, preview) = await render(typeName: typeName, id: id)
| `- warning: non-sendable result type '(Result<ImageType, any Error>, Preview)' (aka '(Result<NSImage, any Error>, Preview)') cannot be sent from main actor-isolated context in call to instance method 'render(typeName:id:)'; this is an error in the Swift 6 language mode
69 |
70 | if let displayName = preview.displayName {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingSwift/Snapshots.swift:41:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
39 | }
40 | #endif
41 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
42 | try await startServer()
| `- note: closure captures 'self' which is accessible to code in the current task
43 | }
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingSwift/Snapshots.swift:112:22: warning: sending 'result.image' risks causing data races; this is an error in the Swift 6 language mode
110 | let result = await withCheckedContinuation { continuation in
111 | renderingStrategy.render(preview: preview) { result in
112 | continuation.resume(returning: result.image)
| |- warning: sending 'result.image' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'result.image' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
113 | }
114 | }
[125/140] Compiling SnapshottingSwift Initializer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingSwift/Initializer.swift:17:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Initializer' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | @objc
14 | public class Initializer: NSObject {
| `- note: class 'Initializer' does not conform to the 'Sendable' protocol
15 |
16 | @objc
17 | static public let shared = Initializer()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Initializer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | override init() {
[126/140] Compiling PreviewGallery TitleSubtitleRow.swift
[126/140] Write Objects.LinkFileList
[127/140] Archiving libPreviewGallery.a
[128/140] Compiling Snapshotting Initializer.m
[129/140] Write Objects.LinkFileList
[130/140] Linking libSnapshotting.dylib
[132/140] Emitting module SnapshottingTests
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/DiscoveredPreview+PreviewType.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshottingTests' may lead to instability during execution
7 |
8 | import Foundation
9 | @_implementationOnly import SnapshotPreviewsCore
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshottingTests' may lead to instability during execution
10 |
11 | extension DiscoveredPreview {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/PreviewLayoutTest.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshottingTests' may lead to instability during execution
7 |
8 | import Foundation
9 | @_implementationOnly import SnapshotPreviewsCore
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshottingTests' may lead to instability during execution
10 | import SwiftUI
11 | import XCTest
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/SnapshotTest.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshottingTests' may lead to instability during execution
7 |
8 | import Foundation
9 | @_implementationOnly import SnapshotPreviewsCore
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshottingTests' may lead to instability during execution
10 | import XCTest
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/PreviewBaseTest.swift:24:5: warning: var 'previews' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | var previews: [DiscoveredPreviewAndIndex] = []
| |- warning: var 'previews' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previews' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'previews' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | @objc(EMGPreviewBaseTest)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/PreviewBaseTest.swift:29:14: warning: static property 'signatureCreator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | open class PreviewBaseTest: XCTestCase {
28 |
29 | static var signatureCreator: NSObject?
| |- warning: static property 'signatureCreator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'signatureCreator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'signatureCreator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | @objc
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/PreviewLayoutTest.swift:35:22: warning: static property 'previews' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | }
34 |
35 | static private var previews: [PreviewType] = []
| |- warning: static property 'previews' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previews' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'previews' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// Discovers all relevant previews based on inclusion and exclusion filters. Subclasses should NOT override this method.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/SnapshotTest.swift:61:22: warning: static property 'renderingStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | }
60 | #endif
61 | private static var renderingStrategy: RenderingStrategy? = nil
| |- warning: static property 'renderingStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'renderingStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'renderingStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | static private var previews: [SnapshotPreviewsCore.PreviewType] = []
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/SnapshotTest.swift:63:22: warning: static property 'previews' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | private static var renderingStrategy: RenderingStrategy? = nil
62 |
63 | static private var previews: [SnapshotPreviewsCore.PreviewType] = []
| |- warning: static property 'previews' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previews' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'previews' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | static private var previewCountForFileId: [String: Int] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/SnapshotTest.swift:65:22: warning: static property 'previewCountForFileId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
63 | static private var previews: [SnapshotPreviewsCore.PreviewType] = []
64 |
65 | static private var previewCountForFileId: [String: Int] = [:]
| |- warning: static property 'previewCountForFileId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previewCountForFileId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'previewCountForFileId' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |
67 | /// Discovers all relevant previews based on inclusion and exclusion filters. Subclasses should NOT override this method.
[133/140] Compiling SnapshottingTests PreviewBaseTest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/PreviewBaseTest.swift:24:5: warning: var 'previews' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | }
23 |
24 | var previews: [DiscoveredPreviewAndIndex] = []
| |- warning: var 'previews' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previews' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'previews' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | @objc(EMGPreviewBaseTest)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/PreviewBaseTest.swift:29:14: warning: static property 'signatureCreator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | open class PreviewBaseTest: XCTestCase {
28 |
29 | static var signatureCreator: NSObject?
| |- warning: static property 'signatureCreator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'signatureCreator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'signatureCreator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | @objc
[134/140] Compiling SnapshottingTests PreviewFilters.swift
[135/140] Compiling SnapshottingTests SnapshotTest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/SnapshotTest.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshottingTests' may lead to instability during execution
7 |
8 | import Foundation
9 | @_implementationOnly import SnapshotPreviewsCore
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshottingTests' may lead to instability during execution
10 | import XCTest
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/SnapshotTest.swift:61:22: warning: static property 'renderingStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | }
60 | #endif
61 | private static var renderingStrategy: RenderingStrategy? = nil
| |- warning: static property 'renderingStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'renderingStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'renderingStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | static private var previews: [SnapshotPreviewsCore.PreviewType] = []
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/SnapshotTest.swift:63:22: warning: static property 'previews' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | private static var renderingStrategy: RenderingStrategy? = nil
62 |
63 | static private var previews: [SnapshotPreviewsCore.PreviewType] = []
| |- warning: static property 'previews' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previews' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'previews' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | static private var previewCountForFileId: [String: Int] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/SnapshotTest.swift:65:22: warning: static property 'previewCountForFileId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
63 | static private var previews: [SnapshotPreviewsCore.PreviewType] = []
64 |
65 | static private var previewCountForFileId: [String: Int] = [:]
| |- warning: static property 'previewCountForFileId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previewCountForFileId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'previewCountForFileId' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |
67 | /// Discovers all relevant previews based on inclusion and exclusion filters. Subclasses should NOT override this method.
[136/140] Compiling SnapshottingTests DiscoveredPreview+PreviewType.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/DiscoveredPreview+PreviewType.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshottingTests' may lead to instability during execution
7 |
8 | import Foundation
9 | @_implementationOnly import SnapshotPreviewsCore
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshottingTests' may lead to instability during execution
10 |
11 | extension DiscoveredPreview {
[137/140] Compiling SnapshottingTests AccessibilityPreviewTest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/AccessibilityPreviewTest.swift:28:5: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | ///
26 | /// - Returns: An instance of XCUIApplication.
27 | open class func getApp() -> XCUIApplication {
| `- note: add '@MainActor' to make class method 'getApp()' part of global actor 'MainActor'
28 | XCUIApplication()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
29 | }
30 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCUIAutomation.framework/Headers/XCUIApplication.h:29:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
27 | * Returns a proxy for the application specified by the "Target Application" target setting.
28 | */
29 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
30 | + (instancetype)new;
31 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/AccessibilityPreviewTest.swift:118:9: warning: mutation of captured var 'resultPath' in concurrently-executing code
116 | let task = URLSession.shared.dataTask(with: request) { data, response, error in
117 | if let data = data, let stringData = String(data: data, encoding: .utf8) {
118 | resultPath = stringData
| `- warning: mutation of captured var 'resultPath' in concurrently-executing code
119 | }
120 | group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/AccessibilityPreviewTest.swift:155:7: warning: mutation of captured var 'resultData' in concurrently-executing code
153 | var resultData: Data?
154 | let task = URLSession.shared.dataTask(with: request) { data, response, error in
155 | resultData = data
| `- warning: mutation of captured var 'resultData' in concurrently-executing code
156 | expectation.fulfill()
157 | }
[138/140] Compiling SnapshottingTests PreviewLayoutTest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/PreviewLayoutTest.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'SnapshottingTests' may lead to instability during execution
7 |
8 | import Foundation
9 | @_implementationOnly import SnapshotPreviewsCore
| `- warning: using '@_implementationOnly' without enabling library evolution for 'SnapshottingTests' may lead to instability during execution
10 | import SwiftUI
11 | import XCTest
/Users/admin/builder/spi-builder-workspace/Sources/SnapshottingTests/PreviewLayoutTest.swift:35:22: warning: static property 'previews' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | }
34 |
35 | static private var previews: [PreviewType] = []
| |- warning: static property 'previews' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previews' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'previews' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// Discovers all relevant previews based on inclusion and exclusion filters. Subclasses should NOT override this method.
[138/140] Write Objects.LinkFileList
[139/140] Archiving libSnapshottingTests.a
Build complete! (23.65s)
Fetching https://github.com/EmergeTools/SimpleDebugger.git
Fetching https://github.com/swhitty/FlyingFox.git
[1/120] Fetching simpledebugger
[77/5844] Fetching simpledebugger, flyingfox
Fetched https://github.com/EmergeTools/SimpleDebugger.git from cache (0.73s)
[458/5724] Fetching flyingfox
Fetched https://github.com/swhitty/FlyingFox.git from cache (1.04s)
Computing version for https://github.com/EmergeTools/SimpleDebugger.git
Computed https://github.com/EmergeTools/SimpleDebugger.git at 1.0.0 (1.55s)
Computing version for https://github.com/swhitty/FlyingFox.git
Computed https://github.com/swhitty/FlyingFox.git at 0.16.0 (0.49s)
Creating working copy for https://github.com/swhitty/FlyingFox.git
Working copy of https://github.com/swhitty/FlyingFox.git resolved at 0.16.0
Creating working copy for https://github.com/EmergeTools/SimpleDebugger.git
Working copy of https://github.com/EmergeTools/SimpleDebugger.git resolved at 1.0.0
Build complete.
{
"cxx_language_standard" : "c++11",
"dependencies" : [
{
"identity" : "flyingfox",
"requirement" : {
"exact" : [
"0.16.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/swhitty/FlyingFox.git"
},
{
"identity" : "simpledebugger",
"requirement" : {
"exact" : [
"1.0.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/EmergeTools/SimpleDebugger.git"
}
],
"manifest_display_name" : "SnapshotPreviews",
"name" : "SnapshotPreviews",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "PreviewGallery",
"targets" : [
"PreviewGallery"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "SnapshottingTests",
"targets" : [
"SnapshottingTests"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "SnapshotPreferences",
"targets" : [
"SnapshotPreferences"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SnapshotPreviewsCore",
"targets" : [
"SnapshotPreviewsCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Snapshotting",
"targets" : [
"Snapshotting"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "SnapshottingTestsObjc",
"module_type" : "ClangTarget",
"name" : "SnapshottingTestsObjc",
"path" : "Sources/SnapshottingTestsObjc",
"product_dependencies" : [
"SimpleDebugger"
],
"product_memberships" : [
"SnapshottingTests"
],
"sources" : [
"EMGInvocationCreator.mm"
],
"type" : "library"
},
{
"c99name" : "SnapshottingTests",
"module_type" : "SwiftTarget",
"name" : "SnapshottingTests",
"path" : "Sources/SnapshottingTests",
"product_memberships" : [
"SnapshottingTests"
],
"sources" : [
"AccessibilityPreviewTest.swift",
"DiscoveredPreview+PreviewType.swift",
"PreviewBaseTest.swift",
"PreviewFilters.swift",
"PreviewLayoutTest.swift",
"SnapshotTest.swift"
],
"target_dependencies" : [
"SnapshotPreviewsCore",
"SnapshottingTestsObjc"
],
"type" : "library"
},
{
"c99name" : "SnapshottingSwift",
"module_type" : "SwiftTarget",
"name" : "SnapshottingSwift",
"path" : "Sources/SnapshottingSwift",
"product_dependencies" : [
"FlyingFox"
],
"product_memberships" : [
"Snapshotting"
],
"sources" : [
"Initializer.swift",
"Snapshots.swift"
],
"target_dependencies" : [
"SnapshotPreviewsCore"
],
"type" : "library"
},
{
"c99name" : "Snapshotting",
"module_type" : "ClangTarget",
"name" : "Snapshotting",
"path" : "Sources/Snapshotting",
"product_memberships" : [
"Snapshotting"
],
"sources" : [
"Initializer.m"
],
"target_dependencies" : [
"SnapshottingSwift"
],
"type" : "library"
},
{
"c99name" : "SnapshotSharedModels",
"module_type" : "SwiftTarget",
"name" : "SnapshotSharedModels",
"path" : "Sources/SnapshotSharedModels",
"product_memberships" : [
"PreviewGallery",
"SnapshottingTests",
"SnapshotPreferences",
"SnapshotPreviewsCore",
"Snapshotting"
],
"sources" : [
"RenderingMode.swift"
],
"type" : "library"
},
{
"c99name" : "SnapshotPreviewsTests",
"module_type" : "SwiftTarget",
"name" : "SnapshotPreviewsTests",
"path" : "Tests/SnapshotPreviewsTests",
"sources" : [
"ETBrowserTests.swift"
],
"target_dependencies" : [
"SnapshotPreviewsCore"
],
"type" : "test"
},
{
"c99name" : "SnapshotPreviewsCore",
"module_type" : "SwiftTarget",
"name" : "SnapshotPreviewsCore",
"path" : "Sources/SnapshotPreviewsCore",
"product_memberships" : [
"PreviewGallery",
"SnapshottingTests",
"SnapshotPreviewsCore",
"Snapshotting"
],
"sources" : [
"AppKitRenderingStrategy.swift",
"ConformanceLookup.swift",
"ExpandingViewController.swift",
"MetadataTypes.swift",
"ModifierFinder.swift",
"NSImage+EMG.swift",
"Orientation.swift",
"PreferredColorSchemeWrapper.swift",
"RenderingStrategy.swift",
"ScrollExpansion.swift",
"SnapshotPreviewsCore.swift",
"String+Split.swift",
"SwiftUIRenderingStrategy.swift",
"UIImage+EMG.swift",
"UIKitRenderingStrategy.swift",
"UIViewWrapper.swift",
"View+Snapshot.swift",
"ViewSelector.swift"
],
"target_dependencies" : [
"PreviewsSupport",
"SnapshotSharedModels"
],
"type" : "library"
},
{
"c99name" : "SnapshotPreferences",
"module_type" : "SwiftTarget",
"name" : "SnapshotPreferences",
"path" : "Sources/SnapshotPreferences",
"product_memberships" : [
"PreviewGallery",
"SnapshotPreferences"
],
"sources" : [
"AccessibiltyPreference.swift",
"AppStoreSnapshotPreference.swift",
"EmergeModifierFinder.swift",
"ExpansionPreference.swift",
"PrecisionPreference.swift",
"RenderingModePreference.swift"
],
"target_dependencies" : [
"SnapshotSharedModels"
],
"type" : "library"
},
{
"c99name" : "PreviewsSupport",
"module_type" : "BinaryTarget",
"name" : "PreviewsSupport",
"path" : "PreviewsSupport/PreviewsSupport.xcframework",
"product_memberships" : [
"PreviewGallery",
"SnapshottingTests",
"SnapshotPreviewsCore",
"Snapshotting"
],
"sources" : [
],
"type" : "binary"
},
{
"c99name" : "PreviewGallery",
"module_type" : "SwiftTarget",
"name" : "PreviewGallery",
"path" : "Sources/PreviewGallery",
"product_memberships" : [
"PreviewGallery"
],
"sources" : [
"Array+Filter.swift",
"Checkerboard.swift",
"Colors.swift",
"ModulePreviews.swift",
"ModuleScreens.swift",
"Preview+FullScreen.swift",
"PreviewCell.swift",
"PreviewData.swift",
"PreviewGallery.swift",
"PreviewsDetail.swift",
"TitleSubtitleRow.swift"
],
"target_dependencies" : [
"SnapshotPreviewsCore",
"SnapshotPreferences"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.