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

Successful build of ObservedOptionalObject with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

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/fourplusone/observed-optional-object.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fourplusone/observed-optional-object
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/fourplusone/observed-optional-object.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/4] Emitting module ObservedOptionalObject
/Users/admin/builder/spi-builder-workspace/Sources/ObservedOptionalObject/ObservedOptionalObject.swift:75:17: warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
 27 | /// ```
 28 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
 29 | @propertyWrapper public struct ObservedOptionalObject<T: ObservableObject>: DynamicProperty {
    |                                                                             `- note: add '@preconcurrency' to the 'DynamicProperty' conformance to defer isolation checking to run time
 30 |
 31 |     @StateObject private var proxy = Proxy()
    :
 73 |     }
 74 |
 75 |     public func update() {
    |                 |- warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |                 `- note: add 'nonisolated' to 'update()' to make this instance method not isolated to the actor
 76 |         proxy.wrappedObject = wrappedValue
 77 |     }
SwiftUI.DynamicProperty:6:19: note: 'update()' declared here
4 |     @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
5 |     static var _propertyBehaviors: UInt32 { get }
6 |     mutating func update()
  |                   `- note: 'update()' declared here
7 | }
[4/4] Compiling ObservedOptionalObject ObservedOptionalObject.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObservedOptionalObject/ObservedOptionalObject.swift:75:17: warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
 27 | /// ```
 28 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
 29 | @propertyWrapper public struct ObservedOptionalObject<T: ObservableObject>: DynamicProperty {
    |                                                                             `- note: add '@preconcurrency' to the 'DynamicProperty' conformance to defer isolation checking to run time
 30 |
 31 |     @StateObject private var proxy = Proxy()
    :
 73 |     }
 74 |
 75 |     public func update() {
    |                 |- warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |                 `- note: add 'nonisolated' to 'update()' to make this instance method not isolated to the actor
 76 |         proxy.wrappedObject = wrappedValue
 77 |     }
SwiftUI.DynamicProperty:6:19: note: 'update()' declared here
4 |     @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
5 |     static var _propertyBehaviors: UInt32 { get }
6 |     mutating func update()
  |                   `- note: 'update()' declared here
7 | }
Build complete! (30.93s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.