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 v0.3.0 (d04853), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 12:28:51 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.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
========================================
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.95s)
Creating working copy for https://github.com/reddavis/Validate.git
Working copy of https://github.com/reddavis/Validate.git resolved at v0.3.0 (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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling Validate Format.swift
[4/12] Compiling Validate Presence.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/12] Compiling Validate ValidationError.swift
[6/12] Emitting module Validate
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:51:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 49 |
 50 |     // Private
 51 |     @ObservedObject private var validator: Validator<Value>
    |      `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 52 |
 53 |     // MARK: Initialization
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
 5 |     }
 6 |     @MainActor @preconcurrency public init(initialValue: ObjectType)
 7 |     @MainActor @preconcurrency public init(wrappedValue: ObjectType)
   |                                       `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
 8 |     @MainActor @preconcurrency public var wrappedValue: ObjectType
 9 |     @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/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 {
[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 |
[8/12] Compiling Validate Validation.swift
[9/12] Compiling Validate Sequence+Extension.swift
[10/12] Compiling Validate NSRegularExpression+Extension.swift
[11/12] Compiling Validate Count.swift
[12/12] Compiling Validate Validate.swift
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:51:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 49 |
 50 |     // Private
 51 |     @ObservedObject private var validator: Validator<Value>
    |      `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 52 |
 53 |     // MARK: Initialization
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
 5 |     }
 6 |     @MainActor @preconcurrency public init(initialValue: ObjectType)
 7 |     @MainActor @preconcurrency public init(wrappedValue: ObjectType)
   |                                       `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
 8 |     @MainActor @preconcurrency public var wrappedValue: ObjectType
 9 |     @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/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:22:20: warning: main actor-isolated property 'validator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 20 |     /// The wrapped value
 21 |     public var wrappedValue: Value {
 22 |         get { self.validator.value }
    |                    `- warning: main actor-isolated property 'validator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 23 |         nonmutating set {
 24 |             self.validator.value = newValue
    :
 49 |
 50 |     // Private
 51 |     @ObservedObject private var validator: Validator<Value>
    |                                 `- note: property declared here
 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:24:18: warning: main actor-isolated property 'validator' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 22 |         get { self.validator.value }
 23 |         nonmutating set {
 24 |             self.validator.value = newValue
    |                  `- warning: main actor-isolated property 'validator' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 25 |         }
 26 |     }
    :
 49 |
 50 |     // Private
 51 |     @ObservedObject private var validator: Validator<Value>
    |                                 `- note: mutation of this property is only permitted within the actor
 52 |
 53 |     // MARK: Initialization
/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:37:20: warning: capture of 'self' with non-sendable type 'Validate<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | /// can be built with the `Validation` struct.
 18 | @propertyWrapper
 19 | public struct Validate<Value>: DynamicProperty {
    |               `- note: consider making generic struct 'Validate' conform to the 'Sendable' protocol
 20 |     /// The wrapped value
 21 |     public var wrappedValue: Value {
    :
 35 |     public var binding: Binding<Value> {
 36 |         Binding(
 37 |             get: { self.wrappedValue },
    |                    `- warning: capture of 'self' with non-sendable type 'Validate<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 38 |             set: { self.wrappedValue = $0 }
 39 |         )
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:38:20: warning: capture of 'self' with non-sendable type 'Validate<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | /// can be built with the `Validation` struct.
 18 | @propertyWrapper
 19 | public struct Validate<Value>: DynamicProperty {
    |               `- note: consider making generic struct 'Validate' conform to the 'Sendable' protocol
 20 |     /// The wrapped value
 21 |     public var wrappedValue: Value {
    :
 36 |         Binding(
 37 |             get: { self.wrappedValue },
 38 |             set: { self.wrappedValue = $0 }
    |                    `- warning: capture of 'self' with non-sendable type 'Validate<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 39 |         )
 40 |     }
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:44:14: warning: main actor-isolated property 'validator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 42 |     /// The errors produced when validating the wrapped value.
 43 |     public var errors: [Error] {
 44 |         self.validator.errors
    |              `- warning: main actor-isolated property 'validator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 45 |     }
 46 |
    :
 49 |
 50 |     // Private
 51 |     @ObservedObject private var validator: Validator<Value>
    |                                 `- note: property declared here
 52 |
 53 |     // MARK: Initialization
/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,
/Users/admin/builder/spi-builder-workspace/Validate/Source/Validate.swift:103:27: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
101 |         validations: [Validation<Value>]
102 |     ) {
103 |         self._validator = ObservedObject(
    |                           `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 |             wrappedValue: Validator(
105 |                 value: wrappedValue,
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
 5 |     }
 6 |     @MainActor @preconcurrency public init(initialValue: ObjectType)
 7 |     @MainActor @preconcurrency public init(wrappedValue: ObjectType)
   |                                       `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
 8 |     @MainActor @preconcurrency public var wrappedValue: ObjectType
 9 |     @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
BUILD FAILURE 6.0 macosSpm