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 PublishedKVO, reference master (6a56b1), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 09:16:56 UTC.

Swift 6 data race errors: 0

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/matis-schotte/PublishedKVO.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/matis-schotte/PublishedKVO
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 6a56b12 FIX crash related to KVO observing/cleanup necessary
Cloned https://github.com/matis-schotte/PublishedKVO.git
Revision (git rev-parse @):
6a56b12847e9fe86bce7dd8b3209f4424eb6bfe9
SUCCESS checkout https://github.com/matis-schotte/PublishedKVO.git at master
========================================
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": "publishedkvo",
      "name": "PublishedKVO",
      "url": "https://github.com/matis-schotte/PublishedKVO.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PublishedKVO",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/matis-schotte/PublishedKVO.git
[1/92] Fetching publishedkvo
Fetched https://github.com/matis-schotte/PublishedKVO.git from cache (0.72s)
Creating working copy for https://github.com/matis-schotte/PublishedKVO.git
Working copy of https://github.com/matis-schotte/PublishedKVO.git resolved at master (6a56b12)
warning: '.resolve-product-dependencies': dependency 'publishedkvo' 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/matis-schotte/PublishedKVO.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Emitting module PublishedKVO
[4/4] Compiling PublishedKVO PublishedKVO.swift
/Users/admin/builder/spi-builder-workspace/Sources/PublishedKVO/PublishedKVO.swift:113:22: warning: capture of 'self' with non-sendable type 'PublishedKVO<Value, B>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 | */
 85 | @propertyWrapper
 86 | public class PublishedKVO<Value: NSObject, B> {
    |              `- note: generic class 'PublishedKVO' does not conform to the 'Sendable' protocol
 87 | 	private let subject: CurrentValueSubject<Value, Never>
 88 |
    :
111 | 		keyPaths.forEach { keyPath in
112 | 			let kvoToken = subject.value.observe(keyPath) { [weak self] _, _ in
113 | 				guard let self = self else { return }
    |                      `- warning: capture of 'self' with non-sendable type 'PublishedKVO<Value, B>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | 				// this works different to Combine @Published since the var inside the object is already set when emitting this value
115 | 				self.subject.send(self.subject.value)
Build complete! (5.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PublishedKVO",
  "name" : "PublishedKVO",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "PublishedKVO",
      "targets" : [
        "PublishedKVO"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PublishedKVOTests",
      "module_type" : "SwiftTarget",
      "name" : "PublishedKVOTests",
      "path" : "Tests/PublishedKVOTests",
      "sources" : [
        "PublishedKVOTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "PublishedKVO"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PublishedKVO",
      "module_type" : "SwiftTarget",
      "name" : "PublishedKVO",
      "path" : "Sources/PublishedKVO",
      "product_memberships" : [
        "PublishedKVO"
      ],
      "sources" : [
        "PublishedKVO.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.