Build Information
Failed to build ASNetworkKit, reference main (a0cc29), with Swift 6.1 for macOS (SPM) on 26 Aug 2025 18:55:26 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/arindam94/ASNetworkKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/arindam94/ASNetworkKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a0cc299 Update README.md
Cloned https://github.com/arindam94/ASNetworkKit.git
Revision (git rev-parse @):
a0cc2996ac82377617477abe460890b13685e89b
SUCCESS checkout https://github.com/arindam94/ASNetworkKit.git at main
========================================
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": "asnetworkkit",
"name": "ASNetworkKit",
"url": "https://github.com/arindam94/ASNetworkKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ASNetworkKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/arindam94/ASNetworkKit.git
[1/25] Fetching asnetworkkit
Fetched https://github.com/arindam94/ASNetworkKit.git from cache (0.61s)
Creating working copy for https://github.com/arindam94/ASNetworkKit.git
Working copy of https://github.com/arindam94/ASNetworkKit.git resolved at main (a0cc299)
warning: '.resolve-product-dependencies': dependency 'asnetworkkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/arindam94/ASNetworkKit.git
https://github.com/arindam94/ASNetworkKit.git
{
"dependencies" : [
],
"manifest_display_name" : "ASNetworkKit",
"name" : "ASNetworkKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "ASNetworkKit",
"targets" : [
"ASNetworkKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ASNetworkKitTests",
"module_type" : "SwiftTarget",
"name" : "ASNetworkKitTests",
"path" : "Tests/ASNetworkKitTests",
"sources" : [
"ASNetworkKitTests.swift"
],
"target_dependencies" : [
"ASNetworkKit"
],
"type" : "test"
},
{
"c99name" : "ASNetworkKit",
"module_type" : "SwiftTarget",
"name" : "ASNetworkKit",
"path" : "Sources/ASNetworkKit",
"product_memberships" : [
"ASNetworkKit"
],
"sources" : [
"ASNetworkKit.swift",
"DataRequest.swift",
"DownloadRequest.swift",
"MultipartFormData.swift",
"RequestAdapters.swift",
"URLRequestBuilder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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-2F0A5646E1D333AE.txt
[3/9] Compiling ASNetworkKit RequestAdapters.swift
[4/9] Compiling ASNetworkKit DownloadRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/DownloadRequest.swift:27:17: warning: capture of 'completion' with non-sendable type '(Result<URL, any Error>) -> Void' in a '@Sendable' closure
25 | task = session.downloadTask(with: url) { temp, response, error in
26 | if let error {
27 | completion(.failure(NetworkError.underlying(error))); return
| |- warning: capture of 'completion' with non-sendable type '(Result<URL, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 | }
29 | guard let temp else {
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/DownloadRequest.swift:33:57: warning: capture of 'self' with non-sendable type 'DownloadRequest' in a '@Sendable' closure
8 | import Foundation
9 |
10 | public final class DownloadRequest {
| `- note: class 'DownloadRequest' does not conform to the 'Sendable' protocol
11 | private let session: URLSession
12 | private let url: URL
:
31 | }
32 | do {
33 | try? FileManager.default.removeItem(at: self.destination)
| `- warning: capture of 'self' with non-sendable type 'DownloadRequest' in a '@Sendable' closure
34 | try FileManager.default.moveItem(at: temp, to: self.destination)
35 | completion(.success(self.destination))
[5/9] Compiling ASNetworkKit MultipartFormData.swift
[6/9] Compiling ASNetworkKit URLRequestBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:35:83: error: cannot convert value of type 'Int' to expected argument type 'String.Encoding'
33 | case .httpBody:
34 | req = URLRequest(url: url)
35 | if let parameters { req.httpBody = query(parameters).data(using: .utf-8) }
| `- error: cannot convert value of type 'Int' to expected argument type 'String.Encoding'
36 | req.setValue("application/x-www-form-urlencoded; charset=utf-8", forHTTPHeaderField: "Content-Type")
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:35:82: error: referencing operator function '-' on 'SIMD' requires that 'String.Encoding' conform to 'SIMD'
33 | case .httpBody:
34 | req = URLRequest(url: url)
35 | if let parameters { req.httpBody = query(parameters).data(using: .utf-8) }
| `- error: referencing operator function '-' on 'SIMD' requires that 'String.Encoding' conform to 'SIMD'
36 | req.setValue("application/x-www-form-urlencoded; charset=utf-8", forHTTPHeaderField: "Content-Type")
37 | }
Swift.SIMD:1:11: note: where 'Self' = 'String.Encoding'
1 | extension SIMD where Self.Scalar : FloatingPoint {
| `- note: where 'Self' = 'String.Encoding'
2 | prefix public static func - (a: Self) -> Self
3 | public static func + (a: Self.Scalar, b: Self) -> Self
[7/9] Compiling ASNetworkKit ASNetworkKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:36:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct URLEncoding {
| `- note: consider making struct 'URLEncoding' conform to the 'Sendable' protocol
35 | public enum Destination { case methodDependent, queryString, httpBody }
36 | public static let `default` = URLEncoding()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public var destination: Destination = .methodDependent
38 | public init(destination: Destination = .methodDependent) { self.destination = destination }
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSONEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
39 | }
40 |
41 | public struct JSONEncoding {
| `- note: consider making struct 'JSONEncoding' conform to the 'Sendable' protocol
42 | public static let `default` = JSONEncoding()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSONEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | public init() {}
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:97:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Session' may have shared mutable state; this is an error in the Swift 6 language mode
94 | }
95 |
96 | public final class Session {
| `- note: class 'Session' does not conform to the 'Sendable' protocol
97 | public static let `default` = Session()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Session' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | public let configuration: URLSessionConfiguration
99 | public let session: URLSession
[8/9] Emitting module ASNetworkKit
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:36:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct URLEncoding {
| `- note: consider making struct 'URLEncoding' conform to the 'Sendable' protocol
35 | public enum Destination { case methodDependent, queryString, httpBody }
36 | public static let `default` = URLEncoding()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'URLEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public var destination: Destination = .methodDependent
38 | public init(destination: Destination = .methodDependent) { self.destination = destination }
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:42:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSONEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
39 | }
40 |
41 | public struct JSONEncoding {
| `- note: consider making struct 'JSONEncoding' conform to the 'Sendable' protocol
42 | public static let `default` = JSONEncoding()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSONEncoding' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | public init() {}
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:97:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Session' may have shared mutable state; this is an error in the Swift 6 language mode
94 | }
95 |
96 | public final class Session {
| `- note: class 'Session' does not conform to the 'Sendable' protocol
97 | public static let `default` = Session()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Session' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | public let configuration: URLSessionConfiguration
99 | public let session: URLSession
[9/9] Compiling ASNetworkKit DataRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:135:42: warning: capture of 'self' with non-sendable type 'DataRequest' in a '@Sendable' closure
8 | import Foundation
9 |
10 | public final class DataRequest {
| `- note: class 'DataRequest' does not conform to the 'Sendable' protocol
11 | private let session: URLSession
12 | private(set) var request: URLRequest?
:
133 | if let error {
134 | Task {
135 | if let retrier = self.retrier, await retrier.retry(request, dueTo: error, attempt: self.attempt) {
| `- warning: capture of 'self' with non-sendable type 'DataRequest' in a '@Sendable' closure
136 | self.attempt += 1
137 | perform()
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:137:29: warning: capture of 'perform()' with non-sendable type '() -> ()' in a '@Sendable' closure
135 | if let retrier = self.retrier, await retrier.retry(request, dueTo: error, attempt: self.attempt) {
136 | self.attempt += 1
137 | perform()
| |- warning: capture of 'perform()' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 | return
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:140:25: warning: capture of 'completion' with non-sendable type '(Result<DataRequest.Payload, any Error>) -> Void' in a '@Sendable' closure
138 | return
139 | }
140 | completion(.failure(NetworkError.underlying(error)))
| |- warning: capture of 'completion' with non-sendable type '(Result<DataRequest.Payload, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 | return
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:135:42: warning: capture of 'self' with non-sendable type 'DataRequest' in an isolated closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public final class DataRequest {
| `- note: class 'DataRequest' does not conform to the 'Sendable' protocol
11 | private let session: URLSession
12 | private(set) var request: URLRequest?
:
133 | if let error {
134 | Task {
135 | if let retrier = self.retrier, await retrier.retry(request, dueTo: error, attempt: self.attempt) {
| `- warning: capture of 'self' with non-sendable type 'DataRequest' in an isolated closure; this is an error in the Swift 6 language mode
136 | self.attempt += 1
137 | perform()
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:137:29: warning: capture of 'perform()' with non-sendable type '() -> ()' in an isolated closure; this is an error in the Swift 6 language mode
135 | if let retrier = self.retrier, await retrier.retry(request, dueTo: error, attempt: self.attempt) {
136 | self.attempt += 1
137 | perform()
| |- warning: capture of 'perform()' with non-sendable type '() -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 | return
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:140:25: warning: capture of 'completion' with non-sendable type '(Result<DataRequest.Payload, any Error>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
138 | return
139 | }
140 | completion(.failure(NetworkError.underlying(error)))
| |- warning: capture of 'completion' with non-sendable type '(Result<DataRequest.Payload, any Error>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 | return
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:131:14: warning: concurrently-executed local function 'perform()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
129 | guard let request else { completion(.failure(NetworkError.invalidURL)); return }
130 |
131 | func perform() {
| `- warning: concurrently-executed local function 'perform()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
132 | task = session.dataTask(with: request) { data, response, error in
133 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:105:56: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
103 | public func serializingJSON(options: JSONSerialization.ReadingOptions = []) async throws -> Any {
104 | try await withCheckedThrowingContinuation { cont in
105 | self.responseJSON(options: options) { cont.resume(with: $0) }
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
106 | }
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:119:84: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
117 | get async throws {
118 | try await withCheckedThrowingContinuation { cont in
119 | request.responseDecodable(of: T.self, decoder: decoder) { cont.resume(with: $0) }
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
120 | }
121 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/8] Compiling ASNetworkKit DownloadRequest.swift
[3/8] Compiling ASNetworkKit MultipartFormData.swift
[4/8] Compiling ASNetworkKit URLRequestBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:35:82: error: referencing operator function '-' on 'SIMD' requires that 'String.Encoding' conform to 'SIMD'
33 | case .httpBody:
34 | req = URLRequest(url: url)
35 | if let parameters { req.httpBody = query(parameters).data(using: .utf-8) }
| `- error: referencing operator function '-' on 'SIMD' requires that 'String.Encoding' conform to 'SIMD'
36 | req.setValue("application/x-www-form-urlencoded; charset=utf-8", forHTTPHeaderField: "Content-Type")
37 | }
Swift.SIMD:1:11: note: where 'Self' = 'String.Encoding'
1 | extension SIMD where Self.Scalar : FloatingPoint {
| `- note: where 'Self' = 'String.Encoding'
2 | prefix public static func - (a: Self) -> Self
3 | public static func + (a: Self.Scalar, b: Self) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:35:83: error: cannot convert value of type 'Int' to expected argument type 'String.Encoding'
33 | case .httpBody:
34 | req = URLRequest(url: url)
35 | if let parameters { req.httpBody = query(parameters).data(using: .utf-8) }
| `- error: cannot convert value of type 'Int' to expected argument type 'String.Encoding'
36 | req.setValue("application/x-www-form-urlencoded; charset=utf-8", forHTTPHeaderField: "Content-Type")
37 | }
[5/8] Emitting module ASNetworkKit
[6/8] Compiling ASNetworkKit ASNetworkKit.swift
[7/8] Compiling ASNetworkKit DataRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:131:14: warning: concurrently-executed local function 'perform()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
129 | guard let request else { completion(.failure(NetworkError.invalidURL)); return }
130 |
131 | func perform() {
| `- warning: concurrently-executed local function 'perform()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
132 | task = session.dataTask(with: request) { data, response, error in
133 | if let error {
[8/8] Compiling ASNetworkKit RequestAdapters.swift
BUILD FAILURE 6.1 macosSpm