Build Information
Successful build of FilRepSwift 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/chrisvander/FilRepSwift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/chrisvander/FilRepSwift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c1d7ca0 Create swift.yml
Cloned https://github.com/chrisvander/FilRepSwift.git
Revision (git rev-parse @):
c1d7ca04924b51693d50555c40192dd52c98464c
SUCCESS checkout https://github.com/chrisvander/FilRepSwift.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/chrisvander/FilRepSwift.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] Compiling FilRepSwift FilRepSwift.swift
/Users/admin/builder/spi-builder-workspace/Sources/FilRepSwift/FilRepSwift.swift:59:17: warning: capture of 'completion' with non-sendable type '(Result<[Miner], any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | let task = URLSession.shared.dataTask(with: url) { data, response, error in
58 | if (error != nil) {
59 | completion(Result.failure(error!))
| |- warning: capture of 'completion' with non-sendable type '(Result<[Miner], any Error>) -> 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'
60 | }
61 | do {
/Users/admin/builder/spi-builder-workspace/Sources/FilRepSwift/FilRepSwift.swift:62:42: warning: capture of 'self' with non-sendable type 'FilRepSwift' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2 |
3 | @available(macOS 10.15, *)
4 | public struct FilRepSwift {
| `- note: consider making struct 'FilRepSwift' conform to the 'Sendable' protocol
5 | let apiUrl: String = "https://api.filrep.io/api/v1/miners"
6 |
:
60 | }
61 | do {
62 | let filRepResponse = try self.getJSONDecoder().decode(FilRepResponse.self, from: data!)
| `- warning: capture of 'self' with non-sendable type 'FilRepSwift' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | completion(Result.success(filRepResponse.miners))
64 | } catch {
[4/5] Emitting module FilRepSwift
[5/5] Compiling FilRepSwift Miner.swift
Build complete! (16.64s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "FilRepSwift",
"name" : "FilRepSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "FilRepSwift",
"targets" : [
"FilRepSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FilRepSwiftTests",
"module_type" : "SwiftTarget",
"name" : "FilRepSwiftTests",
"path" : "Tests/FilRepSwiftTests",
"sources" : [
"FilRepSwiftTests.swift"
],
"target_dependencies" : [
"FilRepSwift"
],
"type" : "test"
},
{
"c99name" : "FilRepSwift",
"module_type" : "SwiftTarget",
"name" : "FilRepSwift",
"path" : "Sources/FilRepSwift",
"product_memberships" : [
"FilRepSwift"
],
"sources" : [
"FilRepSwift.swift",
"Miner.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.