Build Information
Successful build of replicate-kit-swift, reference v1.0.1 (1b2583
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 13:12:22 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/swiftuiux/replicate-kit-swift.git
Reference: v1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swiftuiux/replicate-kit-swift
* tag v1.0.1 -> FETCH_HEAD
HEAD is now at 1b25838 Update .gitignore
Cloned https://github.com/swiftuiux/replicate-kit-swift.git
Revision (git rev-parse @):
1b2583850bfa3f16ed611c48d61340fe5124b23d
SUCCESS checkout https://github.com/swiftuiux/replicate-kit-swift.git at v1.0.1
Fetching https://github.com/The-Igor/retry-policy-service.git
Fetching https://github.com/The-Igor/async-http-client.git
[1/901] Fetching async-http-client
[533/999] Fetching async-http-client, retry-policy-service
Fetched https://github.com/The-Igor/async-http-client.git from cache (0.78s)
Fetched https://github.com/The-Igor/retry-policy-service.git from cache (0.78s)
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.4 (0.59s)
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.0 (0.56s)
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.0
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.4
========================================
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": "replicate-kit-swift",
"name": "replicate-kit-swift",
"url": "https://github.com/swiftuiux/replicate-kit-swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/replicate-kit-swift",
"dependencies": [
{
"identity": "async-http-client",
"name": "async-http-client",
"url": "https://github.com/The-Igor/async-http-client.git",
"version": "1.5.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/async-http-client",
"dependencies": [
{
"identity": "retry-policy-service",
"name": "retry-policy-service",
"url": "https://github.com/swiftuiux/retry-policy-service.git",
"version": "1.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/retry-policy-service",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/swiftuiux/replicate-kit-swift.git
[1/580] Fetching replicate-kit-swift
Fetched https://github.com/swiftuiux/replicate-kit-swift.git from cache (1.54s)
Fetching https://github.com/The-Igor/async-http-client.git from cache
Fetched https://github.com/The-Igor/async-http-client.git from cache (0.48s)
Computing version for https://github.com/The-Igor/async-http-client.git
Computed https://github.com/The-Igor/async-http-client.git at 1.5.0 (0.57s)
Fetching https://github.com/swiftuiux/retry-policy-service.git
[1/98] Fetching retry-policy-service
Fetched https://github.com/swiftuiux/retry-policy-service.git from cache (0.65s)
Computing version for https://github.com/swiftuiux/retry-policy-service.git
Computed https://github.com/swiftuiux/retry-policy-service.git at 1.0.1 (0.56s)
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.5.0
Creating working copy for https://github.com/swiftuiux/retry-policy-service.git
Working copy of https://github.com/swiftuiux/retry-policy-service.git resolved at 1.0.1
Creating working copy for https://github.com/swiftuiux/replicate-kit-swift.git
Working copy of https://github.com/swiftuiux/replicate-kit-swift.git resolved at v1.0.1 (1b25838)
warning: '.resolve-product-dependencies': dependency 'replicate-kit-swift' is not used by any target
Found 1 product dependencies
- async-http-client
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/swiftuiux/replicate-kit-swift.git
{
"dependencies" : [
{
"identity" : "async-http-client",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.4",
"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"
}
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/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/9] Emitting module retry_policy_service
[6/9] Compiling retry_policy_service Strategy.swift
[7/9] Compiling retry_policy_service DispatchTimeInterval.swift
[8/9] Compiling retry_policy_service RetryService.swift
[9/9] Compiling retry_policy_service RetryIterator.swift
[10/30] Compiling async_http_client IConfiguration.swift
[11/30] Compiling async_http_client IProxy.swift
[12/30] Compiling async_http_client IResponse.swift
[13/32] Compiling async_http_client IReader.swift
[14/32] Compiling async_http_client IWriter.swift
[15/32] Compiling async_http_client IValidate.swift
[16/32] Compiling async_http_client Direct.swift
[17/32] Compiling async_http_client Http.swift
[18/32] Emitting module async_http_client
[19/32] Compiling async_http_client JsonReader.swift
[20/32] Compiling async_http_client Validate.swift
[21/32] Compiling async_http_client Status.swift
[22/32] Compiling async_http_client JsonWriter.swift
[23/32] Compiling async_http_client Errors.swift
[24/32] Compiling async_http_client ITaskDelegate.swift
[25/32] Compiling async_http_client RequestHelper.swift
[26/32] Compiling async_http_client SendHelper.swift
[27/32] Compiling async_http_client UrlHelper.swift
[28/32] Compiling async_http_client Configuration.swift
[29/32] Compiling async_http_client Proxy+.swift
[30/32] Compiling async_http_client Proxy.swift
[31/32] Compiling async_http_client Response.swift
[32/32] Compiling async_http_client HttpMethod.swift
[33/42] Compiling replicate_kit_swift Errors.swift
[34/42] Compiling replicate_kit_swift ResponseError.swift
[35/42] Compiling replicate_kit_swift CollectionOfModels.swift
[36/42] Compiling replicate_kit_swift Model.swift
[37/43] Compiling replicate_kit_swift HttpBody.swift
[38/43] Compiling replicate_kit_swift ReplicateEndpoint.swift
[39/43] Compiling replicate_kit_swift Prediction.swift
[40/43] Compiling replicate_kit_swift Expect.swift
[41/43] 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/43] 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.
[43/43] Compiling replicate_kit_swift IEndpoint.swift
Build complete! (10.94s)
Build complete.
{
"dependencies" : [
{
"identity" : "async-http-client",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.4",
"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.