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 SwiftKit, reference 2.4.2 (cd4ab8), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 09:31:31 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/wendyliga/SwiftKit.git
Reference: 2.4.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/wendyliga/SwiftKit
 * tag               2.4.2      -> FETCH_HEAD
HEAD is now at cd4ab8d Fix Shell (#16)
Cloned https://github.com/wendyliga/SwiftKit.git
Revision (git rev-parse @):
cd4ab8d71b82209b774004954451517e565575bf
SUCCESS checkout https://github.com/wendyliga/SwiftKit.git at 2.4.2
========================================
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": "swiftkit",
      "name": "SwiftKit",
      "url": "https://github.com/wendyliga/SwiftKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/wendyliga/SwiftKit.git
[1/717] Fetching swiftkit
Fetched https://github.com/wendyliga/SwiftKit.git from cache (0.76s)
Creating working copy for https://github.com/wendyliga/SwiftKit.git
Working copy of https://github.com/wendyliga/SwiftKit.git resolved at 2.4.2 (cd4ab8d)
warning: '.resolve-product-dependencies': dependency 'swiftkit' 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/wendyliga/SwiftKit.git
https://github.com/wendyliga/SwiftKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftKit",
  "name" : "SwiftKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftKit",
      "targets" : [
        "SwiftKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftKitTests",
      "path" : "Tests/SwiftKitTests",
      "sources" : [
        "Array+Tests.swift",
        "DefaultValue+Tests.swift",
        "NonEmpty+Tests.swift",
        "Result+Tests.swift",
        "String+Tests.swift",
        "Traceable+Tests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftKit",
      "module_type" : "SwiftTarget",
      "name" : "SwiftKit",
      "path" : "Sources/SwiftKit",
      "product_memberships" : [
        "SwiftKit"
      ],
      "sources" : [
        "Deprecated.swift",
        "Error.swift",
        "Extensions/Array+Extension.swift",
        "Extensions/Result+Extension.swift",
        "Extensions/String+Extension.swift",
        "Log.swift",
        "PropertyWrapper/DefaultValue.swift",
        "PropertyWrapper/NonEmpty.swift",
        "PropertyWrapper/Traceable.swift",
        "Shell.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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/12] Compiling SwiftKit DefaultValue.swift
[4/12] Compiling SwiftKit Log.swift
[5/12] Compiling SwiftKit Result+Extension.swift
[6/12] Compiling SwiftKit NonEmpty.swift
[7/12] Compiling SwiftKit Traceable.swift
[8/13] Compiling SwiftKit Array+Extension.swift
[9/13] Compiling SwiftKit Deprecated.swift
[10/13] Compiling SwiftKit Error.swift
[11/13] Emitting module SwiftKit
[12/13] Compiling SwiftKit String+Extension.swift
[13/13] Compiling SwiftKit Shell.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftKit/Shell.swift:75:21: warning: capture of 'result' with non-sendable type '(Shell.ResultStream) -> Void' (aka '((output: Optional<String>, errorOuput: Optional<String>)) -> ()') in a '@Sendable' closure
 73 |             if data.count > 0 {
 74 |                 if let output = String(data: data, encoding: String.Encoding.utf8) {
 75 |                     result((output: output.trim(), errorOuput: nil))
    |                     |- warning: capture of 'result' with non-sendable type '(Shell.ResultStream) -> Void' (aka '((output: Optional<String>, errorOuput: Optional<String>)) -> ()') in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 76 |                 }
 77 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftKit/Shell.swift:81:59: warning: capture of 'stdOutObserver' with non-sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure
 79 |             } else {
 80 |                 // That means we've reached the end of the input.
 81 |                 NotificationCenter.default.removeObserver(stdOutObserver!)
    |                                                           `- warning: capture of 'stdOutObserver' with non-sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure
 82 |             }
 83 |         }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 13 | @class NSString, NSMethodSignature, NSInvocation;
 14 |
 15 | @protocol NSObject
    |           `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 16 |
 17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/SwiftKit/Shell.swift:25:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 23 |  */
 24 |
 25 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 26 |
 27 | public enum Shell {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftKit/Shell.swift:81:59: warning: reference to captured var 'stdOutObserver' in concurrently-executing code
 79 |             } else {
 80 |                 // That means we've reached the end of the input.
 81 |                 NotificationCenter.default.removeObserver(stdOutObserver!)
    |                                                           `- warning: reference to captured var 'stdOutObserver' in concurrently-executing code
 82 |             }
 83 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftKit/Shell.swift:95:21: warning: capture of 'result' with non-sendable type '(Shell.ResultStream) -> Void' (aka '((output: Optional<String>, errorOuput: Optional<String>)) -> ()') in a '@Sendable' closure
 93 |             if data.count > 0 {
 94 |                 if let output = String(data: data, encoding: String.Encoding.utf8) {
 95 |                     result((output: nil, errorOuput: output.trim()))
    |                     |- warning: capture of 'result' with non-sendable type '(Shell.ResultStream) -> Void' (aka '((output: Optional<String>, errorOuput: Optional<String>)) -> ()') in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 96 |                 }
 97 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftKit/Shell.swift:101:59: warning: capture of 'stdErrObserver' with non-sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure
 99 |             } else {
100 |                 // That means we've reached the end of the input.
101 |                 NotificationCenter.default.removeObserver(stdErrObserver!)
    |                                                           `- warning: capture of 'stdErrObserver' with non-sendable type '(any NSObjectProtocol)?' in a '@Sendable' closure
102 |             }
103 |         }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 13 | @class NSString, NSMethodSignature, NSInvocation;
 14 |
 15 | @protocol NSObject
    |           `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 16 |
 17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/SwiftKit/Shell.swift:101:59: warning: reference to captured var 'stdErrObserver' in concurrently-executing code
 99 |             } else {
100 |                 // That means we've reached the end of the input.
101 |                 NotificationCenter.default.removeObserver(stdErrObserver!)
    |                                                           `- warning: reference to captured var 'stdErrObserver' in concurrently-executing code
102 |             }
103 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftKit/Shell.swift:66:24: warning: 'stdOutObserver' mutated after capture by sendable closure
 64 |         // set listener
 65 |         var stdOutObserver: NSObjectProtocol!
 66 |         stdOutObserver = NotificationCenter.default.addObserver(
    |                        `- warning: 'stdOutObserver' mutated after capture by sendable closure
 67 |             forName: NSNotification.Name.NSFileHandleDataAvailable,
 68 |             object: stdOutReading,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftKit/Shell.swift:86:24: warning: 'stdErrObserver' mutated after capture by sendable closure
 84 |
 85 |         var stdErrObserver: NSObjectProtocol!
 86 |         stdErrObserver = NotificationCenter.default.addObserver(
    |                        `- warning: 'stdErrObserver' mutated after capture by sendable closure
 87 |             forName: NSNotification.Name.NSFileHandleDataAvailable,
 88 |             object: stdErrReading,
Build complete! (6.01s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftKit",
  "name" : "SwiftKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftKit",
      "targets" : [
        "SwiftKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftKitTests",
      "path" : "Tests/SwiftKitTests",
      "sources" : [
        "Array+Tests.swift",
        "DefaultValue+Tests.swift",
        "NonEmpty+Tests.swift",
        "Result+Tests.swift",
        "String+Tests.swift",
        "Traceable+Tests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftKit",
      "module_type" : "SwiftTarget",
      "name" : "SwiftKit",
      "path" : "Sources/SwiftKit",
      "product_memberships" : [
        "SwiftKit"
      ],
      "sources" : [
        "Deprecated.swift",
        "Error.swift",
        "Extensions/Array+Extension.swift",
        "Extensions/Result+Extension.swift",
        "Extensions/String+Extension.swift",
        "Log.swift",
        "PropertyWrapper/DefaultValue.swift",
        "PropertyWrapper/NonEmpty.swift",
        "PropertyWrapper/Traceable.swift",
        "Shell.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.