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 SwiftLibrary 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/kiliankoe/SwiftLibrary.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kiliankoe/SwiftLibrary
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a21af6b Support new version specific metadata
Cloned https://github.com/kiliankoe/SwiftLibrary.git
Revision (git rev-parse @):
a21af6b730768e1032068c98bcabc35488f5662d
SUCCESS checkout https://github.com/kiliankoe/SwiftLibrary.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/kiliankoe/SwiftLibrary.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/7] Write swift-library-entitlement.plist
[0/7] Write sources
[3/7] Write swift-version-6F35C1178C84523A.txt
[5/12] Compiling SwiftLibrary Requirement.swift
[6/12] Compiling SwiftLibrary Command.swift
[7/12] Compiling SwiftLibrary SwiftLibrary.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftLibrary/SwiftLibrary.swift:9:17: warning: capture of 'completion' with non-sendable type '(Result<[PackageData], any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 7 |         let task = session.dataTask(with: urlRequest(with: query)) { data, _, error in
 8 |             guard let data = data, error == nil else {
 9 |                 completion(.failure(error!))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<[PackageData], any Error>) -> Void' 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'
10 |                 return
11 |             }
[8/12] Compiling SwiftLibrary PackageData.swift
[9/12] Emitting module SwiftLibrary
[10/15] Compiling swift_library main.swift
<unknown>:0: note: 'add(package:requirement:)' declared here
/Users/admin/builder/spi-builder-workspace/Sources/swift-library/main.swift:39:11: warning: enum case 'add' has 2 associated values; matching them as a tuple is deprecated
37 |     }
38 |     run(cmd: "/usr/bin/open", args: [package.url.absoluteString])
39 | case .add(let input):
   |           `- warning: enum case 'add' has 2 associated values; matching them as a tuple is deprecated
40 |     guard let package = firstPackage(query: input.package) else {
41 |         print("No package matching query found.")
[11/15] Emitting module swift_library
<unknown>:0: note: 'add(package:requirement:)' declared here
/Users/admin/builder/spi-builder-workspace/Sources/swift-library/main.swift:39:11: warning: enum case 'add' has 2 associated values; matching them as a tuple is deprecated
37 |     }
38 |     run(cmd: "/usr/bin/open", args: [package.url.absoluteString])
39 | case .add(let input):
   |           `- warning: enum case 'add' has 2 associated values; matching them as a tuple is deprecated
40 |     guard let package = firstPackage(query: input.package) else {
41 |         print("No package matching query found.")
[12/15] Compiling swift_library Util.swift
[12/15] Write Objects.LinkFileList
[13/15] Linking swift-library
[14/15] Applying swift-library
Build complete! (26.17s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftLibrary",
  "name" : "SwiftLibrary",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftLibrary",
      "targets" : [
        "SwiftLibrary"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "swift-library",
      "targets" : [
        "swift-library"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "swift_library",
      "module_type" : "SwiftTarget",
      "name" : "swift-library",
      "path" : "Sources/swift-library",
      "product_memberships" : [
        "swift-library"
      ],
      "sources" : [
        "Util.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "SwiftLibrary"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SwiftLibraryTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibraryTests",
      "path" : "Tests/SwiftLibraryTests",
      "sources" : [
        "CommandTests.swift",
        "SwiftLibraryTests.swift"
      ],
      "target_dependencies" : [
        "SwiftLibrary"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftLibrary",
      "module_type" : "SwiftTarget",
      "name" : "SwiftLibrary",
      "path" : "Sources/SwiftLibrary",
      "product_memberships" : [
        "SwiftLibrary",
        "swift-library"
      ],
      "sources" : [
        "Command.swift",
        "PackageData.swift",
        "Requirement.swift",
        "SwiftLibrary.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.