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 Observable with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 0

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/roberthein/Observable.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/roberthein/Observable
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c789e97 Update version number.
Cloned https://github.com/roberthein/Observable.git
Revision (git rev-parse @):
c789e973131a4c2aba2a575345a91bcc06eef38d
SUCCESS checkout https://github.com/roberthein/Observable.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/roberthein/Observable.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/6] Emitting module Observable
[4/6] Compiling Observable Observable+Binding.swift
[5/6] Compiling Observable Disposable.swift
[6/6] Compiling Observable Observable.swift
/Users/admin/builder/spi-builder-workspace/Observable/Classes/Observable.swift:86:17: warning: capture of 'observer' with non-sendable type 'Observable<T>.Observer' (aka '(T, Optional<T>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 |         if let queue = queue {
 85 |             queue.async {
 86 |                 observer(value, oldValue)
    |                 |- warning: capture of 'observer' with non-sendable type 'Observable<T>.Observer' (aka '(T, Optional<T>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 87 |             }
 88 |         } else {
/Users/admin/builder/spi-builder-workspace/Observable/Classes/Observable.swift:86:26: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  4 | public typealias ImmutableObservable = Observable
  5 |
  6 | open class Observable<T> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  7 |
  8 |     public typealias Observer = (T, T?) -> Void
    :
 84 |         if let queue = queue {
 85 |             queue.async {
 86 |                 observer(value, oldValue)
    |                          `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 87 |             }
 88 |         } else {
/Users/admin/builder/spi-builder-workspace/Observable/Classes/Observable.swift:86:33: warning: capture of 'oldValue' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  4 | public typealias ImmutableObservable = Observable
  5 |
  6 | open class Observable<T> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  7 |
  8 |     public typealias Observer = (T, T?) -> Void
    :
 84 |         if let queue = queue {
 85 |             queue.async {
 86 |                 observer(value, oldValue)
    |                                 `- warning: capture of 'oldValue' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 87 |             }
 88 |         } else {
Build complete! (17.43s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Observable",
  "name" : "Observable",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "Observable",
      "targets" : [
        "Observable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ObservableTests",
      "module_type" : "SwiftTarget",
      "name" : "ObservableTests",
      "path" : "Observable/Tests",
      "sources" : [
        "Disposable_Tests.swift",
        "Observable_Tests.swift"
      ],
      "target_dependencies" : [
        "Observable"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Observable",
      "module_type" : "SwiftTarget",
      "name" : "Observable",
      "path" : "Observable/Classes",
      "product_memberships" : [
        "Observable"
      ],
      "sources" : [
        "Disposable.swift",
        "Observable+Binding.swift",
        "Observable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.