Build Information
Successful build of NSAsyncCachedImage with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 0
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/nssina/NSAsyncCachedImage.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nssina/NSAsyncCachedImage
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e477115 Fix compile error on Xcode 14.3
Cloned https://github.com/nssina/NSAsyncCachedImage.git
Revision (git rev-parse @):
e477115efaac96019b3c897f10e6c6c279a27820
SUCCESS checkout https://github.com/nssina/NSAsyncCachedImage.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/nssina/NSAsyncCachedImage.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/5] Emitting module NSAsyncCachedImage
[4/5] Compiling NSAsyncCachedImage NSAsyncCachedImage.swift
[5/5] Compiling NSAsyncCachedImage NSAsyncNetwork.swift
/Users/admin/builder/spi-builder-workspace/Sources/NSAsyncCachedImage/Networking/NSAsyncNetwork.swift:21:22: warning: capture of 'self' with non-sendable type 'NSAsyncNetwork' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | }
13 |
14 | final class NSAsyncNetwork: ObservableObject, NSAsyncNetworkDelegate {
| `- note: class 'NSAsyncNetwork' does not conform to the 'Sendable' protocol
15 | @Published var data = Data()
16 |
:
19 |
20 | init(url: String, cachePolicy: URLRequest.CachePolicy = .returnCacheDataElseLoad, timeout: TimeInterval = 60) {
21 | Task { await getImage(url, cachePolicy: cachePolicy, timeout: timeout) }
| `- warning: capture of 'self' with non-sendable type 'NSAsyncNetwork' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/NSAsyncCachedImage/Networking/NSAsyncNetwork.swift:31:40: warning: capture of 'self' with non-sendable type 'NSAsyncNetwork' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | }
13 |
14 | final class NSAsyncNetwork: ObservableObject, NSAsyncNetworkDelegate {
| `- note: class 'NSAsyncNetwork' does not conform to the 'Sendable' protocol
15 | @Published var data = Data()
16 |
:
29 |
30 | if let data = cache.cachedResponse(for: request)?.data {
31 | DispatchQueue.main.async { self.data = data }
| `- warning: capture of 'self' with non-sendable type 'NSAsyncNetwork' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | } else {
33 | do {
/Users/admin/builder/spi-builder-workspace/Sources/NSAsyncCachedImage/Networking/NSAsyncNetwork.swift:38:44: warning: capture of 'self' with non-sendable type 'NSAsyncNetwork' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | }
13 |
14 | final class NSAsyncNetwork: ObservableObject, NSAsyncNetworkDelegate {
| `- note: class 'NSAsyncNetwork' does not conform to the 'Sendable' protocol
15 | @Published var data = Data()
16 |
:
36 | let cachedData = CachedURLResponse(response: response, data: data)
37 | cache.storeCachedResponse(cachedData, for: request)
38 | DispatchQueue.main.async { self.data = data }
| `- warning: capture of 'self' with non-sendable type 'NSAsyncNetwork' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | } catch {
40 | print("Error:", error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/NSAsyncCachedImage/Networking/NSAsyncNetwork.swift:31:40: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
29 |
30 | if let data = cache.cachedResponse(for: request)?.data {
31 | DispatchQueue.main.async { self.data = data }
| |- 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
32 | } else {
33 | do {
/Users/admin/builder/spi-builder-workspace/Sources/NSAsyncCachedImage/Networking/NSAsyncNetwork.swift:38:44: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
36 | let cachedData = CachedURLResponse(response: response, data: data)
37 | cache.storeCachedResponse(cachedData, for: request)
38 | DispatchQueue.main.async { self.data = data }
| |- 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
39 | } catch {
40 | print("Error:", error.localizedDescription)
Build complete! (29.95s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "NSAsyncCachedImage",
"name" : "NSAsyncCachedImage",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "NSAsyncCachedImage",
"targets" : [
"NSAsyncCachedImage"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NSAsyncCachedImageTests",
"module_type" : "SwiftTarget",
"name" : "NSAsyncCachedImageTests",
"path" : "Tests/NSAsyncCachedImageTests",
"sources" : [
"NSAsyncCachedImageTests.swift"
],
"target_dependencies" : [
"NSAsyncCachedImage"
],
"type" : "test"
},
{
"c99name" : "NSAsyncCachedImage",
"module_type" : "SwiftTarget",
"name" : "NSAsyncCachedImage",
"path" : "Sources/NSAsyncCachedImage",
"product_memberships" : [
"NSAsyncCachedImage"
],
"sources" : [
"NSAsyncCachedImage.swift",
"Networking/NSAsyncNetwork.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.