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 replicate-kit-swift, reference main (1e7cea), with Swift 6.0 (beta) for macOS (SPM) on 14 Sep 2024 19:31:46 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/igor11191708/replicate-kit-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/igor11191708/replicate-kit-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1e7ceaf Update .spi.yml
Cloned https://github.com/igor11191708/replicate-kit-swift.git
Revision (git rev-parse @):
1e7ceaf765764c477437f5bae6ebc64285c913d3
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/igor11191708/replicate-kit-swift.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/igor11191708/replicate-kit-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-117DEE11B69C53C9.txt
[5/8] Compiling retry_policy_service DispatchTimeInterval.swift
[6/8] Compiling retry_policy_service RetryService.swift
[7/8] Compiling retry_policy_service Strategy.swift
[8/8] Emitting module retry_policy_service
[9/29] Compiling async_http_client IConfiguration.swift
[10/29] Compiling async_http_client IProxy.swift
[11/29] Compiling async_http_client IResponse.swift
[12/31] Compiling async_http_client IReader.swift
[13/31] Compiling async_http_client IWriter.swift
[14/31] Compiling async_http_client IValidate.swift
[15/31] Compiling async_http_client Status.swift
[16/31] Compiling async_http_client JsonWriter.swift
[17/31] Compiling async_http_client Response.swift
[18/31] Compiling async_http_client HttpMethod.swift
[19/31] Compiling async_http_client Proxy+.swift
[20/31] Compiling async_http_client Proxy.swift
[21/31] Compiling async_http_client Errors.swift
[22/31] Compiling async_http_client ITaskDelegate.swift
[23/31] Compiling async_http_client RequestHelper.swift
[24/31] Compiling async_http_client SendHelper.swift
[25/31] Emitting module async_http_client
[26/31] Compiling async_http_client JsonReader.swift
[27/31] Compiling async_http_client Validate.swift
[28/31] Compiling async_http_client Direct.swift
[29/31] Compiling async_http_client Http.swift
[30/31] Compiling async_http_client UrlHelper.swift
[31/31] Compiling async_http_client Configuration.swift
[32/41] Compiling replicate_kit_swift ResponseError.swift
[33/42] Compiling replicate_kit_swift IEndpoint.swift
[34/42] Compiling replicate_kit_swift Errors.swift
[35/42] Compiling replicate_kit_swift CollectionOfModels.swift
[36/42] Compiling replicate_kit_swift Expect.swift
[37/42] Compiling replicate_kit_swift ReplicateEndpoint.swift
[38/42] Compiling replicate_kit_swift HttpBody.swift
[39/42] Compiling replicate_kit_swift Prediction.swift
[40/42] Compiling replicate_kit_swift Model.swift
[41/42] Emitting module replicate_kit_swift
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/ReplicateAPI.swift:235:17: warning: let 'rule' is not concurrency-safe because non-'Sendable' type '[Http.Validate]' may have shared mutable state; this is an error in the Swift 6 language mode
233 |
234 | /// Between the range responses from the server is valid
235 | fileprivate let rule = [Http.Validate.status(.check(errorFn))]
    |                 `- warning: let 'rule' is not concurrency-safe because non-'Sendable' type '[Http.Validate]' may have shared mutable state; this is an error in the Swift 6 language mode
236 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/validate/Validate.swift:14:10: note: enum 'Validate' does not conform to the 'Sendable' protocol
12 |     /// Set of  rules for validating  Http client
13 |     @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
14 |     enum Validate {
   |          `- note: enum 'Validate' does not conform to the 'Sendable' protocol
15 |         /// Set of  rules for validating  HTTPURLResponse.statusCode
16 |         case status(Status)
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/ReplicateAPI.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'async_http_client'
  7 |
  8 | import Foundation
  9 | import async_http_client
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'async_http_client'
 10 | import retry_policy_service
 11 |
    :
233 |
234 | /// Between the range responses from the server is valid
235 | fileprivate let rule = [Http.Validate.status(.check(errorFn))]
    |                 |- note: annotate 'rule' with '@MainActor' if property should only be accessed from the main actor
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
236 |
[42/42] Compiling replicate_kit_swift ReplicateAPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/ReplicateAPI.swift:235:17: warning: let 'rule' is not concurrency-safe because non-'Sendable' type '[Http.Validate]' may have shared mutable state; this is an error in the Swift 6 language mode
233 |
234 | /// Between the range responses from the server is valid
235 | fileprivate let rule = [Http.Validate.status(.check(errorFn))]
    |                 `- warning: let 'rule' is not concurrency-safe because non-'Sendable' type '[Http.Validate]' may have shared mutable state; this is an error in the Swift 6 language mode
236 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/async-http-client/Sources/async-http-client/validate/Validate.swift:14:10: note: enum 'Validate' does not conform to the 'Sendable' protocol
12 |     /// Set of  rules for validating  Http client
13 |     @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
14 |     enum Validate {
   |          `- note: enum 'Validate' does not conform to the 'Sendable' protocol
15 |         /// Set of  rules for validating  HTTPURLResponse.statusCode
16 |         case status(Status)
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/ReplicateAPI.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'async_http_client'
  7 |
  8 | import Foundation
  9 | import async_http_client
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'async_http_client'
 10 | import retry_policy_service
 11 |
    :
233 |
234 | /// Between the range responses from the server is valid
235 | fileprivate let rule = [Http.Validate.status(.check(errorFn))]
    |                 |- note: annotate 'rule' with '@MainActor' if property should only be accessed from the main actor
    |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
236 |
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/ReplicateAPI.swift:79:33: warning: type 'CollectionOfModels' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 77 |         let path = "collections/\(collection_slug)"
 78 |
 79 |         return try await client.get(path: path, validate: rule).value
    |                                 `- warning: type 'CollectionOfModels' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 80 |     }
 81 |
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/model/CollectionOfModels.swift:13:15: note: consider making struct 'CollectionOfModels' conform to the 'Sendable' protocol
11 | /// https://replicate.com/docs/reference/http#get-collection
12 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
13 | public struct CollectionOfModels: Hashable, Decodable{
   |               `- note: consider making struct 'CollectionOfModels' conform to the 'Sendable' protocol
14 |
15 |     /// Collection name
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/ReplicateAPI.swift:79:65: warning: type 'CollectionOfModels' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 77 |         let path = "collections/\(collection_slug)"
 78 |
 79 |         return try await client.get(path: path, validate: rule).value
    |                                                                 `- warning: type 'CollectionOfModels' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 80 |     }
 81 |
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/model/CollectionOfModels.swift:13:15: note: consider making struct 'CollectionOfModels' conform to the 'Sendable' protocol
11 | /// https://replicate.com/docs/reference/http#get-collection
12 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
13 | public struct CollectionOfModels: Hashable, Decodable{
   |               `- note: consider making struct 'CollectionOfModels' conform to the 'Sendable' protocol
14 |
15 |     /// Collection name
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/ReplicateAPI.swift:90:33: warning: type 'Model' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 88 |         let path = "models/\(owner)/\(name)"
 89 |
 90 |         return try await client.get(path: path, validate: rule).value
    |                                 `- warning: type 'Model' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 91 |
 92 |     }
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/model/Model.swift:12:15: note: consider making struct 'Model' conform to the 'Sendable' protocol
10 | ///The response is a model object in the following format
11 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
12 | public struct Model: Hashable, Decodable {
   |               `- note: consider making struct 'Model' conform to the 'Sendable' protocol
13 |
14 |     public let url: URL
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/ReplicateAPI.swift:90:65: warning: type 'Model' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 88 |         let path = "models/\(owner)/\(name)"
 89 |
 90 |         return try await client.get(path: path, validate: rule).value
    |                                                                 `- warning: type 'Model' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 91 |
 92 |     }
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/model/Model.swift:12:15: note: consider making struct 'Model' conform to the 'Sendable' protocol
10 | ///The response is a model object in the following format
11 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
12 | public struct Model: Hashable, Decodable {
   |               `- note: consider making struct 'Model' conform to the 'Sendable' protocol
13 |
14 |     public let url: URL
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/ReplicateAPI.swift:141:26: warning: type 'Prediction<Output>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
139 |     ) async throws -> Prediction<Output>{
140 |
141 |         try await client.get(path: "predictions/\(id)", validate: rule).value
    |                          `- warning: type 'Prediction<Output>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
142 |     }
143 |
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/model/Prediction.swift:12:15: note: consider making generic struct 'Prediction' conform to the 'Sendable' protocol
10 | /// Result data of running a model with Input data
11 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
12 | public struct Prediction<Output>: Decodable, Identifiable where Output: Decodable{
   |               `- note: consider making generic struct 'Prediction' conform to the 'Sendable' protocol
13 |
14 |     /// The unique ID of the prediction. Can be used to get a single prediction.
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/ReplicateAPI.swift:141:73: warning: type 'Prediction<Output>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
139 |     ) async throws -> Prediction<Output>{
140 |
141 |         try await client.get(path: "predictions/\(id)", validate: rule).value
    |                                                                         `- warning: type 'Prediction<Output>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
142 |     }
143 |
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/model/Prediction.swift:12:15: note: consider making generic struct 'Prediction' conform to the 'Sendable' protocol
10 | /// Result data of running a model with Input data
11 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
12 | public struct Prediction<Output>: Decodable, Identifiable where Output: Decodable{
   |               `- note: consider making generic struct 'Prediction' conform to the 'Sendable' protocol
13 |
14 |     /// The unique ID of the prediction. Can be used to get a single prediction.
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/ReplicateAPI.swift:190:26: warning: type 'Prediction<Output>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
188 |     ) async throws -> Prediction<Output>{
189 |
190 |         try await client.post(
    |                          `- warning: type 'Prediction<Output>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
191 |             path: "predictions",
192 |             body : body,
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/model/Prediction.swift:12:15: note: consider making generic struct 'Prediction' conform to the 'Sendable' protocol
10 | /// Result data of running a model with Input data
11 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
12 | public struct Prediction<Output>: Decodable, Identifiable where Output: Decodable{
   |               `- note: consider making generic struct 'Prediction' conform to the 'Sendable' protocol
13 |
14 |     /// The unique ID of the prediction. Can be used to get a single prediction.
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/ReplicateAPI.swift:194:11: warning: type 'Prediction<Output>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
192 |             body : body,
193 |             validate: rule
194 |         ).value
    |           `- warning: type 'Prediction<Output>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
195 |     }
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/replicate-kit-swift/model/Prediction.swift:12:15: note: consider making generic struct 'Prediction' conform to the 'Sendable' protocol
10 | /// Result data of running a model with Input data
11 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
12 | public struct Prediction<Output>: Decodable, Identifiable where Output: Decodable{
   |               `- note: consider making generic struct 'Prediction' conform to the 'Sendable' protocol
13 |
14 |     /// The unique ID of the prediction. Can be used to get a single prediction.
Build complete! (14.54s)
Fetching https://github.com/The-Igor/async-http-client.git
Fetching https://github.com/The-Igor/retry-policy-service.git
[1/884] Fetching async-http-client
[10/979] Fetching async-http-client, retry-policy-service
Fetched https://github.com/The-Igor/async-http-client.git from cache (0.77s)
Fetched https://github.com/The-Igor/retry-policy-service.git from cache (0.77s)
Computing version for https://github.com/The-Igor/async-http-client.git
Computed https://github.com/The-Igor/async-http-client.git at 1.4.6 (0.71s)
Computing version for https://github.com/The-Igor/retry-policy-service.git
Computed https://github.com/The-Igor/retry-policy-service.git at 1.0.1 (0.66s)
Creating working copy for https://github.com/The-Igor/retry-policy-service.git
Working copy of https://github.com/The-Igor/retry-policy-service.git resolved at 1.0.1
Creating working copy for https://github.com/The-Igor/async-http-client.git
Working copy of https://github.com/The-Igor/async-http-client.git resolved at 1.4.6
Build complete.
{
  "dependencies" : [
    {
      "identity" : "async-http-client",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.6",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/The-Igor/async-http-client.git"
    }
  ],
  "manifest_display_name" : "replicate-kit-swift",
  "name" : "replicate-kit-swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "replicate-kit-swift",
      "targets" : [
        "replicate-kit-swift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "replicate_kit_swiftTests",
      "module_type" : "SwiftTarget",
      "name" : "replicate-kit-swiftTests",
      "path" : "Tests/replicate-kit-swiftTests",
      "sources" : [
        "replicate_kit_swiftTests.swift"
      ],
      "target_dependencies" : [
        "replicate-kit-swift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "replicate_kit_swift",
      "module_type" : "SwiftTarget",
      "name" : "replicate-kit-swift",
      "path" : "Sources/replicate-kit-swift",
      "product_dependencies" : [
        "async-http-client"
      ],
      "product_memberships" : [
        "replicate-kit-swift"
      ],
      "sources" : [
        "ReplicateAPI.swift",
        "enum/Expect.swift",
        "error/Errors.swift",
        "error/ResponseError.swift",
        "model/CollectionOfModels.swift",
        "model/Model.swift",
        "model/Prediction.swift",
        "net/ReplicateEndpoint.swift",
        "net/model/HttpBody.swift",
        "protocol/IEndpoint.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.