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 UpgradeAlert, reference main (69e1f4), with Swift 6.0 for macOS (SPM) on 4 Mar 2025 03:52:35 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sentryco/UpgradeAlert.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sentryco/UpgradeAlert
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 69e1f44 Minor tweaks
Cloned https://github.com/sentryco/UpgradeAlert.git
Revision (git rev-parse @):
69e1f44ab58f96419a1e9cb2bbeea9b370b3a468
SUCCESS checkout https://github.com/sentryco/UpgradeAlert.git at main
========================================
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": "upgradealert",
      "name": "UpgradeAlert",
      "url": "https://github.com/sentryco/UpgradeAlert.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UpgradeAlert",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/sentryco/UpgradeAlert.git
[1/473] Fetching upgradealert
Fetched https://github.com/sentryco/UpgradeAlert.git from cache (0.87s)
Creating working copy for https://github.com/sentryco/UpgradeAlert.git
Working copy of https://github.com/sentryco/UpgradeAlert.git resolved at main (69e1f44)
warning: '.resolve-product-dependencies': dependency 'upgradealert' 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/sentryco/UpgradeAlert.git
https://github.com/sentryco/UpgradeAlert.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UpgradeAlert",
  "name" : "UpgradeAlert",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "UpgradeAlert",
      "targets" : [
        "UpgradeAlert"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UpgradeAlertTests",
      "module_type" : "SwiftTarget",
      "name" : "UpgradeAlertTests",
      "path" : "Tests/UpgradeAlertTests",
      "sources" : [
        "UpgradeAlertTests.swift"
      ],
      "target_dependencies" : [
        "UpgradeAlert"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UpgradeAlert",
      "module_type" : "SwiftTarget",
      "name" : "UpgradeAlert",
      "path" : "Sources/UpgradeAlert",
      "product_memberships" : [
        "UpgradeAlert"
      ],
      "sources" : [
        "UpgradeAlert+Variables.swift",
        "UpgradeAlert.swift",
        "ext/Bundle+Ext.swift",
        "ext/NSAlert+Ext.swift",
        "ext/UIAlertController+Ext.swift",
        "ext/UIApplication+Ext.swift",
        "helper/AppInfo.swift",
        "helper/LookupResult.swift",
        "helper/UAConfig.swift",
        "helper/UAError.swift",
        "helper/UAOutcome.swift",
        "util/ComparisonResult.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/14] Compiling UpgradeAlert UAError.swift
[4/14] Compiling UpgradeAlert UAOutcome.swift
[5/14] Compiling UpgradeAlert UAConfig.swift
[6/14] Compiling UpgradeAlert AppInfo.swift
[7/14] Compiling UpgradeAlert LookupResult.swift
[8/15] Compiling UpgradeAlert ComparisonResult.swift
[9/15] Compiling UpgradeAlert UIApplication+Ext.swift
[10/15] Compiling UpgradeAlert Bundle+Ext.swift
[11/15] Compiling UpgradeAlert NSAlert+Ext.swift
[12/15] Compiling UpgradeAlert UIAlertController+Ext.swift
[13/15] Emitting module UpgradeAlert
[14/15] Compiling UpgradeAlert UpgradeAlert+Variables.swift
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:48:16: warning: capture of 'complete' with non-sendable type 'UpgradeAlert.Complete?' (aka 'Optional<(UAOutcome) -> ()>') in a `@Sendable` closure
 46 |                error == nil // Check if there is no error
 47 |             else {
 48 |                complete?(.error(error: error ?? .bundleErr(desc: "Err, bundle.version"))); // If there is an error, complete with error
    |                |- warning: capture of 'complete' with non-sendable type 'UpgradeAlert.Complete?' (aka 'Optional<(UAOutcome) -> ()>') in a `@Sendable` closure
    |                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 49 |                return // Return from the function
 50 |             }
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:48:16: warning: capture of 'complete' with non-sendable type 'UpgradeAlert.Complete?' (aka 'Optional<(UAOutcome) -> ()>') in an isolated closure; this is an error in the Swift 6 language mode
 46 |                error == nil // Check if there is no error
 47 |             else {
 48 |                complete?(.error(error: error ?? .bundleErr(desc: "Err, bundle.version"))); // If there is an error, complete with error
    |                |- warning: capture of 'complete' with non-sendable type 'UpgradeAlert.Complete?' (aka 'Optional<(UAOutcome) -> ()>') in an isolated closure; this is an error in the Swift 6 language mode
    |                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 49 |                return // Return from the function
 50 |             }
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:117:22: warning: capture of 'completion' with non-sendable type 'UpgradeAlert.Completion?' (aka 'Optional<(Optional<AppInfo>, Optional<UAError>) -> ()>') in a `@Sendable` closure
115 |                let daysSinceRelease = Calendar.current.dateComponents([.day], from: releaseDate, to: Date()).day ?? 0
116 |                if daysSinceRelease < 1 {
117 |                      completion?(info, nil) // Do not prompt the user yet
    |                      |- warning: capture of 'completion' with non-sendable type 'UpgradeAlert.Completion?' (aka 'Optional<(Optional<AppInfo>, Optional<UAError>) -> ()>') in a `@Sendable` closure
    |                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
118 |                      return
119 |                }
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:176:15: warning: call to main actor-isolated static method 'present(question:text:okTitle:cancelTitle:view:complete:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
149 |     *   - complete: called after user press cancel or ok button ( A closure that is called when the user interacts with the alert. It returns an optional Complete object that describes the user's action (e.g., whether they chose to update now, update later, or encountered an error)
150 |     */
151 |    public static func showAlert(appInfo: AppInfo, complete: Complete? = defaultComplete) { // Fix mark ios
    |                       `- note: add '@MainActor' to make static method 'showAlert(appInfo:complete:)' part of global actor 'MainActor'
152 |       #if os(iOS)
153 |       // Create an alert with the app information
    :
174 |       alert.present()
175 |       #elseif os(macOS)
176 |       NSAlert.present(
    |               `- warning: call to main actor-isolated static method 'present(question:text:okTitle:cancelTitle:view:complete:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
177 |          question: config.alertTitle, // Set the alert question from the config
178 |          text: config.alertMessage(nil, appInfo.version), // Set the alert text from the config and the app version
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/ext/NSAlert+Ext.swift:26:25: note: calls to static method 'present(question:text:okTitle:cancelTitle:view:complete:)' from outside of its actor context are implicitly asynchronous
24 |     *               the user clicked the OK button and false otherwise.
25 |     */
26 |    internal static func present(
   |                         `- note: calls to static method 'present(question:text:okTitle:cancelTitle:view:complete:)' from outside of its actor context are implicitly asynchronous
27 |       question: String,
28 |       text: String,
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:65:30: warning: sending 'appInfo' risks causing data races; this is an error in the Swift 6 language mode
 63 | 				// If an update is needed, show an alert on the main thread
 64 | 				DispatchQueue.main.async {
 65 | 					Self.showAlert(appInfo: appInfo, complete: complete)
    |                              |- warning: sending 'appInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                              `- note: task-isolated 'appInfo' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 66 | 				}
 67 |          }
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:65:49: warning: sending 'complete' risks causing data races; this is an error in the Swift 6 language mode
 63 | 				// If an update is needed, show an alert on the main thread
 64 | 				DispatchQueue.main.async {
 65 | 					Self.showAlert(appInfo: appInfo, complete: complete)
    |                                                 |- warning: sending 'complete' risks causing data races; this is an error in the Swift 6 language mode
    |                                                 `- note: task-isolated 'complete' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 66 | 				}
 67 |          }
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:176:15: warning: sending task-isolated value of type '(Bool) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
174 |       alert.present()
175 |       #elseif os(macOS)
176 |       NSAlert.present(
    |               `- warning: sending task-isolated value of type '(Bool) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
177 |          question: config.alertTitle, // Set the alert question from the config
178 |          text: config.alertMessage(nil, appInfo.version), // Set the alert text from the config and the app version
[15/15] Compiling UpgradeAlert UpgradeAlert.swift
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:48:16: warning: capture of 'complete' with non-sendable type 'UpgradeAlert.Complete?' (aka 'Optional<(UAOutcome) -> ()>') in a `@Sendable` closure
 46 |                error == nil // Check if there is no error
 47 |             else {
 48 |                complete?(.error(error: error ?? .bundleErr(desc: "Err, bundle.version"))); // If there is an error, complete with error
    |                |- warning: capture of 'complete' with non-sendable type 'UpgradeAlert.Complete?' (aka 'Optional<(UAOutcome) -> ()>') in a `@Sendable` closure
    |                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 49 |                return // Return from the function
 50 |             }
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:48:16: warning: capture of 'complete' with non-sendable type 'UpgradeAlert.Complete?' (aka 'Optional<(UAOutcome) -> ()>') in an isolated closure; this is an error in the Swift 6 language mode
 46 |                error == nil // Check if there is no error
 47 |             else {
 48 |                complete?(.error(error: error ?? .bundleErr(desc: "Err, bundle.version"))); // If there is an error, complete with error
    |                |- warning: capture of 'complete' with non-sendable type 'UpgradeAlert.Complete?' (aka 'Optional<(UAOutcome) -> ()>') in an isolated closure; this is an error in the Swift 6 language mode
    |                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 49 |                return // Return from the function
 50 |             }
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:117:22: warning: capture of 'completion' with non-sendable type 'UpgradeAlert.Completion?' (aka 'Optional<(Optional<AppInfo>, Optional<UAError>) -> ()>') in a `@Sendable` closure
115 |                let daysSinceRelease = Calendar.current.dateComponents([.day], from: releaseDate, to: Date()).day ?? 0
116 |                if daysSinceRelease < 1 {
117 |                      completion?(info, nil) // Do not prompt the user yet
    |                      |- warning: capture of 'completion' with non-sendable type 'UpgradeAlert.Completion?' (aka 'Optional<(Optional<AppInfo>, Optional<UAError>) -> ()>') in a `@Sendable` closure
    |                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
118 |                      return
119 |                }
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:176:15: warning: call to main actor-isolated static method 'present(question:text:okTitle:cancelTitle:view:complete:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
149 |     *   - complete: called after user press cancel or ok button ( A closure that is called when the user interacts with the alert. It returns an optional Complete object that describes the user's action (e.g., whether they chose to update now, update later, or encountered an error)
150 |     */
151 |    public static func showAlert(appInfo: AppInfo, complete: Complete? = defaultComplete) { // Fix mark ios
    |                       `- note: add '@MainActor' to make static method 'showAlert(appInfo:complete:)' part of global actor 'MainActor'
152 |       #if os(iOS)
153 |       // Create an alert with the app information
    :
174 |       alert.present()
175 |       #elseif os(macOS)
176 |       NSAlert.present(
    |               `- warning: call to main actor-isolated static method 'present(question:text:okTitle:cancelTitle:view:complete:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
177 |          question: config.alertTitle, // Set the alert question from the config
178 |          text: config.alertMessage(nil, appInfo.version), // Set the alert text from the config and the app version
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/ext/NSAlert+Ext.swift:26:25: note: calls to static method 'present(question:text:okTitle:cancelTitle:view:complete:)' from outside of its actor context are implicitly asynchronous
24 |     *               the user clicked the OK button and false otherwise.
25 |     */
26 |    internal static func present(
   |                         `- note: calls to static method 'present(question:text:okTitle:cancelTitle:view:complete:)' from outside of its actor context are implicitly asynchronous
27 |       question: String,
28 |       text: String,
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:65:30: warning: sending 'appInfo' risks causing data races; this is an error in the Swift 6 language mode
 63 | 				// If an update is needed, show an alert on the main thread
 64 | 				DispatchQueue.main.async {
 65 | 					Self.showAlert(appInfo: appInfo, complete: complete)
    |                              |- warning: sending 'appInfo' risks causing data races; this is an error in the Swift 6 language mode
    |                              `- note: task-isolated 'appInfo' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 66 | 				}
 67 |          }
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:65:49: warning: sending 'complete' risks causing data races; this is an error in the Swift 6 language mode
 63 | 				// If an update is needed, show an alert on the main thread
 64 | 				DispatchQueue.main.async {
 65 | 					Self.showAlert(appInfo: appInfo, complete: complete)
    |                                                 |- warning: sending 'complete' risks causing data races; this is an error in the Swift 6 language mode
    |                                                 `- note: task-isolated 'complete' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 66 | 				}
 67 |          }
/Users/admin/builder/spi-builder-workspace/Sources/UpgradeAlert/UpgradeAlert.swift:176:15: warning: sending task-isolated value of type '(Bool) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
174 |       alert.present()
175 |       #elseif os(macOS)
176 |       NSAlert.present(
    |               `- warning: sending task-isolated value of type '(Bool) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
177 |          question: config.alertTitle, // Set the alert question from the config
178 |          text: config.alertMessage(nil, appInfo.version), // Set the alert text from the config and the app version
Build complete! (16.33s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UpgradeAlert",
  "name" : "UpgradeAlert",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "UpgradeAlert",
      "targets" : [
        "UpgradeAlert"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UpgradeAlertTests",
      "module_type" : "SwiftTarget",
      "name" : "UpgradeAlertTests",
      "path" : "Tests/UpgradeAlertTests",
      "sources" : [
        "UpgradeAlertTests.swift"
      ],
      "target_dependencies" : [
        "UpgradeAlert"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UpgradeAlert",
      "module_type" : "SwiftTarget",
      "name" : "UpgradeAlert",
      "path" : "Sources/UpgradeAlert",
      "product_memberships" : [
        "UpgradeAlert"
      ],
      "sources" : [
        "UpgradeAlert+Variables.swift",
        "UpgradeAlert.swift",
        "ext/Bundle+Ext.swift",
        "ext/NSAlert+Ext.swift",
        "ext/UIAlertController+Ext.swift",
        "ext/UIApplication+Ext.swift",
        "helper/AppInfo.swift",
        "helper/LookupResult.swift",
        "helper/UAConfig.swift",
        "helper/UAError.swift",
        "helper/UAOutcome.swift",
        "util/ComparisonResult.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.