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 Prch, reference 0.2.1 (600b49), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 12:53:52 UTC.

Swift 6 data race errors: 1

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/brightdigit/Prch.git
Reference: 0.2.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/brightdigit/Prch
 * tag               0.2.1      -> FETCH_HEAD
HEAD is now at 600b49c Version 0.2.1
Cloned https://github.com/brightdigit/Prch.git
Revision (git rev-parse @):
600b49cc7a77271ea3d2a9f9e449be081562a087
SUCCESS checkout https://github.com/brightdigit/Prch.git at 0.2.1
========================================
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": "prch",
      "name": "Prch",
      "url": "https://github.com/brightdigit/Prch.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Prch",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/brightdigit/Prch.git
[1/2495] Fetching prch
Fetched https://github.com/brightdigit/Prch.git from cache (0.96s)
Creating working copy for https://github.com/brightdigit/Prch.git
Working copy of https://github.com/brightdigit/Prch.git resolved at 0.2.1 (600b49c)
warning: '.resolve-product-dependencies': dependency 'prch' 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/brightdigit/Prch.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/45] Emitting module Prch
/Users/admin/builder/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[4/49] Compiling Prch API.swift
[5/49] Compiling Prch AnyCodable.Codable.swift
[6/49] Compiling Prch AnyCodable.Equatable.swift
[7/49] Compiling Prch AnyCodable.Expressible.swift
[8/49] Compiling Prch AnyCodable.StringConverable.swift
[9/49] Compiling Prch URLSessionResponse.swift
[10/49] Compiling Prch Request.swift
[11/49] Compiling Prch Response.swift
[12/49] Compiling Prch ResponseResult.swift
[13/49] Compiling Prch Result.swift
[14/49] Compiling Prch Authentication.swift
[15/49] Compiling Prch BasicAuthentication.swift
[16/49] Compiling Prch SecurityRequirement.swift
[17/49] Compiling Prch DeprecatedRequest.swift
[18/49] Compiling Prch DeprecatedResponse.swift
[19/49] Compiling Prch DeprecatedResponseResult.swift
[20/49] Compiling Prch TypeAliases.swift
[21/49] Compiling Prch Model.swift
[22/49] Compiling Prch Service.swift
[23/49] Compiling Prch ServiceRequest.swift
[24/49] Compiling Prch StatusCodeProvider.swift
[25/49] Compiling Prch SuccessModel.swift
[26/49] Compiling Prch DateDay.swift
[27/49] Compiling Prch File.swift
[28/49] Compiling Prch ID.swift
[29/49] Compiling Prch UploadFile.swift
[30/49] Compiling Prch ResponseComponents.swift
[31/49] Compiling Prch KeyedEncodingContainer.swift
[32/49] Compiling Prch RequestEncoder.swift
[33/49] Compiling Prch ResponseDecoder.swift
[34/49] Compiling Prch StringCodingKey.swift
[35/49] Compiling Prch DateEncodingContainer.swift
[36/49] Compiling Prch Session.swift
/Users/admin/builder/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:49:7: warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |         error: error
48 |       )
49 |       completion(result)
   |       |- warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> 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'
50 |     }
51 |     task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:19:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
17 |       try await withCheckedThrowingContinuation { continuation in
18 |         _ = self.beginRequest(request) { result in
19 |           continuation.resume(with: result)
   |                        |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                        `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
20 |         }
21 |       }
[37/49] Compiling Prch Task.swift
/Users/admin/builder/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:49:7: warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |         error: error
48 |       )
49 |       completion(result)
   |       |- warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> 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'
50 |     }
51 |     task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:19:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
17 |       try await withCheckedThrowingContinuation { continuation in
18 |         _ = self.beginRequest(request) { result in
19 |           continuation.resume(with: result)
   |                        |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                        `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
20 |         }
21 |       }
[38/49] Compiling Prch URL.swift
/Users/admin/builder/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:49:7: warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |         error: error
48 |       )
49 |       completion(result)
   |       |- warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> 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'
50 |     }
51 |     task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:19:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
17 |       try await withCheckedThrowingContinuation { continuation in
18 |         _ = self.beginRequest(request) { result in
19 |           continuation.resume(with: result)
   |                        |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                        `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
20 |         }
21 |       }
[39/49] Compiling Prch URLSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:49:7: warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |         error: error
48 |       )
49 |       completion(result)
   |       |- warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> 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'
50 |     }
51 |     task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:19:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
17 |       try await withCheckedThrowingContinuation { continuation in
18 |         _ = self.beginRequest(request) { result in
19 |           continuation.resume(with: result)
   |                        |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                        `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
20 |         }
21 |       }
[40/49] Compiling Prch ClientResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[41/49] Compiling Prch Coding.swift
/Users/admin/builder/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[42/49] Compiling Prch DateFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[43/49] Compiling Prch DecodingError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[44/49] Compiling Prch KeyedDecodingContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[45/49] Compiling Prch AnyCodable.swift
[46/49] Compiling Prch BasicResponse.swift
[47/49] Compiling Prch BodyRequest.swift
[48/49] Compiling Prch Client.swift
[49/49] Compiling Prch ClientError.swift
Build complete! (17.85s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Prch",
  "name" : "Prch",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "Prch",
      "targets" : [
        "Prch"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PrchTests",
      "module_type" : "SwiftTarget",
      "name" : "PrchTests",
      "path" : "Tests/PrchTests",
      "sources" : [
        "PrchTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Prch"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Prch",
      "module_type" : "SwiftTarget",
      "name" : "Prch",
      "path" : "Sources/Prch",
      "product_memberships" : [
        "Prch"
      ],
      "sources" : [
        "API.swift",
        "AnyCodable/AnyCodable.Codable.swift",
        "AnyCodable/AnyCodable.Equatable.swift",
        "AnyCodable/AnyCodable.Expressible.swift",
        "AnyCodable/AnyCodable.StringConverable.swift",
        "AnyCodable/AnyCodable.swift",
        "BasicResponse.swift",
        "BodyRequest.swift",
        "Client.swift",
        "ClientError.swift",
        "ClientResult.swift",
        "Coding/Coding.swift",
        "Coding/DateFormatter.swift",
        "Coding/DecodingError.swift",
        "Coding/KeyedDecodingContainer.swift",
        "Coding/KeyedEncodingContainer.swift",
        "Coding/RequestEncoder.swift",
        "Coding/ResponseDecoder.swift",
        "Coding/StringCodingKey.swift",
        "DateEncodingContainer.swift",
        "Deprecated/DeprecatedRequest.swift",
        "Deprecated/DeprecatedResponse.swift",
        "Deprecated/DeprecatedResponseResult.swift",
        "Deprecated/TypeAliases.swift",
        "Model.swift",
        "Models/DateDay.swift",
        "Models/File.swift",
        "Models/ID.swift",
        "Models/UploadFile.swift",
        "Networking/ResponseComponents.swift",
        "Networking/Session.swift",
        "Networking/Task.swift",
        "Networking/URL.swift",
        "Networking/URLSession.swift",
        "Networking/URLSessionResponse.swift",
        "Request.swift",
        "Response.swift",
        "ResponseResult.swift",
        "Result.swift",
        "Security/Authentication.swift",
        "Security/BasicAuthentication.swift",
        "Security/SecurityRequirement.swift",
        "Service.swift",
        "ServiceRequest.swift",
        "StatusCodeProvider.swift",
        "SuccessModel.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.