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 FormStateKit with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 4

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/futuredapp/FormStateKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/futuredapp/FormStateKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9c3f391 Merge pull request #3 from futuredapp/housekeep/platform-support
Cloned https://github.com/futuredapp/FormStateKit.git
Revision (git rev-parse @):
9c3f391a5bd40aab5779bfa9a704a588946c3287
SUCCESS checkout https://github.com/futuredapp/FormStateKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/futuredapp/FormStateKit.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 FormStateKit FormValidationRule+ExpressibleByNilLiteral.swift
[4/12] Compiling FormStateKit FormValidationRule+Collection.swift
[5/12] Compiling FormStateKit FormValidationRule.swift
[6/12] Compiling FormStateKit FormValidationRule+Bool.swift
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/Rules/FormValidationRule+Bool.swift:2:16: warning: static property 'hasToBeOn' is not concurrency-safe because non-'Sendable' type 'FormValidationRule<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public extension FormValidationRule where Value == Bool {
2 |     static let hasToBeOn: Self = .init { $0 }
  |                |- warning: static property 'hasToBeOn' is not concurrency-safe because non-'Sendable' type 'FormValidationRule<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
  |                |- note: annotate 'hasToBeOn' 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
3 |     static let hasToBeOff: Self = .init { !$0 }
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/FormValidationRule.swift:3:15: note: consider making generic struct 'FormValidationRule' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public struct FormValidationRule<Value> {
   |               `- note: consider making generic struct 'FormValidationRule' conform to the 'Sendable' protocol
 4 |     let validate: (Value) -> Bool
 5 |
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/Rules/FormValidationRule+Bool.swift:3:16: warning: static property 'hasToBeOff' is not concurrency-safe because non-'Sendable' type 'FormValidationRule<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public extension FormValidationRule where Value == Bool {
2 |     static let hasToBeOn: Self = .init { $0 }
3 |     static let hasToBeOff: Self = .init { !$0 }
  |                |- warning: static property 'hasToBeOff' is not concurrency-safe because non-'Sendable' type 'FormValidationRule<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
  |                |- note: annotate 'hasToBeOff' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/FormValidationRule.swift:3:15: note: consider making generic struct 'FormValidationRule' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public struct FormValidationRule<Value> {
   |               `- note: consider making generic struct 'FormValidationRule' conform to the 'Sendable' protocol
 4 |     let validate: (Value) -> Bool
 5 |
[7/12] Compiling FormStateKit FormValidationRule+String.swift
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/Rules/FormValidationRule+String.swift:4:16: warning: static property 'email' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | private extension NSPredicate {
 4 |     static let email: NSPredicate = NSPredicate(
   |                |- warning: static property 'email' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'email' 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
 5 |         format: "SELF MATCHES %@",
 6 |         "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}"
Foundation.NSPredicate:2:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.4, *)
 2 | open class NSPredicate : NSObject, NSSecureCoding, NSCopying {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 3 |     public /*not inherited*/ init(format predicateFormat: String, argumentArray arguments: [Any]?)
 4 |     @available(*, unavailable, renamed: "init(format:argumentArray:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/Rules/FormValidationRule+String.swift:11:16: warning: static property 'email' is not concurrency-safe because non-'Sendable' type 'FormValidationRule<String>' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public extension FormValidationRule where Value == String {
11 |     static let email: Self = .init(NSPredicate.email.evaluate)
   |                |- warning: static property 'email' is not concurrency-safe because non-'Sendable' type 'FormValidationRule<String>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'email' 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
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/FormValidationRule.swift:3:15: note: consider making generic struct 'FormValidationRule' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public struct FormValidationRule<Value> {
   |               `- note: consider making generic struct 'FormValidationRule' conform to the 'Sendable' protocol
 4 |     let validate: (Value) -> Bool
 5 |
[8/12] Compiling FormStateKit FormValidation.swift
[9/12] Compiling FormStateKit FormModel.swift
[10/12] Compiling FormStateKit FormState.swift
[11/12] Emitting module FormStateKit
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/Rules/FormValidationRule+Bool.swift:2:16: warning: static property 'hasToBeOn' is not concurrency-safe because non-'Sendable' type 'FormValidationRule<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public extension FormValidationRule where Value == Bool {
2 |     static let hasToBeOn: Self = .init { $0 }
  |                |- warning: static property 'hasToBeOn' is not concurrency-safe because non-'Sendable' type 'FormValidationRule<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
  |                |- note: annotate 'hasToBeOn' 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
3 |     static let hasToBeOff: Self = .init { !$0 }
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/FormValidationRule.swift:3:15: note: consider making generic struct 'FormValidationRule' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public struct FormValidationRule<Value> {
   |               `- note: consider making generic struct 'FormValidationRule' conform to the 'Sendable' protocol
 4 |     let validate: (Value) -> Bool
 5 |
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/Rules/FormValidationRule+Bool.swift:3:16: warning: static property 'hasToBeOff' is not concurrency-safe because non-'Sendable' type 'FormValidationRule<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public extension FormValidationRule where Value == Bool {
2 |     static let hasToBeOn: Self = .init { $0 }
3 |     static let hasToBeOff: Self = .init { !$0 }
  |                |- warning: static property 'hasToBeOff' is not concurrency-safe because non-'Sendable' type 'FormValidationRule<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
  |                |- note: annotate 'hasToBeOff' 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
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/FormValidationRule.swift:3:15: note: consider making generic struct 'FormValidationRule' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public struct FormValidationRule<Value> {
   |               `- note: consider making generic struct 'FormValidationRule' conform to the 'Sendable' protocol
 4 |     let validate: (Value) -> Bool
 5 |
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/Rules/FormValidationRule+String.swift:4:16: warning: static property 'email' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | private extension NSPredicate {
 4 |     static let email: NSPredicate = NSPredicate(
   |                |- warning: static property 'email' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'email' 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
 5 |         format: "SELF MATCHES %@",
 6 |         "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}"
Foundation.NSPredicate:2:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.4, *)
 2 | open class NSPredicate : NSObject, NSSecureCoding, NSCopying {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 3 |     public /*not inherited*/ init(format predicateFormat: String, argumentArray arguments: [Any]?)
 4 |     @available(*, unavailable, renamed: "init(format:argumentArray:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/Rules/FormValidationRule+String.swift:11:16: warning: static property 'email' is not concurrency-safe because non-'Sendable' type 'FormValidationRule<String>' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public extension FormValidationRule where Value == String {
11 |     static let email: Self = .init(NSPredicate.email.evaluate)
   |                |- warning: static property 'email' is not concurrency-safe because non-'Sendable' type 'FormValidationRule<String>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'email' 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
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/FormStateKit/FormValidationRule.swift:3:15: note: consider making generic struct 'FormValidationRule' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public struct FormValidationRule<Value> {
   |               `- note: consider making generic struct 'FormValidationRule' conform to the 'Sendable' protocol
 4 |     let validate: (Value) -> Bool
 5 |
[12/12] Compiling FormStateKit FormPrefill.swift
Build complete! (32.40s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FormStateKit",
  "name" : "FormStateKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "FormStateKit",
      "targets" : [
        "FormStateKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FormStateKitTests",
      "module_type" : "SwiftTarget",
      "name" : "FormStateKitTests",
      "path" : "Tests/FormStateKitTests",
      "sources" : [
        "FormValidationRuleOperatorTests.swift",
        "FormValidationRulesTests.swift"
      ],
      "target_dependencies" : [
        "FormStateKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FormStateKit",
      "module_type" : "SwiftTarget",
      "name" : "FormStateKit",
      "path" : "Sources/FormStateKit",
      "product_memberships" : [
        "FormStateKit"
      ],
      "sources" : [
        "FormModel.swift",
        "FormPrefill.swift",
        "FormState.swift",
        "FormValidation.swift",
        "FormValidationRule.swift",
        "Rules/FormValidationRule+Bool.swift",
        "Rules/FormValidationRule+Collection.swift",
        "Rules/FormValidationRule+ExpressibleByNilLiteral.swift",
        "Rules/FormValidationRule+String.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.