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 SwiftBackports, reference main (b730e4), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 14:11:25 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 -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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shaps80/SwiftBackports.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/shaps80/SwiftBackports
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b730e4c Updates docs
Cloned https://github.com/shaps80/SwiftBackports.git
Revision (git rev-parse @):
b730e4c52a846f91fb46842cdd8a3a6a23ff1799
SUCCESS checkout https://github.com/shaps80/SwiftBackports.git at main
Fetching https://github.com/apple/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.35s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.53s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3187] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.31s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.54s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
========================================
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": "swiftbackports",
      "name": "SwiftBackports",
      "url": "https://github.com/shaps80/SwiftBackports.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftBackports",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/shaps80/SwiftBackports.git
[5/500] Fetching swiftbackports
Fetched https://github.com/shaps80/SwiftBackports.git from cache (1.04s)
Creating working copy for https://github.com/shaps80/SwiftBackports.git
Working copy of https://github.com/shaps80/SwiftBackports.git resolved at main (b730e4c)
warning: '.resolve-product-dependencies': dependency 'swiftbackports' 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/shaps80/SwiftBackports.git
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "SwiftBackports",
  "name" : "SwiftBackports",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftBackports",
      "targets" : [
        "SwiftBackports"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "SwiftBackportsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBackportsTests",
      "path" : "Tests/SwiftBackportsTests",
      "sources" : [
        "TransferableTest.swift"
      ],
      "target_dependencies" : [
        "SwiftBackports"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftBackports",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBackports",
      "path" : "Sources/SwiftBackports",
      "product_memberships" : [
        "SwiftBackports"
      ],
      "sources" : [
        "Backport.swift",
        "CoreTransferable/Representations/Codable+Representation.swift",
        "CoreTransferable/Representations/Data+Representation.swift",
        "CoreTransferable/Representations/File+Representations.swift",
        "CoreTransferable/Representations/Never+Representation.swift",
        "CoreTransferable/Representations/Tuple+Representation.swift",
        "CoreTransferable/Representations/_ConditionalRepresentation.swift",
        "CoreTransferable/Support/NSItemProvider+Transferable.swift",
        "CoreTransferable/Support/ReceivedTransferredFile.swift",
        "CoreTransferable/Support/SentTransferredFile.swift",
        "CoreTransferable/Support/Visibility.swift",
        "CoreTransferable/TransferRepresentationBuilder.swift",
        "CoreTransferable/Transferable.swift",
        "CoreTransferable/TransferableRepresentation.swift",
        "CoreTransferable/Transferables/AttributedString+Transferable.swift",
        "CoreTransferable/Transferables/Data+Transferable.swift",
        "CoreTransferable/Transferables/Never+Transferable.swift",
        "CoreTransferable/Transferables/String+Transferable.swift",
        "CoreTransferable/Transferables/URL+Transferable.swift",
        "URLSession/URLSession+Async.swift",
        "UniformTypeIdentifiers/CoreTypes.swift",
        "UniformTypeIdentifiers/UTTagClass.swift",
        "UniformTypeIdentifiers/UTType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/26] Emitting module SwiftBackports
[6/28] Compiling SwiftBackports String+Transferable.swift
[7/28] Compiling SwiftBackports URL+Transferable.swift
[8/28] Compiling SwiftBackports SentTransferredFile.swift
[9/28] Compiling SwiftBackports Visibility.swift
[10/28] Compiling SwiftBackports Data+Transferable.swift
[11/28] Compiling SwiftBackports Never+Transferable.swift
[12/28] Compiling SwiftBackports UTTagClass.swift
[13/28] Compiling SwiftBackports UTType.swift
[14/28] Compiling SwiftBackports TransferableRepresentation.swift
[15/28] Compiling SwiftBackports AttributedString+Transferable.swift
[16/28] Compiling SwiftBackports File+Representations.swift
[17/28] Compiling SwiftBackports Never+Representation.swift
[18/28] Compiling SwiftBackports Tuple+Representation.swift
[19/28] Compiling SwiftBackports _ConditionalRepresentation.swift
[20/28] Compiling SwiftBackports NSItemProvider+Transferable.swift
[21/28] Compiling SwiftBackports ReceivedTransferredFile.swift
[22/28] Compiling SwiftBackports TransferRepresentationBuilder.swift
[23/28] Compiling SwiftBackports Transferable.swift
[24/28] Compiling SwiftBackports URLSession+Async.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftBackports/URLSession/URLSession+Async.swift:28:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 26 |         return try await withTaskCancellationHandler {
 27 |             try await withCheckedThrowingContinuation { continuation in
 28 |                 Task {
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 29 |                     await sessionTask.start(wrapped.dataTask(with: request) { data, response, error in
    |                                             `- note: closure captures 'self' which is accessible to code in the current task
 30 |                         guard let data = data, let response = response else {
 31 |                             let error = error ?? URLError(.badServerResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftBackports/URLSession/URLSession+Async.swift:49:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 47 |         return try await withTaskCancellationHandler {
 48 |             try await withCheckedThrowingContinuation { continuation in
 49 |                 Task {
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 50 |                     await sessionTask.start(wrapped.uploadTask(with: request, fromFile: fileURL) { data, response, error in
    |                                             `- note: closure captures 'self' which is accessible to code in the current task
 51 |                         guard let data = data, let response = response else {
 52 |                             let error = error ?? URLError(.badServerResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftBackports/URLSession/URLSession+Async.swift:69:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 67 |         return try await withTaskCancellationHandler {
 68 |             try await withCheckedThrowingContinuation { continuation in
 69 |                 Task {
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 70 |                     await sessionTask.start(wrapped.uploadTask(with: request, from: bodyData) { data, response, error in
    |                                             `- note: closure captures 'self' which is accessible to code in the current task
 71 |                         guard let data = data, let response = response else {
 72 |                             let error = error ?? URLError(.badServerResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftBackports/URLSession/URLSession+Async.swift:89:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |         return try await withTaskCancellationHandler {
 88 |             try await withCheckedThrowingContinuation { continuation in
 89 |                 Task {
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 90 |                     await sessionTask.start(wrapped.downloadTask(with: request) { data, response, error in
    |                                             `- note: closure captures 'self' which is accessible to code in the current task
 91 |                         guard let data = data, let response = response else {
 92 |                             let error = error ?? URLError(.badServerResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftBackports/URLSession/URLSession+Async.swift:109:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
107 |         return try await withTaskCancellationHandler {
108 |             try await withCheckedThrowingContinuation { continuation in
109 |                 Task {
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
110 |                     await sessionTask.start(wrapped.downloadTask(with: url) { data, response, error in
    |                                             `- note: closure captures 'self' which is accessible to code in the current task
111 |                         guard let data = data, let response = response else {
112 |                             let error = error ?? URLError(.badServerResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftBackports/URLSession/URLSession+Async.swift:129:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
127 |         return try await withTaskCancellationHandler {
128 |             try await withCheckedThrowingContinuation { continuation in
129 |                 Task {
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
130 |                     await sessionTask.start(wrapped.downloadTask(withResumeData: resumeData) { data, response, error in
    |                                             `- note: closure captures 'self' which is accessible to code in the current task
131 |                         guard let data = data, let response = response else {
132 |                             let error = error ?? URLError(.badServerResponse)
[25/28] Compiling SwiftBackports CoreTypes.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftBackports/URLSession/URLSession+Async.swift:28:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 26 |         return try await withTaskCancellationHandler {
 27 |             try await withCheckedThrowingContinuation { continuation in
 28 |                 Task {
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 29 |                     await sessionTask.start(wrapped.dataTask(with: request) { data, response, error in
    |                                             `- note: closure captures 'self' which is accessible to code in the current task
 30 |                         guard let data = data, let response = response else {
 31 |                             let error = error ?? URLError(.badServerResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftBackports/URLSession/URLSession+Async.swift:49:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 47 |         return try await withTaskCancellationHandler {
 48 |             try await withCheckedThrowingContinuation { continuation in
 49 |                 Task {
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 50 |                     await sessionTask.start(wrapped.uploadTask(with: request, fromFile: fileURL) { data, response, error in
    |                                             `- note: closure captures 'self' which is accessible to code in the current task
 51 |                         guard let data = data, let response = response else {
 52 |                             let error = error ?? URLError(.badServerResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftBackports/URLSession/URLSession+Async.swift:69:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 67 |         return try await withTaskCancellationHandler {
 68 |             try await withCheckedThrowingContinuation { continuation in
 69 |                 Task {
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 70 |                     await sessionTask.start(wrapped.uploadTask(with: request, from: bodyData) { data, response, error in
    |                                             `- note: closure captures 'self' which is accessible to code in the current task
 71 |                         guard let data = data, let response = response else {
 72 |                             let error = error ?? URLError(.badServerResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftBackports/URLSession/URLSession+Async.swift:89:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |         return try await withTaskCancellationHandler {
 88 |             try await withCheckedThrowingContinuation { continuation in
 89 |                 Task {
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 90 |                     await sessionTask.start(wrapped.downloadTask(with: request) { data, response, error in
    |                                             `- note: closure captures 'self' which is accessible to code in the current task
 91 |                         guard let data = data, let response = response else {
 92 |                             let error = error ?? URLError(.badServerResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftBackports/URLSession/URLSession+Async.swift:109:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
107 |         return try await withTaskCancellationHandler {
108 |             try await withCheckedThrowingContinuation { continuation in
109 |                 Task {
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
110 |                     await sessionTask.start(wrapped.downloadTask(with: url) { data, response, error in
    |                                             `- note: closure captures 'self' which is accessible to code in the current task
111 |                         guard let data = data, let response = response else {
112 |                             let error = error ?? URLError(.badServerResponse)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftBackports/URLSession/URLSession+Async.swift:129:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
127 |         return try await withTaskCancellationHandler {
128 |             try await withCheckedThrowingContinuation { continuation in
129 |                 Task {
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
130 |                     await sessionTask.start(wrapped.downloadTask(withResumeData: resumeData) { data, response, error in
    |                                             `- note: closure captures 'self' which is accessible to code in the current task
131 |                         guard let data = data, let response = response else {
132 |                             let error = error ?? URLError(.badServerResponse)
[26/28] Compiling SwiftBackports Backport.swift
[27/28] Compiling SwiftBackports Codable+Representation.swift
[28/28] Compiling SwiftBackports Data+Representation.swift
Build complete! (31.67s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "SwiftBackports",
  "name" : "SwiftBackports",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftBackports",
      "targets" : [
        "SwiftBackports"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "SwiftBackportsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBackportsTests",
      "path" : "Tests/SwiftBackportsTests",
      "sources" : [
        "TransferableTest.swift"
      ],
      "target_dependencies" : [
        "SwiftBackports"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftBackports",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBackports",
      "path" : "Sources/SwiftBackports",
      "product_memberships" : [
        "SwiftBackports"
      ],
      "sources" : [
        "Backport.swift",
        "CoreTransferable/Representations/Codable+Representation.swift",
        "CoreTransferable/Representations/Data+Representation.swift",
        "CoreTransferable/Representations/File+Representations.swift",
        "CoreTransferable/Representations/Never+Representation.swift",
        "CoreTransferable/Representations/Tuple+Representation.swift",
        "CoreTransferable/Representations/_ConditionalRepresentation.swift",
        "CoreTransferable/Support/NSItemProvider+Transferable.swift",
        "CoreTransferable/Support/ReceivedTransferredFile.swift",
        "CoreTransferable/Support/SentTransferredFile.swift",
        "CoreTransferable/Support/Visibility.swift",
        "CoreTransferable/TransferRepresentationBuilder.swift",
        "CoreTransferable/Transferable.swift",
        "CoreTransferable/TransferableRepresentation.swift",
        "CoreTransferable/Transferables/AttributedString+Transferable.swift",
        "CoreTransferable/Transferables/Data+Transferable.swift",
        "CoreTransferable/Transferables/Never+Transferable.swift",
        "CoreTransferable/Transferables/String+Transferable.swift",
        "CoreTransferable/Transferables/URL+Transferable.swift",
        "URLSession/URLSession+Async.swift",
        "UniformTypeIdentifiers/CoreTypes.swift",
        "UniformTypeIdentifiers/UTTagClass.swift",
        "UniformTypeIdentifiers/UTType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.