Build Information
Successful build of Netable with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/steamclock/netable.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/steamclock/netable
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d1dc982 fix changelog missing 2.2.0, update interceptor stuff to 2.3.0
Cloned https://github.com/steamclock/netable.git
Revision (git rev-parse @):
d1dc982cd6a0ec0db37e6d3873069f929422c074
SUCCESS checkout https://github.com/steamclock/netable.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/steamclock/netable.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/23] Emitting module Netable
/Users/admin/builder/spi-builder-workspace/Netable/Netable/LossyArray.swift:26:37: warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
13 | /// Array container that allows for partial decoding of elements.
14 | /// If an element of the array fails to decode, it will be omitted rather than the rest of the array failing to decode.
15 | public struct LossyArray<Element>: Sendable where Element: Sendable {
| `- note: 'Element' previously declared here
16 | /// All elements of the array that decoded successfully.
17 | public var elements: [Element]
:
24 | extension LossyArray: Decodable where Element: Decodable {
25 | /// Decode non-optional item into an optional element.
26 | public struct FailableDecodable<Element: Decodable>: Decodable {
| `- warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
27 | public var element: Element?
28 |
/Users/admin/builder/spi-builder-workspace/Netable/Netable/Netable.swift:317:1: warning: extension declares a conformance of imported type 'AnyPublisher' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Combine' introduce this conformance in the future
315 | }
316 |
317 | extension AnyPublisher: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyPublisher' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Combine' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
318 |
[4/25] Compiling Netable LogDestination.swift
/Users/admin/builder/spi-builder-workspace/Netable/Netable/LossyArray.swift:26:37: warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
13 | /// Array container that allows for partial decoding of elements.
14 | /// If an element of the array fails to decode, it will be omitted rather than the rest of the array failing to decode.
15 | public struct LossyArray<Element>: Sendable where Element: Sendable {
| `- note: 'Element' previously declared here
16 | /// All elements of the array that decoded successfully.
17 | public var elements: [Element]
:
24 | extension LossyArray: Decodable where Element: Decodable {
25 | /// Decode non-optional item into an optional element.
26 | public struct FailableDecodable<Element: Decodable>: Decodable {
| `- warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
27 | public var element: Element?
28 |
[5/25] Compiling Netable LossyArray.swift
/Users/admin/builder/spi-builder-workspace/Netable/Netable/LossyArray.swift:26:37: warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
13 | /// Array container that allows for partial decoding of elements.
14 | /// If an element of the array fails to decode, it will be omitted rather than the rest of the array failing to decode.
15 | public struct LossyArray<Element>: Sendable where Element: Sendable {
| `- note: 'Element' previously declared here
16 | /// All elements of the array that decoded successfully.
17 | public var elements: [Element]
:
24 | extension LossyArray: Decodable where Element: Decodable {
25 | /// Decode non-optional item into an optional element.
26 | public struct FailableDecodable<Element: Decodable>: Decodable {
| `- warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
27 | public var element: Element?
28 |
[6/25] Compiling Netable RequestFailedDelegate.swift
[7/25] Compiling Netable RetryConfiguration.swift
[8/25] Compiling Netable Netable+Equatable.swift
[9/25] Compiling Netable Netable+Error.swift
[10/25] Compiling Netable Interceptor.swift
[11/25] Compiling Netable InterceptorList.swift
[12/25] Compiling Netable URLRequest+EncodeURL.swift
[13/25] Compiling Netable URLRequest+Multipart.swift
[14/25] Compiling Netable Config.swift
[15/25] Compiling Netable DecodingError+Logging.swift
[16/25] Compiling Netable Error.swift
[17/25] Compiling Netable GraphQLRequest.swift
[18/25] Compiling Netable HTTPMethod.swift
[19/25] Compiling Netable ArrayDecodeStrategy.swift
[20/25] Compiling Netable SmartUnwrap.swift
[21/25] Compiling Netable URLRequest+EncodeParameters.swift
[22/25] Compiling Netable String+FullyQualifiedURL.swift
[23/25] Compiling Netable AdaptedRequest.swift
[24/25] Compiling Netable Netable.swift
/Users/admin/builder/spi-builder-workspace/Netable/Netable/Netable.swift:317:1: warning: extension declares a conformance of imported type 'AnyPublisher' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Combine' introduce this conformance in the future
315 | }
316 |
317 | extension AnyPublisher: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyPublisher' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Combine' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
318 |
/Users/admin/builder/spi-builder-workspace/Netable/Netable/Netable.swift:180:17: warning: capture of 'resultSubject' with non-sendable type 'PassthroughSubject<Result<T.FinalResource, NetableError>, Never>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | do {
179 | let finalResource = try await self.request(request)
180 | resultSubject.send(.success(finalResource))
| `- warning: capture of 'resultSubject' with non-sendable type 'PassthroughSubject<Result<T.FinalResource, NetableError>, Never>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | } catch {
182 | resultSubject.send(.failure(error.netableError))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Netable/Netable/Netable.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
7 | //
8 |
9 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
10 | import Foundation
11 | #if canImport(FoundationNetworking)
[25/25] Compiling Netable Request.swift
/Users/admin/builder/spi-builder-workspace/Netable/Netable/Netable.swift:317:1: warning: extension declares a conformance of imported type 'AnyPublisher' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Combine' introduce this conformance in the future
315 | }
316 |
317 | extension AnyPublisher: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyPublisher' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Combine' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
318 |
/Users/admin/builder/spi-builder-workspace/Netable/Netable/Netable.swift:180:17: warning: capture of 'resultSubject' with non-sendable type 'PassthroughSubject<Result<T.FinalResource, NetableError>, Never>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | do {
179 | let finalResource = try await self.request(request)
180 | resultSubject.send(.success(finalResource))
| `- warning: capture of 'resultSubject' with non-sendable type 'PassthroughSubject<Result<T.FinalResource, NetableError>, Never>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | } catch {
182 | resultSubject.send(.failure(error.netableError))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Netable/Netable/Netable.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
7 | //
8 |
9 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
10 | import Foundation
11 | #if canImport(FoundationNetworking)
Build complete! (25.61s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Netable",
"name" : "Netable",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "Netable",
"targets" : [
"Netable"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Netable",
"module_type" : "SwiftTarget",
"name" : "Netable",
"path" : "Netable/Netable",
"product_memberships" : [
"Netable"
],
"sources" : [
"Config.swift",
"DecodingError+Logging.swift",
"Error.swift",
"GraphQLRequest.swift",
"HTTPMethod.swift",
"Helper/ArrayDecodeStrategy.swift",
"Helper/Netable+Equatable.swift",
"Helper/Netable+Error.swift",
"Helper/String+FullyQualifiedURL.swift",
"Interceptors/AdaptedRequest.swift",
"Interceptors/Interceptor.swift",
"Interceptors/InterceptorList.swift",
"LogDestination.swift",
"LossyArray.swift",
"Netable.swift",
"Request.swift",
"RequestFailedDelegate.swift",
"RetryConfiguration.swift",
"SmartUnwrap.swift",
"URLRequest+EncodeParameters.swift",
"URLRequest+EncodeURL.swift",
"URLRequest+Multipart.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.