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 SwiftDetailer 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/openalloc/SwiftDetailer.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/openalloc/SwiftDetailer
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d144f77 Added demo projects to README
Cloned https://github.com/openalloc/SwiftDetailer.git
Revision (git rev-parse @):
d144f770e4974ce62f0e1e22a01f2620210d8403
SUCCESS checkout https://github.com/openalloc/SwiftDetailer.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/openalloc/SwiftDetailer.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/12] Compiling Detailer EditDetailR.swift
[4/12] Compiling Detailer EditDetailC.swift
[5/12] Compiling Detailer Validate.swift
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Validate.swift:46:13: warning: capture of 'self' with non-sendable type 'Validate<Element, T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 |
21 | /// For use with LIGHTWEIGHT field-level validation.
22 | struct Validate<Element, T>: View
   |        `- note: consider making generic struct 'Validate' conform to the 'Sendable' protocol
23 |     where Element: Identifiable,
24 |     T: Equatable
   :
44 |     private func updateSet(_ nuValue: T) {
45 |         DispatchQueue.main.async {
46 |             ctx.onValidate(anyKeyPath, test(nuValue))
   |             `- warning: capture of 'self' with non-sendable type 'Validate<Element, T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |         }
48 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Validate.swift:46:45: warning: capture of 'nuValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 |
21 | /// For use with LIGHTWEIGHT field-level validation.
22 | struct Validate<Element, T>: View
   |                          `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
23 |     where Element: Identifiable,
24 |     T: Equatable
   :
44 |     private func updateSet(_ nuValue: T) {
45 |         DispatchQueue.main.async {
46 |             ctx.onValidate(anyKeyPath, test(nuValue))
   |                                             `- warning: capture of 'nuValue' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |         }
48 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Validate.swift:46:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
44 |     private func updateSet(_ nuValue: T) {
45 |         DispatchQueue.main.async {
46 |             ctx.onValidate(anyKeyPath, test(nuValue))
   |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
47 |         }
48 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Internal/Validate.swift:46:45: warning: sending 'nuValue' risks causing data races; this is an error in the Swift 6 language mode
44 |     private func updateSet(_ nuValue: T) {
45 |         DispatchQueue.main.async {
46 |             ctx.onValidate(anyKeyPath, test(nuValue))
   |                                             |- warning: sending 'nuValue' risks causing data races; this is an error in the Swift 6 language mode
   |                                             `- note: task-isolated 'nuValue' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
47 |         }
48 |     }
[6/12] Compiling Detailer ViewDetail.swift
[7/12] Compiling Detailer DetailerContext.swift
[8/12] Compiling Detailer View+Validate.swift
[9/12] Emitting module Detailer
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/DetailerConfig.swift:28:23: warning: static property 'validateIndicator' is not concurrency-safe because non-'Sendable' type '(Bool) -> AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
 26 |     #endif
 27 |
 28 |     public static let validateIndicator: (Bool) -> AnyView = { AnyView(
    |                       |- warning: static property 'validateIndicator' is not concurrency-safe because non-'Sendable' type '(Bool) -> AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'validateIndicator' 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
 29 |         Image(systemName: "exclamationmark.triangle")
 30 |             .font(.title2)
[10/12] Compiling Detailer DetailerConfig.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/DetailerConfig.swift:28:23: warning: static property 'validateIndicator' is not concurrency-safe because non-'Sendable' type '(Bool) -> AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
 26 |     #endif
 27 |
 28 |     public static let validateIndicator: (Bool) -> AnyView = { AnyView(
    |                       |- warning: static property 'validateIndicator' is not concurrency-safe because non-'Sendable' type '(Bool) -> AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'validateIndicator' 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
 29 |         Image(systemName: "exclamationmark.triangle")
 30 |             .font(.title2)
[11/12] Compiling Detailer View+Detailer.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/DetailerConfig.swift:28:23: warning: static property 'validateIndicator' is not concurrency-safe because non-'Sendable' type '(Bool) -> AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
 26 |     #endif
 27 |
 28 |     public static let validateIndicator: (Bool) -> AnyView = { AnyView(
    |                       |- warning: static property 'validateIndicator' is not concurrency-safe because non-'Sendable' type '(Bool) -> AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'validateIndicator' 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
 29 |         Image(systemName: "exclamationmark.triangle")
 30 |             .font(.title2)
/Users/admin/builder/spi-builder-workspace/Sources/View+Detailer.swift:63:17: warning: call to main actor-isolated initializer 'init(config:element:originalID:detailContent:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 61 |         sheet(item: toEdit) { element in
 62 |             #if os(macOS)
 63 |                 EditDetailC(config: config,
    |                 `- warning: call to main actor-isolated initializer 'init(config:element:originalID:detailContent:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 64 |                             element: element,
 65 |                             originalID: originalID,
/Users/admin/builder/spi-builder-workspace/Sources/Internal/EditDetailC.swift:22:8: note: calls to initializer 'init(config:element:originalID:detailContent:)' from outside of its actor context are implicitly asynchronous
20 |
21 | /// Core Data support
22 | struct EditDetailC<Element, Detail>: View
   |        `- note: calls to initializer 'init(config:element:originalID:detailContent:)' from outside of its actor context are implicitly asynchronous
23 |     where Element: Identifiable & ObservableObject,
24 |     Detail: View
/Users/admin/builder/spi-builder-workspace/Sources/View+Detailer.swift:63:17: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
 61 |         sheet(item: toEdit) { element in
 62 |             #if os(macOS)
 63 |                 EditDetailC(config: config,
    |                 |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: sending task-isolated 'config' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
 64 |                             element: element,
 65 |                             originalID: originalID,
/Users/admin/builder/spi-builder-workspace/Sources/View+Detailer.swift:63:17: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
 61 |         sheet(item: toEdit) { element in
 62 |             #if os(macOS)
 63 |                 EditDetailC(config: config,
    |                 |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: sending task-isolated 'element' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
 64 |                             element: element,
 65 |                             originalID: originalID,
/Users/admin/builder/spi-builder-workspace/Sources/View+Detailer.swift:63:17: warning: sending 'originalID' risks causing data races; this is an error in the Swift 6 language mode
 61 |         sheet(item: toEdit) { element in
 62 |             #if os(macOS)
 63 |                 EditDetailC(config: config,
    |                 |- warning: sending 'originalID' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: sending task-isolated 'originalID' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
 64 |                             element: element,
 65 |                             originalID: originalID,
/Users/admin/builder/spi-builder-workspace/Sources/View+Detailer.swift:63:17: warning: sending 'detailContent' risks causing data races; this is an error in the Swift 6 language mode
 61 |         sheet(item: toEdit) { element in
 62 |             #if os(macOS)
 63 |                 EditDetailC(config: config,
    |                 |- warning: sending 'detailContent' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: sending task-isolated 'detailContent' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
 64 |                             element: element,
 65 |                             originalID: originalID,
[12/12] Compiling Detailer EditDetailBase.swift
Build complete! (38.02s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftDetailer",
  "name" : "SwiftDetailer",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "Detailer",
      "targets" : [
        "Detailer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Detailer",
      "module_type" : "SwiftTarget",
      "name" : "Detailer",
      "path" : "Sources",
      "product_memberships" : [
        "Detailer"
      ],
      "sources" : [
        "DetailerConfig.swift",
        "DetailerContext.swift",
        "Internal/EditDetailBase.swift",
        "Internal/EditDetailC.swift",
        "Internal/EditDetailR.swift",
        "Internal/Validate.swift",
        "Internal/ViewDetail.swift",
        "View+Detailer.swift",
        "View+Validate.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.