Build Information
Successful build of Wells, reference 0.3.0 (1558d1
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 12:44:44 UTC.
Swift 6 data race errors: 4
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/ChimeHQ/Wells.git
Reference: 0.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ChimeHQ/Wells
* tag 0.3.0 -> FETCH_HEAD
HEAD is now at 1558d1b Retry support
Cloned https://github.com/ChimeHQ/Wells.git
Revision (git rev-parse @):
1558d1bbafc1c57060103c5194ffa3abf4a332e3
SUCCESS checkout https://github.com/ChimeHQ/Wells.git at 0.3.0
========================================
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": "wells",
"name": "Wells",
"url": "https://github.com/ChimeHQ/Wells.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Wells",
"dependencies": [
]
}
]
}
Fetching https://github.com/ChimeHQ/Wells.git
[3/208] Fetching wells
Fetched https://github.com/ChimeHQ/Wells.git from cache (0.81s)
Creating working copy for https://github.com/ChimeHQ/Wells.git
Working copy of https://github.com/ChimeHQ/Wells.git resolved at 0.3.0 (1558d1b)
warning: '.resolve-product-dependencies': dependency 'wells' 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/ChimeHQ/Wells.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/10] Compiling Wells WellsUploader.swift
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsUploader.swift:19:23: warning: static property 'defaultBackgroundIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | public weak var delegate: WellsUploaderDelegate?
18 |
19 | public static var defaultBackgroundIdentifier: String = {
| |- warning: static property 'defaultBackgroundIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultBackgroundIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultBackgroundIdentifier' 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
20 | let bundleId = Bundle.main.bundleIdentifier ?? "com.chimehq.Wells"
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsUploader.swift:9:14: warning: non-final class 'WellsUploader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
7 | }
8 |
9 | public class WellsUploader: NSObject {
| `- warning: non-final class 'WellsUploader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | private static let defaultRetryInterval: TimeInterval = 1 * 60.0
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsUploader.swift:17:21: warning: stored property 'delegate' of 'Sendable'-conforming class 'WellsUploader' is mutable; this is an error in the Swift 6 language mode
15 | public let backgroundIdentifier: String?
16 |
17 | public weak var delegate: WellsUploaderDelegate?
| `- warning: stored property 'delegate' of 'Sendable'-conforming class 'WellsUploader' is mutable; this is an error in the Swift 6 language mode
18 |
19 | public static var defaultBackgroundIdentifier: String = {
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsUploader.swift:94:17: warning: capture of 'completionHandler' with non-sendable type '([URLSessionUploadTask]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | OperationQueue.main.addOperation {
93 | self.session.getTasksWithCompletionHandler { (_, uploadTasks, _) in
94 | completionHandler(uploadTasks)
| |- warning: capture of 'completionHandler' with non-sendable type '([URLSessionUploadTask]) -> 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'
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsUploader.swift:94:17: warning: capture of 'completionHandler' with non-sendable type '([URLSessionUploadTask]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | OperationQueue.main.addOperation {
93 | self.session.getTasksWithCompletionHandler { (_, uploadTasks, _) in
94 | completionHandler(uploadTasks)
| |- warning: capture of 'completionHandler' with non-sendable type '([URLSessionUploadTask]) -> 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'
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsUploader.swift:148:20: warning: capture of 'response' with non-sendable type 'NetworkResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |
147 | OperationQueue.main.addOperation {
148 | switch response {
| `- warning: capture of 'response' with non-sendable type 'NetworkResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | case .success:
150 | self.delegate?.finishedUpload(of: identifier, with: nil, by: self)
/Users/admin/builder/spi-builder-workspace/Sources/Wells/NetworkResponse.swift:3:13: note: consider making enum 'NetworkResponse' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public enum NetworkResponse {
| `- note: consider making enum 'NetworkResponse' conform to the 'Sendable' protocol
4 | case failed(NetworkResponseError)
5 | case rejected
[4/10] Compiling Wells ReportLocationProvider.swift
[5/10] Compiling Wells Protocol+Helpers.swift
[6/10] Compiling Wells WellsReporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsReporter.swift:9:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WellsReporter' may have shared mutable state; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public class WellsReporter {
| `- note: class 'WellsReporter' does not conform to the 'Sendable' protocol
9 | public static let shared = WellsReporter()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WellsReporter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
10 | public static let uploadFileExtension = "wellsdata"
11 | private static let maximumAccountCount = 5
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsUploader.swift:19:23: warning: static property 'defaultBackgroundIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | public weak var delegate: WellsUploaderDelegate?
18 |
19 | public static var defaultBackgroundIdentifier: String = {
| |- warning: static property 'defaultBackgroundIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultBackgroundIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultBackgroundIdentifier' 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
20 | let bundleId = Bundle.main.bundleIdentifier ?? "com.chimehq.Wells"
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsReporter.swift:32:13: warning: capture of 'self' with non-sendable type 'WellsReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public class WellsReporter {
| `- note: class 'WellsReporter' does not conform to the 'Sendable' protocol
9 | public static let shared = WellsReporter()
10 | public static let uploadFileExtension = "wellsdata"
:
30 |
31 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(10), qos: .background) {
32 | self.handleExistingLogs()
| `- warning: capture of 'self' with non-sendable type 'WellsReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsReporter.swift:139:13: warning: capture of 'self' with non-sendable type 'WellsReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public class WellsReporter {
| `- note: class 'WellsReporter' does not conform to the 'Sendable' protocol
9 | public static let shared = WellsReporter()
10 | public static let uploadFileExtension = "wellsdata"
:
137 |
138 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(delay), qos: .background) {
139 | self.submit(fileURL: fileURL, identifier: identifier, uploadRequest: newRequest)
| `- warning: capture of 'self' with non-sendable type 'WellsReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsReporter.swift:139:82: warning: reference to captured var 'newRequest' in concurrently-executing code; this is an error in the Swift 6 language mode
137 |
138 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(delay), qos: .background) {
139 | self.submit(fileURL: fileURL, identifier: identifier, uploadRequest: newRequest)
| `- warning: reference to captured var 'newRequest' in concurrently-executing code; this is an error in the Swift 6 language mode
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsReporter.swift:32:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
30 |
31 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(10), qos: .background) {
32 | self.handleExistingLogs()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsReporter.swift:139:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
137 |
138 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(delay), qos: .background) {
139 | self.submit(fileURL: fileURL, identifier: identifier, uploadRequest: newRequest)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
140 | }
141 | }
[7/10] Compiling Wells FileManager+Helpers.swift
[8/10] Compiling Wells Data+compression.swift
[9/10] Emitting module Wells
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsReporter.swift:9:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WellsReporter' may have shared mutable state; this is an error in the Swift 6 language mode
6 | }
7 |
8 | public class WellsReporter {
| `- note: class 'WellsReporter' does not conform to the 'Sendable' protocol
9 | public static let shared = WellsReporter()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WellsReporter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
10 | public static let uploadFileExtension = "wellsdata"
11 | private static let maximumAccountCount = 5
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsUploader.swift:19:23: warning: static property 'defaultBackgroundIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | public weak var delegate: WellsUploaderDelegate?
18 |
19 | public static var defaultBackgroundIdentifier: String = {
| |- warning: static property 'defaultBackgroundIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultBackgroundIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultBackgroundIdentifier' 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
20 | let bundleId = Bundle.main.bundleIdentifier ?? "com.chimehq.Wells"
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsUploader.swift:9:14: warning: non-final class 'WellsUploader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
7 | }
8 |
9 | public class WellsUploader: NSObject {
| `- warning: non-final class 'WellsUploader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | private static let defaultRetryInterval: TimeInterval = 1 * 60.0
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Wells/WellsUploader.swift:17:21: warning: stored property 'delegate' of 'Sendable'-conforming class 'WellsUploader' is mutable; this is an error in the Swift 6 language mode
15 | public let backgroundIdentifier: String?
16 |
17 | public weak var delegate: WellsUploaderDelegate?
| `- warning: stored property 'delegate' of 'Sendable'-conforming class 'WellsUploader' is mutable; this is an error in the Swift 6 language mode
18 |
19 | public static var defaultBackgroundIdentifier: String = {
[10/10] Compiling Wells NetworkResponse.swift
Build complete! (8.75s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Wells",
"name" : "Wells",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "Wells",
"targets" : [
"Wells"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "WellsTests",
"module_type" : "SwiftTarget",
"name" : "WellsTests",
"path" : "Tests/WellsTests",
"sources" : [
"HTTPHeaderTests.swift",
"NetworkResponseTests.swift"
],
"target_dependencies" : [
"Wells"
],
"type" : "test"
},
{
"c99name" : "Wells",
"module_type" : "SwiftTarget",
"name" : "Wells",
"path" : "Sources/Wells",
"product_memberships" : [
"Wells"
],
"sources" : [
"Data+compression.swift",
"FileManager+Helpers.swift",
"NetworkResponse.swift",
"Protocol+Helpers.swift",
"ReportLocationProvider.swift",
"WellsReporter.swift",
"WellsUploader.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.