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 TinyNetworking, reference 0.5.0 (45ba23), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 23:36:30 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/objcio/tiny-networking.git
Reference: 0.5.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/objcio/tiny-networking
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at 45ba230 Fix for Xcode 13
Cloned https://github.com/objcio/tiny-networking.git
Revision (git rev-parse @):
45ba230cc9a843bf82a642803a43ef8838dc5b70
SUCCESS checkout https://github.com/objcio/tiny-networking.git at 0.5.0
========================================
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": "tiny-networking",
      "name": "TinyNetworking",
      "url": "https://github.com/objcio/tiny-networking.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/tiny-networking",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/objcio/tiny-networking.git
[1/305] Fetching tiny-networking
Fetched https://github.com/objcio/tiny-networking.git from cache (0.76s)
Creating working copy for https://github.com/objcio/tiny-networking.git
Working copy of https://github.com/objcio/tiny-networking.git resolved at 0.5.0 (45ba230)
warning: '.resolve-product-dependencies': dependency 'tiny-networking' 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/objcio/tiny-networking.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TinyNetworking",
  "name" : "TinyNetworking",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TinyNetworking",
      "targets" : [
        "TinyNetworking"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TinyNetworkingTests",
      "module_type" : "SwiftTarget",
      "name" : "TinyNetworkingTests",
      "path" : "Tests/TinyNetworkingTests",
      "sources" : [
        "TestFixtures.swift",
        "TinyHTTPStubURLProtocol.swift",
        "TinyNetworkingTests.swift",
        "URLSessionIntegrationTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "TinyNetworking"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TinyNetworking",
      "module_type" : "SwiftTarget",
      "name" : "TinyNetworking",
      "path" : "Sources/TinyNetworking",
      "product_memberships" : [
        "TinyNetworking"
      ],
      "sources" : [
        "Endpoint.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Compiling TinyNetworking Endpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:235:17: warning: capture of 'onComplete' with non-sendable type '(Result<A, any Error>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 |         let task = dataTask(with: r, completionHandler: { data, resp, err in
234 |             if let err = err {
235 |                 onComplete(.failure(err))
    |                 |- warning: capture of 'onComplete' with non-sendable type '(Result<A, any Error>) -> ()' 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'
236 |                 return
237 |             }
/Users/admin/builder/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:244:19: warning: capture of 'e' with non-sendable type 'Endpoint<A>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 |
 18 | /// This describes an endpoint returning `A` values. It contains both a `URLRequest` and a way to parse the response.
 19 | public struct Endpoint<A> {
    |               `- note: consider making generic struct 'Endpoint' conform to the 'Sendable' protocol
 20 |
 21 |     /// The HTTP Method
    :
242 |             }
243 |
244 |             guard e.expectedStatusCode(h.statusCode) else {
    |                   `- warning: capture of 'e' with non-sendable type 'Endpoint<A>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
245 |                 onComplete(.failure(WrongStatusCodeError(statusCode: h.statusCode, response: h, responseBody: data)))
246 |                 return
[4/4] Emitting module TinyNetworking
Build complete! (6.08s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TinyNetworking",
  "name" : "TinyNetworking",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TinyNetworking",
      "targets" : [
        "TinyNetworking"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TinyNetworkingTests",
      "module_type" : "SwiftTarget",
      "name" : "TinyNetworkingTests",
      "path" : "Tests/TinyNetworkingTests",
      "sources" : [
        "TestFixtures.swift",
        "TinyHTTPStubURLProtocol.swift",
        "TinyNetworkingTests.swift",
        "URLSessionIntegrationTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "TinyNetworking"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TinyNetworking",
      "module_type" : "SwiftTarget",
      "name" : "TinyNetworking",
      "path" : "Sources/TinyNetworking",
      "product_memberships" : [
        "TinyNetworking"
      ],
      "sources" : [
        "Endpoint.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.