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 ObservedOptionalObject, reference v0.1.1 (74aa40), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 15:03:18 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fourplusone/observed-optional-object.git
Reference: v0.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fourplusone/observed-optional-object
 * tag               v0.1.1     -> FETCH_HEAD
HEAD is now at 74aa40a [PACKAGE] specify minimum iOS requirement
Cloned https://github.com/fourplusone/observed-optional-object.git
Revision (git rev-parse @):
74aa40a398688b90ee7724797861185e5a696aca
SUCCESS checkout https://github.com/fourplusone/observed-optional-object.git at v0.1.1
========================================
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": "observed-optional-object",
      "name": "ObservedOptionalObject",
      "url": "https://github.com/fourplusone/observed-optional-object.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/observed-optional-object",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/fourplusone/observed-optional-object.git
[1/25] Fetching observed-optional-object
Fetched https://github.com/fourplusone/observed-optional-object.git from cache (0.60s)
Creating working copy for https://github.com/fourplusone/observed-optional-object.git
Working copy of https://github.com/fourplusone/observed-optional-object.git resolved at v0.1.1 (74aa40a)
warning: '.resolve-product-dependencies': dependency 'observed-optional-object' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/fourplusone/observed-optional-object.git
https://github.com/fourplusone/observed-optional-object.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ObservedOptionalObject",
  "name" : "ObservedOptionalObject",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "ObservedOptionalObject",
      "targets" : [
        "ObservedOptionalObject"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ObservedOptionalObjectTests",
      "module_type" : "SwiftTarget",
      "name" : "ObservedOptionalObjectTests",
      "path" : "Tests/ObservedOptionalObjectTests",
      "sources" : [
        "ObservedOptionalObjectTests.swift"
      ],
      "target_dependencies" : [
        "ObservedOptionalObject"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ObservedOptionalObject",
      "module_type" : "SwiftTarget",
      "name" : "ObservedOptionalObject",
      "path" : "Sources/ObservedOptionalObject",
      "product_memberships" : [
        "ObservedOptionalObject"
      ],
      "sources" : [
        "ObservedOptionalObject.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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-2F0A5646E1D333AE.txt
[3/4] Emitting module ObservedOptionalObject
[4/4] Compiling ObservedOptionalObject ObservedOptionalObject.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObservedOptionalObject/ObservedOptionalObject.swift:76:9: warning: main actor-isolated property 'proxy' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 29 | @propertyWrapper public struct ObservedOptionalObject<T: ObservableObject>: DynamicProperty {
 30 |
 31 |     @StateObject private var proxy = Proxy()
    |                              `- note: mutation of this property is only permitted within the actor
 32 |
 33 |     /// The Proxy class holds the optional observed object and republisheds it's `objectWillChange`
    :
 73 |     }
 74 |
 75 |     public func update() {
    |                 `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
 76 |         proxy.wrappedObject = wrappedValue
    |         `- warning: main actor-isolated property 'proxy' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 77 |     }
 78 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservedOptionalObject/ObservedOptionalObject.swift:92:17: warning: capture of 'wrappedObject' with non-sendable type 'T' in a '@Sendable' closure
 27 | /// ```
 28 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
 29 | @propertyWrapper public struct ObservedOptionalObject<T: ObservableObject>: DynamicProperty {
    |                                                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 30 |
 31 |     @StateObject private var proxy = Proxy()
    :
 90 |
 91 |             return Binding {
 92 |                 wrappedObject[keyPath: keyPath]
    |                 `- warning: capture of 'wrappedObject' with non-sendable type 'T' in a '@Sendable' closure
 93 |             } set: { value in
 94 |                 wrappedObject[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/ObservedOptionalObject/ObservedOptionalObject.swift:92:40: warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<T, Subject>' in a '@Sendable' closure
 90 |
 91 |             return Binding {
 92 |                 wrappedObject[keyPath: keyPath]
    |                                        `- warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<T, Subject>' in a '@Sendable' closure
 93 |             } set: { value in
 94 |                 wrappedObject[keyPath: keyPath] = value
Swift.ReferenceWritableKeyPath:1:14: note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class ReferenceWritableKeyPath<Root, Value> : WritableKeyPath<Root, Value> {
  |              `- note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
2 |     @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservedOptionalObject/ObservedOptionalObject.swift:94:17: warning: capture of 'wrappedObject' with non-sendable type 'T' in a '@Sendable' closure
 27 | /// ```
 28 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
 29 | @propertyWrapper public struct ObservedOptionalObject<T: ObservableObject>: DynamicProperty {
    |                                                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 30 |
 31 |     @StateObject private var proxy = Proxy()
    :
 92 |                 wrappedObject[keyPath: keyPath]
 93 |             } set: { value in
 94 |                 wrappedObject[keyPath: keyPath] = value
    |                 `- warning: capture of 'wrappedObject' with non-sendable type 'T' in a '@Sendable' closure
 95 |             }
 96 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ObservedOptionalObject/ObservedOptionalObject.swift:94:40: warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<T, Subject>' in a '@Sendable' closure
 92 |                 wrappedObject[keyPath: keyPath]
 93 |             } set: { value in
 94 |                 wrappedObject[keyPath: keyPath] = value
    |                                        `- warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<T, Subject>' in a '@Sendable' closure
 95 |             }
 96 |         }
Swift.ReferenceWritableKeyPath:1:14: note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class ReferenceWritableKeyPath<Root, Value> : WritableKeyPath<Root, Value> {
  |              `- note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
2 |     @objc deinit
3 | }
Build complete! (7.64s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ObservedOptionalObject",
  "name" : "ObservedOptionalObject",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "ObservedOptionalObject",
      "targets" : [
        "ObservedOptionalObject"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ObservedOptionalObjectTests",
      "module_type" : "SwiftTarget",
      "name" : "ObservedOptionalObjectTests",
      "path" : "Tests/ObservedOptionalObjectTests",
      "sources" : [
        "ObservedOptionalObjectTests.swift"
      ],
      "target_dependencies" : [
        "ObservedOptionalObject"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ObservedOptionalObject",
      "module_type" : "SwiftTarget",
      "name" : "ObservedOptionalObject",
      "path" : "Sources/ObservedOptionalObject",
      "product_memberships" : [
        "ObservedOptionalObject"
      ],
      "sources" : [
        "ObservedOptionalObject.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.