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

Failed to build Validate with Swift 6.0 for macOS (SPM).

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/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/reddavis/Validate.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 Validate Count.swift
[4/12] Compiling Validate Presence.swift
[5/12] Compiling Validate ValidationError.swift
[6/12] Compiling Validate Format.swift
[7/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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/12] Compiling Validate Validation.swift
[9/12] Compiling Validate Sequence+Extension.swift
[10/12] Compiling Validate NSRegularExpression+Extension.swift
[11/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 {
[12/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,
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.