This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of CrashReporter with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CleanCocoa/CrashReporter.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CleanCocoa/CrashReporter
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d475b77 Formatting tweaks and Monterey file name changes (#7)
Submodule path 'php/vendor/PHPMailer': checked out '511413a6eaeb167fa88282d437766d34510548b8'
Submodule 'php/vendor/PHPMailer' (https://github.com/PHPMailer/PHPMailer.git) registered for path 'php/vendor/PHPMailer'
Cloning into '/Users/admin/builder/spi-builder-workspace/php/vendor/PHPMailer'...
Cloned https://github.com/CleanCocoa/CrashReporter.git
Revision (git rev-parse @):
d475b776eb9cd083dea88300b9a492eb8ec6c02a
SUCCESS checkout https://github.com/CleanCocoa/CrashReporter.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/CleanCocoa/CrashReporter.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/14] Compiling CrashReporter String+md5.swift
[4/14] Compiling CrashReporter OneShotDownload.swift
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/Infrastructure/OneShotDownload.swift:15:28: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OneShotDownloadManager' may have shared mutable state; this is an error in the Swift 6 language mode
10 | internal typealias OneShotDownloadCallback = (Data?, URLResponse?, Error?) -> Swift.Void
11 |
12 | private final class OneShotDownloadManager {
   |                     `- note: class 'OneShotDownloadManager' does not conform to the 'Sendable' protocol
13 |
14 |     private let urlSession: URLSession
15 |     fileprivate static let shared = OneShotDownloadManager()
   |                            |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OneShotDownloadManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     init() {
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/Infrastructure/OneShotDownload.swift:43:17: warning: capture of 'callback' with non-sendable type 'OneShotDownloadCallback' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 |         let task = urlSession.dataTask(with: url) { (data, response, error) in
42 |             DispatchQueue.main.async() {
43 |                 callback(data, response, error)
   |                 |- warning: capture of 'callback' with non-sendable type 'OneShotDownloadCallback' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 |             }
45 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/Infrastructure/OneShotDownload.swift:43:17: warning: capture of 'callback' with non-sendable type 'OneShotDownloadCallback' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 |         let task = urlSession.dataTask(with: url) { (data, response, error) in
42 |             DispatchQueue.main.async() {
43 |                 callback(data, response, error)
   |                 |- warning: capture of 'callback' with non-sendable type 'OneShotDownloadCallback' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 |             }
45 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/Infrastructure/OneShotDownload.swift:52:17: warning: capture of 'callback' with non-sendable type 'OneShotDownloadCallback' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 |         let task = urlSession.dataTask(with: urlRequest) { (data, response, error) in
51 |             DispatchQueue.main.async() {
52 |                 callback(data, response, error)
   |                 |- warning: capture of 'callback' with non-sendable type 'OneShotDownloadCallback' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
53 |             }
54 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/Infrastructure/OneShotDownload.swift:52:17: warning: capture of 'callback' with non-sendable type 'OneShotDownloadCallback' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 |         let task = urlSession.dataTask(with: urlRequest) { (data, response, error) in
51 |             DispatchQueue.main.async() {
52 |                 callback(data, response, error)
   |                 |- warning: capture of 'callback' with non-sendable type 'OneShotDownloadCallback' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
53 |             }
54 |         }
[5/14] Compiling CrashReporter URLResponse+statusIsOK.swift
[6/14] Compiling CrashReporter SendReportsAutomaticallySetting.swift
[7/14] Compiling CrashReporter Bundle+InfoKeys.swift
[8/14] Compiling CrashReporter CrashLog.swift
[9/14] Compiling CrashReporter CrashReporter+DefaultsKeys.swift
[10/14] Compiling CrashReporter CrashReportWindowController.swift
[11/14] Compiling CrashReporter HTTPURLResponse+valueForHTTPHeaderField.swift
[12/14] Compiling CrashReporter CrashReporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:174:44: warning: call to main actor-isolated initializer 'init(crashLogText:crashLogSender:privacyPolicyURL:collectEmailSetting:sendReportsAutomaticallySetting:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
172 |             sendCrashLogsAutomaticallyKey: self.defaultsKeys.sendCrashLogsAutomaticallyKey)
173 |
174 |         self.crashReportWindowController = CrashReportWindowController(
    |                                            `- warning: call to main actor-isolated initializer 'init(crashLogText:crashLogSender:privacyPolicyURL:collectEmailSetting:sendReportsAutomaticallySetting:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 |             crashLogText: crashLog.content,
176 |             // Produces a retain cycle that we'll break when the window closes:
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/UI/CrashReportWindowController.swift:16:17: note: calls to initializer 'init(crashLogText:crashLogSender:privacyPolicyURL:collectEmailSetting:sendReportsAutomaticallySetting:)' from outside of its actor context are implicitly asynchronous
 14 | final class CrashReportWindowController: NSWindowController, NSWindowDelegate {
 15 |
 16 |     convenience init(
    |                 `- note: calls to initializer 'init(crashLogText:crashLogSender:privacyPolicyURL:collectEmailSetting:sendReportsAutomaticallySetting:)' from outside of its actor context are implicitly asynchronous
 17 |         crashLogText: String,
 18 |         crashLogSender: SendsCrashLog,
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:184:43: warning: main actor-isolated property 'onWindowWillClose' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
182 |         // Drop reference to window after closing to eventually free memory.
183 |         // Call this before potentially making the window run in a modal loop.
184 |         self.crashReportWindowController?.onWindowWillClose = { [unowned self] _ in
    |                                           `- warning: main actor-isolated property 'onWindowWillClose' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
185 |             if displayAsModal {
186 |                 NSApp.stopModal()
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/UI/CrashReportWindowController.swift:43:9: note: mutation of this property is only permitted within the actor
 41 |     }
 42 |
 43 |     var onWindowWillClose: ((NSWindow?) -> Void)?
    |         `- note: mutation of this property is only permitted within the actor
 44 |
 45 |     func windowWillClose(_ notification: Notification) {
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:186:23: warning: call to main actor-isolated instance method 'stopModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
184 |         self.crashReportWindowController?.onWindowWillClose = { [unowned self] _ in
185 |             if displayAsModal {
186 |                 NSApp.stopModal()
    |                       `- warning: call to main actor-isolated instance method 'stopModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 |             }
188 |             self.crashReportWindowController = nil
AppKit.NSApplication:49:26: note: calls to instance method 'stopModal()' from outside of its actor context are implicitly asynchronous
 47 |     open func runModalForWindow(_ window: NSWindow) -> NSApplication.ModalResponse
 48 |     open func stop(_ sender: Any?)
 49 |     @MainActor open func stopModal()
    |                          `- note: calls to instance method 'stopModal()' from outside of its actor context are implicitly asynchronous
 50 |     open func stopModal(withCode returnCode: NSApplication.ModalResponse)
 51 |     @available(swift, obsoleted: 3, renamed: "stopModal(withCode:)")
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:186:17: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
184 |         self.crashReportWindowController?.onWindowWillClose = { [unowned self] _ in
185 |             if displayAsModal {
186 |                 NSApp.stopModal()
    |                 `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
187 |             }
188 |             self.crashReportWindowController = nil
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
  |                       `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:191:43: warning: call to main actor-isolated instance method 'showWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
189 |         }
190 |
191 |         self.crashReportWindowController?.showWindow(self)
    |                                           `- warning: call to main actor-isolated instance method 'showWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
192 |         self.crashReportWindowController?.window?.makeKeyAndOrderFront(self)
193 |
AppKit.NSWindowController:31:36: note: calls to instance method 'showWindow' from outside of its actor context are implicitly asynchronous
29 |     open func loadWindow()
30 |     open func close()
31 |     @IBAction @MainActor open func showWindow(_ sender: Any?)
   |                                    `- note: calls to instance method 'showWindow' from outside of its actor context are implicitly asynchronous
32 |     public convenience init()
33 |     @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:192:51: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
190 |
191 |         self.crashReportWindowController?.showWindow(self)
192 |         self.crashReportWindowController?.window?.makeKeyAndOrderFront(self)
    |                                                   `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
193 |
194 |         if displayAsModal,
AppKit.NSWindow:142:26: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
140 |     open var canHide: Bool { get set }
141 |     open func center()
142 |     @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
    |                          `- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
143 |     open func orderFront(_ sender: Any?)
144 |     open func orderBack(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:192:43: warning: main actor-isolated property 'window' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
190 |
191 |         self.crashReportWindowController?.showWindow(self)
192 |         self.crashReportWindowController?.window?.makeKeyAndOrderFront(self)
    |                                           `- warning: main actor-isolated property 'window' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
193 |
194 |         if displayAsModal,
AppKit.NSWindowController:23:14: note: property declared here
21 |     @available(macOS 10.10, *)
22 |     open var contentViewController: NSViewController? { get set }
23 |     open var window: NSWindow? { get set }
   |              `- note: property declared here
24 |     open var isWindowLoaded: Bool { get }
25 |     @available(swift, obsoleted: 3, renamed: "isWindowLoaded")
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:195:60: warning: main actor-isolated property 'window' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
193 |
194 |         if displayAsModal,
195 |             let window = self.crashReportWindowController?.window {
    |                                                            `- warning: main actor-isolated property 'window' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
196 |             NSApp.runModal(for: window)
197 |         }
AppKit.NSWindowController:23:14: note: property declared here
21 |     @available(macOS 10.10, *)
22 |     open var contentViewController: NSViewController? { get set }
23 |     open var window: NSWindow? { get set }
   |              `- note: property declared here
24 |     open var isWindowLoaded: Bool { get }
25 |     @available(swift, obsoleted: 3, renamed: "isWindowLoaded")
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:196:19: warning: call to main actor-isolated instance method 'runModal(for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
194 |         if displayAsModal,
195 |             let window = self.crashReportWindowController?.window {
196 |             NSApp.runModal(for: window)
    |                   `- warning: call to main actor-isolated instance method 'runModal(for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
197 |         }
198 |     }
AppKit.NSApplication:45:26: note: calls to instance method 'runModal(for:)' from outside of its actor context are implicitly asynchronous
 43 |     open func finishLaunching()
 44 |     open func run()
 45 |     @MainActor open func runModal(for window: NSWindow) -> NSApplication.ModalResponse
    |                          `- note: calls to instance method 'runModal(for:)' from outside of its actor context are implicitly asynchronous
 46 |     @available(swift, obsoleted: 3, renamed: "runModal(for:)")
 47 |     open func runModalForWindow(_ window: NSWindow) -> NSApplication.ModalResponse
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:196:13: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
194 |         if displayAsModal,
195 |             let window = self.crashReportWindowController?.window {
196 |             NSApp.runModal(for: window)
    |             `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
197 |         }
198 |     }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
  |                       `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:174:44: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
172 |             sendCrashLogsAutomaticallyKey: self.defaultsKeys.sendCrashLogsAutomaticallyKey)
173 |
174 |         self.crashReportWindowController = CrashReportWindowController(
    |                                            |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                            `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
175 |             crashLogText: crashLog.content,
176 |             // Produces a retain cycle that we'll break when the window closes:
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:174:44: warning: sending 'collectEmailSetting' risks causing data races; this is an error in the Swift 6 language mode
172 |             sendCrashLogsAutomaticallyKey: self.defaultsKeys.sendCrashLogsAutomaticallyKey)
173 |
174 |         self.crashReportWindowController = CrashReportWindowController(
    |                                            |- warning: sending 'collectEmailSetting' risks causing data races; this is an error in the Swift 6 language mode
    |                                            `- note: sending task-isolated 'collectEmailSetting' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
175 |             crashLogText: crashLog.content,
176 |             // Produces a retain cycle that we'll break when the window closes:
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:174:44: warning: sending 'sendAutomaticallySetting' risks causing data races; this is an error in the Swift 6 language mode
172 |             sendCrashLogsAutomaticallyKey: self.defaultsKeys.sendCrashLogsAutomaticallyKey)
173 |
174 |         self.crashReportWindowController = CrashReportWindowController(
    |                                            |- warning: sending 'sendAutomaticallySetting' risks causing data races; this is an error in the Swift 6 language mode
    |                                            `- note: sending task-isolated 'sendAutomaticallySetting' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
175 |             crashLogText: crashLog.content,
176 |             // Produces a retain cycle that we'll break when the window closes:
[13/14] Compiling CrashReporter EmailAddressSetting.swift
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:174:44: warning: call to main actor-isolated initializer 'init(crashLogText:crashLogSender:privacyPolicyURL:collectEmailSetting:sendReportsAutomaticallySetting:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
172 |             sendCrashLogsAutomaticallyKey: self.defaultsKeys.sendCrashLogsAutomaticallyKey)
173 |
174 |         self.crashReportWindowController = CrashReportWindowController(
    |                                            `- warning: call to main actor-isolated initializer 'init(crashLogText:crashLogSender:privacyPolicyURL:collectEmailSetting:sendReportsAutomaticallySetting:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 |             crashLogText: crashLog.content,
176 |             // Produces a retain cycle that we'll break when the window closes:
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/UI/CrashReportWindowController.swift:16:17: note: calls to initializer 'init(crashLogText:crashLogSender:privacyPolicyURL:collectEmailSetting:sendReportsAutomaticallySetting:)' from outside of its actor context are implicitly asynchronous
 14 | final class CrashReportWindowController: NSWindowController, NSWindowDelegate {
 15 |
 16 |     convenience init(
    |                 `- note: calls to initializer 'init(crashLogText:crashLogSender:privacyPolicyURL:collectEmailSetting:sendReportsAutomaticallySetting:)' from outside of its actor context are implicitly asynchronous
 17 |         crashLogText: String,
 18 |         crashLogSender: SendsCrashLog,
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:184:43: warning: main actor-isolated property 'onWindowWillClose' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
182 |         // Drop reference to window after closing to eventually free memory.
183 |         // Call this before potentially making the window run in a modal loop.
184 |         self.crashReportWindowController?.onWindowWillClose = { [unowned self] _ in
    |                                           `- warning: main actor-isolated property 'onWindowWillClose' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
185 |             if displayAsModal {
186 |                 NSApp.stopModal()
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/UI/CrashReportWindowController.swift:43:9: note: mutation of this property is only permitted within the actor
 41 |     }
 42 |
 43 |     var onWindowWillClose: ((NSWindow?) -> Void)?
    |         `- note: mutation of this property is only permitted within the actor
 44 |
 45 |     func windowWillClose(_ notification: Notification) {
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:186:23: warning: call to main actor-isolated instance method 'stopModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
184 |         self.crashReportWindowController?.onWindowWillClose = { [unowned self] _ in
185 |             if displayAsModal {
186 |                 NSApp.stopModal()
    |                       `- warning: call to main actor-isolated instance method 'stopModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 |             }
188 |             self.crashReportWindowController = nil
AppKit.NSApplication:49:26: note: calls to instance method 'stopModal()' from outside of its actor context are implicitly asynchronous
 47 |     open func runModalForWindow(_ window: NSWindow) -> NSApplication.ModalResponse
 48 |     open func stop(_ sender: Any?)
 49 |     @MainActor open func stopModal()
    |                          `- note: calls to instance method 'stopModal()' from outside of its actor context are implicitly asynchronous
 50 |     open func stopModal(withCode returnCode: NSApplication.ModalResponse)
 51 |     @available(swift, obsoleted: 3, renamed: "stopModal(withCode:)")
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:186:17: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
184 |         self.crashReportWindowController?.onWindowWillClose = { [unowned self] _ in
185 |             if displayAsModal {
186 |                 NSApp.stopModal()
    |                 `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
187 |             }
188 |             self.crashReportWindowController = nil
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
  |                       `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:191:43: warning: call to main actor-isolated instance method 'showWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
189 |         }
190 |
191 |         self.crashReportWindowController?.showWindow(self)
    |                                           `- warning: call to main actor-isolated instance method 'showWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
192 |         self.crashReportWindowController?.window?.makeKeyAndOrderFront(self)
193 |
AppKit.NSWindowController:31:36: note: calls to instance method 'showWindow' from outside of its actor context are implicitly asynchronous
29 |     open func loadWindow()
30 |     open func close()
31 |     @IBAction @MainActor open func showWindow(_ sender: Any?)
   |                                    `- note: calls to instance method 'showWindow' from outside of its actor context are implicitly asynchronous
32 |     public convenience init()
33 |     @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:192:51: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
190 |
191 |         self.crashReportWindowController?.showWindow(self)
192 |         self.crashReportWindowController?.window?.makeKeyAndOrderFront(self)
    |                                                   `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
193 |
194 |         if displayAsModal,
AppKit.NSWindow:142:26: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
140 |     open var canHide: Bool { get set }
141 |     open func center()
142 |     @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
    |                          `- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
143 |     open func orderFront(_ sender: Any?)
144 |     open func orderBack(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:192:43: warning: main actor-isolated property 'window' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
190 |
191 |         self.crashReportWindowController?.showWindow(self)
192 |         self.crashReportWindowController?.window?.makeKeyAndOrderFront(self)
    |                                           `- warning: main actor-isolated property 'window' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
193 |
194 |         if displayAsModal,
AppKit.NSWindowController:23:14: note: property declared here
21 |     @available(macOS 10.10, *)
22 |     open var contentViewController: NSViewController? { get set }
23 |     open var window: NSWindow? { get set }
   |              `- note: property declared here
24 |     open var isWindowLoaded: Bool { get }
25 |     @available(swift, obsoleted: 3, renamed: "isWindowLoaded")
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:195:60: warning: main actor-isolated property 'window' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
193 |
194 |         if displayAsModal,
195 |             let window = self.crashReportWindowController?.window {
    |                                                            `- warning: main actor-isolated property 'window' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
196 |             NSApp.runModal(for: window)
197 |         }
AppKit.NSWindowController:23:14: note: property declared here
21 |     @available(macOS 10.10, *)
22 |     open var contentViewController: NSViewController? { get set }
23 |     open var window: NSWindow? { get set }
   |              `- note: property declared here
24 |     open var isWindowLoaded: Bool { get }
25 |     @available(swift, obsoleted: 3, renamed: "isWindowLoaded")
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:196:19: warning: call to main actor-isolated instance method 'runModal(for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
194 |         if displayAsModal,
195 |             let window = self.crashReportWindowController?.window {
196 |             NSApp.runModal(for: window)
    |                   `- warning: call to main actor-isolated instance method 'runModal(for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
197 |         }
198 |     }
AppKit.NSApplication:45:26: note: calls to instance method 'runModal(for:)' from outside of its actor context are implicitly asynchronous
 43 |     open func finishLaunching()
 44 |     open func run()
 45 |     @MainActor open func runModal(for window: NSWindow) -> NSApplication.ModalResponse
    |                          `- note: calls to instance method 'runModal(for:)' from outside of its actor context are implicitly asynchronous
 46 |     @available(swift, obsoleted: 3, renamed: "runModal(for:)")
 47 |     open func runModalForWindow(_ window: NSWindow) -> NSApplication.ModalResponse
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:196:13: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
158 |     internal var crashReportWindowController: CrashReportWindowController?
159 |
160 |     internal func runCrashReporterWindow(
    |                   `- note: add '@MainActor' to make instance method 'runCrashReporterWindow(crashLog:displayAsModal:hideEmailCollection:hideSendReportsAutomaticallyOption:)' part of global actor 'MainActor'
161 |         crashLog: CrashLog,
162 |         displayAsModal: Bool,
    :
194 |         if displayAsModal,
195 |             let window = self.crashReportWindowController?.window {
196 |             NSApp.runModal(for: window)
    |             `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
197 |         }
198 |     }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
  |                       `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:174:44: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
172 |             sendCrashLogsAutomaticallyKey: self.defaultsKeys.sendCrashLogsAutomaticallyKey)
173 |
174 |         self.crashReportWindowController = CrashReportWindowController(
    |                                            |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                            `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
175 |             crashLogText: crashLog.content,
176 |             // Produces a retain cycle that we'll break when the window closes:
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:174:44: warning: sending 'collectEmailSetting' risks causing data races; this is an error in the Swift 6 language mode
172 |             sendCrashLogsAutomaticallyKey: self.defaultsKeys.sendCrashLogsAutomaticallyKey)
173 |
174 |         self.crashReportWindowController = CrashReportWindowController(
    |                                            |- warning: sending 'collectEmailSetting' risks causing data races; this is an error in the Swift 6 language mode
    |                                            `- note: sending task-isolated 'collectEmailSetting' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
175 |             crashLogText: crashLog.content,
176 |             // Produces a retain cycle that we'll break when the window closes:
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:174:44: warning: sending 'sendAutomaticallySetting' risks causing data races; this is an error in the Swift 6 language mode
172 |             sendCrashLogsAutomaticallyKey: self.defaultsKeys.sendCrashLogsAutomaticallyKey)
173 |
174 |         self.crashReportWindowController = CrashReportWindowController(
    |                                            |- warning: sending 'sendAutomaticallySetting' risks causing data races; this is an error in the Swift 6 language mode
    |                                            `- note: sending task-isolated 'sendAutomaticallySetting' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
175 |             crashLogText: crashLog.content,
176 |             // Produces a retain cycle that we'll break when the window closes:
[14/14] Emitting module CrashReporter
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/Infrastructure/OneShotDownload.swift:15:28: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OneShotDownloadManager' may have shared mutable state; this is an error in the Swift 6 language mode
10 | internal typealias OneShotDownloadCallback = (Data?, URLResponse?, Error?) -> Swift.Void
11 |
12 | private final class OneShotDownloadManager {
   |                     `- note: class 'OneShotDownloadManager' does not conform to the 'Sendable' protocol
13 |
14 |     private let urlSession: URLSession
15 |     fileprivate static let shared = OneShotDownloadManager()
   |                            |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'OneShotDownloadManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     init() {
[15/15] Compiling CrashReporter NoClippingView.swift
Build complete! (27.07s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CrashReporter",
  "name" : "CrashReporter",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.11"
    }
  ],
  "products" : [
    {
      "name" : "CrashReporter",
      "targets" : [
        "CrashReporter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CrashReporterTests",
      "module_type" : "SwiftTarget",
      "name" : "CrashReporterTests",
      "path" : "Tests/CrashReporterTests",
      "sources" : [
        "EmailAddressSettingTests.swift",
        "SendReportsAutomaticallySettingTests.swift"
      ],
      "target_dependencies" : [
        "CrashReporter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CrashReporter",
      "module_type" : "SwiftTarget",
      "name" : "CrashReporter",
      "path" : "Sources/CrashReporter",
      "product_memberships" : [
        "CrashReporter"
      ],
      "sources" : [
        "CrashLog.swift",
        "CrashReporter+DefaultsKeys.swift",
        "CrashReporter.swift",
        "EmailAddressSetting.swift",
        "Infrastructure/Bundle+InfoKeys.swift",
        "Infrastructure/HTTPURLResponse+valueForHTTPHeaderField.swift",
        "Infrastructure/OneShotDownload.swift",
        "Infrastructure/String+md5.swift",
        "Infrastructure/URLResponse+statusIsOK.swift",
        "SendReportsAutomaticallySetting.swift",
        "UI/CrashReportWindowController.swift",
        "UI/NoClippingView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.