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

Failed to build Validate, reference main (d04853), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 06:31:46 UTC.

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/reddavis/Validate.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/reddavis/Validate
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d048535 Add couple cleaner initializers if not being used as a property wrapper
Cloned https://github.com/reddavis/Validate.git
Revision (git rev-parse @):
d04853538f2261d02c2b7cc30255d4608111cc95
SUCCESS checkout https://github.com/reddavis/Validate.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": "validate",
      "name": "Validate",
      "url": "https://github.com/reddavis/Validate.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Validate",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/reddavis/Validate.git
[1/166] Fetching validate
Fetched https://github.com/reddavis/Validate.git from cache (0.83s)
Creating working copy for https://github.com/reddavis/Validate.git
Working copy of https://github.com/reddavis/Validate.git resolved at main (d048535)
warning: '.resolve-product-dependencies': dependency 'validate' 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/reddavis/Validate.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/12] Compiling Validate ValidationError.swift
[4/12] Compiling Validate Format.swift
[5/12] Compiling Validate Validation.swift
[6/12] Compiling Validate NSRegularExpression+Extension.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/12] Compiling Validate Sequence+Extension.swift
[8/12] Emitting module Validate
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:35:25: error: 'Binding' is only available in macOS 10.15 or newer
 17 | /// can be built with the `Validation` struct.
 18 | @propertyWrapper
 19 | public struct Validate<Value>: DynamicProperty {
    |               `- note: add @available attribute to enclosing generic struct
 20 |     /// The wrapped value
 21 |     public var wrappedValue: Value {
    :
 33 |     ///
 34 |     /// This is useful for working with SwiftUI components.
 35 |     public var binding: Binding<Value> {
    |                |        `- error: 'Binding' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 36 |         Binding(
 37 |             get: { self.wrappedValue },
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:51:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
 17 | /// can be built with the `Validation` struct.
 18 | @propertyWrapper
 19 | public struct Validate<Value>: DynamicProperty {
    |               `- note: add @available attribute to enclosing generic struct
 20 |     /// The wrapped value
 21 |     public var wrappedValue: Value {
    :
 49 |
 50 |     // Private
 51 |     @ObservedObject private var validator: Validator<Value>
    |      `- error: 'ObservedObject' is only available in macOS 10.15 or newer
 52 |
 53 |     // MARK: Initialization
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:115:24: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
112 | // MARK: Equatable
113 |
114 | extension Validate: Equatable where Value: Equatable {
    |                     `- note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
115 |     public static func ==(lhs: Validate, rhs: Validate) -> Bool {
    |                        |- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |                        `- note: add 'nonisolated' to '==' to make this operator function not isolated to the actor
116 |         lhs.wrappedValue == rhs.wrappedValue
117 |     }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 |     static func == (lhs: Self, rhs: Self) -> Bool
  |                 `- note: '==' declared here
3 | }
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validator.swift:4:31: error: 'ObservableObject' is only available in macOS 10.15 or newer
 2 |
 3 |
 4 | final class Validator<Value>: ObservableObject {
   |             |                 `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |             `- note: add @available attribute to enclosing generic class
 5 |     var value: Value {
 6 |         didSet {
[9/12] Compiling Validate Validate.swift
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:35:25: error: 'Binding' is only available in macOS 10.15 or newer
 17 | /// can be built with the `Validation` struct.
 18 | @propertyWrapper
 19 | public struct Validate<Value>: DynamicProperty {
    |               `- note: add @available attribute to enclosing generic struct
 20 |     /// The wrapped value
 21 |     public var wrappedValue: Value {
    :
 33 |     ///
 34 |     /// This is useful for working with SwiftUI components.
 35 |     public var binding: Binding<Value> {
    |                |        `- error: 'Binding' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 36 |         Binding(
 37 |             get: { self.wrappedValue },
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:51:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
 17 | /// can be built with the `Validation` struct.
 18 | @propertyWrapper
 19 | public struct Validate<Value>: DynamicProperty {
    |               `- note: add @available attribute to enclosing generic struct
 20 |     /// The wrapped value
 21 |     public var wrappedValue: Value {
    :
 49 |
 50 |     // Private
 51 |     @ObservedObject private var validator: Validator<Value>
    |      `- error: 'ObservedObject' is only available in macOS 10.15 or newer
 52 |
 53 |     // MARK: Initialization
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:115:24: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
112 | // MARK: Equatable
113 |
114 | extension Validate: Equatable where Value: Equatable {
    |                     `- note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
115 |     public static func ==(lhs: Validate, rhs: Validate) -> Bool {
    |                        |- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |                        `- note: add 'nonisolated' to '==' to make this operator function not isolated to the actor
116 |         lhs.wrappedValue == rhs.wrappedValue
117 |     }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 |     static func == (lhs: Self, rhs: Self) -> Bool
  |                 `- note: '==' declared here
3 | }
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:24:13: error: cannot pass as inout because setter for 'validator' is only available in macOS 10.15 or newer
 17 | /// can be built with the `Validation` struct.
 18 | @propertyWrapper
 19 | public struct Validate<Value>: DynamicProperty {
    |               `- note: add @available attribute to enclosing generic struct
 20 |     /// The wrapped value
 21 |     public var wrappedValue: Value {
    |                `- note: add @available attribute to enclosing property
 22 |         get { self.validator.value }
 23 |         nonmutating set {
 24 |             self.validator.value = newValue
    |             |- error: cannot pass as inout because setter for 'validator' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 25 |         }
 26 |     }
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:36:9: error: 'Binding' is only available in macOS 10.15 or newer
 17 | /// can be built with the `Validation` struct.
 18 | @propertyWrapper
 19 | public struct Validate<Value>: DynamicProperty {
    |               `- note: add @available attribute to enclosing generic struct
 20 |     /// The wrapped value
 21 |     public var wrappedValue: Value {
    :
 33 |     ///
 34 |     /// This is useful for working with SwiftUI components.
 35 |     public var binding: Binding<Value> {
    |                `- note: add @available attribute to enclosing property
 36 |         Binding(
    |         |- error: 'Binding' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 37 |             get: { self.wrappedValue },
 38 |             set: { self.wrappedValue = $0 }
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:103:27: error: 'ObservedObject' is only available in macOS 10.15 or newer
 17 | /// can be built with the `Validation` struct.
 18 | @propertyWrapper
 19 | public struct Validate<Value>: DynamicProperty {
    |               `- note: add @available attribute to enclosing generic struct
 20 |     /// The wrapped value
 21 |     public var wrappedValue: Value {
    :
 97 |     }
 98 |
 99 |     init(
    |     `- note: add @available attribute to enclosing initializer
100 |         wrappedValue: Value,
101 |         validations: [Validation<Value>]
102 |     ) {
103 |         self._validator = ObservedObject(
    |                           |- error: 'ObservedObject' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
104 |             wrappedValue: Validator(
105 |                 value: wrappedValue,
[10/12] Compiling Validate Presence.swift
[11/12] Compiling Validate Count.swift
[12/12] Compiling Validate Validator.swift
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validator.swift:4:31: error: 'ObservableObject' is only available in macOS 10.15 or newer
 2 |
 3 |
 4 | final class Validator<Value>: ObservableObject {
   |             |                 `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |             `- note: add @available attribute to enclosing generic class
 5 |     var value: Value {
 6 |         didSet {
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validator.swift:12:24: error: 'objectWillChange' is only available in macOS 10.15 or newer
 2 |
 3 |
 4 | final class Validator<Value>: ObservableObject {
   |             `- note: add @available attribute to enclosing generic class
 5 |     var value: Value {
 6 |         didSet {
   :
10 |
11 |     var errors: [Error] = [] {
12 |         willSet { self.objectWillChange.send() }
   |                        |- error: 'objectWillChange' is only available in macOS 10.15 or newer
   |                        `- note: add 'if #available' version check
13 |     }
14 |
BUILD FAILURE 6.0 macosSpm