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, reference 0.4.5 (03d2ee), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 13:11:16 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CleanCocoa/CrashReporter.git
Reference: 0.4.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CleanCocoa/CrashReporter
 * tag               0.4.5      -> FETCH_HEAD
HEAD is now at 03d2ee4 update Podspec
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 @):
03d2ee44e33661a2feebf52e0db123a1cdb16a7b
SUCCESS checkout https://github.com/CleanCocoa/CrashReporter.git at 0.4.5
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "crashreporter",
      "name": "CrashReporter",
      "url": "https://github.com/CleanCocoa/CrashReporter.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CrashReporter",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/CleanCocoa/CrashReporter.git
[1/381] Fetching crashreporter
Fetched https://github.com/CleanCocoa/CrashReporter.git from cache (0.96s)
Creating working copy for https://github.com/CleanCocoa/CrashReporter.git
Working copy of https://github.com/CleanCocoa/CrashReporter.git resolved at 0.4.5 (03d2ee4)
warning: '.resolve-product-dependencies': dependency 'crashreporter' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/CleanCocoa/CrashReporter.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/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 |         }
[4/15] Compiling CrashReporter HTTPURLResponse+valueForHTTPHeaderField.swift
[5/15] Compiling CrashReporter CrashLog.swift
[6/15] Compiling CrashReporter CrashReporter+DefaultsKeys.swift
[7/15] Compiling CrashReporter String+md5.swift
[8/15] Compiling CrashReporter URLResponse+statusIsOK.swift
[9/15] Compiling CrashReporter NoClippingView.swift
[10/15] 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 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,
    :
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 nonisolated 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 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: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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:144:26: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
 142 |     open var canHide: Bool { get set }
 143 |     open func center()
 144 |     @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
     |                          `- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
 145 |     open func orderFront(_ sender: Any?)
 146 |     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 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: main actor-isolated property 'window' can not be referenced from a nonisolated 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 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,
    :
193 |
194 |         if displayAsModal,
195 |             let window = self.crashReportWindowController?.window {
    |                                                            `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated 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 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: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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:
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:191:43: warning: sending value of non-Sendable type 'CrashReporter' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
189 |         }
190 |
191 |         self.crashReportWindowController?.showWindow(self)
    |                                           `- warning: sending value of non-Sendable type 'CrashReporter' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
192 |         self.crashReportWindowController?.window?.makeKeyAndOrderFront(self)
    |                                         `- note: access can happen concurrently
193 |
194 |         if displayAsModal,
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:192:51: warning: sending value of non-Sendable type 'CrashReporter' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
190 |
191 |         self.crashReportWindowController?.showWindow(self)
192 |         self.crashReportWindowController?.window?.makeKeyAndOrderFront(self)
    |                                                   `- warning: sending value of non-Sendable type 'CrashReporter' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
193 |
194 |         if displayAsModal,
195 |             let window = self.crashReportWindowController?.window {
    |                                                          `- note: access can happen concurrently
196 |             NSApp.runModal(for: window)
197 |         }
[11/15] 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 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,
    :
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 nonisolated 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 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: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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:144:26: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
 142 |     open var canHide: Bool { get set }
 143 |     open func center()
 144 |     @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
     |                          `- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
 145 |     open func orderFront(_ sender: Any?)
 146 |     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 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: main actor-isolated property 'window' can not be referenced from a nonisolated 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 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,
    :
193 |
194 |         if displayAsModal,
195 |             let window = self.crashReportWindowController?.window {
    |                                                            `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated 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 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: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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:
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:191:43: warning: sending value of non-Sendable type 'CrashReporter' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
189 |         }
190 |
191 |         self.crashReportWindowController?.showWindow(self)
    |                                           `- warning: sending value of non-Sendable type 'CrashReporter' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
192 |         self.crashReportWindowController?.window?.makeKeyAndOrderFront(self)
    |                                         `- note: access can happen concurrently
193 |
194 |         if displayAsModal,
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/CrashReporter.swift:192:51: warning: sending value of non-Sendable type 'CrashReporter' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
190 |
191 |         self.crashReportWindowController?.showWindow(self)
192 |         self.crashReportWindowController?.window?.makeKeyAndOrderFront(self)
    |                                                   `- warning: sending value of non-Sendable type 'CrashReporter' with later accesses from nonisolated context to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
193 |
194 |         if displayAsModal,
195 |             let window = self.crashReportWindowController?.window {
    |                                                          `- note: access can happen concurrently
196 |             NSApp.runModal(for: window)
197 |         }
[12/15] 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() {
[13/15] Compiling CrashReporter SendReportsAutomaticallySetting.swift
[14/15] Compiling CrashReporter Bundle+InfoKeys.swift
[15/15] Compiling CrashReporter CrashReportWindowController.swift
/Users/admin/builder/spi-builder-workspace/Sources/CrashReporter/UI/CrashReportWindowController.swift:227:25: warning: main actor-isolated property 'privacyPolicyURL' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
180 |     }
181 |
182 |     internal var privacyPolicyURL: URL?
    |                  `- note: property declared here
183 |
184 |     internal var crashLogText: String? {
    :
225 |     override func responds(to aSelector: Selector!) -> Bool {
226 |         if aSelector == #selector(showPrivacyPolicy(_:)) {
227 |             return self.privacyPolicyURL != nil
    |                         `- warning: main actor-isolated property 'privacyPolicyURL' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
228 |         }
229 |         return super.responds(to: aSelector)
Build complete! (13.41s)
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.