The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Validate, reference v0.3.0 (d04853), with Swift 6.2 for macOS (SPM) on 19 Jun 2025 09:16:49 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/reddavis/Validate.git
Reference: v0.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/reddavis/Validate
 * tag               v0.3.0     -> FETCH_HEAD
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 v0.3.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/reddavis/Validate.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/12] Compiling Validate Format.swift
[4/12] Compiling Validate ValidationError.swift
[5/12] Compiling Validate Sequence+Extension.swift
[6/12] Compiling Validate NSRegularExpression+Extension.swift
[7/12] Compiling Validate Count.swift
[8/12] Compiling Validate Validation.swift
[9/12] Compiling Validate Presence.swift
[10/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/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 {
[11/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: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,
[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.2 macosSpm