The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of URLSessionBackport, reference 0.2.0 (133026), with Swift 6.2 (beta) for macOS (SPM) on 19 Jun 2025 05:36:12 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mochidev/URLSessionBackport.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mochidev/URLSessionBackport
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 133026d Removed the last preconditionFailure
Cloned https://github.com/mochidev/URLSessionBackport.git
Revision (git rev-parse @):
133026d8723a81d7ddd293ce3d9fcadf72317517
SUCCESS checkout https://github.com/mochidev/URLSessionBackport.git at 0.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/mochidev/URLSessionBackport.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/8] Compiling URLSessionBackport TaskDelegateHandler.swift
[4/8] Compiling URLSessionBackport URLSessionBackport.swift
/Users/admin/builder/spi-builder-workspace/Sources/URLSessionBackport/URLSessionBackport.swift:124:88: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
122 |         } else {
123 |             return try await withUnsafeThrowingContinuation { continuation in
124 |                 resume(session.dataTask(with: request, completionHandler: continuation.taskCompletionHandler), with: delegate)
    |                                                                                        `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
125 |             }
126 |         }
/Users/admin/builder/spi-builder-workspace/Sources/URLSessionBackport/URLSessionBackport.swift:139:84: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
137 |         } else {
138 |             return try await withUnsafeThrowingContinuation { continuation in
139 |                 resume(session.dataTask(with: url, completionHandler: continuation.taskCompletionHandler), with: delegate)
    |                                                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
140 |             }
141 |         }
/Users/admin/builder/spi-builder-workspace/Sources/URLSessionBackport/URLSessionBackport.swift:155:109: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
153 |         } else {
154 |             return try await withUnsafeThrowingContinuation { continuation in
155 |                 resume(session.uploadTask(with: request, fromFile: fileURL, completionHandler: continuation.taskCompletionHandler), with: delegate)
    |                                                                                                             `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
156 |             }
157 |         }
/Users/admin/builder/spi-builder-workspace/Sources/URLSessionBackport/URLSessionBackport.swift:171:106: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
169 |         } else {
170 |             return try await withUnsafeThrowingContinuation { continuation in
171 |                 resume(session.uploadTask(with: request, from: bodyData, completionHandler: continuation.taskCompletionHandler), with: delegate)
    |                                                                                                          `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
172 |             }
173 |         }
/Users/admin/builder/spi-builder-workspace/Sources/URLSessionBackport/URLSessionBackport.swift:186:92: warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
184 |         } else {
185 |             return try await withUnsafeThrowingContinuation { continuation in
186 |                 resume(session.downloadTask(with: request, completionHandler: continuation.taskCompletionHandler), with: delegate)
    |                                                                                            `- warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
187 |             }
188 |         }
/Users/admin/builder/spi-builder-workspace/Sources/URLSessionBackport/URLSessionBackport.swift:201:88: warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
199 |         } else {
200 |             return try await withUnsafeThrowingContinuation { continuation in
201 |                 resume(session.downloadTask(with: url, completionHandler: continuation.taskCompletionHandler), with: delegate)
    |                                                                                        `- warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
202 |             }
203 |         }
/Users/admin/builder/spi-builder-workspace/Sources/URLSessionBackport/URLSessionBackport.swift:216:105: warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
214 |         } else {
215 |             return try await withUnsafeThrowingContinuation { continuation in
216 |                 resume(session.downloadTask(withResumeData: resumeData, completionHandler: continuation.taskCompletionHandler), with: delegate)
    |                                                                                                         `- warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
217 |             }
218 |         }
[5/8] Compiling URLSessionBackport DataAccumulator.swift
[6/8] Compiling URLSessionBackport AsyncBytes.swift
[7/8] Emitting module URLSessionBackport
[8/8] Compiling URLSessionBackport SessionDelegateProxy.swift
Build complete! (3.61s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "URLSessionBackport",
  "name" : "URLSessionBackport",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "URLSessionBackport",
      "targets" : [
        "URLSessionBackport"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "URLSessionBackportTests",
      "module_type" : "SwiftTarget",
      "name" : "URLSessionBackportTests",
      "path" : "Tests/URLSessionBackportTests",
      "sources" : [
        "URLSessionBackportTests.swift"
      ],
      "target_dependencies" : [
        "URLSessionBackport"
      ],
      "type" : "test"
    },
    {
      "c99name" : "URLSessionBackport",
      "module_type" : "SwiftTarget",
      "name" : "URLSessionBackport",
      "path" : "Sources/URLSessionBackport",
      "product_memberships" : [
        "URLSessionBackport"
      ],
      "sources" : [
        "AsyncBytes.swift",
        "DataAccumulator.swift",
        "SessionDelegateProxy.swift",
        "TaskDelegateHandler.swift",
        "URLSessionBackport.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.